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 @@ -