<t-tabs defaultValue="待接单" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  <t-tab-panel label="待接单{{statistics.toacceptCount}}" value="待接单" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  <t-tab-panel label="待开始{{statistics.tostartCount}}" value="待开始" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  <t-tab-panel label="进行中{{statistics.startingCount}}" value="进行中" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  <t-tab-panel label="暂停{{statistics.tostopCount}}" value="暂停" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
  <t-tab-panel label="已完成{{statistics.completeCount}}" value="已完成" badge-props="{{ { count: 0, offset: ['-16rpx', '8rpx'] } }}" />
</t-tabs>
<t-pull-down-refresh style="padding-bottom:60px" value="{{baseRefresh.value}}" loadingProps="{{loadingProps}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
  <view style="padding:10px">
    <view>
      <card class="card" wx:for="{{list}}" data-item="{{item}}" bindtap="toDetail" wx:key="index">
        <view style="width: 40px;" slot="left">
          <view class="type">{{item.type}}</view>
        </view>
        <view style="flex:1" slot="content">
          <view>
            {{item.province}}{{item.city}}{{item.county}}{{item.address}}
          </view>
          <view class="colorInfo small">
            指派日期:{{item.createdate}}
          </view>
          <view wx:if="{{item.status === '待接单'}}" class="colorInfo small">
            {{item.status}}
          </view>
          <view wx:if="{{item.status !== '待接单' && item.status !== '已完成'}}" class="colorInfo small">
            {{item.status=='待开始'?'待开始':'当前工序：'+(item.curcontent||item.templatename)}}
          </view>
          <view wx:if="{{item.status == '已完成'}}" class="colorInfo small">
            已完成
          </view>
        </view>
        <view class="flex-align-center" slot="right">
          <t-tag class="margin-16 leader" wx:for="{{item.isleader}}" size="small" variant="light-outline" theme="primary">我负责</t-tag>
          <view class="colorInfo small">
            {{item.status}}
          </view>
        </view>
      </card>
      <t-empty wx:if="{{list.length === 0}}" icon="root-list" t-class="empty-cls" t-class-image="t-empty__image" description="暂无工单" />
    </view>
  </view>
</t-pull-down-refresh>