diff --git a/mycomponents/scan/winScanPackAndLocation.vue b/mycomponents/scan/winScanPackAndLocation.vue index e7c2a9b9..89f8387c 100644 --- a/mycomponents/scan/winScanPackAndLocation.vue +++ b/mycomponents/scan/winScanPackAndLocation.vue @@ -267,14 +267,15 @@ this.packCallBack(balance); //因为盘点时有负库存,暂时去掉判断 2023年12月28日 - if (balance.qty > 0) { - this.packCallBack(balance); - } else { - this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为[' + balance.qty + "],
不可以进行操作", - res => { - this.packGetFocus(); - }) - } + + // if (balance.qty > 0) { + // this.packCallBack(balance); + // } else { + // this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为[' + balance.qty + "],
不可以进行操作", + // res => { + // this.packGetFocus(); + // }) + // } } else { this.showBalanceSelect(datas); } @@ -285,14 +286,16 @@ }, selectBalanceItem(balance) { - if (balance.qty > 0) { - this.packCallBack(balance); - } else { - this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为[' + balance.qty + "],不可以进行操作", - res => { - this.packGetFocus(); - }) - } + this.packCallBack(balance); + //因为盘点时有负库存,暂时去掉判断 2023年12月28日 + // if (balance.qty > 0) { + // this.packCallBack(balance); + // } else { + // this.showErrorMessage(this.getQueryCondition() + '
查找到库存记录数量为[' + balance.qty + "],不可以进行操作", + // res => { + // this.packGetFocus(); + // }) + // } }, packCallBack(item) { diff --git a/pages/count/job/countDetail.vue b/pages/count/job/countDetail.vue index 75d50c9c..804f99f3 100644 --- a/pages/count/job/countDetail.vue +++ b/pages/count/job/countDetail.vue @@ -23,7 +23,6 @@ - {{detailSource[0].qty}} @@ -204,6 +203,7 @@ item.subList.push(newDetail); items.push(item) } else { + console.log("数量",item.qty) item.qty = calc.add(item.qty,detail.qty) let newDetail = this.createDetailInfo(detail); // item.subList.push(newDetail); @@ -252,8 +252,7 @@ item.handleQty = 0; for (let detail of item.subList) { if (detail != undefined && detail.scaned) { - console.log("数量",Number(detail.qty)) - item.handleQty += Number(detail.qty) + item.handleQty = calc.add(item.handleQty,detail.qty) } } }