Browse Source

BUG修改

linshi20240813
parent
commit
acfd238950
  1. 28
      src/views/qms/inspectionQ3/inspectionQ3.data.ts

28
src/views/qms/inspectionQ3/inspectionQ3.data.ts

@ -20,8 +20,14 @@ export const Q3Rules = reactive({
qty: [required],
code: [required],
defectLocation: [required],
defectType: [required],
problemReason: [required],
defectType: [
{ 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],
amount: [required],
costCode: [required],
@ -232,24 +238,26 @@ export const Q3 = useCrudSchemas(
label: '缺陷类型',
field: 'defectType',
sort: 'custom',
dictType: DICT_TYPE.DEFECT_TYPE,
dictClass: 'string',
isSearch: false,
isTable: false,
tableForm: {
type: 'Select'
table: {
width: '150'
},
form: {
component: 'Input'
}
},
{
label: '问题原因',
field: 'problemReason',
sort: 'custom',
dictType: DICT_TYPE.PROBLEM_REASON,
dictClass: 'string',
isSearch: false,
isTable: false,
tableForm: {
type: 'Select'
table: {
width: '150'
},
form: {
component: 'Input'
}
},
{

Loading…
Cancel
Save