Browse Source

修改盘点可以操作负库存

wms3.0_pda
lijuncheng 10 months ago
parent
commit
07b8cc4078
  1. 35
      mycomponents/scan/winScanPackAndLocation.vue
  2. 5
      pages/count/job/countDetail.vue

35
mycomponents/scan/winScanPackAndLocation.vue

@ -267,14 +267,15 @@
this.packCallBack(balance); this.packCallBack(balance);
// 20231228 // 20231228
if (balance.qty > 0) {
this.packCallBack(balance); // if (balance.qty > 0) {
} else { // this.packCallBack(balance);
this.showErrorMessage(this.getQueryCondition() + '<br>查找到库存记录数量为[' + balance.qty + "],<br>不可以进行操作", // } else {
res => { // this.showErrorMessage(this.getQueryCondition() + '<br>[' + balance.qty + "],<br>",
this.packGetFocus(); // res => {
}) // this.packGetFocus();
} // })
// }
} else { } else {
this.showBalanceSelect(datas); this.showBalanceSelect(datas);
} }
@ -285,14 +286,16 @@
}, },
selectBalanceItem(balance) { selectBalanceItem(balance) {
if (balance.qty > 0) { this.packCallBack(balance);
this.packCallBack(balance); // 20231228
} else { // if (balance.qty > 0) {
this.showErrorMessage(this.getQueryCondition() + '<br>查找到库存记录数量为[' + balance.qty + "],不可以进行操作", // this.packCallBack(balance);
res => { // } else {
this.packGetFocus(); // this.showErrorMessage(this.getQueryCondition() + '<br>[' + balance.qty + "],",
}) // res => {
} // this.packGetFocus();
// })
// }
}, },
packCallBack(item) { packCallBack(item) {

5
pages/count/job/countDetail.vue

@ -23,7 +23,6 @@
</view> </view>
<u-line color="#D8D8D8" style="margin-bottom: 15rpx;"></u-line> <u-line color="#D8D8D8" style="margin-bottom: 15rpx;"></u-line>
<view class="page-main"> <view class="page-main">
{{detailSource[0].qty}}
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
@ -204,6 +203,7 @@
item.subList.push(newDetail); item.subList.push(newDetail);
items.push(item) items.push(item)
} else { } else {
console.log("数量",item.qty)
item.qty = calc.add(item.qty,detail.qty) item.qty = calc.add(item.qty,detail.qty)
let newDetail = this.createDetailInfo(detail); // let newDetail = this.createDetailInfo(detail); //
item.subList.push(newDetail); item.subList.push(newDetail);
@ -252,8 +252,7 @@
item.handleQty = 0; item.handleQty = 0;
for (let detail of item.subList) { for (let detail of item.subList) {
if (detail != undefined && detail.scaned) { if (detail != undefined && detail.scaned) {
console.log("数量",Number(detail.qty)) item.handleQty = calc.add(item.handleQty,detail.qty)
item.handleQty += Number(detail.qty)
} }
} }
} }

Loading…
Cancel
Save