From cf0e20ad4bcf2640e121ae66bf4890d864f18327 Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Mon, 26 May 2025 10:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=85=B7=E6=A3=80=E4=BF=AE=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=EF=BC=8C=E7=8A=B6=E6=80=81=E5=AE=8C=E6=88=90=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=98=8E=E7=BB=86=E5=BA=94=E4=B8=8D=E8=83=BD=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E3=80=81=E5=88=A0=E9=99=A4=EF=BC=8C=E7=8E=B0=E8=83=BD?= =?UTF-8?q?=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/mold/moldinspectionjob/index.vue | 11 +++++++++-- src/views/eam/mold/moldmaintainjob/index.vue | 12 +++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/views/eam/mold/moldinspectionjob/index.vue b/src/views/eam/mold/moldinspectionjob/index.vue index a68877a..6014121 100644 --- a/src/views/eam/mold/moldinspectionjob/index.vue +++ b/src/views/eam/mold/moldinspectionjob/index.vue @@ -45,7 +45,7 @@ :isBusiness="true" @onChange="onChange" :isShowReduceButton="isShowReduceButton" - :tableAllSchemas="MoldInspectionAddDetail.allSchemas" + :tableAllSchemas="MoldInspectionDetailFilter.allSchemas" :tableFormRules="MoldInspectionAddDetailRules" :tableData="tableData" @handleAddTable="handleAddTable" @@ -59,7 +59,7 @@ item.field !== 'action'); + }else{ + MoldInspectionDetailFilter.value.allSchemas.tableColumns = MoldInspectionDetail.allSchemas.tableColumns; + } const factoryList = await selectAllFactoryArea() const userListAll = await UserApi.getSimpleUserList() row.factoryAreaNumber1 = factoryList.find((account) => account.id == row.factoryAreaNumber)?.name diff --git a/src/views/eam/mold/moldmaintainjob/index.vue b/src/views/eam/mold/moldmaintainjob/index.vue index 639dd9b..f31e2da 100644 --- a/src/views/eam/mold/moldmaintainjob/index.vue +++ b/src/views/eam/mold/moldmaintainjob/index.vue @@ -50,7 +50,7 @@ ref="formRef" :rules="MoldMaintainOrderMainRules" :formAllSchemas="MoldMaintainOrderMain.allSchemas" - :tableAllSchemas="MoldMaintainOrderDetail.allSchemas" + :tableAllSchemas="MoldMaintainOrderDetailFilter.allSchemas" :tableFormRules="MoldMaintainOrderDetailRules" :tableData="tableData" :apiUpdate="MoldMaintainOrderMainApi.updateMoldMaintainOrderMain" @@ -70,7 +70,7 @@ ref="detailRef" :isBasic="false" :allSchemas="MoldMaintainOrderMain.allSchemas" - :detailAllSchemas="MoldMaintainOrderDetail.allSchemas" + :detailAllSchemas="MoldMaintainOrderDetailFilter.allSchemas" :detailAllSchemasRules="MoldMaintainOrderDetailRules" :apiCreate="MoldMaintainOrderDetailApi.createMoldMaintainOrderDetail" :apiUpdate="MoldMaintainOrderDetailApi.updateMoldMaintainOrderDetail" @@ -171,7 +171,7 @@ import * as UserApi from '@/api/system/user' import { getAccessToken } from '@/utils/auth' import * as uploadApi from '@/api/eam/upload' import * as fileApi from '@/api/infra/file' - +import { cloneDeep } from 'lodash-es' defineOptions({ name: 'MoldMaintainOrderMain' }) const message = useMessage() // 消息弹窗 @@ -206,6 +206,7 @@ const src = ref(BASE_URL + '/jmreport/view/940395429096013824?token=' + getAcces const updataTableColumns = (val) => { tableColumns.value = val } +const MoldMaintainOrderDetailFilter = ref(cloneDeep(MoldMaintainOrderDetail)) // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { nextTick(() => { @@ -381,6 +382,11 @@ const openForm = (type: string, row?: any) => { /** 详情操作 */ const detailRef = ref() const openDetail = async (row: any, titleName: any, titleValue: any) => { + if(row.status == 'COMPLETED'){ + MoldMaintainOrderDetailFilter.value.allSchemas.tableColumns = MoldMaintainOrderDetail.allSchemas.tableColumns.filter(item => item.field !== 'action'); + }else{ + MoldMaintainOrderDetailFilter.value.allSchemas.tableColumns = MoldMaintainOrderDetail.allSchemas.tableColumns; + } const userListAll = await UserApi.getSimpleUserList() row.maintenanceName = userListAll.find((account) => account.id == row.maintenance)?.nickname const factoryList = await selectAllFactoryArea()