From 30df9d072b8f9f32babb4aece0fee3f09f86254b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Mon, 18 Dec 2023 14:44:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BD=99=E9=A2=9D=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E5=A2=9E=E5=8A=A0=E6=A0=87=E7=AD=BE=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventoryManage/balance/balance.data.ts | 11 ++++++++ .../wms/inventoryManage/balance/index.vue | 25 +++++++++++++++---- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts index 9b05ac7f7..1f3c460fb 100644 --- a/src/views/wms/inventoryManage/balance/balance.data.ts +++ b/src/views/wms/inventoryManage/balance/balance.data.ts @@ -385,6 +385,17 @@ export const Balance = useCrudSchemas(reactive([ }, isForm: false, }, + // TODO: 临时添加 方便操作 + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 100, + fixed: 'right' + }, + } ])) // 表单校验 diff --git a/src/views/wms/inventoryManage/balance/index.vue b/src/views/wms/inventoryManage/balance/index.vue index 62f4a00ab..cd6868da2 100644 --- a/src/views/wms/inventoryManage/balance/index.vue +++ b/src/views/wms/inventoryManage/balance/index.vue @@ -125,18 +125,33 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ + { + label: '标签信息', + name: 'bqxx', + hide: false, + type: 'primary', + icon: '', + color: '', + link: true, + float:'right', + hasPermi: '' + }, // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // 删除 ] // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { - if (val == 'edit') { // 编辑 - // const res = await BalanceApi.getItempackaging(row.id) - openForm('update', row) - } else if (val == 'delete') { // 删除 - handleDelete(row.id) + if (val == 'bqxx') { + let aaa = 'HPQ;V1.0;I'+row.itemCode+';P'+row.packingNumber+';B'+row.batch+';Q'+row.qty+';U'+row.uom + alert(aaa) } + // if (val == 'edit') { // 编辑 + // // const res = await BalanceApi.getItempackaging(row.id) + // openForm('update', row) + // } else if (val == 'delete') { // 删除 + // handleDelete(row.id) + // } } /** 添加/修改操作 */