Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_online_20240829
lijuncheng 4 months ago
parent
commit
0e906a58a3
  1. 15
      src/pages/count/job/fuzzyCountDetail.vue

15
src/pages/count/job/fuzzyCountDetail.vue

@ -64,8 +64,8 @@
<win-scan-button v-if="fromLocationCode!=''" @goScan='openScanPopup'></win-scan-button> <win-scan-button v-if="fromLocationCode!=''" @goScan='openScanPopup'></win-scan-button>
<win-scan-pack ref="scanPopup" @getResult='getScanResult'></win-scan-pack> <win-scan-pack ref="scanPopup" @getResult='getScanResult'></win-scan-pack>
<win-scan-location ref="scanLocationCode" title="盘点库位" @getLocation='getLocation'></win-scan-location> <win-scan-location ref="scanLocationCode" title="盘点库位" @getLocation='getLocation'></win-scan-location>
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true" :isShowDesc="false" <count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true"
:allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount=='TRUE'"> :isShowDesc="false" :allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount=='TRUE'">
</count-qty-edit> </count-qty-edit>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
</view> </view>
@ -326,9 +326,10 @@
if (this.itemRangeValue != '') { if (this.itemRangeValue != '') {
let index = this.itemRangeValue.indexOf(packInfo.itemCode) let index = this.itemRangeValue.indexOf(packInfo.itemCode)
if (index < 0) { if (index < 0) {
this.afterScanLocation("物料代码【" + packInfo.itemCode + "】,不在盘点范围【" + this.itemRangeValue + "】内"); this.showErrorMessage("物料代码【"+ packInfo.itemCode + "】,不在盘点范围【" + this.itemRangeValue + "】内")
return; return;
} else { }
else {
this.onScan(packInfo); this.onScan(packInfo);
} }
} else { } else {
@ -337,14 +338,16 @@
}, },
onScan(packInfo) { onScan(packInfo) {
let detail = this.detailSource.find(r => r.itemCode == packInfo.itemCode && r.packingNumber == packInfo let detail = this.detailSource.find(r => r.itemCode == packInfo.itemCode && r.packingNumber ==
packInfo
.number && r.batch == packInfo.batch && r.inventoryStatus == "OK"); .number && r.batch == packInfo.batch && r.inventoryStatus == "OK");
if (detail == undefined) { if (detail == undefined) {
detail = this.createDetailInfo(packInfo); detail = this.createDetailInfo(packInfo);
this.detailSource.unshift(detail) this.detailSource.unshift(detail)
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} else { } else {
let index = this.detailSource.findIndex(r => r.itemCode == packInfo.itemCode && r.packingNumber == let index = this.detailSource.findIndex(r => r.itemCode == packInfo.itemCode && r
.packingNumber ==
packInfo packInfo
.number && r.batch == packInfo.batch && r.inventoryStatus == "OK"); .number && r.batch == packInfo.batch && r.inventoryStatus == "OK");
if (index >= 0) { if (index >= 0) {

Loading…
Cancel
Save