diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue index 9eec34a6..aa012673 100644 --- a/src/pages/productReceipt/job/productReceiptDetail.vue +++ b/src/pages/productReceipt/job/productReceiptDetail.vue @@ -255,9 +255,7 @@ that.toLocationCode = that.subList[0].toLocationCode that.toLocationAreaTypeList = getDirectoryItemArray(that.jobContent.toAreaTypes) that.detailSource = getDataSource(that.subList) - if (that.scanMessage) { - this.$refs.scanPopup.simulateScan(that.scanMessage); - } + //获取管理模式,封装参数 var itemCodes = [] this.detailSource.forEach(item => { @@ -279,6 +277,9 @@ } }) + if (that.scanMessage) { + this.$refs.scanPopup.simulateScan(that.scanMessage); + } } }) } else { @@ -313,7 +314,6 @@ var qty = label.qty; var itemCode = label.itemCode; - var detail = this.detailSource.find(r => r.itemCode == itemCode); if (detail == undefined) { this.showErrorMessage("物料号【" + itemCode + "】不在列表中") @@ -380,6 +380,7 @@ this.showErrorMessage("包装[" + packingNumber + "]" + "批次[" + batch + "]不在任务列表中") } } + uni.hideLoading() } },