diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts index 82d5141..22411c0 100644 --- a/src/views/eam/basic/item/item.data.ts +++ b/src/views/eam/basic/item/item.data.ts @@ -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([ width: 110 }, }, + { + label: '单位', + field: 'uom', + sort: 'custom', + isSearch: false, + isTable: true, + tableForm: { + type: 'Select' + } + }, { label: '价格', field: 'price',