From 67cdb8143d3419f58700e1ba29df854597ca749f Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Tue, 10 Dec 2024 15:35:55 +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=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preparetoissueMain/index.vue | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue index 668c1251b..5406f6b11 100644 --- a/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue +++ b/src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue @@ -292,15 +292,6 @@ 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 @@ -330,7 +321,6 @@ const butttondata = (row,$index) => { { label: '打印补给品备料单', name: 'printSupplyList', - hide: isShowPrintButton(row), type: 'primary', icon: 'Select', hasPermi:'wms:preparetoissue-main:publish', @@ -452,6 +442,10 @@ const buttonTableClick = async (val, row) => { } else if (val == 'delete') { // 删除 handleDelete(row.masterId) } else if (val == 'printSupplyList'){ + if(row.printFlag == 'FALSE'){ + message.warning("发料任务未完成,不可打印") + return + } // 打印补给品备料单 handlePrintSupplyList(row.masterId) }