From 003ce4d3d0a3fb2f2f6946387b96982ddebaabf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Wed, 17 Jul 2024 15:41:17 +0800 Subject: [PATCH] 07/17 --- src/views/baseinfo/infoclient/columns.tsx | 4 ++-- .../operation/seaexport/detail/modules/goodsTable.vue | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/baseinfo/infoclient/columns.tsx b/src/views/baseinfo/infoclient/columns.tsx index b22b42ea..2f83dc92 100644 --- a/src/views/baseinfo/infoclient/columns.tsx +++ b/src/views/baseinfo/infoclient/columns.tsx @@ -477,7 +477,7 @@ export const formSchema: FormSchema[] = [ component: 'Input', defaultValue: '', dynamicDisabled: ({ values }) => { - return values.id + return values.id != '' }, colProps: { span: 6 }, }, @@ -607,7 +607,7 @@ export const formSchema: FormSchema[] = [ { field: 'rcvMode', label: '收单据模式', - required: true, + // required: true, // component: 'Select', component: 'Input', defaultValue: '', diff --git a/src/views/operation/seaexport/detail/modules/goodsTable.vue b/src/views/operation/seaexport/detail/modules/goodsTable.vue index 841b8b3e..2c9dc57a 100644 --- a/src/views/operation/seaexport/detail/modules/goodsTable.vue +++ b/src/views/operation/seaexport/detail/modules/goodsTable.vue @@ -1800,6 +1800,11 @@ deep: true, }, ) + // addShortcut({ + // key: 'Ctrl+Shift+A', // 自定义快捷键 + // callback: () => alert('自定义快捷键触发'), // 快捷键回调函数 + // isEditable: false, // 是否在编辑状态下允许使用快捷键 + // }), // 表格配置项 const settings = { height: '400', @@ -1823,6 +1828,11 @@ hotTb.value.hotInstance.setDataAtRowProp(row, prop, '') } }, + afterDocumentKeyDown: function (e) { + if (e.code === 'ArrowDown') { + console.log(e.target) + } + }, columns: columns, // 此行直接复制,必须(非商用) licenseKey: 'non-commercial-and-evaluation',