|
|
@ -580,7 +580,13 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
}, |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
function validateQty(rule, value, callback) { |
|
|
|
if (value>0) { |
|
|
|
callback() |
|
|
|
}else{ |
|
|
|
callback(new Error('数量必须大于0')) |
|
|
|
} |
|
|
|
} |
|
|
|
//表单校验
|
|
|
|
export const PurchasereceiptRequestMainRules = reactive({ |
|
|
|
ppNumber: [ |
|
|
@ -609,7 +615,7 @@ export const PurchasereceiptRequestMainRules = reactive({ |
|
|
|
], |
|
|
|
businessType: [ |
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
], |
|
|
|
] |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
@ -844,6 +850,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
}, |
|
|
|
sortTableDefault:9, |
|
|
|
tableForm: { |
|
|
|
disabled:true, |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
@ -860,13 +867,13 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
min: 0, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
@ -1370,6 +1377,9 @@ export const PurchasereceiptRequestDetailRules = reactive({ |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请输入物料代码', trigger: 'change' } |
|
|
|
], |
|
|
|
qty:[ |
|
|
|
{ validator:validateQty, message: '收货数量必须大于0', trigger: 'change'} |
|
|
|
] |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
|