|
|
@ -40,7 +40,7 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装单位', |
|
|
@ -64,6 +64,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -86,6 +90,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -97,6 +105,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -119,6 +131,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -140,6 +156,10 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -236,9 +256,9 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const ItempackagingRules = reactive({ |
|
|
|
itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'blur' }], |
|
|
|
itemCode: [{ required: true, message: '物品代码不能为空', trigger: 'change' }], |
|
|
|
uom: [{ required: true, message: '计量单位不能为空', trigger: 'change' }], |
|
|
|
stdPackUnit: [{ required: true, message: '包装单位不能为空', trigger: 'change' }], |
|
|
|
stdPackQty: [{ required: true, message: '包装数量不能为空', trigger: 'blur' }], |
|
|
|
stdPackQty: [{ required: true, message: '包装数量不能为空', trigger: 'change' }], |
|
|
|
available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }] |
|
|
|
}) |