<!--pages/userlist/index.wxml-->
<t-tabs value="{{tabsindex}}" sticky="true" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" split="{{false}}">
    <t-tab-panel label="待结算" value="0" />
  <t-tab-panel label="结算完成" value="1" />
  <t-tab-panel label="结算失败" value="2" />
</t-tabs>
<view class="setup">
  <view class="driver-info" wx:for="{{userdata}}" wx:key="customerId" data-id="{{item.workorderId}}" bind:tap="details">
      <view class="driver-details">
        <view class="driver-name">目的地: {{item.poiName}}</view>
        <view class="driver-arrive" style="margin-top:20rpx;">工单类型：
          <text wx:if="{{item.chargedischargeType==1}}">充电</text>
        <text wx:if="{{item.chargedischargeType==2}}">放电</text>
        </view>
        <view class="driver-arrive">电量：{{item.workorderActual}}</view>
        <view class="driver-arrive">工单状态：
        <text wx:if="{{item.workorderType==5&&item.settlementType==0}}">工作完成</text>
        <text  wx:if="{{item.workorderType==5&&item.settlementType==1}}">工单完成</text>
        <text  wx:if="{{item.workorderType==5&&item.settlementType==2}}">工单完成</text>
        </view>
        <view class="driver-car">完成时间： {{item.endworktime}}</view>
      </view>
      <view wx:if="{{item.settlementType==0}}" class="cancel-btn">待结算</view>
      <view wx:if="{{item.settlementType==1}}" class="cancel-btn">结算完成</view>
      <view wx:if="{{item.settlementType==2}}" class="cancel-btn">结算失败</view>
    </view>
     <view class="available" wx:if="{{userdata.length<1}}">
<image src="https://esos-iot.com/myminio/project/9efa1691f71a48b6ae20648c0a2dae56.png" mode="aspectFit"/>
</view> 
</view>
<!--
  
 -->
