|
@ -687,13 +687,13 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
min: 1, |
|
|
min: 0, |
|
|
precision: 6 |
|
|
precision: 6 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'InputNumber', |
|
|
type: 'InputNumber', |
|
|
min: 1, |
|
|
min: 0, |
|
|
precision: 6 |
|
|
precision: 6 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -1255,11 +1255,11 @@ const validateBatch = (rule: any, value: any, callback: any) => { |
|
|
|
|
|
|
|
|
const validateQty = (rule: any, value: any, callback: any,a,b) => { |
|
|
const validateQty = (rule: any, value: any, callback: any,a,b) => { |
|
|
console.log('validateQty',rule, value,a,b) |
|
|
console.log('validateQty',rule, value,a,b) |
|
|
// if (!reg.test(value)) {
|
|
|
if (!value) { |
|
|
// callback(new Error('英文字母、数字或下划线'));
|
|
|
callback(new Error('发货数量必须大于0')); |
|
|
// } else {
|
|
|
} else { |
|
|
callback(); |
|
|
callback(); |
|
|
// }
|
|
|
} |
|
|
} |
|
|
} |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
export const SupplierdeliverRequestDetailRules = reactive({ |
|
@ -1267,8 +1267,8 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
// { required: true, message: '请输入包装号', trigger: 'blur' }
|
|
|
// { required: true, message: '请输入包装号', trigger: 'blur' }
|
|
|
// ],
|
|
|
// ],
|
|
|
qty:[ |
|
|
qty:[ |
|
|
{ required: true, message: '请输入发货数量1', trigger: 'change' }, |
|
|
{ required: true, message: '请输入发货数量', trigger: 'change' }, |
|
|
// { validator: validateQty, trigger: 'change' },
|
|
|
{ validator: validateQty, trigger: 'change' }, |
|
|
], |
|
|
], |
|
|
supplierBatch: [ |
|
|
supplierBatch: [ |
|
|
{ required: true, message: '请输入供应商批次', trigger: 'blur' } |
|
|
{ required: true, message: '请输入供应商批次', trigger: 'blur' } |
|
|