From 543ba9bd299a6f42f55156040c5b4e5d08ba1a89 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Sun, 24 Apr 2022 14:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E7=A0=81=E6=8B=A6=E6=88=AA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/config.json | 2 +- src/views/warehouse/addHosOrder.vue | 4 +--- src/views/warehouse/addOrder.vue | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/public/config.json b/public/config.json index b0ef407..aca6ed7 100644 --- a/public/config.json +++ b/public/config.json @@ -1,4 +1,4 @@ { - "BASE_URL": "http://192.168.0.109:9996", + "BASE_URL": "http://139.159.187.130/SPMS_SERVER", "SERVER_IP": "http://192.168.0.109:9996" } diff --git a/src/views/warehouse/addHosOrder.vue b/src/views/warehouse/addHosOrder.vue index 3d9555e..a3633f7 100644 --- a/src/views/warehouse/addHosOrder.vue +++ b/src/views/warehouse/addHosOrder.vue @@ -489,9 +489,6 @@ export default { this.formData.corpOrderId = this.formData.corpOrderId.trim(); this.actionEnable = true; if (event == null) { - var inputer = document.getElementById("inputer"); - this.formData.code = inputer.innerText.replace("\r", ""); - inputer.focus(); } else event.target.select(); this.$refs.inputRef.select(); if (this.$isBlank(this.formData.action)) { @@ -511,6 +508,7 @@ export default { this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10); } this.formData.code = this.formData.code.trim(); + console.log(this.formData.code); if (this.$isBlank(this.formData.code)) return; this.loading = true; diff --git a/src/views/warehouse/addOrder.vue b/src/views/warehouse/addOrder.vue index 36ea96c..b2c1f7d 100644 --- a/src/views/warehouse/addOrder.vue +++ b/src/views/warehouse/addOrder.vue @@ -417,10 +417,8 @@ export default { }, addCode(event) { if (event == null) { - var inputer = document.getElementById("inputer"); - this.formData.code = inputer.innerText.replace("\r", ""); - inputer.focus(); } else event.target.select(); + this.$refs.inputRef.select(); if (this.$isBlank(this.formData.billType)) { this.$message.warning("请选择单据类型!"); return; @@ -442,6 +440,7 @@ export default { tQuery.orderId = this.idQuery.id; tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); tQuery.action = tQuery.billType + console.log("tQuery = " + tQuery) this.addCodeSubmit(tQuery); },