|
@ -3,8 +3,36 @@ import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const DeviceInternalAuditRules = reactive({ |
|
|
export const DeviceInternalAuditRules = reactive({ |
|
|
number: [required], |
|
|
personer: [ |
|
|
personer: [required], |
|
|
{ required: true, message: '请输入人员', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
fitOut: [ |
|
|
|
|
|
{ required: true, message: '请输入装配', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
coating: [ |
|
|
|
|
|
{ required: true, message: '请输入涂装', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
injectionMolding: [ |
|
|
|
|
|
{ required: true, message: '请输入注塑', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
business: [ |
|
|
|
|
|
{ required: true, message: '请输入商务', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
laboratory: [ |
|
|
|
|
|
{ required: true, message: '请输入实验室', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
it: [ |
|
|
|
|
|
{ required: true, message: '请输入IT', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
qualityDepartment: [ |
|
|
|
|
|
{ required: true, message: '请输入质量保障部', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
materialFlow: [ |
|
|
|
|
|
{ required: true, message: '请输入物流', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
moldPre: [ |
|
|
|
|
|
{ required: true, message: '请输入模具前期', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const DeviceInternalAudit = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const DeviceInternalAudit = useCrudSchemas(reactive<CrudSchema[]>([ |
|
@ -30,92 +58,207 @@ export const DeviceInternalAudit = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '装配', |
|
|
label: '装配', |
|
|
field: 'fitOut', |
|
|
field: 'fitOut', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '涂装', |
|
|
label: '涂装', |
|
|
field: 'coating', |
|
|
field: 'coating', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '注塑', |
|
|
label: '注塑', |
|
|
field: 'injectionMolding', |
|
|
field: 'injectionMolding', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '商务', |
|
|
label: '商务', |
|
|
field: 'business', |
|
|
field: 'business', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '实验室', |
|
|
label: '实验室', |
|
|
field: 'laboratory', |
|
|
field: 'laboratory', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: 'IT', |
|
|
label: 'IT', |
|
|
field: 'it', |
|
|
field: 'it', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '质量保障部', |
|
|
label: '质量保障部', |
|
|
field: 'qualityDepartment', |
|
|
field: 'qualityDepartment', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 180, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物流', |
|
|
label: '物流', |
|
|
field: 'materialFlow', |
|
|
field: 'materialFlow', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '模具前期', |
|
|
label: '模具前期', |
|
|
field: 'moldPre', |
|
|
field: 'moldPre', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 200, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '平均分', |
|
|
|
|
|
field: 'average', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: false, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '描述', |
|
|
label: '描述', |
|
|
field: 'describes', |
|
|
field: 'describes', |
|
|