验收功能

ywj_dev
anthonywj 2 years ago
parent ddc3d4a056
commit 04c48c532c

@ -202,8 +202,8 @@ 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.focus();
this.$refs.inputRef.select(); // 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) {
@ -414,16 +414,18 @@ export default {
window.sc = new A.KeyScaner(inputer);//DOM window.sc = new A.KeyScaner(inputer);//DOM
sc.onInput = function (text) { sc.onInput = function (text) {
if (text.includes("delete")) { if (text.includes("delete")) {
that.vailQuery.code = ""; that.udiCode = "";
that.sictomText = "";
that.originCode = "";
return; return;
} }
if (that.sitcomScan) { if (that.sitcomScan) {
let tempTxt = text; let tempTxt = text;
let str = tempTxt.replace(/[\r]/g, ""); let str = tempTxt.replace(/[\r]/g, "");
that.sictomText = that.sictomText + str; that.sictomText = that.sictomText + str;
that.vailQuery.code = that.sictomText; that.udiCode = that.sictomText;
} else { } else {
that.vailQuery.code = text; that.udiCode = text;
} }
}; };
inputer.focus(); inputer.focus();

@ -202,8 +202,8 @@ 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.focus();
this.$refs.inputRef.select(); // 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) {
@ -225,6 +225,7 @@ export default {
this.udiCode = "01" + response.data.nameCode; this.udiCode = "01" + response.data.nameCode;
this.originCode = this.udiCode; this.originCode = this.udiCode;
} else { } else {
this.originCode = "";
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
type: 'warning', type: 'warning',
@ -397,21 +398,22 @@ export default {
window.sc = new A.KeyScaner(inputer);//DOM window.sc = new A.KeyScaner(inputer);//DOM
sc.onInput = function (text) { sc.onInput = function (text) {
if (text.includes("delete")) { if (text.includes("delete")) {
that.vailQuery.code = ""; that.udiCode = "";
that.sictomText = "";
that.originCode = "";
return; return;
} }
if (that.sitcomScan) { if (that.sitcomScan) {
let tempTxt = text; let tempTxt = text;
let str = tempTxt.replace(/[\r]/g, ""); let str = tempTxt.replace(/[\r]/g, "");
that.sictomText = that.sictomText + str; that.sictomText = that.sictomText + str;
that.vailQuery.code = that.sictomText; that.udiCode = that.sictomText;
} else { } else {
that.vailQuery.code = text; that.udiCode = text;
} }
}; };
inputer.focus(); inputer.focus();
}, },
created() { created() {

Loading…
Cancel
Save