|
@ -20,8 +20,14 @@ export const Q3Rules = reactive({ |
|
|
qty: [required], |
|
|
qty: [required], |
|
|
code: [required], |
|
|
code: [required], |
|
|
defectLocation: [required], |
|
|
defectLocation: [required], |
|
|
defectType: [required], |
|
|
defectType: [ |
|
|
problemReason: [required], |
|
|
{ required: true, message: '缺陷类型不能为空', trigger: 'blur' }, |
|
|
|
|
|
{ max: 64, message: '不得超过64个字符', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
problemReason: [ |
|
|
|
|
|
{ required: true, message: '问题原因不能为空', trigger: 'blur' }, |
|
|
|
|
|
{ max: 64, message: '不得超过64个字符', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
priority: [required], |
|
|
priority: [required], |
|
|
amount: [required], |
|
|
amount: [required], |
|
|
costCode: [required], |
|
|
costCode: [required], |
|
@ -232,24 +238,26 @@ export const Q3 = useCrudSchemas( |
|
|
label: '缺陷类型', |
|
|
label: '缺陷类型', |
|
|
field: 'defectType', |
|
|
field: 'defectType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.DEFECT_TYPE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
tableForm: { |
|
|
table: { |
|
|
type: 'Select' |
|
|
width: '150' |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Input' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '问题原因', |
|
|
label: '问题原因', |
|
|
field: 'problemReason', |
|
|
field: 'problemReason', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.PROBLEM_REASON, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
tableForm: { |
|
|
table: { |
|
|
type: 'Select' |
|
|
width: '150' |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Input' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|