From c73949a7740a2904bf6721fd06f33ecc895fe0c3 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 23 Apr 2024 11:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/aql/aql.data.ts | 3 ++ .../basicDataManage/counter/counter.data.ts | 39 +++++++++++++++++-- .../inspectionScheme/inspectionScheme.data.ts | 17 ++++++-- .../inspectionTemplate.data.ts | 3 +- .../inspectionJob/inspectionJobMain.data.ts | 16 ++++---- .../inspectionRecordMain.data.ts | 24 ++++++------ .../inspectionRequest/inspectionMain.data.ts | 16 ++++---- .../qualityNotice/qualityNoticeMain.data.ts | 20 +++++----- src/views/qms/sampleCode/sampleCode.data.ts | 3 ++ .../samplingProcess/samplingProcess.data.ts | 22 +++++++++++ 10 files changed, 115 insertions(+), 48 deletions(-) diff --git a/src/views/qms/aql/aql.data.ts b/src/views/qms/aql/aql.data.ts index b9b11ae3e..8751dfa9c 100644 --- a/src/views/qms/aql/aql.data.ts +++ b/src/views/qms/aql/aql.data.ts @@ -549,6 +549,9 @@ export const Aql = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + } }, { label: '是否可用', diff --git a/src/views/qms/basicDataManage/counter/counter.data.ts b/src/views/qms/basicDataManage/counter/counter.data.ts index c5aa501fe..9cdd8ac2d 100644 --- a/src/views/qms/basicDataManage/counter/counter.data.ts +++ b/src/views/qms/basicDataManage/counter/counter.data.ts @@ -19,31 +19,47 @@ export const Counter = useCrudSchemas(reactive([ field: 'itemCode', sort: 'custom', isSearch: true, - fixed: 'left' + fixed: 'left', + table: { + fixed: 'left', + width: 175 + } }, { label: '检验类型编码', field: 'inspectionType', sort: 'custom', - isSearch: true + isSearch: true, + table: { + width: 175 + } }, { label: '供应商编码', field: 'supplierCode', sort: 'custom', - isSearch: true + isSearch: true, + table: { + width: 175 + } }, { label: '连续合格次数', field: 'qualifiedTimes', sort: 'custom', isSearch: false, + table: { + width: 140 + } }, { label: '最后合格批次', field: 'lastQualifiedBatch', sort: 'custom', - isSearch: false + isSearch: false, + table: { + width: 140 + } }, { label: '最后合格时间', @@ -65,6 +81,9 @@ export const Counter = useCrudSchemas(reactive([ type: 'datetime', valueFormat: 'x' } + }, + table: { + width: 175 } }, { @@ -75,6 +94,9 @@ export const Counter = useCrudSchemas(reactive([ form: { component: 'InputNumber', value: 0 + }, + table: { + width: 140 } }, { @@ -85,6 +107,9 @@ export const Counter = useCrudSchemas(reactive([ form: { component: 'InputNumber', value: 0 + }, + table: { + width: 175 } }, { @@ -107,6 +132,9 @@ export const Counter = useCrudSchemas(reactive([ type: 'datetime', valueFormat: 'x' } + }, + table: { + width: 175 } }, { @@ -114,6 +142,9 @@ export const Counter = useCrudSchemas(reactive([ field: 'nextStage', sort: 'custom', isSearch: false, + table: { + width: 140 + } }, // { // label: '操作', diff --git a/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts index c282caae8..bf7dab566 100644 --- a/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts +++ b/src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts @@ -90,7 +90,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ field: 'itemName', sort: 'custom', table: { - width: 150 + width: 200 }, isSearch: true, }, @@ -106,6 +106,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ label: '描述', field: 'description', sort: 'custom', + table: { + width: 150 + }, }, { label: '版本', field: 'version', @@ -120,14 +123,14 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ dictClass: 'string', sort: 'custom', table: { - width: 150 + width: 175 } }, { label: '检验模板编码', field: 'programmeTemplateCode', sort: 'custom', table: { - width: 150 + width: 175 } }, { label: '拆分规则', @@ -136,7 +139,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ dictType: DICT_TYPE.SPLIT_RULES, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 table: { - width: 150 + width: 175 }, }, { label: 'aql', @@ -176,6 +179,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + }, }, { label: '失效时间', @@ -195,6 +201,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + }, }, { label: '是否可用', diff --git a/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts b/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts index e98a400e5..fd906fac4 100644 --- a/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts +++ b/src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts @@ -89,8 +89,7 @@ export const InspectionTemplateMain = useCrudSchemas(reactive([ label: '动态修改规则', field: 'dynamicUpdateName', sort: 'custom', - }, - ,{ + },{ label: '版本', field: 'version', sort: 'custom', diff --git a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts index c66932fea..44b6cbc1f 100644 --- a/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts +++ b/src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts @@ -30,7 +30,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 165, + width: 200, fixed: 'left' } }, @@ -45,7 +45,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 200 } }, { @@ -59,7 +59,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 175 } },{ label: '供应商名称', @@ -67,7 +67,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form: { componentProps:{ @@ -95,7 +95,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form: { componentProps:{ @@ -188,7 +188,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 200 } }, { @@ -324,7 +324,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -353,7 +353,7 @@ export const InspectionJobMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { diff --git a/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts b/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts index 54cfb535e..9d3752b78 100644 --- a/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts +++ b/src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts @@ -16,7 +16,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: true, isForm:false, table: { - width: 165, + width: 200, fixed: 'left' } }, @@ -27,7 +27,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: true, isForm:false, table: { - width: 150 + width: 200 } }, { @@ -37,7 +37,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 } }, { @@ -47,7 +47,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 } },{ label: '供应商名称', @@ -56,7 +56,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 }, form: { componentProps:{ @@ -86,7 +86,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 }, form: { componentProps:{ @@ -111,7 +111,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ isSearch: false, isForm:false, table: { - width: 150 + width: 200 } }, { @@ -258,7 +258,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -287,7 +287,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -316,7 +316,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -345,7 +345,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -400,7 +400,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 170 + width: 175 } }, diff --git a/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts b/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts index 5e3ec8d56..6a17ef32a 100644 --- a/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts +++ b/src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts @@ -58,7 +58,7 @@ export const InspectionMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 175 } }, { @@ -87,7 +87,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -115,7 +115,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -143,7 +143,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -171,7 +171,7 @@ export const InspectionMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -180,7 +180,7 @@ export const InspectionMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form:{ componentProps: { @@ -199,7 +199,7 @@ export const InspectionMain = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, table: { - width: 150 + width: 175 }, form:{ componentProps: { @@ -323,7 +323,7 @@ export const InspectionMain = useCrudSchemas(reactive([ } }, table: { - width: 150 + width: 175 } }, // { diff --git a/src/views/qms/qualityNotice/qualityNoticeMain.data.ts b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts index 8e914280b..b38140725 100644 --- a/src/views/qms/qualityNotice/qualityNoticeMain.data.ts +++ b/src/views/qms/qualityNotice/qualityNoticeMain.data.ts @@ -16,7 +16,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ isSearch: true, isForm: false, table: { - width: 150, + width: 200, fixed: 'left' } }, @@ -38,7 +38,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ isSearch: false, isForm: false, table: { - width: 150 + width: 200 } }, { @@ -48,7 +48,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ isSearch: false, isForm: false, table: { - width: 150 + width: 200 } }, { label: '优先级', @@ -121,7 +121,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -150,7 +150,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -179,7 +179,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -219,7 +219,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -248,7 +248,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -297,7 +297,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ dateFormat: 'YYYY-MM-DD HH:mm:ss' }, table: { - width: 150 + width: 175 } }, { @@ -312,7 +312,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive([ value: 0 }, table: { - width: 150 + width: 175 } }, { diff --git a/src/views/qms/sampleCode/sampleCode.data.ts b/src/views/qms/sampleCode/sampleCode.data.ts index 2c8bb6541..b9fe5d648 100644 --- a/src/views/qms/sampleCode/sampleCode.data.ts +++ b/src/views/qms/sampleCode/sampleCode.data.ts @@ -106,6 +106,9 @@ export const SampleCode = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + } }, { label: '是否可用', diff --git a/src/views/qms/samplingProcess/samplingProcess.data.ts b/src/views/qms/samplingProcess/samplingProcess.data.ts index 8c21e4cea..ddf50c206 100644 --- a/src/views/qms/samplingProcess/samplingProcess.data.ts +++ b/src/views/qms/samplingProcess/samplingProcess.data.ts @@ -21,6 +21,7 @@ export const SamplingProcess = useCrudSchemas(reactive([ isSearch: true, isForm: false, table: { + width: 175, fixed: 'left' } }, @@ -29,6 +30,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ field: 'description', sort: 'custom', isSearch: true, + table: { + width: 175 + } }, { label: '取样类型', @@ -40,6 +44,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ form: { component: 'Select' }, + table: { + width: 140 + } }, { label: '评估模式', @@ -50,16 +57,25 @@ export const SamplingProcess = useCrudSchemas(reactive([ form: { component: 'Select' }, + table: { + width: 140 + } }, { label: '样品量', field: 'sampleSize', sort: 'custom', + table: { + width: 140 + } }, { label: '检验次数', field: 'inspectionQty', sort: 'custom', + table: { + width: 140 + } }, { label: '采样方案编码', @@ -75,6 +91,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ }, } }, + table: { + width: 175 + } }, { label: '创建时间', @@ -94,6 +113,9 @@ export const SamplingProcess = useCrudSchemas(reactive([ valueFormat: 'x', } }, + table: { + width: 175 + } }, { label: '是否可用',