<!--pages/repairDispatch/info.wxml-->
<view class="container">
  <view class="part">
    <van-field label="车牌号" input-align="right" model:value="{{info.licenseNumber}}" readonly></van-field>
    <van-field label="预约状态" input-align="right" readonly>
      <text slot="button" class="status status{{info.status}}">{{ info.statusName }}</text>
    </van-field>
    <van-field label="司机姓名" input-align="right" model:value="{{info.driverName}}" readonly></van-field>
    <van-field label="司机电话" input-align="right" model:value="{{info.driverMobile}}" readonly></van-field>
    <van-field label="预约分类" input-align="right" readonly wx:if="{{ info.appointmentType == '2' }}">
      <text slot="button" class="status status{{info.appointmentClassify}}">{{ filters.codeAnalysis(appointmentClassifyArray,info.appointmentClassify, 'value', 'label') }}</text>
    </van-field>
    <block wx:if="{{ info.appointmentType == '1' }}">
      <van-field label="订单编号" input-align="right" model:value="{{info.orderNumber}}" readonly></van-field>
      <van-field label="订单名称" input-align="right" model:value="{{info.orderName}}" readonly></van-field>
      <van-field label="客户名称" input-align="right" model:value="{{info.customerName}}" readonly type="textarea" autosize></van-field>
      <van-field label="货品名称" input-align="right" model:value="{{info.goodsName}}" readonly></van-field>
      <van-field label="货品编码" input-align="right" model:value="{{info.goodsCode}}" readonly></van-field>
      <van-field label="提货开始时间" input-align="right" model:value="{{info.beginTime}}" readonly></van-field>
      <van-field label="提货结束时间" input-align="right" model:value="{{info.endTime}}" readonly></van-field>
    </block>

    <van-field label="审核备注" input-align="right" model:value="{{info.appointmentReason}}" readonly></van-field>

    <block wx:if="{{ info.appointmentType == '1' }}">
      <van-field center clearable label="司机确认" use-button-slot class="radioHeight fieldAutoHeight">
        <view slot="input" class="radioHeightBx" wx:if="{{ info.driverSign }}">
          <van-image slot="input" width="100px" height="100px" src="{{ info.driverSign }}" />
        </view>
      </van-field>
      <van-field label="卸货重量" input-align="right" model:value="{{info.unloadWeight}}" readonly>
        <view slot="right-icon">
          <text>吨</text>
        </view>
      </van-field>

      <view class="part">
        <van-field label="司机回签" readonly border="{{false}}"></van-field>
        <van-cell-group wx:if="{{ fileList.length>0 }}">
          <van-field name="" model:value="" label="" class="checkbox">
            <view slot="input" class="checkboxView">
              <van-uploader name="" deletable="{{false}}" file-list="{{ fileList }}" max-count="{{fileList.length}}" preview-size="80" />
            </view>
          </van-field>
        </van-cell-group>
      </view>
    </block>

  </view>
  <view style="height: 50px;"></view>
</view>

<wxs module="filters" src="../../utils/filter.wxs"></wxs>