|
|
@ -95,6 +95,10 @@ export default { |
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
|
this.resultData = result |
|
|
|
if (!result.package) { |
|
|
|
this.showErrorMessage(`${result.label.code}包装信息为空`) |
|
|
|
return |
|
|
|
} |
|
|
|
this.getItemCodeType(result.package.itemCode, (callBack) => { |
|
|
|
this.queryBalance(this.resultData) |
|
|
|
}) |
|
|
@ -167,6 +171,9 @@ export default { |
|
|
|
showErrorMessage(message) { |
|
|
|
this.$refs.comMessage.showErrorMessage(message, (res) => { |
|
|
|
if (res) { |
|
|
|
if (this.$refs.comscan) { |
|
|
|
this.$refs.comscan.getfocus() |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|