<!--pages/weighingRecord/info.wxml-->
<view class="container">
  <van-sticky>
    <van-nav-bar title="过磅详情" back="{{ true }}" color="#fff" iconColor="#fff" background="{{floorstatus?'#375edf;':'transparent'}}" borderColor="transparent"></van-nav-bar>
  </van-sticky>
  <view style="height: {{ 500-200 }}rpx;"></view>
  <!-- 轮播图 -->
  <swiper class='banner' autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-dots='{{indicatorDots}}' indicator-color='rgba(255,255,255,.3)' indicator-active-color="#fff" circular="true" bindchange="getCurrent">
    <block wx:for="{{bannerIMg}}" wx:key="id">
      <swiper-item>
        <image src="{{item.url}}" class="slide-image" />
      </swiper-item>
    </block>
  </swiper>
  <text class="showNumber">{{setCurrent+' / '+bannerIMg.length}}</text>

  <view class="containerBox" style="position: relative;padding-top:24rpx;border-radius: 20rpx 20rpx 0rpx 0rpx;overflow: hidden;background: #fff;">
    <view class="part topCarInfo">
      <view class="title">
        <view class="title-left">
          <van-icon class='iconfont' name='/images/licensePlate.png' size="36rpx"></van-icon><text>{{info.licensePlate}}</text>
          <text class="licensePlate yellow_licensePlate" wx:if="{{info.plateColor=='黄色'}}">黄</text>
          <text class="licensePlate blue_licensePlate" wx:elif="{{info.plateColor=='蓝色'}}">蓝</text>
          <text class="licensePlate green_licensePlate" wx:elif="{{info.plateColor=='绿色'}}">绿</text>
          <text class="licensePlate white_licensePlate" wx:elif="{{info.plateColor=='白色'}}">白</text>
          <text class="licensePlate black_licensePlate" wx:elif="{{info.plateColor=='黑色'}}">黑</text>
          <text class="licensePlate other_licensePlate" wx:else>其他</text>
        </view>
      </view>
      <view class="codeType">
        <text wx:if="{{info.goodsName}}">{{info.goodsName}}</text>
        <text wx:if="{{info.goodsModel}}">{{info.goodsModel}}</text>
      </view>
      <view class="weightNum">
        <view class="weightLeft"><text>毛重</text><text>{{filters.numberFormat(info.grossWeight,2)}} 吨</text></view>
        <view class="weightLeft"><text>皮重</text><text>{{filters.numberFormat(info.tareWeight,2)}} 吨</text></view>
        <view><text>净重</text><text>{{filters.numberFormat(info.netWeight,2)}} 吨</text></view>
      </view>
    </view>
    <view class="height20" style="position: relative;background: #F6F7F9;"></view>
    <view class="part">
      
      <van-field label="车次编码" model:value='{{info.carNumber}}' input-align="right" readonly></van-field>
      <van-field label="货品名称" model:value='{{info.goodsName}}' input-align="right" readonly></van-field>
      <van-field label="货品规格" model:value='{{info.goodsModel}}' input-align="right" readonly></van-field>
      <van-field label="预约状态" input-align="right" readonly>
      <text slot="button" class="status status{{info.status}}">{{filters.codeAnalysis(appointmentAtatusStatusArray, info.status, 'dictValue', 'dictLabel')}} 
      </text>
    </van-field>
      <van-field label="司机姓名" model:value='{{info.driverName}}' input-align="right" readonly></van-field>
      <van-field label="司机电话" model:value='{{info.driverMobile}}' input-align="right" readonly />
      <van-field label="过磅时间" model:value='{{info.time}}' input-align="right" readonly wx:if="{{type=='single'}}"></van-field>

      <van-field label="发货单位" model:value='{{info.shippingCompany}}' input-align="right" readonly type="textarea" autosize></van-field>
      <van-field label="收货单位" model:value='{{info.receiptCompany}}' input-align="right" readonly type="textarea" autosize></van-field>
      <van-field label="运输单位" model:value='{{info.transportCompany}}' input-align="right" readonly type="textarea" autosize></van-field>
      <van-field label="过磅次数" model:value="{{info.weighingType=='1'?'一次过磅':'二次过磅'}}" input-align="right" readonly></van-field>

      <van-field label="订单名称" model:value='{{info.orderName}}' input-align="right" readonly></van-field>
      <van-field label="订单编号" model:value='{{info.orderNumber}}' input-align="right" readonly></van-field>
      <van-field label="客户名称" model:value='{{info.customerName}}' input-align="right" readonly type="textarea" autosize></van-field>

      <van-field label="过毛时间" model:value='{{info.grossTime}}' input-align="right" readonly />
      <van-field label="过皮时间" model:value='{{info.tareTime}}' input-align="right" readonly />
    </view>

    <view class="part">
      <van-field center clearable label="司机确认" placeholder="签字图片" border="{{ false }}" 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="卸货重量" model:value='{{info.unloadWeight}}' input-align="right" readonly>
        <view slot="right-icon">
          <text>吨</text>
        </view>
      </van-field>
      <van-field label="司机回签" readonly border="false"></van-field>
      <van-cell-group wx:if="{{ info.unloadImg }}">
        <van-field name="" model:value="" label="" class="checkbox">
          <view slot="input" class="checkboxView">
            <van-uploader name="" deletable="{{false}}" file-list="{{ unloadImgArray }}" max-count="{{unloadImgArray.length}}" preview-size="80" />
          </view>
        </van-field>
      </van-cell-group>

      <van-field center clearable label="签收审核" border="{{ false }}" 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>

    <view class="height20" style="position: relative;background: #F6F7F9;"></view>

    <view class="part">
      <van-field label="过毛抓拍图片" readonly border="false"></van-field>
      <van-cell-group>
        <van-field name="" model:value="" label="" class="checkbox">
          <view slot="input" class="checkboxView">
            <van-uploader name="" deletable="{{false}}" file-list="{{ grossCaptureArr }}" max-count="{{grossCaptureArr.length}}" preview-size="80" />
          </view>
        </van-field>
      </van-cell-group>
    </view>

    <view class="part">
      <van-field label="过皮抓拍图片" readonly border="false"></van-field>
      <van-cell-group>
        <van-field name="" model:value="" label="" class="checkbox">
          <view slot="input" class="checkboxView">
            <van-uploader name="" deletable="{{false}}" file-list="{{ tareCaptureArr }}" max-count="{{tareCaptureArr.length}}" preview-size="80" />
          </view>
        </van-field>
      </van-cell-group>
    </view>

    <!-- <view class="part">
      <van-field label="抓拍图片" readonly></van-field>
      <van-cell-group>
        <van-field name="" model:value="" label="" class="checkbox">
          <view slot="input" class="checkboxView">
            <van-uploader name="" deletable="{{false}}" file-list="{{ bannerIMg }}" max-count="{{bannerIMg.length}}" preview-size="80" />
          </view>
        </van-field>
      </van-cell-group>
    </view> -->
  </view>

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