Browse Source

修改盘点可以操作负库存

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

33
mycomponents/scan/winScanPackAndLocation.vue

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

5
pages/count/job/countDetail.vue

@ -23,7 +23,6 @@
</view>
<u-line color="#D8D8D8" style="margin-bottom: 15rpx;"></u-line>
<view class="page-main">
{{detailSource[0].qty}}
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
@ -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)
}
}
}

Loading…
Cancel
Save