From 487f0b54056f1d9129b434be22fa985619affc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BA=86=E6=BA=90?= Date: Mon, 9 Jun 2025 14:44:20 +0800 Subject: [PATCH] =?UTF-8?q?[SBBJ-1216]=20=E7=BC=96=E8=BE=91=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eam/device/deviceinspectionjob/index.vue | 4 + .../eam/mold/moldinspectionjob/index.vue | 401 ++++++++++-------- 2 files changed, 237 insertions(+), 168 deletions(-) diff --git a/src/views/eam/device/deviceinspectionjob/index.vue b/src/views/eam/device/deviceinspectionjob/index.vue index cacf314..d1b4d7f 100644 --- a/src/views/eam/device/deviceinspectionjob/index.vue +++ b/src/views/eam/device/deviceinspectionjob/index.vue @@ -73,6 +73,7 @@ :openFormCallBack="openFormCallBack" @detailOnChange="detailOnChange" :buttonControllFunction="buttonControllFunction" + :isShowAddBtn="isShowAddBtn" /> @@ -145,6 +146,7 @@ const verifyDialogVisible = ref(false) const verifyFormValue = ref({ verifyContent: '', }) +const isShowAddBtn = ref(false) const openRowValue = ref() const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL const DeviceInspectionDetailFilter = ref(cloneDeep(DeviceInspectionDetail)) @@ -361,7 +363,9 @@ const detailRef = ref() const openDetail = async (row: any, titleName: any, titleValue: any) => { if(row.status == 'COMPLETED' || row.status == 'VERIFIED'){ DeviceInspectionDetailFilter.value.allSchemas.tableColumns = DeviceInspectionDetail.allSchemas.tableColumns.filter(item => item.field !== 'action'); + isShowAddBtn.value = false }else{ + isShowAddBtn.value = true DeviceInspectionDetailFilter.value.allSchemas.tableColumns = DeviceInspectionDetail.allSchemas.tableColumns; } const factoryList = await selectAllFactoryArea() diff --git a/src/views/eam/mold/moldinspectionjob/index.vue b/src/views/eam/mold/moldinspectionjob/index.vue index 20567c1..410a87b 100644 --- a/src/views/eam/mold/moldinspectionjob/index.vue +++ b/src/views/eam/mold/moldinspectionjob/index.vue @@ -1,24 +1,33 @@ - - - - + - @@ -102,39 +119,35 @@ -