From 1b8dfa233669633adafe284a976f55079da2f106 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Fri, 27 Sep 2024 09:45:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/collect/CollectOrderTabs.vue | 6 +++--- src/views/collect/IoCreateOrder.vue | 23 ++++++++++++++++++++++- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/views/collect/CollectOrderTabs.vue b/src/views/collect/CollectOrderTabs.vue index 611c9225..cc0b659b 100644 --- a/src/views/collect/CollectOrderTabs.vue +++ b/src/views/collect/CollectOrderTabs.vue @@ -290,7 +290,7 @@ export default { component: IoCreateOrderOut, // 假设你需要传递的参数 componentProps: { - fromSplitType: 'out', + fromSplitType: "out" } }, { @@ -300,7 +300,7 @@ export default { component: IoCreateOrderReturn, // 假设你需要传递的参数 componentProps: { - fromSplitType: 'return' + fromSplitType: "return" } }, { @@ -530,7 +530,7 @@ export default { component: IoCreateOrderOut, // 假设你需要传递的参数 componentProps: { - // title: '这是单据的标题' + fromSplitType: "out" } } ]; diff --git a/src/views/collect/IoCreateOrder.vue b/src/views/collect/IoCreateOrder.vue index 70afaa8b..95ff81c7 100644 --- a/src/views/collect/IoCreateOrder.vue +++ b/src/views/collect/IoCreateOrder.vue @@ -1164,7 +1164,28 @@ export default { parseTime(date, "{y}{m}{d}{h}{i}{s}") + Math.ceil(Math.random() * 89 + 10); } - this.loading = true; + // this.loading = true; + + this.warnResult = ""; + this.errResult = ""; + this.result = ""; + this.warnVisible = false; + this.errVisible = false; + + this.checkSuccess = true; + if (this.getDMHotskeyValue(this.scanCode)) + return + this.codeFormData.code = this.scanCode.trim(); + if (this.codeFormData.code.includes(";")) { + const codeArray = this.codeFormData.code.split(";"); + let params = { + codeList: codeArray, + }; + this.batchVailCode(params) + return; + } + + let tQuery = Object.assign( JSON.parse(JSON.stringify(this.orderFormData)) );