From dc66d8f00bc9be9327a4af7666585ef59d1273e7 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 29 Aug 2024 15:57:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7=EF=BC=9AHL-5588=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=A0=87=E7=AD=BE=E5=90=8E=E9=9A=90=E8=97=8F=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=A0=87=E7=AD=BE=E7=9A=84=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceiptRequestMain/index.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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: '',