xuxueyang
2024-07-29 11f7661538f75c2d4eefd32408eba6dc0d77052b
sub_pages/supplier/order-settlement/order-settlement.vue
@@ -1,10 +1,10 @@
<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>
      <view class="p15" style="min-height: calc(100vh - 160rpx);">
         <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
         <view v-for="(item,index) in list" :key="index" class="m-b-24 order-settlement-list list-container">
@@ -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()
            }
         },