From 4e1ce6cf9b29981ef65202828eb3680b92743826 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Tue, 10 Dec 2024 13:28:41 +0800 Subject: [PATCH] =?UTF-8?q?YT-1616=E5=A4=87=E6=96=99=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparetoissueplan/preparetoissueMain/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index 5da20538f..668c1251b 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -292,6 +292,15 @@ const isShowMainButton = (row,val) => { } } +// 根据状态返回该按钮是否显示 +const isShowPrintButton = (row) => { + if ('TRUE'.indexOf(row.printFlag) > -1) { + return false + } else { + return true + } +} + // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 @@ -321,7 +330,7 @@ const butttondata = (row,$index) => { { label: '打印补给品备料单', name: 'printSupplyList', - hide: isShowMainButton(row,['6']), + hide: isShowPrintButton(row), type: 'primary', icon: 'Select', hasPermi:'wms:preparetoissue-main:publish',