From e5289f1fcc476dd60a9225e3390da577c19d3f0e Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Fri, 16 May 2025 14:23:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?SBBJ-977=E8=AE=BE=E5=A4=87=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4-=E7=BB=B4=E4=BF=AE=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eam/device/devicemaintenancejob/index.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 568da7f..30998ef 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -50,7 +50,7 @@ ref="formRef" :rules="DeviceMaintenanceMainRules" :formAllSchemas="DeviceMaintenanceMain.allSchemas" - :tableAllSchemas="DeviceMaintenanceDetail.allSchemas" + :tableAllSchemas="DeviceMaintenanceDetailFilter.allSchemas" :tableFormRules="DeviceMaintenanceDetailRules" :tableData="tableData" :apiUpdate="DeviceMaintenanceMainApi.updateDeviceMaintenanceMain" @@ -70,7 +70,7 @@ ref="formRefSec" :rules="DeviceMaintenanceMainSecRules" :formAllSchemas="DeviceMaintenanceMainSec.allSchemas" - :tableAllSchemas="DeviceMaintenanceDetail.allSchemas" + :tableAllSchemas="DeviceMaintenanceDetailFilter.allSchemas" :tableFormRules="DeviceMaintenanceDetailRules" :tableData="tableData" :apiUpdate="DeviceMaintenanceMainApi.updateDeviceMaintenanceMain" @@ -91,7 +91,7 @@ ref="detailRef" :isBasic="false" :allSchemas="DeviceMaintenanceMain.allSchemas" - :detailAllSchemas="DeviceMaintenanceDetail.allSchemas" + :detailAllSchemas="DeviceMaintenanceDetailFilter.allSchemas" :detailAllSchemasRules="DeviceMaintenanceDetailRules" :apiCreate="DeviceMaintenanceDetailApi.createDeviceMaintenanceDetail" :apiUpdate="DeviceMaintenanceDetailApi.updateDeviceMaintenanceDetail" @@ -253,6 +253,8 @@ import { watch } from 'vue'; import dayjs from 'dayjs' import * as RepairRelationApi from '@/api/eam/basic/repairRelation' import * as InspectionApi from '@/api/eam/basic/inspection' +import { cloneDeep } from 'lodash-es' + const deviceMoldTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE) const deviceTypeList = getStrDictOptions(DICT_TYPE.APP_DEVICE_MOLD_TYPE).filter(item => item.value != 'MOLD') defineOptions({ name: 'DeviceMaintenanceMain' }) @@ -300,6 +302,7 @@ const confirmDialogLoading = ref(false) const selectedOptions = ref([]) const options = ref([]) const isTemporaryShow = ref(false) +const DeviceMaintenanceDetailFilter = ref(cloneDeep(DeviceMaintenanceDetail)) // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { nextTick(() => { @@ -798,6 +801,11 @@ const openFormSec = async (type: string, row?: any) => { /** 详情操作 */ const detailRef = ref() const openDetail = async (row: any, titleName: any, titleValue: any) => { + if(row.status == 'COMPLETED' || row.status == 'VERIFIED'){ + DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns.filter(item => item.field !== 'action'); + }else{ + DeviceMaintenanceDetailFilter.value.allSchemas.tableColumns = DeviceMaintenanceDetail.allSchemas.tableColumns; + } const userListAll = await UserApi.getSimpleUserList() const factoryList = await selectAllFactoryArea() const deviceListAll = await DeviceAccountsApi.getDeviceAccountsAllNoPage({}) From cf6921d69d09cf850627bc3e190ae48698feae88 Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Fri, 16 May 2025 15:14:41 +0800 Subject: [PATCH 2/2] =?UTF-8?q?SBBJ-1014=E9=97=AE=E9=A2=98=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=B9=B3=E5=8F=B0=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=8A=A5?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/device/problemSharingPlatform/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/eam/device/problemSharingPlatform/index.vue b/src/views/eam/device/problemSharingPlatform/index.vue index 42955c2..603f58d 100644 --- a/src/views/eam/device/problemSharingPlatform/index.vue +++ b/src/views/eam/device/problemSharingPlatform/index.vue @@ -166,6 +166,9 @@ const formsSuccess = async (formType,data) => { if(data.activeTime==0)data.activeTime = null; if(data.expireTime==0)data.expireTime = null; if (formType === 'create') { + if (data.uploadImgs === "") data.uploadImgs = []; + if (data.uploadFiles === "") data.uploadFiles = []; + await ProblemSharingPlatformApi.createProblemSharingPlatform(data) message.success(t('common.createSuccess')) } else {