From 0a68428d57389add83bc53d2b3e0349b388695ab Mon Sep 17 00:00:00 2001 From: linfso Date: Thu, 26 Dec 2024 08:17:53 +0800 Subject: [PATCH] md --- src/views/emis/emisWaybill/waybillGot.vue | 11 ++++++++++- src/views/emis/emisWaybill/waybillModify.vue | 11 ++++++++++- src/views/emis/emisWaybill/waybillRecord.vue | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/views/emis/emisWaybill/waybillGot.vue b/src/views/emis/emisWaybill/waybillGot.vue index 706db925..7abdee1a 100644 --- a/src/views/emis/emisWaybill/waybillGot.vue +++ b/src/views/emis/emisWaybill/waybillGot.vue @@ -1277,7 +1277,12 @@ methods: { // }); this.billCode=null; this.form.billCode=null; - this.initData(); + // 如果接单则关闭当前标签页 + if(this.action=='got'){ + this.jumpToOrderList(); + }else{ + this.initData(); + } } }, @@ -1557,6 +1562,10 @@ methods: { beforeDestroy() { clearInterval(this.timer); }, + jumpToOrderList(){ + this.$store.dispatch("tagsView/delView", this.$route); + this.$router.replace({ path: '/d24/orderManagement/UserOrderList'}); + }, // 取消按钮 cancel() { this.reset(); diff --git a/src/views/emis/emisWaybill/waybillModify.vue b/src/views/emis/emisWaybill/waybillModify.vue index 576ec04e..b3adc827 100644 --- a/src/views/emis/emisWaybill/waybillModify.vue +++ b/src/views/emis/emisWaybill/waybillModify.vue @@ -1277,7 +1277,12 @@ methods: { // }); this.billCode=null; this.form.billCode=null; - this.initData(); + // 如果接单则关闭当前标签页 + if(this.action=='got'){ + this.jumpToOrderList(); + }else{ + this.initData(); + } } }, @@ -1557,6 +1562,10 @@ methods: { beforeDestroy() { clearInterval(this.timer); }, + jumpToOrderList(){ + this.$store.dispatch("tagsView/delView", this.$route); + this.$router.replace({ path: '/d24/orderManagement/UserOrderList'}); + }, // 取消按钮 cancel() { this.reset(); diff --git a/src/views/emis/emisWaybill/waybillRecord.vue b/src/views/emis/emisWaybill/waybillRecord.vue index 6ecf54be..680b51f0 100644 --- a/src/views/emis/emisWaybill/waybillRecord.vue +++ b/src/views/emis/emisWaybill/waybillRecord.vue @@ -1277,7 +1277,12 @@ methods: { // }); this.billCode=null; this.form.billCode=null; - this.initData(); + // 如果接单则关闭当前标签页 + if(this.action=='got'){ + this.jumpToOrderList(); + }else{ + this.initData(); + } } }, @@ -1557,6 +1562,10 @@ methods: { beforeDestroy() { clearInterval(this.timer); }, + jumpToOrderList(){ + this.$store.dispatch("tagsView/delView", this.$route); + this.$router.replace({ path: '/d24/orderManagement/UserOrderList'}); + }, // 取消按钮 cancel() { this.reset();