<!--pages/ucenter/myworksheet/myworksheet.wxml-->
<view class="container">
  <view class="addNew" bindtap="addNew">新增工单</view>
  <scroll-view class='context' scroll-y='true'>
    <view bindtap="goInfo" class="map_text" hover-class='active' data-keywords="{{item}}" wx:key='{{key}}' wx:for="{{worksheets}}">
      <view class='worksheet_text_title'>
        <view class='worksheet'>
          <image src='/images/myworksheet.png'></image>
        </view>
        <view class='worksheet_text_title1'>
          <view class='bold inline'>{{item.brandName == null?'':item.brandName }}{{item.chargStationName==null?'无关联场站':item.chargStationName}}</view>
          <view class="h1 inline">{{item.mainLocation==null?'':item.mainLocation}}</view>
        </view>
      </view>
      <text wx:if="{{item.workStatus==null}}">工作状态：未知</text>
      <text wx:if="{{item.workStatus==1}}">工作状态：新建</text>
      <text wx:if="{{item.workStatus==2}}">工作状态：指派人员</text>
      <text wx:if="{{item.workStatus==3}}">工作状态：指派确认</text>
      <text wx:if="{{item.workStatus==4}}">工作状态：施工前安全准备</text>
      <text wx:if="{{item.workStatus==5}}">工作状态：进行中</text>
      <text wx:if="{{item.workStatus==6}}">工作状态：完成工作内容</text>
      <text wx:if="{{item.workStatus==7}}">工作状态：完成工单</text>
      <text wx:if="{{item.workBigclass==null}}">工单大类：未知</text>
      <text wx:if="{{item.workBigclass==1}}">工单大类：售后服务</text>
      <text wx:if="{{item.workBigclass==2}}">工单大类：工程实施</text>
      <text wx:if="{{item.exceptTime!==null}}">预计完成时间：{{item.exceptTime}}</text>
      <text wx:if="{{item.exceptTime==null}}">预计完成时间：未知</text>
      <text wx:if="{{item.workCreatetime!==null}}">工单创建时间：{{item.workCreatetime}}</text>
      <text wx:if="{{item.workCreatetime==null}}">工单创建时间：未知</text>
      <view id="{{item.id}}" class='detail' bindtap="getRoute">详情
        <image src='/images/detail.png'></image>
      </view>
    </view>
  </scroll-view>
</view>