From 5876b86fdbb462de05e5352d568be11c042965f8 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Wed, 9 Apr 2025 11:26:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=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 | 35 +++++++++++++------------- src/views/collect/DealOrder.vue | 10 +++++--- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/views/collect/CollectOrderTabs.vue b/src/views/collect/CollectOrderTabs.vue index b14c01ce..bfc220e1 100644 --- a/src/views/collect/CollectOrderTabs.vue +++ b/src/views/collect/CollectOrderTabs.vue @@ -821,10 +821,19 @@ export default { this.formData.busName = info.busName this.autoTag = info.autoTag this.editableTabs = [] - if (this.productType == 2) { - this.clickMenuItem(10) - } else { - this.clickMenuItem(1000) + + if (this.inAndOutType == 1) { + if (this.productType == 2) { + this.clickMenuItem(10) + } else { + this.clickMenuItem(1000) + } + }else { + if (this.productType == 2) { + this.clickMenuItem(0) + } else { + this.clickMenuItem(10000) + } } this.showChild = false @@ -847,20 +856,12 @@ export default { this.formData.workplaceName = info.workplaceName this.editableTabs = [] - - if (this.workPlaceClass == 2 ){ - if (this.productType == 2) { - this.clickMenuItem(1) - } else { - this.clickMenuItem(100) - } - }else{ - if (this.productType == 2) { - this.clickMenuItem(0) - } else { - this.clickMenuItem(10000) - } + if (this.productType == 2) { + this.clickMenuItem(1) + } else { + this.clickMenuItem(100) } + this.showChild = false this.$nextTick(() => { this.showChild = true diff --git a/src/views/collect/DealOrder.vue b/src/views/collect/DealOrder.vue index 97085a95..963560ab 100644 --- a/src/views/collect/DealOrder.vue +++ b/src/views/collect/DealOrder.vue @@ -1732,12 +1732,14 @@ export default { document.removeEventListener('keydown', this.handleKeydown) window.removeEventListener('djcl', this.handleRecCodesEvent) document.removeEventListener('visibilitychange', this.handleVisibilityChange) - - this.ws.close() - this.ws.onclose = function (evt) { - console.log('处理单据 Connection closed.') + if (this.ws != null){ + this.ws.close() + this.ws.onclose = function (evt) { + console.log('处理单据 Connection closed.') + } } + }, created() { getHead('prescribeTagCodeDeal', '1').then((re) => {