From 6f8338ef7a4a2737c590166c8867ca7a6d96df34 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 21 Nov 2024 20:53:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=96=99=E9=9A=94?= =?UTF-8?q?=E7=A6=BB=E8=BE=93=E5=85=A5=E6=A1=86=E7=84=A6=E7=82=B9=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventoryMove/coms/comMoveRecord.vue | 35 +++- .../inventoryMove/coms/okToHoldRecordPack.vue | 193 ++++++++++-------- 2 files changed, 140 insertions(+), 88 deletions(-) diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue index 3199956d..3ec20363 100644 --- a/src/pages/inventoryMove/coms/comMoveRecord.vue +++ b/src/pages/inventoryMove/coms/comMoveRecord.vue @@ -41,7 +41,8 @@ + :locationAreaTypeList="fromLocationAreaTypeList" + @clearFromLocation="clearFromLocationCode"> @@ -157,7 +158,7 @@ itemCodeTypeList: [], isShowEditLocation: false, isJustReplay: true, //是否只是回显,不走库存余额接口 - fromWarehouseCode:"" + fromWarehouseCode: "" } }, @@ -287,7 +288,7 @@ this.toLocationInfo = location; }, getScanResult(result, managementTypeParams) { - this.fromWarehouseCode =result.fromWarehouseCode + this.fromWarehouseCode = result.fromWarehouseCode this.managementType = managementTypeParams if (this.showOnePop) { if (this.isJustReplay) { @@ -373,6 +374,10 @@ return true }, + clearFromLocationCode() { + this.$refs.okToHoldRecordPackRef.fromLocationCode = '' + }, + getScanResultAfter(result) { var balance = result.balance; @@ -543,9 +548,29 @@ if (fromWitch == 'fromLocationScanMsg') { this.isClearFromLocationCode = false this.$refs.scanFromLocationCode.getScanResult(result) - } else if (fromWitch == 'itemCodeScanMsg') { + } else if (fromWitch == 'itemCodeScan') { result.fromLocationCode = this.fromLocationCode - this.$refs.scanPopup.getScanResult(result) + result.label.itemCode = result.label.code + this.checkItemCode(result.label.itemCode, callBack => { + + if (callBack) { + if (checkDirectoryItemExist(this.itemCodeTypeList, callBack)) { + this.$refs.scanPopup.getScanResult(result) + } else { + this.$refs.okToHoldRecordPackRef.itemCode = '' + var hint = getListItemTypeDesc(this.itemCodeTypeList); + this.showErrorMessage("扫描物料[" + result.label.itemCode + "]是[" + + getItemTypeName(callBack) + "],需要的物料类型是[" + hint + "]") + } + + } else { + this.$refs.okToHoldRecordPackRef.itemCode = '' + this.showErrorMessage('未查找到物料【' + result.label.itemCode + '】'); + } + + }) + + } }, // 清除来源库位 diff --git a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue index 73f622e9..09dba246 100644 --- a/src/pages/inventoryMove/coms/okToHoldRecordPack.vue +++ b/src/pages/inventoryMove/coms/okToHoldRecordPack.vue @@ -1,53 +1,59 @@