Przeglądaj źródła

fix(KIP-10843): 【DE】【C端】【临时停车】。未开票页面,未开票的记录显示异常

john 2 lat temu
rodzic
commit
bab5110c75

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

@@ -22,7 +22,7 @@ export default {
       baseUrl: this.$baseURL,
       arrowIcon: arrowIcon,
       noData: noData,
-      tabIndex: 1,
+      tabIndex: 0,
       invoiceList: ['未开票', '已开票'],
       list: [],
       isCheckTickets: [],
@@ -145,6 +145,7 @@ export default {
       console.log('eeeeeeee:::', e, index)
     },
     invoice(e) {
+      if(this.tabIndex === e) return;
       uni.setStorageSync('invoiceindex', e);
       this.tabIndex = e;
       this.current = -1;