瀏覽代碼

fix(SCRM-3478): 【DE】【C端】临时停车(CRM和微服务)。从开票完成的订单详情返回停车发票页面时,应在已开票下面。

john 2 年之前
父節點
當前提交
bcbab936f0

+ 1 - 0
src/pages/parkingFee/mixins/parkingFee.js

@@ -460,6 +460,7 @@ export default {
     },
     //停车发票
     doRouter1: function () {
+      uni.removeStorageSync('invoiceindex');
       this.$store.dispatch('clearUnlicensed');
       window?.toWXSendMsg({
         type: 'uni_func',

+ 3 - 1
src/pages/parkingFee/mixins/parkingReceipt/parkingReceipt.js

@@ -85,9 +85,10 @@ export default {
         title: '停车发票',
       });
     }, 300);
+    const invoiceindex = uni.getStorageSync('invoiceindex') || 1
     this.$store.dispatch('clearUnlicensed');
     if (JSON.stringify(this.member) !== '{}') {
-      this.invoice(1);
+      this.invoice(invoiceindex);
     } else {
       wxToLoginCallback('parkingReceipt', () => {
         this.$router.back();
@@ -118,6 +119,7 @@ export default {
       console.log('eeeeeeee:::', e, index)
     },
     invoice(e) {
+      uni.setStorageSync('invoiceindex', e);
       this.tabIndex = e;
       this.current = -1;
       this.ids = [];