<!--pages/agent/serviceBillList/index.wxml-->
<t-tabs defaultValue="待指派" bind:change="onTabsChange" t-class="custom-tabs">
  <t-tab-panel label="待指派" value="待指派" />
  <t-tab-panel label="待处理" value="待处理" />
  <t-tab-panel label="进行中" value="进行中" />
  <t-tab-panel label="已完成" value="已完成" />
</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">
  <t-card url="{{'/Eservice/workerLeader/serviceBillDetail/index?id=' + item.sa_serviceorderid}}" wx:for="{{list}}" wx:key="sa_serviceorderid">
    <view style="flex:1"  slot="content">
      <view class="flex-align-center flex-between card__header">
        <view>
          <t-tag class="mr-5" variant="light" shape="round" theme="primary" size="small">{{item.servicetype}}</t-tag>
          <t-tag class="mr-5" variant="light" shape="round" theme="primary" size="small">{{item.class1}}</t-tag>
          <t-tag class="mr-5" variant="light" shape="round" theme="primary" size="small">{{item.class2}}</t-tag>
        </view>
        <text>{{item.status}}</text>
      </view>
      <view class="card__body">
        <view>服务地址:{{item.province}}{{item.city}}{{item.county}}{{item.address}}</view>
        <view style="margin-top:3px">
          <!-- <view class="colorInfo small">关联订单:{{item.sonum}}</view> -->
          <view class="colorInfo small">申请单号:{{item.billno}}</view>
          <view class="colorInfo small">
            <text class="mr-5">现场联系人:{{item.scenecontact}}</text><text class="mr-5">{{item.scenecontactrole}}</text><text class="mr-5">{{item.scenecontactphonenumber}}</text>
          </view>
        </view>
      </view>
    </view>
  </t-card>
  <t-fab icon="add" style="position:fixed;right:16px;bottom:72px" bind:click="handleClick" aria-label="增加"></t-fab>
</view>
</t-pull-down-refresh>