From 8ddbf3ff6b93f64fc9df177ffc2864160048500c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 3 Apr 2024 14:33:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspectionPlan/addForm.vue | 2 +- .../inspectionPlan/inspectionPlan.data.ts | 27 +++++++++++++++++-- .../inspectionTemplate/addForm.vue | 3 +-- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue index 2609724b6..21b987ee4 100644 --- a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue @@ -682,7 +682,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any } formType.value = type if (row) { - data.value = row + data.value = JSON.parse(JSON.stringify(row)) let list =[] if(row.content){ list = JSON.parse(row.content) diff --git a/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts b/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts index b4306d930..e1e8da612 100644 --- a/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts +++ b/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts @@ -73,6 +73,10 @@ export const InspectionPlanMain = useCrudSchemas(reactive([ label: '编码', field: 'code', sort: 'custom', + table: { + width: 220, + fixed: 'left' + }, form:{ componentProps:{ disabled:true, @@ -84,18 +88,30 @@ export const InspectionPlanMain = useCrudSchemas(reactive([ label: '物料编码', field: 'itemCode', sort: 'custom', + table: { + width: 150 + } },{ label: '版本', field: 'version', sort: 'custom', + table: { + width: 150 + } },{ label: '检验类型编码', field: 'testTypeCode', sort: 'custom', + table: { + width: 150 + } },{ label: '检验模板编码', field: 'programmeTemplateCode', sort: 'custom', + table: { + width: 150 + } },{ label: '拆分规则', field: 'splitRule', @@ -128,11 +144,17 @@ export const InspectionPlanMain = useCrudSchemas(reactive([ field: 'effectiveDate', sort: 'custom', formatter: dateFormatter, + table: { + width: 180 + } },{ label: '失效时间', field: 'expirationDate', sort: 'custom', formatter: dateFormatter, + table: { + width: 180 + } },{ label: '是否可用', field: 'available', @@ -155,10 +177,11 @@ export const InspectionPlanMain = useCrudSchemas(reactive([ { label: '操作', field: 'action', - isForm: false, + isDetail: false, + isForm: false , table: { width: 150, fixed: 'right' - } + }, } ])) diff --git a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue index e9e0fb289..bd5aa233b 100644 --- a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue @@ -538,8 +538,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any } formType.value = type if (row) { - data.value = row - + data.value = JSON.parse(JSON.stringify(row)) let list = await InspectionProcessPageApi.getListByTempleteCode(row.code) list.forEach((item, index) => { editableTabsValue.value = index + 1