<wxs src="../../../utils/format.wxs" module="format" />
<view>
  <van-tabs active="{{ activeTab }}" color="#1677FF"  id="tabs" bind:change="onTabChange">
    <van-tab title="处理中" name="1"></van-tab>
    <van-tab title="已完结" name="2"></van-tab>

  </van-tabs>
  <view class="ticket-list">
      <view class="ticket-item" wx:for="{{ticketList}}" wx:key="index">
         <view class="ticket-top">
          <view class="top-left">
          <image src="/static/images/upgrade/icon-wtgd.png" mode="aspectFit"></image>
          <view>问题工单</view>
          </view>
          <view class="top-right" wx:if="{{!format.indexOf(item.relationBookTradeNo,'JZ')}}">
            <image src="/static/images/upgrade/icon-hm.png" mode="aspectFit"></image>
            <view>盒马</view>
          </view>
         </view>
         <view class="ticket-content">
           <view>工单类型：{{item.ticketTypeStr}}</view>
           <view>工单状态：{{item.ticketStatusStr}}</view>
           <view>工单时间：{{item.createTime}}</view>
           <view>关联单据：{{item.relationBookTradeNo}}</view>
           <view>最新进度:</view>
         </view>
         <!-- 进度 -->
         <view class="prorgress">
            <view class="progress-dot"></view>
            <view>{{item.content}}</view>
         </view>
         <view class="progress-tip">
          {{item.processTime}}
         </view>
         <view class="ticket-bottom">
           <image src="/static/images/upgrade/icon-detail.png" mode="aspectFit"></image>
           <view bindtap="goDetail" data-id="{{item.relationBookTradeNo}}">查看详情</view>
         </view>
      </view>
      <view class="no-order">暂无数据</view>
  </view>
 

</view>