From 04c48c532cbe3c7ec3610235892be4cbece5ec5d Mon Sep 17 00:00:00 2001 From: anthonywj Date: Mon, 3 Apr 2023 20:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E6=94=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/DialogReviewOrder.vue | 12 +++++++----- src/views/inout/DialogThrReviewOrder.vue | 14 ++++++++------ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/views/inout/DialogReviewOrder.vue b/src/views/inout/DialogReviewOrder.vue index 4f9ce3e..226cc67 100644 --- a/src/views/inout/DialogReviewOrder.vue +++ b/src/views/inout/DialogReviewOrder.vue @@ -202,8 +202,8 @@ export default { this.originCode = this.udiCode; } else if (response.code == 501) { this.checkSuccess = false; - this.$refs.inputRef.focus(); - this.$refs.inputRef.select(); + // this.$refs.inputRef.focus(); + // this.$refs.inputRef.select(); this.originCode = ""; this.$message.error(response.message); } else if (response.code == 503) { @@ -414,16 +414,18 @@ export default { window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点 sc.onInput = function (text) { if (text.includes("delete")) { - that.vailQuery.code = ""; + that.udiCode = ""; + that.sictomText = ""; + that.originCode = ""; return; } if (that.sitcomScan) { let tempTxt = text; let str = tempTxt.replace(/[\r]/g, ""); that.sictomText = that.sictomText + str; - that.vailQuery.code = that.sictomText; + that.udiCode = that.sictomText; } else { - that.vailQuery.code = text; + that.udiCode = text; } }; inputer.focus(); diff --git a/src/views/inout/DialogThrReviewOrder.vue b/src/views/inout/DialogThrReviewOrder.vue index 5cb5815..e6fca42 100644 --- a/src/views/inout/DialogThrReviewOrder.vue +++ b/src/views/inout/DialogThrReviewOrder.vue @@ -202,8 +202,8 @@ export default { this.originCode = this.udiCode; } else if (response.code == 501) { this.checkSuccess = false; - this.$refs.inputRef.focus(); - this.$refs.inputRef.select(); + // this.$refs.inputRef.focus(); + // this.$refs.inputRef.select(); this.originCode = ""; this.$message.error(response.message); } else if (response.code == 503) { @@ -225,6 +225,7 @@ export default { this.udiCode = "01" + response.data.nameCode; this.originCode = this.udiCode; } else { + this.originCode = ""; this.$alert(response.message, '提示', { confirmButtonText: '确定', type: 'warning', @@ -397,21 +398,22 @@ export default { window.sc = new A.KeyScaner(inputer);//传入要监听的DOM节点 sc.onInput = function (text) { if (text.includes("delete")) { - that.vailQuery.code = ""; + that.udiCode = ""; + that.sictomText = ""; + that.originCode = ""; return; } if (that.sitcomScan) { let tempTxt = text; let str = tempTxt.replace(/[\r]/g, ""); that.sictomText = that.sictomText + str; - that.vailQuery.code = that.sictomText; + that.udiCode = that.sictomText; } else { - that.vailQuery.code = text; + that.udiCode = text; } }; inputer.focus(); - }, created() {