领用申请发布待发布数量为0的数据禁止发布
This commit is contained in:
parent
b53e36bd21
commit
e6320bc8f3
|
|
@ -430,6 +430,17 @@ export default {
|
|||
itemsTemp.push({'typeId': item.typeId,'parentId':item.parentId, 'num': item.num, 'newTypeId': item.newTypeId});
|
||||
}
|
||||
});
|
||||
// 检查本次领料数据中是否包含待发布数量为0的数据
|
||||
let errorInfo = '';
|
||||
itemsTemp.some(item=>{
|
||||
if(item.num === 0){
|
||||
errorInfo = "发布数据中含有待发布数量为0的数据,请仔细检查";
|
||||
return true;
|
||||
}
|
||||
})
|
||||
if(errorInfo){
|
||||
return this.$modal.msgError(errorInfo);
|
||||
}
|
||||
console.log("xxxxxxxxxxxxxxxxxxxxxx", itemsTemp)
|
||||
applySubmit({
|
||||
leaseApplyDetailsList: itemsTemp,
|
||||
|
|
|
|||
Loading…
Reference in New Issue