|
|
@ -288,12 +288,13 @@ |
|
|
|
this.toLocationInfo = location; |
|
|
|
}, |
|
|
|
getScanResult(result, managementTypeParams) { |
|
|
|
this.fromWarehouseCode = result.fromWarehouseCode |
|
|
|
this.fromWarehouseCode =result.fromWarehouseCode |
|
|
|
this.managementType = managementTypeParams |
|
|
|
if (this.showOnePop) { |
|
|
|
if (this.isJustReplay) { |
|
|
|
this.$refs.okToHoldRecordPackRef.itemCode = result.label.itemCode |
|
|
|
this.$refs.okToHoldRecordPackRef.batch = result.label.batch |
|
|
|
this.$refs.okToHoldRecordPackRef.uom = result.balance?result.balance.uom:"" |
|
|
|
this.getResult = result //存储接受的结果 |
|
|
|
this.$refs.scanPopup.closeScanPopup() |
|
|
|
} else { |
|
|
@ -322,32 +323,17 @@ |
|
|
|
this.$refs.comMessage.showErrorMessage('请输入数量'); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.checkItemCode(obj.itemCode, callBack => { |
|
|
|
|
|
|
|
if (callBack) { |
|
|
|
if (checkDirectoryItemExist(this.itemCodeTypeList, callBack)) { |
|
|
|
this.getResult = this.getResult ? this.getResult : { |
|
|
|
label: {}, |
|
|
|
fromLocationCode: '' |
|
|
|
} |
|
|
|
this.getResult.fromLocationCode = obj.fromLocationCode |
|
|
|
this.getResult.label.itemCode = obj.itemCode |
|
|
|
this.getResult.label.batch = obj.batch |
|
|
|
this.getResult.label.qty = obj.handleQty |
|
|
|
this.isJustReplay = false |
|
|
|
this.$refs.scanPopup.getScanResult(this.getResult, this.businessType) |
|
|
|
} else { |
|
|
|
var hint = getListItemTypeDesc(this.itemCodeTypeList); |
|
|
|
this.showErrorMessage("扫描物料[" + obj.itemCode + "]是[" + |
|
|
|
getItemTypeName(callBack) + "],需要的物料类型是[" + hint + "]") |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
this.showErrorMessage('未查找到物料【' + obj.itemCode + '】'); |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.getResult = this.getResult ? this.getResult : { |
|
|
|
label: {}, |
|
|
|
fromLocationCode: '' |
|
|
|
} |
|
|
|
this.getResult.fromLocationCode = obj.fromLocationCode |
|
|
|
this.getResult.label.itemCode = obj.itemCode |
|
|
|
this.getResult.label.batch = obj.batch |
|
|
|
this.getResult.label.qty = obj.handleQty |
|
|
|
this.isJustReplay = false |
|
|
|
this.$refs.scanPopup.getScanResult(this.getResult, this.businessType) |
|
|
|
|
|
|
|
}, |
|
|
|
//checkItemCode |
|
|
@ -552,7 +538,6 @@ |
|
|
|
result.fromLocationCode = this.fromLocationCode |
|
|
|
result.label.itemCode = result.label.code |
|
|
|
this.checkItemCode(result.label.itemCode, callBack => { |
|
|
|
|
|
|
|
if (callBack) { |
|
|
|
if (checkDirectoryItemExist(this.itemCodeTypeList, callBack)) { |
|
|
|
this.$refs.scanPopup.getScanResult(result) |
|
|
@ -570,7 +555,7 @@ |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.$refs.scanPopup.getScanResult(result) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 清除来源库位 |
|
|
|