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',