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 @@