|
|
@ -1169,6 +1169,15 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
const validateQty = (rule: any, value: any, callback: any,a,b) => { |
|
|
|
if (!value) { |
|
|
|
callback(new Error('包装数量必须大于0')); |
|
|
|
} else { |
|
|
|
callback(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const ProductionreturnRequestDetailRules = reactive({ |
|
|
|
workStationCode: [ |
|
|
@ -1183,9 +1192,12 @@ export const ProductionreturnRequestDetailRules = reactive({ |
|
|
|
// packingNumber: [
|
|
|
|
// { required: true, message: '请选择包装号', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
// batch: [
|
|
|
|
// { required: true, message: '请输入批次', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
qty:[ |
|
|
|
{ validator:validateQty, message: '数量必须大于0', trigger: 'change'} |
|
|
|
], |
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
|
], |
|
|
|
inventoryStatus: [ |
|
|
|
{ required: true, message: '请选择库存状态', trigger: 'change' } |
|
|
|
], |
|
|
|