shish 4 سال پیش
والد
کامیت
64a446d046
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      ghsApp/src/pagesStorehouse/allot/putDetails.vue

+ 6 - 2
ghsApp/src/pagesStorehouse/allot/putDetails.vue

@@ -127,8 +127,12 @@ export default {
 			let small = 0;
 			let small = 0;
 			if (this.putData.itemInfo) {
 			if (this.putData.itemInfo) {
 				for (const item of this.putData.itemInfo) {
 				for (const item of this.putData.itemInfo) {
-					big += item.bigNum;
-					small += item.smallNum;
+					if(item.bigNum && Number(item.bigNum)>0){
+						big += item.bigNum;
+					}
+					if(item.smallNum && Number(item.smallNum)>0){
+						small += item.smallNum;
+					}
 				}
 				}
 			}
 			}
 			big = parseFloat(big.toFixed(2))
 			big = parseFloat(big.toFixed(2))