From 2dbe490c1465ec3919325100d9cb32347324708e Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Wed, 31 Jul 2024 09:16:17 +0800 Subject: [PATCH] =?UTF-8?q?WMS=20=E2=80=94=E2=80=94>=20bug=20=20=20WMS=20?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7=E7=94=B3=E8=AF=B7=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E6=9F=A5=E7=9C=8B=E8=B4=A8=E6=A3=80=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceiptRequestMain/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index c9f2ac125..d1b7813d6 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -334,6 +334,15 @@ const isShowMainButton = (row,val) => { } } +// 根据收货来源判断该按钮是否显示 +const isShowSourceTypeButton = (row) => { + if (row.sourceType == 'EDI' || row.sourceType == 'ASN_ExternalReceipt') { + return true + } else { + return false + } +} + // 根据状态返回该按钮是否显示 const isASNShowMainButton = (row,val) => { if (val.indexOf(row.status) > -1) { @@ -370,7 +379,7 @@ const butttondata = (row,$index) => { defaultButtons.mainListPointBtn({ hide: isASNShowMainButton(row, ['3','6','8']) }), // 标签打印 defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:purchasereceipt-request-main:handle'}), // 处理 defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:purchasereceipt-request-main:close'}), // 关闭 - defaultButtons.mainListPlanCheckQualityReportBtn({}), // 查看质检报告 + defaultButtons.mainListPlanCheckQualityReportBtn({hide:isShowSourceTypeButton(row)}), // 查看质检报告 ] }