|
@ -51,7 +51,7 @@ |
|
|
<view class="card_packing_code" style="padding: 5px; font-weight: bold ; font-size: 40rpx;"> |
|
|
<view class="card_packing_code" style="padding: 5px; font-weight: bold ; font-size: 40rpx;"> |
|
|
{{detailSource.length}} |
|
|
{{detailSource.length}} |
|
|
</view> |
|
|
</view> |
|
|
<view > |
|
|
<view> |
|
|
(箱) |
|
|
(箱) |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -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) { |
|
|