edit.wxml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!--pages/reservationOther/edit.wxml-->
  2. <view class="container" style="padding-bottom:100px;">
  3. <view class="height20"></view>
  4. <view>
  5. <form bindsubmit="formSubmit">
  6. <input name="id" value='{{info.id}}' hidden='true' />
  7. <view class="part">
  8. <van-field required label="车牌号码" readonly border="{{false}}"></van-field>
  9. <car-num-input bind:setCarNum="licensePlate" isKeyboard="{{isKeyboard}}" inputOnFocusIndex="{{inputOnFocusIndex}}" inputPlates="{{inputPlates}}" isNewEnergy="{{isNewEnergy}}"></car-num-input>
  10. <input name="licenseNumber" value='{{licensePlate}}' hidden='true' />
  11. <van-field label="车辆轴数" required input-align="right" bindtap="hideKeybord">
  12. <view slot="input" style="width: 100%;">
  13. <input name="overId" value='{{carzheArray[carzheIndex].id}}' hidden='true' />
  14. <picker bindchange="bindPickerChange" value="{{carzheIndex}}}" range="{{carzheArray}}" range-key="vehicleAxleNumber" data-pickername='carzhe'>
  15. <view wx:if="{{carzheArray[carzheIndex].vehicleAxleNumber}}"> {{carzheArray[carzheIndex].vehicleAxleNumber}}</view>
  16. <view wx:else class="selectPlaceholder">{{defaultText}}</view>
  17. </picker>
  18. </view>
  19. <view slot="right-icon">
  20. <van-icon name="arrow" />
  21. </view>
  22. </van-field>
  23. <!-- 司机 -->
  24. <van-field label="司机" required input-align="right">
  25. <view slot="input" style="width: 100%;">
  26. <input name="driverId" value='{{driverArray[driverIndex].id}}' hidden='true' />
  27. <input name="driverName" value='{{driverArray[driverIndex].name}}' hidden='true' />
  28. <picker bindchange="bindPickerChange" value="{{driverIndex}}" range="{{driverArray}}" range-key="name" data-pickername='driver'>
  29. <view wx:if="{{driverArray[driverIndex].name}}"> {{driverArray[driverIndex].name}}</view>
  30. <view wx:else class="selectPlaceholder">{{ defaultText }}</view>
  31. </picker>
  32. </view>
  33. <view slot="right-icon">
  34. <van-icon name="arrow" />
  35. </view>
  36. </van-field>
  37. <van-field label="司机电话" wx:if="{{driverArray[driverIndex].id}}" name="driverMobile" readonly value="{{ driverMobile }}" placeholder="选择司机自动填入" input-align="right"></van-field>
  38. <van-field label="是否过磅" name="isWeigh" value="{{ isWeigh }}" required input-align="right" class="radioHeight fieldAutoHeight">
  39. <view slot="input" class="radioHeightBx">
  40. <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="isWeigh">
  41. <label class="radio">
  42. <radio value="1" checked="{{ isWeigh=='1'}}" color="#4B70EA" />是
  43. </label>
  44. <label class="radio">
  45. <radio value="2" checked="{{ isWeigh=='2'}}" color="#4B70EA" />否
  46. </label>
  47. </radio-group>
  48. </view>
  49. </van-field>
  50. <van-field label="备注" name="remark" value="{{ info.remark }}" type="textarea" input-align="right" placeholder="请输入备注" autosize></van-field>
  51. </view>
  52. <view class="fixedBtn submitBtn">
  53. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
  54. </van-button>
  55. </view>
  56. </form>
  57. </view>
  58. </view>
  59. <wxs module="filters" src="../../utils/filter.wxs"></wxs>