|
@ -1206,7 +1206,13 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
hiddenInMain:true |
|
|
hiddenInMain:true |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
function validateQty(rule, value, callback) { |
|
|
|
|
|
if (value>0) { |
|
|
|
|
|
callback() |
|
|
|
|
|
}else{ |
|
|
|
|
|
callback(new Error('数量必须大于0')) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const CustomerreturnRequestDetailRules = reactive({ |
|
|
export const CustomerreturnRequestDetailRules = reactive({ |
|
|
itemCode: [ |
|
|
itemCode: [ |
|
@ -1221,6 +1227,9 @@ export const CustomerreturnRequestDetailRules = reactive({ |
|
|
packQty: [ |
|
|
packQty: [ |
|
|
{ required: true, message: '请选择包装数量', trigger: 'blur' } |
|
|
{ required: true, message: '请选择包装数量', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
|
|
|
qty:[ |
|
|
|
|
|
{ validator:validateQty, message: '数量必须大于0', trigger: 'change'} |
|
|
|
|
|
] |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
export const CustomerReturnRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const CustomerReturnRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|