|
|
@ -189,6 +189,9 @@ export default {
|
|
|
|
originCode: this.originCode,
|
|
|
|
originCode: this.originCode,
|
|
|
|
code: this.udiCode.trim(),
|
|
|
|
code: this.udiCode.trim(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (tQuery.code.includes(tQuery.originCode.substr(0,tQuery.originCode.length-1))) {
|
|
|
|
|
|
|
|
tQuery.originCode = "";
|
|
|
|
|
|
|
|
}
|
|
|
|
enterCodeWeb(tQuery).then((response) => {
|
|
|
|
enterCodeWeb(tQuery).then((response) => {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
@ -203,8 +206,6 @@ export default {
|
|
|
|
this.originCode = this.udiCode;
|
|
|
|
this.originCode = this.udiCode;
|
|
|
|
} else if (response.code == 501) {
|
|
|
|
} else if (response.code == 501) {
|
|
|
|
this.checkSuccess = false;
|
|
|
|
this.checkSuccess = false;
|
|
|
|
// this.$refs.inputRef.focus();
|
|
|
|
|
|
|
|
// this.$refs.inputRef.select();
|
|
|
|
|
|
|
|
this.originCode = "";
|
|
|
|
this.originCode = "";
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
} else if (response.code == 503) {
|
|
|
|
} else if (response.code == 503) {
|
|
|
|