<!--pages/car/edit.wxml-->
<view class="container">
  <view class="formTopBlueBg"></view>
  <view class="width710" style="margin-top: -100rpx;">
    <form bindsubmit="formSubmit">

      <view class="part">
        <van-field required label="车牌号码" readonly border="{{false}}"></van-field>
        <car-num-input bind:setCarNum="licensePlate" isKeyboard="{{isKeyboard}}" inputOnFocusIndex="{{inputOnFocusIndex}}" inputPlates="{{inputPlates}}" isNewEnergy="{{isNewEnergy}}"></car-num-input>
      </view>

      <view class="part">
        <input name="id" value='{{id}}' hidden='true' />
        <input name="licensePlate" value='{{licensePlate}}' hidden='true' />
        <!-- 车辆轴数 -->
        <van-field label="车辆轴数" required input-align="right" bindtap="hideKeybord">
          <view slot="input" style="width: 100%;">
            <input name="vehicleAxles" value='{{overArray[overIndex].id}}' hidden='true' />
            <picker bindchange="bindPickerChange" value="{{overIndex}}}" range="{{overArray}}" range-key="vehicleAxleNumber" data-pickername='over'>
              <view wx:if="{{overArray[overIndex].vehicleAxleNumber}}"> {{overArray[overIndex].vehicleAxleNumber}}</view>
              <view wx:else class="selectPlaceholder">{{defaultText}}</view>
            </picker>
          </view>
          <view slot="right-icon">
            <van-icon name="arrow" />
          </view>
        </van-field>
        <van-field label="司机姓名" name="driverName" model:value="{{info.driverName&&info.driverName!='null'?info.driverName:''}}" input-align="right" placeholder="请输入司机姓名" bind:focus="hideKeybord" />
        <van-field label="司机号码" name="driverMobile" model:value="{{info.driverMobile&&info.driverMobile!='null'?info.driverMobile:''}}" input-align="right" placeholder="请输入司机号码" bind:focus="hideKeybord" />
      </view>

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