|
@ -1086,7 +1086,13 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
hiddenInMain:true, |
|
|
hiddenInMain:true, |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
function validateQty(rule, value, callback) { |
|
|
|
|
|
if (value>0) { |
|
|
|
|
|
callback() |
|
|
|
|
|
}else{ |
|
|
|
|
|
callback(new Error('数量必须大于0')) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const UnplannedissueRequestDetailRules = reactive({ |
|
|
export const UnplannedissueRequestDetailRules = reactive({ |
|
|
// packingNumber: [
|
|
|
// packingNumber: [
|
|
@ -1111,6 +1117,9 @@ export const UnplannedissueRequestDetailRules = reactive({ |
|
|
{ required: true, message: '请选择物料代码', trigger: 'change' }, |
|
|
{ required: true, message: '请选择物料代码', trigger: 'change' }, |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|
|
|
|
qty:[ |
|
|
|
|
|
{ validator:validateQty, message: '数量必须大于0', trigger: 'change'} |
|
|
|
|
|
], |
|
|
remark: [ |
|
|
remark: [ |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
], |
|
|
], |
|
|