<!--pages/salesOrderMan/orderloadAdd.wxml-->
<view class="container" style="padding-bottom:100px;">
  <view class="height20"></view>
  <view>
    <form bindsubmit="formSubmit">
      <input name="orderId" value='{{ orderId }}' hidden='true' />
      <van-field label="订单编号" value="{{ orderNumber }}" input-align="right" readonly></van-field>
      <van-field label="提货时间" title-width="100" value="{{confStartTime}}~{{confEndTime}}"input-align="right" readonly type="textarea" autosize></van-field>
      <view class="part">
        <!-- 装卸点位 -->
        <van-field label="装卸点位" required input-align="right" bindtap="hideKeybord">
          <view slot="input" style="width: 100%;">
            <input name="loadPointId" value='{{loadPointArray[loadPointIndex].id}}' hidden='true' />
            <picker bindchange="bindPickerChange" value="{{loadPointIndex}}" range="{{loadPointArray}}" range-key="loadPoint" data-pickername='loadPoint'>
              <view wx:if="{{loadPointArray[loadPointIndex].loadPoint}}"> {{loadPointArray[loadPointIndex].loadPoint}}</view>
              <view wx:else class="selectPlaceholder">{{defaultText}}</view>
            </picker>
          </view>
          <view slot="right-icon">
            <van-icon name="arrow" />
          </view>
        </van-field>

        <!-- 装卸时间 -->
        <van-field label="装卸时间" required input-align="right" bindtap="hideKeybord" wx:if="{{loadTimeArray.length>0}}" type="textarea" autosize>
          <view slot="input" style="width: 100%;">
            <input name="loadTimeId" value='{{loadTimeArray[loadTimeIndex].id}}' hidden='true' />
            <picker bindchange="bindPickerChange" value="{{loadTimeIndex}}" range="{{loadTimeArray}}" range-key="time" data-pickername='loadTime'>
              <view wx:if="{{loadTimeArray[loadTimeIndex].time}}"> {{loadTimeArray[loadTimeIndex].time}}</view>
              <view wx:else class="selectPlaceholder">{{defaultText}}</view>
            </picker>
          </view>
          <view slot="right-icon">
            <van-icon name="arrow" />
          </view>
        </van-field>
        <van-field required wx:else label="装卸时间" name="deliveryTimeId" value="" readonly input-align="right" placeholder="请先选择装卸点位" placeholder-style="color:red;" />


      </view>

      <view class="fixedBtn submitBtn">
        <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
        </van-button>
      </view>

    </form>
  </view>
</view>

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