add.wxml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!--pages/reservationLoadAppoint/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. <van-field label="订单编号" wx:if="{{loadNumber}}" name="loadNumber" readonly value="{{ loadNumber }}" placeholder="自动填入" input-align="right">
  8. <input name="orderId" value='{{orderId}}' hidden='true' />
  9. </van-field>
  10. <van-field label="客户名称" wx:if="{{customerName}}" name="customerName" readonly value="{{ customerName }}" placeholder="自动填入" input-align="right">
  11. </van-field>
  12. <van-field label="货品信息" wx:if="{{goodsName}}" name="goodsName" readonly value="{{ goodsName?goodsName:'' + goodsModel?' / ' + goodsModel:'' }}" placeholder="自动填入" input-align="right">
  13. </van-field>
  14. </view>
  15. <view class="part">
  16. <!-- 装卸点位 -->
  17. <van-field label="装卸点位" required input-align="right" bindtap="hideKeybord">
  18. <view slot="input" style="width: 100%;">
  19. <input name="loadPointId" value='{{loadPointArray[loadPointIndex].loadPointId}}' hidden='true' />
  20. <picker bindchange="bindPickerChange" value="{{loadPointIndex}}" range="{{loadPointArray}}" range-key="loadPoint" data-pickername='loadPoint'>
  21. <view wx:if="{{loadPointArray[loadPointIndex].loadPoint}}"> {{loadPointArray[loadPointIndex].loadPoint}}</view>
  22. <view wx:else class="selectPlaceholder">{{defaultText}}</view>
  23. </picker>
  24. </view>
  25. <view slot="right-icon">
  26. <van-icon name="arrow" />
  27. </view>
  28. </van-field>
  29. <!-- 装卸时间 -->
  30. <van-field label="装卸时间" required input-align="right" bindtap="hideKeybord" wx:if="{{loadTimeArray.length>0}}" type="textarea" autosize>
  31. <view slot="input" style="width: 100%;">
  32. <input name="loadTimeId" value='{{loadTimeArray[loadTimeIndex].loadTimeId}}' hidden='true' />
  33. <picker bindchange="bindPickerChange" value="{{loadTimeIndex}}" range="{{loadTimeArray}}" range-key="time" data-pickername='loadTime'>
  34. <view wx:if="{{loadTimeArray[loadTimeIndex].time}}"> {{loadTimeArray[loadTimeIndex].time}}</view>
  35. <view wx:else class="selectPlaceholder">{{defaultText}}</view>
  36. </picker>
  37. </view>
  38. <view slot="right-icon">
  39. <van-icon name="arrow" />
  40. </view>
  41. </van-field>
  42. <van-field required wx:else label="装卸时间" name="deliveryTimeId" value="" readonly input-align="right" placeholder="请先选择装卸点位" placeholder-style="color:red;" />
  43. </view>
  44. <view class="part">
  45. <van-field required label="车牌号码" readonly border="{{false}}"></van-field>
  46. <car-num-input bind:setCarNum="licensePlate" isKeyboard="{{isKeyboard}}" inputOnFocusIndex="{{inputOnFocusIndex}}" inputPlates="{{inputPlates}}" isNewEnergy="{{isNewEnergy}}"></car-num-input>
  47. <input name="licenseNumber" value='{{licensePlate}}' hidden='true' />
  48. <van-field label="车辆轴数" required input-align="right">
  49. <view slot="input" style="width: 100%;">
  50. <input name="overId" value='{{excessConfigArray[excessConfigIndex].id}}' hidden='true' />
  51. <picker bindchange="bindPickerChange" value="{{excessConfigIndex}}" range="{{excessConfigArray}}" range-key="name" data-pickername='excessConfig'>
  52. <view wx:if="{{excessConfigArray[excessConfigIndex].name}}"> {{excessConfigArray[excessConfigIndex].name}}</view>
  53. <view wx:else class="selectPlaceholder">{{ defaultText }}</view>
  54. </picker>
  55. </view>
  56. <view slot="right-icon">
  57. <van-icon name="arrow" />
  58. </view>
  59. </van-field>
  60. <van-field label="司机姓名" required name="driverName" value="{{ driverName }}" placeholder="请填写司机姓名" input-align="right" ></van-field>
  61. <van-field label="司机电话" required name="driverMobile" value="{{ driverMobile }}" placeholder="请填写司机电话" input-align="right" ></van-field>
  62. </view>
  63. <view class="fixedBtn submitBtn">
  64. <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}" type="info" form-type="submit">确定
  65. </van-button>
  66. </view>
  67. </form>
  68. </view>
  69. </view>
  70. <wxs module="filters" src="../../utils/filter.wxs"></wxs>