edit.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. </view>
  12. <view class="part">
  13. <!-- 司机 -->
  14. <van-field label="司机" required input-align="right">
  15. <view slot="input" style="width: 100%;">
  16. <input name="driverId" value='{{driverArray[driverIndex].id}}' hidden='true' />
  17. <picker bindchange="bindPickerChange" value="{{driverIndex}}" range="{{driverArray}}" range-key="name" data-pickername='driver'>
  18. <view wx:if="{{driverArray[driverIndex].name}}"> {{driverArray[driverIndex].name}}</view>
  19. <view wx:else class="selectPlaceholder">{{ defaultText }}</view>
  20. </picker>
  21. </view>
  22. <view slot="right-icon">
  23. <van-icon name="arrow" />
  24. </view>
  25. </van-field>
  26. <van-field label="司机姓名" wx:if="{{driverArray[driverIndex].id}}" name="driverName" readonly value="{{ driverName }}" placeholder="选择司机自动填入" input-align="right"></van-field>
  27. <van-field label="司机电话" wx:if="{{driverArray[driverIndex].id}}" name="driverMobile" readonly value="{{ driverMobile }}" placeholder="选择司机自动填入" input-align="right"></van-field>
  28. <van-field label="是否过磅" name="isWeigh" value="{{ isWeigh }}" required input-align="right" class="radioHeight fieldAutoHeight">
  29. <view slot="input" class="radioHeightBx">
  30. <radio-group class="radio-group" bindchange="dangerStatusChange" data-radioType="isWeigh">
  31. <label class="radio">
  32. <radio value="1" checked="{{ isWeigh=='1'}}" color="#4B70EA" />是
  33. </label>
  34. <label class="radio">
  35. <radio value="2" checked="{{ isWeigh=='2'}}" color="#4B70EA" />否
  36. </label>
  37. </radio-group>
  38. </view>
  39. </van-field>
  40. <van-field label="备注" name="remark" value="{{ info.remark }}" type="textarea" input-align="right" placeholder="请输入备注" autosize></van-field>
  41. </view>
  42. <view class="fixedBtn submitBtn">
  43. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
  44. </van-button>
  45. </view>
  46. </form>
  47. </view>
  48. </view>
  49. <wxs module="filters" src="../../utils/filter.wxs"></wxs>