| | |
| | | <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"> |
| | |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.listApi = '' |
| | | this.listApi = '/api/supplier/delivery/list/today' |
| | | this.getList() |
| | | |
| | | }, |
| | |
| | | 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() |
| | | } |
| | | }, |