add.wxml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--pages/reservationPipe/add.wxml-->
  2. <view class="container" style="padding-bottom:100px;">
  3. <view class="height20"></view>
  4. <view>
  5. <form bindsubmit="formSubmit">
  6. <view class="part">
  7. <!-- 管桩计划 (扫码获取)
  8. <van-field label="管桩计划" required input-align="right">
  9. <view slot="input" style="width: 100%;">
  10. <input name="orderId" value='{{orderArray[orderIndex].id}}' hidden='true' />
  11. <picker bindchange="bindPickerChange" value="{{orderIndex}}" range="{{orderArray}}" range-key="name" data-pickername='order'>
  12. <view wx:if="{{orderArray[orderIndex].name}}"> {{orderArray[orderIndex].name}}</view>
  13. <view wx:else class="selectPlaceholder">{{ defaultText }}</view>
  14. </picker>
  15. </view>
  16. <view slot="right-icon">
  17. <van-icon name="arrow" />
  18. </view>
  19. </van-field>
  20. -->
  21. <van-field label="计划编号" wx:if="{{orderId}}" name="planNumber" readonly value="{{ planNumber }}" placeholder="自动填入" input-align="right">
  22. <input name="orderId" value='{{orderId}}' hidden='true' />
  23. </van-field>
  24. <van-field label="计划名称" wx:if="{{orderId}}" name="planName" readonly value="{{ planName }}" placeholder="自动填入" input-align="right">
  25. </van-field>
  26. <van-field label="预约次数" wx:if="{{orderId}}" name="planCount" readonly value="{{ planCount }}" placeholder="自动填入" input-align="right">
  27. </van-field>
  28. <van-field label="已预约次数" wx:if="{{orderId}}" name="planAlreadyCount" readonly value="{{ planAlreadyCount }}" placeholder="自动填入" input-align="right">
  29. </van-field>
  30. </view>
  31. <view class="part">
  32. <van-field required label="车牌号码" readonly border="{{false}}"></van-field>
  33. <car-num-input bind:setCarNum="licensePlate" isKeyboard="{{isKeyboard}}" inputOnFocusIndex="{{inputOnFocusIndex}}" inputPlates="{{inputPlates}}" isNewEnergy="{{isNewEnergy}}"></car-num-input>
  34. <input name="licenseNumber" value='{{licensePlate}}' hidden='true' />
  35. <van-field label="司机姓名" required name="driverName" value="{{ driverName }}" placeholder="请填写司机姓名" input-align="right" ></van-field>
  36. <van-field label="司机电话" required name="driverMobile" value="{{ driverMobile }}" placeholder="请填写司机电话" input-align="right" ></van-field>
  37. </view>
  38. <view class="fixedBtn submitBtn">
  39. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
  40. </van-button>
  41. </view>
  42. </form>
  43. </view>
  44. </view>
  45. <wxs module="filters" src="../../utils/filter.wxs"></wxs>