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) => {