Browse Source

盘点扫描时去掉负库存提示

wms3.0_pda
niexiting 9 months ago
parent
commit
218870c178
  1. 23
      mycomponents/scan/winScanPackAndLocation.vue

23
mycomponents/scan/winScanPackAndLocation.vue

@ -21,7 +21,7 @@
<view class="uni-center" style="width: 25%; "> <view class="uni-center" style="width: 25%; ">
来源库位 来源库位
</view> </view>
<!-- style="width: 75%;padding: 8rpx" --> <!-- style="width: 75%;padding: 8rpx" -->
<view class=""> <view class="">
<!-- <input v-model="fromLocationCode" placeholder="请扫描来源库位" :focus="locationOnFocus" <!-- <input v-model="fromLocationCode" placeholder="请扫描来源库位" :focus="locationOnFocus"
placeholder-style="font-size:12px" style="padding: 5px;" @confirm="scanLocation" /> --> placeholder-style="font-size:12px" style="padding: 5px;" @confirm="scanLocation" /> -->
@ -41,7 +41,7 @@
<view class=""> <view class="">
<view class=""> <view class="">
<win-com-scan ref="comscan" :placeholder="title" @getResult="getScanResult" <win-com-scan ref="comscan" :placeholder="title" @getResult="getScanResult"
:isShowHistory="isShowHistory" :clearResult="true" :headerType ="headerType"></win-com-scan> :isShowHistory="isShowHistory" :clearResult="true" :headerType="headerType"></win-com-scan>
</view> </view>
</view> </view>
</view> </view>
@ -264,14 +264,17 @@
}) })
} else if (datas.length == 1) { } else if (datas.length == 1) {
let balance = datas[0]; let balance = datas[0];
if (balance.qty > 0) { this.packCallBack(balance);
this.packCallBack(balance);
} else { // 20231228
this.showErrorMessage(this.getQueryCondition() + '<br>查找到库存记录数量为[' + balance.qty + "],<br>不可以进行操作", // if (balance.qty > 0) {
res => { // this.packCallBack(balance);
this.packGetFocus(); // } else {
}) // this.showErrorMessage(this.getQueryCondition() + '<br>[' + balance.qty + "],<br>",
} // res => {
// this.packGetFocus();
// })
// }
} else { } else {
this.showBalanceSelect(datas); this.showBalanceSelect(datas);
} }

Loading…
Cancel
Save