|
|
@ -8,9 +8,10 @@ export const ItemRules = reactive({ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
uom: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
{ required: true, message: '请选择输入单位', trigger: 'blur' }, |
|
|
|
{ max: 50, message: '不得超过20个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
classification: [ { required: true, message: '请输入备件编号', trigger: 'blur' } |
|
|
|
classification: [ { required: true, message: '请选择分类编号', trigger: 'blur' } |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
@ -154,6 +155,16 @@ export const Item = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 110 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单位', |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '价格', |
|
|
|
field: 'price', |
|
|
|