Parcourir la source

fix: 修复增加计入逻辑,确保合格品数量正确增加

xieyong il y a 1 semaine
Parent
commit
242b546425

+ 1 - 1
src/views/produce/components/jobBooking/components/jobBom.vue

@@ -286,7 +286,7 @@
                 if (item.extInfo.isLoss == 1) {
                   // 损耗计入损耗数量
                   acc.lossNum = this.add(acc.lossNum, qty);
-                } else if (item.extInfo.isLoss == 3) {
+                } else if (item.extInfo.isLoss == 3 && isFormed(item)) {
                   // 增加: formedNum 增加(在合格品数量上添加输入的数量)
                   acc.formedNum = this.add(acc.formedNum, qty);
                 } else if (isFormed(item)) {