xuxueyang
2024-07-29 11f7661538f75c2d4eefd32408eba6dc0d77052b
sub_pages/supplier/order-settlement/order-settlement.vue
@@ -1,7 +1,7 @@
<template>
   <view class="list-container order-settlement supplier">
      <view class="component-tab-container m-t-12">
         <view class="tab-item" :class="[tabIndex==0?'cur':'']" @click="changeIndex(0)">本月</view>
         <view class="tab-item" :class="[tabIndex==0?'cur':'']" @click="changeIndex(0)">今日</view>
         <view class="tab-item" :class="[tabIndex==1?'cur':'']" @click="changeIndex(1)">全部</view>
      </view>
      
@@ -75,7 +75,7 @@
         }
      },
      onLoad() {
         this.listApi = ''
         this.listApi = '/api/supplier/delivery/list/today'
         this.getList()
      },
@@ -93,6 +93,12 @@
            if (this.tabIndex !== index) {
               this.tabIndex = index
               // 刷新 query
               if (index == 0) {
                  this.listApi = '/api/supplier/delivery/list/today'
               }
               if (index == 1) {
                  this.listApi = '/api/supplier/delivery/list'
               }
               this.refreshList()
            }
         },