支持 采购数量为0

This commit is contained in:
java110 2022-05-31 10:35:03 +08:00
parent db2d71d846
commit eb040ae0ca

View File

@ -94,7 +94,7 @@
let msg = ''; let msg = '';
$that.resourceEnterManageInfo.purchaseApplyDetailVo.forEach(function(item) { $that.resourceEnterManageInfo.purchaseApplyDetailVo.forEach(function(item) {
console.log(item); console.log(item);
if (!item.hasOwnProperty("purchaseQuantity") || !item.purchaseQuantity || parseInt(item.purchaseQuantity) <= 0) { if (!item.hasOwnProperty("purchaseQuantity") || !item.purchaseQuantity || parseInt(item.purchaseQuantity) < 0) {
msg = '采购数量未填写'; msg = '采购数量未填写';
return; return;
} }