Sfoglia il codice sorgente

修复开票页面的跳转逻辑

john 2 anni fa
parent
commit
d9cfd1015f

+ 0 - 42
src/pages/parkingFee/mixins/parkingReceipt/parkingApplication.js

@@ -211,14 +211,6 @@ export default {
       if (this.type) return;
       this.parkingOrder = this.pageOptions.invoiceDetailList;
     },
-    submitTest() {
-      this.$router.replace({
-        path: 'parkingReceipt',
-      });
-      setTimeout(() => {
-        this.$router.go(-1)
-      }, 300)
-    },
     submit: async function () {
       const self = this;
       if (!self.condition.email) {
@@ -270,40 +262,6 @@ export default {
     },
     storeRemarkChange() {
       this.$store.commit('invoice/set_remark', this.condition.remark);
-    },
-    submitTest2(type) {
-      if(type === 'H5') {
-        this.$router.replace({
-          path: 'parkingReceipt',
-        });
-        this.$router.go(-1)
-        return
-      }
-      if(type === '小程序1') {
-        this.$router.replace({
-          path: 'parkingReceipt',
-        });
-        setTimeout(() => {
-          this.$router.go(-1)
-        },200)
-        return
-      }
-      if(type === '小程序2') {
-        this.$router.replace({
-          path: 'parkingReceipt',
-        });
-        this.$router.back()
-        return
-      }
-      if(type === '小程序3') {
-        this.$router.replace({
-          path: 'parkingReceipt',
-        });
-        setTimeout(() => {
-          this.$router.back()
-        },200)
-        return
-      }
     }
   },
 };

+ 3 - 8
src/pages/parkingFee/mixins/parkingReceipt/parkingChooseHeader.js

@@ -114,16 +114,8 @@ export default {
     },
     // 选择抬头
     chooseHeader(item, index) {
-      console.log(178, item, index);
       this.current = index;
       if (!this.ids || !this.ids.length) return false;
-      // const pages = getCurrentPages();
-      // const prePage = pages[pages.length - 2];
-      // const options = {
-      //   header: this.list[index] || {},
-      // };
-      // prePage.$vm.pageOptions = options;
-      // this.$router.back();
       this.$router.replace({
         path:
           'parkingApplication',
@@ -135,6 +127,9 @@ export default {
           invoiceId: this.$route.query?.invoiceId
         }
       });
+      setTimeout(() => {
+        this.$router.go(-1)
+      }, 300)
     },
     // 查询全部抬头列表信息
     getInvoiceTitle: async function() {

+ 0 - 2
src/pages/parkingFee/parkingReceipt/parkingApplication.vue

@@ -119,8 +119,6 @@
       </div>
     </div>
     <div class="footer">
-      <k-button title="临时按钮" style="margin: 0 auto" disabledColor="#D1D2D9" @click="submitTest" />
-      <br/>
       <k-button v-if="headerInfo.titleName" title="提交" style="margin: 0 auto" disabledColor="#D1D2D9" @click="submit" />
       <k-button v-else disabled title="请选择发票抬头" style="margin: 0 auto" disabledColor="#D1D2D9" />
     </div>