|
@ -288,12 +288,13 @@ |
|
|
this.toLocationInfo = location; |
|
|
this.toLocationInfo = location; |
|
|
}, |
|
|
}, |
|
|
getScanResult(result, managementTypeParams) { |
|
|
getScanResult(result, managementTypeParams) { |
|
|
this.fromWarehouseCode = result.fromWarehouseCode |
|
|
this.fromWarehouseCode =result.fromWarehouseCode |
|
|
this.managementType = managementTypeParams |
|
|
this.managementType = managementTypeParams |
|
|
if (this.showOnePop) { |
|
|
if (this.showOnePop) { |
|
|
if (this.isJustReplay) { |
|
|
if (this.isJustReplay) { |
|
|
this.$refs.okToHoldRecordPackRef.itemCode = result.label.itemCode |
|
|
this.$refs.okToHoldRecordPackRef.itemCode = result.label.itemCode |
|
|
this.$refs.okToHoldRecordPackRef.batch = result.label.batch |
|
|
this.$refs.okToHoldRecordPackRef.batch = result.label.batch |
|
|
|
|
|
this.$refs.okToHoldRecordPackRef.uom = result.balance?result.balance.uom:"" |
|
|
this.getResult = result //存储接受的结果 |
|
|
this.getResult = result //存储接受的结果 |
|
|
this.$refs.scanPopup.closeScanPopup() |
|
|
this.$refs.scanPopup.closeScanPopup() |
|
|
} else { |
|
|
} else { |
|
@ -322,32 +323,17 @@ |
|
|
this.$refs.comMessage.showErrorMessage('请输入数量'); |
|
|
this.$refs.comMessage.showErrorMessage('请输入数量'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.checkItemCode(obj.itemCode, callBack => { |
|
|
this.getResult = this.getResult ? this.getResult : { |
|
|
|
|
|
label: {}, |
|
|
if (callBack) { |
|
|
fromLocationCode: '' |
|
|
if (checkDirectoryItemExist(this.itemCodeTypeList, callBack)) { |
|
|
} |
|
|
this.getResult = this.getResult ? this.getResult : { |
|
|
this.getResult.fromLocationCode = obj.fromLocationCode |
|
|
label: {}, |
|
|
this.getResult.label.itemCode = obj.itemCode |
|
|
fromLocationCode: '' |
|
|
this.getResult.label.batch = obj.batch |
|
|
} |
|
|
this.getResult.label.qty = obj.handleQty |
|
|
this.getResult.fromLocationCode = obj.fromLocationCode |
|
|
this.isJustReplay = false |
|
|
this.getResult.label.itemCode = obj.itemCode |
|
|
this.$refs.scanPopup.getScanResult(this.getResult, this.businessType) |
|
|
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 + '】'); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
//checkItemCode |
|
|
//checkItemCode |
|
@ -552,7 +538,6 @@ |
|
|
result.fromLocationCode = this.fromLocationCode |
|
|
result.fromLocationCode = this.fromLocationCode |
|
|
result.label.itemCode = result.label.code |
|
|
result.label.itemCode = result.label.code |
|
|
this.checkItemCode(result.label.itemCode, callBack => { |
|
|
this.checkItemCode(result.label.itemCode, callBack => { |
|
|
|
|
|
|
|
|
if (callBack) { |
|
|
if (callBack) { |
|
|
if (checkDirectoryItemExist(this.itemCodeTypeList, callBack)) { |
|
|
if (checkDirectoryItemExist(this.itemCodeTypeList, callBack)) { |
|
|
this.$refs.scanPopup.getScanResult(result) |
|
|
this.$refs.scanPopup.getScanResult(result) |
|
@ -570,7 +555,7 @@ |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.$refs.scanPopup.getScanResult(result) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 清除来源库位 |
|
|
// 清除来源库位 |
|
|