<!--pages/loadAppoint/info.wxml-->
<view class="container">
  <view class="part">
    <van-field label="预约单号" input-align="right" model:value="{{info.loadNumber}}" readonly></van-field>
    <van-field label="订单类型" input-align="right" readonly>
      <text slot="button" class="status status{{info.orderType}}">{{filters.codeAnalysis(appointTypeArray, info.orderType, 'dictValue', 'dictLabel')}} 
      </text>
    </van-field>
    <van-field label="客户名称" input-align="right" model:value="{{info.customerName }}" readonly></van-field>
    <van-field label="联系人" input-align="right" model:value="{{info.customerContact }}" readonly></van-field>
    <van-field label="手机号" input-align="right" model:value="{{info.customerPhone }}" readonly></van-field>
    <van-field label="客户地址" input-align="right" model:value="{{info.customerAddress }}" 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.orderWeight +'吨'}}" readonly></van-field>
    <van-field label="单价" input-align="right" model:value="{{info.orderPrice +'元/吨'}}" readonly></van-field>
    <van-field label="订单总额" input-align="right" model:value="{{info.orderAmount +'元'}}" readonly></van-field>
    <van-field label="运费单价" input-align="right" model:value="{{info.freightPrice +'元/吨'}}" readonly></van-field>
    <van-field label="订单状态" input-align="right" readonly>
      <text slot="button" class="status orderStatus{{info.status}}">{{filters.codeAnalysis(appointStatusArray, info.status, 'dictValue', 'dictLabel')}} 
      </text>
    </van-field>
    <van-field label="船运供应商" input-align="right" model:value="{{info.supplierName}}" readonly></van-field>
    <van-field label="创建时间" input-align="right" model:value="{{info.createTime}}" readonly></van-field>
    <van-field label="创建人" input-align="right" model:value="{{info.createUserName}}" readonly></van-field>
  
    <van-field center clearable label="司机回签" placeholder="签字图片" border="{{ false }}" use-button-slot class="radioHeight fieldAutoHeight">
      <view slot="input" class="radioHeightBx" wx:if="{{ info.customerSign }}">
        <van-image slot="input" width="100px" height="100px" src="{{ info.customerSign }}" />
      </view>
    </van-field>
    <van-field label="签名时间" input-align="right" model:value="{{info.signTime}}" readonly></van-field>
  </view>
  <view style="height: 30px;"></view>

  <view class="part">
    <block wx:if="{{supplierData.length>0}}">
      <block wx:for="{{supplierData}}" wx:key="index">
        <van-field label="汽运供应商{{index+1}}" readonly></van-field>
        <van-field label="供应商名称" input-align="right" model:value="{{item.supplierName}}" readonly><text></text></van-field>
        <van-field label="过磅重量" input-align="right" model:value="{{item.netWeight + ' 吨'}}" readonly></van-field>
        <van-field label="卸货重量" input-align="right" model:value="{{item.shippingWeight + ' 吨'}}" readonly></van-field>
        <view style="height: 30px;"></view>
      </block>
    </block>
  </view>

</view>

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