<!--pages/car/add.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}}"></car-num-input>
      </view>
      <view class="part">
        <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" input-align="right" placeholder="请输入司机姓名" bind:focus="hideKeybord" />
        <van-field label="司机号码" name="driverMobile" input-align="right" placeholder="请输入司机号码" bind:focus="hideKeybord" />
        <!-- <van-field label="营运证号图片" title-width="120"  required input-align="left" border="{{ false }}" readonly></van-field> -->
        <!-- <view style="padding: 0 20rpx 20rpx;background-color: #fff;">
          <view style="width: 80px;height: 80px;line-height:80px;text-align:center;background-color: #f7f8fa;border-radius: 6rpx;position: relative;" bindtap="afterRead">
            <block wx:if="{{originalInvoicePhoto}}">
              <view style="width: 34rpx;height: 34rpx;line-height:34rpx;text-align:center;position: absolute;top: 0;right: 0;background-color: rgba(0, 0, 0, 0.7);">
                <van-icon name="cross" size="14px" color="#ffffff" catchtap="clearImgFun" />
              </view>
              <image src="{{originalInvoicePhotoUrl}}" mode="" style="width: 80px;height:80px;" />
            </block>
            <block wx:else="">
              <van-icon name="photograph" size="24px" color="#dcdee0" />
            </block>
          </view>
          <van-uploader file-list="{{ fileList }}" bind:after-read="afterRead" preview-size="80"/>
        </view> -->
      </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>