From f465a2fbeebd2c540cd8e921013864e1552fceb0 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Mon, 19 Aug 2024 19:05:31 +0800 Subject: [PATCH] =?UTF-8?q?HL-5445=E6=A0=B9=E6=8D=AEasnNumber=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E6=98=BE=E7=A4=BA=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=B4=A8=E6=A3=80=E6=8A=A5=E5=91=8A=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionJob/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/qms/inspectionJob/index.vue b/src/views/qms/inspectionJob/index.vue index a4d7aaa94..16c5c260d 100644 --- a/src/views/qms/inspectionJob/index.vue +++ b/src/views/qms/inspectionJob/index.vue @@ -238,6 +238,14 @@ const isShowMainButton = (row, val) => { } } +const isShowMainButton3 = (row) => { + if (row.asnNumber) { + return false + } else { + return true + } +} + // 根据状态返回该按钮是否显示 const isShowMainButton2 = (row, val) => { if (val.indexOf(row.isStaging) > -1) { @@ -283,7 +291,9 @@ const butttondata = (row) => { hasPermi: 'qms:inspection-job-main:execute' }), // 发布 defaultButtons.mainListPackageBtn(null), // 包装 - defaultButtons.mainListPlanCheckQualityReportBtn({}) // 查看质检报告 + defaultButtons.mainListPlanCheckQualityReportBtn({ + hide: isShowMainButton3(row) + }) // 查看质检报告 ] } const listTableRef = ref()