领用申请发布待发布数量为0的数据禁止发布

This commit is contained in:
cwchen 2025-03-18 15:23:38 +08:00
parent b53e36bd21
commit e6320bc8f3
1 changed files with 11 additions and 0 deletions

View File

@ -430,6 +430,17 @@ export default {
itemsTemp.push({'typeId': item.typeId,'parentId':item.parentId, 'num': item.num, 'newTypeId': item.newTypeId}); 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) console.log("xxxxxxxxxxxxxxxxxxxxxx", itemsTemp)
applySubmit({ applySubmit({
leaseApplyDetailsList: itemsTemp, leaseApplyDetailsList: itemsTemp,