diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue index b42a2ec8..c85f9806 100644 --- a/src/pages/inventoryMove/coms/comMoveRecord.vue +++ b/src/pages/inventoryMove/coms/comMoveRecord.vue @@ -559,16 +559,21 @@ } else { // console.log(999,detail.handleQty) // detail.handleQty =calc.add(detail.handleQty, result.label.qty) - if (managementTypeParams == 'BY_QUANTITY') { - this.showErrorMessage( - "物料号[" + item.itemCode + "]\n" + "批次[]\n" + "库位[" + detail.fromLocationCode + "]\n" + - "已经存在") - } else if (managementTypeParams == 'BY_BATCH') { - this.showErrorMessage( - "物料号[" + item.itemCode + "]\n" + "批次[" + detail.batch + "]\n" + "库位[" + detail - .fromLocationCode + "]\n" + - "已经存在") + if(this.showOnePop){ + if (managementTypeParams == 'BY_QUANTITY') { + this.showErrorMessage( + "物料号[" + item.itemCode + "]\n" + "批次[]\n" + "库位[" + detail.fromLocationCode + "]\n" + + "已经存在") + } else if (managementTypeParams == 'BY_BATCH') { + this.showErrorMessage( + "物料号[" + item.itemCode + "]\n" + "批次[" + detail.batch + "]\n" + "库位[" + detail + .fromLocationCode + "]\n" + + "已经存在") + } + }else{ + detail.handleQty =calc.add(detail.handleQty, result.label.qty) } + } } calcHandleQty(this.detailSource);