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) }