Browse Source

表格宽度

master_hella_20240701
zhang_li 8 months ago
parent
commit
c73949a774
  1. 3
      src/views/qms/aql/aql.data.ts
  2. 39
      src/views/qms/basicDataManage/counter/counter.data.ts
  3. 17
      src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts
  4. 3
      src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts
  5. 16
      src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts
  6. 24
      src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts
  7. 16
      src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts
  8. 20
      src/views/qms/qualityNotice/qualityNoticeMain.data.ts
  9. 3
      src/views/qms/sampleCode/sampleCode.data.ts
  10. 22
      src/views/qms/samplingProcess/samplingProcess.data.ts

3
src/views/qms/aql/aql.data.ts

@ -549,6 +549,9 @@ export const Aql = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
table: {
width: 175
}
}, },
{ {
label: '是否可用', label: '是否可用',

39
src/views/qms/basicDataManage/counter/counter.data.ts

@ -19,31 +19,47 @@ export const Counter = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
fixed: 'left' fixed: 'left',
table: {
fixed: 'left',
width: 175
}
}, },
{ {
label: '检验类型编码', label: '检验类型编码',
field: 'inspectionType', field: 'inspectionType',
sort: 'custom', sort: 'custom',
isSearch: true isSearch: true,
table: {
width: 175
}
}, },
{ {
label: '供应商编码', label: '供应商编码',
field: 'supplierCode', field: 'supplierCode',
sort: 'custom', sort: 'custom',
isSearch: true isSearch: true,
table: {
width: 175
}
}, },
{ {
label: '连续合格次数', label: '连续合格次数',
field: 'qualifiedTimes', field: 'qualifiedTimes',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: {
width: 140
}
}, },
{ {
label: '最后合格批次', label: '最后合格批次',
field: 'lastQualifiedBatch', field: 'lastQualifiedBatch',
sort: 'custom', sort: 'custom',
isSearch: false isSearch: false,
table: {
width: 140
}
}, },
{ {
label: '最后合格时间', label: '最后合格时间',
@ -65,6 +81,9 @@ export const Counter = useCrudSchemas(reactive<CrudSchema[]>([
type: 'datetime', type: 'datetime',
valueFormat: 'x' valueFormat: 'x'
} }
},
table: {
width: 175
} }
}, },
{ {
@ -75,6 +94,9 @@ export const Counter = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
},
table: {
width: 140
} }
}, },
{ {
@ -85,6 +107,9 @@ export const Counter = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'InputNumber', component: 'InputNumber',
value: 0 value: 0
},
table: {
width: 175
} }
}, },
{ {
@ -107,6 +132,9 @@ export const Counter = useCrudSchemas(reactive<CrudSchema[]>([
type: 'datetime', type: 'datetime',
valueFormat: 'x' valueFormat: 'x'
} }
},
table: {
width: 175
} }
}, },
{ {
@ -114,6 +142,9 @@ export const Counter = useCrudSchemas(reactive<CrudSchema[]>([
field: 'nextStage', field: 'nextStage',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: {
width: 140
}
}, },
// { // {
// label: '操作', // label: '操作',

17
src/views/qms/basicDataManage/inspectionScheme/inspectionScheme.data.ts

@ -90,7 +90,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'itemName', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 200
}, },
isSearch: true, isSearch: true,
}, },
@ -106,6 +106,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '描述', label: '描述',
field: 'description', field: 'description',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
}, { }, {
label: '版本', label: '版本',
field: 'version', field: 'version',
@ -120,14 +123,14 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([
dictClass: 'string', dictClass: 'string',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 175
} }
}, { }, {
label: '检验模板编码', label: '检验模板编码',
field: 'programmeTemplateCode', field: 'programmeTemplateCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 175
} }
}, { }, {
label: '拆分规则', label: '拆分规则',
@ -136,7 +139,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.SPLIT_RULES, dictType: DICT_TYPE.SPLIT_RULES,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑 dictClass: 'string', // 默认都是字符串类型其他暂不考虑
table: { table: {
width: 150 width: 175
}, },
}, { }, {
label: 'aql', label: 'aql',
@ -176,6 +179,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
table: {
width: 175
},
}, },
{ {
label: '失效时间', label: '失效时间',
@ -195,6 +201,9 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
table: {
width: 175
},
}, },
{ {
label: '是否可用', label: '是否可用',

3
src/views/qms/basicDataManage/inspectionTemplate/inspectionTemplate.data.ts

@ -89,8 +89,7 @@ export const InspectionTemplateMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '动态修改规则', label: '动态修改规则',
field: 'dynamicUpdateName', field: 'dynamicUpdateName',
sort: 'custom', sort: 'custom',
}, },{
,{
label: '版本', label: '版本',
field: 'version', field: 'version',
sort: 'custom', sort: 'custom',

16
src/views/qms/inspection/inspectionJob/inspectionJobMain.data.ts

@ -30,7 +30,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
table: { table: {
width: 165, width: 200,
fixed: 'left' fixed: 'left'
} }
}, },
@ -45,7 +45,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
table: { table: {
width: 150 width: 200
} }
}, },
{ {
@ -59,7 +59,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
table: { table: {
width: 150 width: 175
} }
},{ },{
label: '供应商名称', label: '供应商名称',
@ -67,7 +67,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: { table: {
width: 150 width: 175
}, },
form: { form: {
componentProps:{ componentProps:{
@ -95,7 +95,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: { table: {
width: 150 width: 175
}, },
form: { form: {
componentProps:{ componentProps:{
@ -188,7 +188,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
table: { table: {
width: 150 width: 200
} }
}, },
{ {
@ -324,7 +324,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -353,7 +353,7 @@ export const InspectionJobMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {

24
src/views/qms/inspection/inspectionRecord/inspectionRecordMain.data.ts

@ -16,7 +16,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isForm:false, isForm:false,
table: { table: {
width: 165, width: 200,
fixed: 'left' fixed: 'left'
} }
}, },
@ -27,7 +27,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isForm:false, isForm:false,
table: { table: {
width: 150 width: 200
} }
}, },
{ {
@ -37,7 +37,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm:false, isForm:false,
table: { table: {
width: 150 width: 200
} }
}, },
{ {
@ -47,7 +47,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm:false, isForm:false,
table: { table: {
width: 150 width: 200
} }
},{ },{
label: '供应商名称', label: '供应商名称',
@ -56,7 +56,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm:false, isForm:false,
table: { table: {
width: 150 width: 200
}, },
form: { form: {
componentProps:{ componentProps:{
@ -86,7 +86,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm:false, isForm:false,
table: { table: {
width: 150 width: 200
}, },
form: { form: {
componentProps:{ componentProps:{
@ -111,7 +111,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm:false, isForm:false,
table: { table: {
width: 150 width: 200
} }
}, },
{ {
@ -258,7 +258,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -287,7 +287,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -316,7 +316,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -345,7 +345,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -400,7 +400,7 @@ export const InspectionRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 170 width: 175
} }
}, },

16
src/views/qms/inspection/inspectionRequest/inspectionMain.data.ts

@ -58,7 +58,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -87,7 +87,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -115,7 +115,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -143,7 +143,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -171,7 +171,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -180,7 +180,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: { table: {
width: 150 width: 175
}, },
form:{ form:{
componentProps: { componentProps: {
@ -199,7 +199,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
table: { table: {
width: 150 width: 175
}, },
form:{ form:{
componentProps: { componentProps: {
@ -323,7 +323,7 @@ export const InspectionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
table: { table: {
width: 150 width: 175
} }
}, },
// { // {

20
src/views/qms/qualityNotice/qualityNoticeMain.data.ts

@ -16,7 +16,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isForm: false, isForm: false,
table: { table: {
width: 150, width: 200,
fixed: 'left' fixed: 'left'
} }
}, },
@ -38,7 +38,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm: false, isForm: false,
table: { table: {
width: 150 width: 200
} }
}, },
{ {
@ -48,7 +48,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isForm: false, isForm: false,
table: { table: {
width: 150 width: 200
} }
}, { }, {
label: '优先级', label: '优先级',
@ -121,7 +121,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -150,7 +150,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -179,7 +179,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -219,7 +219,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -248,7 +248,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -297,7 +297,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {
@ -312,7 +312,7 @@ export const QualityNoticeMain = useCrudSchemas(reactive<CrudSchema[]>([
value: 0 value: 0
}, },
table: { table: {
width: 150 width: 175
} }
}, },
{ {

3
src/views/qms/sampleCode/sampleCode.data.ts

@ -106,6 +106,9 @@ export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
table: {
width: 175
}
}, },
{ {
label: '是否可用', label: '是否可用',

22
src/views/qms/samplingProcess/samplingProcess.data.ts

@ -21,6 +21,7 @@ export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isForm: false, isForm: false,
table: { table: {
width: 175,
fixed: 'left' fixed: 'left'
} }
}, },
@ -29,6 +30,9 @@ export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([
field: 'description', field: 'description',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
table: {
width: 175
}
}, },
{ {
label: '取样类型', label: '取样类型',
@ -40,6 +44,9 @@ export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'Select' component: 'Select'
}, },
table: {
width: 140
}
}, },
{ {
label: '评估模式', label: '评估模式',
@ -50,16 +57,25 @@ export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'Select' component: 'Select'
}, },
table: {
width: 140
}
}, },
{ {
label: '样品量', label: '样品量',
field: 'sampleSize', field: 'sampleSize',
sort: 'custom', sort: 'custom',
table: {
width: 140
}
}, },
{ {
label: '检验次数', label: '检验次数',
field: 'inspectionQty', field: 'inspectionQty',
sort: 'custom', sort: 'custom',
table: {
width: 140
}
}, },
{ {
label: '采样方案编码', label: '采样方案编码',
@ -75,6 +91,9 @@ export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([
}, },
} }
}, },
table: {
width: 175
}
}, },
{ {
label: '创建时间', label: '创建时间',
@ -94,6 +113,9 @@ export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
table: {
width: 175
}
}, },
{ {
label: '是否可用', label: '是否可用',

Loading…
Cancel
Save