|
@ -5,10 +5,10 @@ import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
export const InspectionTemplateRules = reactive({ |
|
|
export const InspectionTemplateRules = reactive({ |
|
|
description: [ |
|
|
description: [ |
|
|
{ required: true , message: '请填写描述', trigger: 'blur' } |
|
|
{ required: true, message: '请填写描述', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
version: [ |
|
|
version: [ |
|
|
{ required: true , message: '请填写版本', trigger: 'blur' } |
|
|
{ required: true, message: '请填写版本', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
inspectionCode: [ |
|
|
inspectionCode: [ |
|
|
{ required: true, message: '请选择检验方案模板编码', trigger: 'blur' } |
|
|
{ required: true, message: '请选择检验方案模板编码', trigger: 'blur' } |
|
@ -77,11 +77,11 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 220, |
|
|
width: 220, |
|
|
fixed: 'left' |
|
|
fixed: 'left' |
|
|
}, |
|
|
}, |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
form:{ |
|
|
form: { |
|
|
componentProps:{ |
|
|
componentProps: { |
|
|
disabled:true, |
|
|
disabled: true, |
|
|
placeholder:'系统自动获取' |
|
|
placeholder: '系统自动获取' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -92,7 +92,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料编码', |
|
|
label: '物料编码', |
|
@ -101,19 +101,19 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
}, { |
|
|
}, { |
|
|
label: '描述', |
|
|
label: '描述', |
|
|
field: 'description', |
|
|
field: 'description', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
},{ |
|
|
}, { |
|
|
label: '版本', |
|
|
label: '版本', |
|
|
field: 'version', |
|
|
field: 'version', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
} |
|
|
} |
|
|
},{ |
|
|
}, { |
|
|
label: '检验类型编码', |
|
|
label: '检验类型编码', |
|
|
field: 'inspectionType', |
|
|
field: 'inspectionType', |
|
|
dictType: DICT_TYPE.INSPECTION_TYPE, |
|
|
dictType: DICT_TYPE.INSPECTION_TYPE, |
|
@ -122,14 +122,14 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
} |
|
|
} |
|
|
},{ |
|
|
}, { |
|
|
label: '检验模板编码', |
|
|
label: '检验模板编码', |
|
|
field: 'programmeTemplateCode', |
|
|
field: 'programmeTemplateCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
} |
|
|
} |
|
|
},{ |
|
|
}, { |
|
|
label: '拆分规则', |
|
|
label: '拆分规则', |
|
|
field: 'splitRule', |
|
|
field: 'splitRule', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
@ -137,8 +137,8 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
|
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
},{ |
|
|
}, { |
|
|
label: 'aql', |
|
|
label: 'aql', |
|
|
field: 'aql', |
|
|
field: 'aql', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
@ -147,32 +147,54 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
} |
|
|
} |
|
|
},{ |
|
|
}, { |
|
|
label: '检验水平', |
|
|
label: '检验水平', |
|
|
field: 'inspectionLevel', |
|
|
field: 'inspectionLevel', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.INSPECTION_LEVEL, |
|
|
dictType: DICT_TYPE.INSPECTION_LEVEL, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
label: '生效时间', |
|
|
label: '生效时间', |
|
|
field: 'effectiveDate', |
|
|
field: 'effectiveDate', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
table: { |
|
|
isForm: false, |
|
|
width: 180 |
|
|
detail: { |
|
|
} |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
},{ |
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: { width: '100%' }, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
label: '失效时间', |
|
|
label: '失效时间', |
|
|
field: 'expirationDate', |
|
|
field: 'expirationDate', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
table: { |
|
|
isForm: false, |
|
|
width: 180 |
|
|
detail: { |
|
|
} |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: { width: '100%' }, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
|
// label: '是否可用',
|
|
|
// label: '是否可用',
|
|
@ -197,7 +219,7 @@ export const InspectionSchemeMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
|
isDetail: false, |
|
|
isDetail: false, |
|
|
isForm: false , |
|
|
isForm: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150, |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|