Browse Source

默认数据配置文件

master
陈薪名 1 year ago
parent
commit
65b9c594a4
  1. 11
      src/utils/disposition/tableColumns.ts

11
src/utils/disposition/tableColumns.ts

@ -428,7 +428,7 @@ export const ItemBasicRules = reactive({
export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '物品代码',
field: 'default',
field: 'itemCode',
sort: 'custom',
table: {
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}

Loading…
Cancel
Save