<!--pages/index/info.wxml-->
<view class="container">
  <view class="part topProJectInfo">
    <view class="proTitle">
      <van-icon class='iconfont' class-prefix='iconfont' name='/images/licensePlate.png' size="30rpx" color="rgba(0, 0, 0, 0.85)"></van-icon> {{info.licenseNumber}}<!--<text class="queueNumber">排队号：{{info.queueNumber}}</text>-->
    </view>
    <view class="sijiInfo" wx:if="{{ info.type != '2' }}">
      <view wx:if="{{info.driverName}}">司机：{{info.driverName}}</view>
      <view wx:if="{{info.driverMobile}}">
        <van-icon name="phone-o" />
        <!-- <van-icon class='iconfont' class-prefix='iconfont' name='dianhua' size="30rpx" color="rgba(0, 0, 0, 0.85)" style="margin-left:20rpx;margin-right: 10rpx;"></van-icon> -->
        {{info.driverMobile}}
      </view>
    </view>
  </view>
  <view class="part">
    <block wx:if="{{ info.appointmentType == '1' }}">
      <van-field label="订单名称" input-align="right" model:value="{{info.orderName}}" readonly></van-field>
      <van-field label="订单编号" input-align="right" model:value="{{info.orderNumber}}" readonly></van-field>
    </block>
    <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" 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.customerName}}" readonly></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>
    <van-field label="装卸点位" input-align="right" model:value="{{info.loadPoint}}" readonly></van-field>
    <van-field label="装卸时间" input-align="right" model:value="{{info.loadBeginTime+'~'+info.loadEndTime}}" readonly type="textarea" autosize></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>
      <van-field center clearable label="签收审核" use-button-slot class="radioHeight fieldAutoHeight">
        <view slot="input" class="radioHeightBx" wx:if="{{ info.auditSign }}"><van-image slot="input" width="100px" height="100px" src="{{ info.auditSign }}" /></view>
      </van-field>
    </view></block>

    <view style="padding: 20px 0;" wx:if="{{ info.status!= '1' || info.status!= '2' || info.status!= '10' || info.status!= '11' || info.status!= '12' || info.status!= '13' || info.status!= '14' || info.status!= '15'}}"><canvas class='canvas' canvas-id='canvas' style='width:220px;height:220px;margin: 0 auto;'></canvas></view>

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

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