diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index abc99b0a1..9048ed113 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -371,6 +371,20 @@ const isASNShowMainButton = (row,val) => { } } + +// 根据状态返回该按钮是否显示 +const isASNShowMainButtonCreateLabel = (row,val) => { + if (val.indexOf(row.status) > -1) { + if(row.sourceType == 'ASN_ExternalReceipt' && row.asnOutLabel == '2'){ + return true; + }else{ + return false; + } + } else { + return true; + } +} + // 列表-操作按钮 const butttondata = (row,$index) => { const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 @@ -386,7 +400,7 @@ const butttondata = (row,$index) => { { label: '生成标签', name: 'ssbq', - hide: isASNShowMainButton(row, ['3']), + hide: isASNShowMainButtonCreateLabel(row, ['3']), type: 'primary', icon: '', color: '',