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) + // } } /** 添加/修改操作 */