From a9a56453f7d8aa1c45ed6f9d5350c97d29494d2c Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Thu, 28 Nov 2024 17:37:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E6=A0=87=E7=AD=BE=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/defaultButtons.ts | 13 +++++++++++++ src/views/wms/inventoryManage/balance/index.vue | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 64fa7a581..5cdbd0bf8 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -1103,6 +1103,19 @@ export function mainListPointBtn(option: any) { hasPermi: '' }) } + +// 主列表-创建标签 +export function mainListCreatePointBtn(option: any) { + return __defaultBtnOption(option, { + label: t(`ts.创建标签`).replace('ts.', ''), + name: 'createPoint', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} export function mainListPrintInspectionBtn(option: any) { return __defaultBtnOption(option, { label: t(`ts.打印检验指引单`).replace('ts.', ''), diff --git a/src/views/wms/inventoryManage/balance/index.vue b/src/views/wms/inventoryManage/balance/index.vue index b5e377e42..6b4fb2ca1 100644 --- a/src/views/wms/inventoryManage/balance/index.vue +++ b/src/views/wms/inventoryManage/balance/index.vue @@ -298,7 +298,7 @@ const butttondata = (row) => { // float: 'right', // hasPermi: '' // }, - defaultButtons.mainListPointBtn({hide: isShowPointBtn(row)} ) // 标签打印 + defaultButtons.mainListCreatePointBtn({hide: isShowPointBtn(row)} ) // 标签打印 // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // 删除   ] @@ -319,7 +319,7 @@ const buttonTableClick = async (val, row) => { ';U' + row.uom alert(aaa) - } else if (val == 'point') { + } else if (val == 'createPoint') { // 标签打印 handlePoint(row) }