|
@ -428,7 +428,7 @@ export const ItemBasicRules = reactive({ |
|
|
export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '物品代码', |
|
|
label: '物品代码', |
|
|
field: 'default', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
@ -611,6 +611,15 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
|
|
export const ItempackagingRules = reactive({ |
|
|
|
|
|
itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'blur' }], |
|
|
|
|
|
uom: [{ required: true, message: '计量单位不能为空', trigger: 'change' }], |
|
|
|
|
|
stdPackUnit: [{ required: true, message: '包装单位不能为空', trigger: 'change' }], |
|
|
|
|
|
stdPackQty: [{ required: true, message: '包装数量不能为空', trigger: 'blur' }], |
|
|
|
|
|
available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }] |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 基础质量信息 |
|
|
* @returns {Array} 基础质量信息 |
|
|