add.wxml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <form bindsubmit="formSubmit" bindreset="formReset">
  2. <tui-list-cell hover="{{false}}">
  3. <view class="tui-line-cell">
  4. <view class="tui-title"><text style="color:red;">*</text>姓名:</view>
  5. <input placeholder-class="phcolor" class="tui-input" data-name="values.repairsBy" placeholder="请输入姓名" maxlength="50" value="{{values.repairsBy}}" catchinput="inputedit" bindblur="inputedit" name="repairsBy" />
  6. </view>
  7. </tui-list-cell>
  8. <tui-list-cell hover="{{false}}">
  9. <view class="tui-line-cell">
  10. <view class="tui-title"><text style="color:red;">*</text>电话:</view>
  11. <input placeholder-class="phcolor" class="tui-input" data-name="values.repairsPhone" placeholder="请输入手机号" maxlength="11"
  12. type="number" value="{{values.repairsPhone}}" catchinput="inputedit" bindblur="inputedit" name="repairsPhone"/>
  13. </view>
  14. </tui-list-cell>
  15. <!-- <tui-list-cell hover="{{false}}">
  16. <view class="tui-line-cell">
  17. <view class="tui-title">快递公司:</view>
  18. <input placeholder-class="phcolor" class="tui-input" data-name="values.expressCompany" placeholder="请输入快递公司" maxlength="50" value="{{values.expressCompany}}" catchinput="inputedit" bindblur="inputedit"/>
  19. </view>
  20. </tui-list-cell> -->
  21. <picker bindchange="bindPickerChange" value="{{index}}" range="{{expressCompany}}" range-key="text">
  22. <tui-list-cell hover="{{false}}">
  23. <view class="tui-line-cell">
  24. <view class="tui-title">快递公司</view>
  25. <input placeholder-class="phcolor" class="tui-input" placeholder="请选择快递公司" type="text" disabled="true" value="{{values.expressCompany}}" />
  26. </view>
  27. </tui-list-cell>
  28. </picker>
  29. <tui-list-cell hover="{{false}}">
  30. <view class="tui-line-cell">
  31. <view class="tui-title">运单号:</view>
  32. <input placeholder-class="phcolor" class="tui-input" data-name="values.expressSn" placeholder="请输入快递单号" maxlength="50" value="{{values.expressSn}}" catchinput="inputedit" bindblur="inputedit"/>
  33. </view>
  34. </tui-list-cell>
  35. <!-- <tui-list-cell hover="{{false}}">
  36. <view class="tui-line-cell">
  37. <view class="tui-title">地区:</view>
  38. <picker mode="region" name="area" bindchange="bindRegionChange" value="{{region}}">
  39. <text class="tui-input" wx:if="{{region==''}}">请选择所在地区</text>
  40. <text class="tui-input" wx:if="{{region!=''}}">{{region[0]}}{{region[1]}}{{region[2]}}</text>
  41. </picker>
  42. </view>
  43. </tui-list-cell> -->
  44. <tui-list-cell hover="{{false}}">
  45. <view class="tui-line-cell">
  46. <view class="tui-title">详细地址:</view>
  47. <input placeholder-class="phcolor" class="tui-input" data-name="values.address" placeholder="请输入详细地址" value="{{values.address}}" catchinput="inputedit" bindblur="inputedit"/>
  48. </view>
  49. </tui-list-cell>
  50. <tui-list-cell hover="{{false}}">
  51. <view class="tui-line-cell">
  52. <view class="tui-title">收录设备号:</view>
  53. <!-- <input placeholder-class="phcolor" class="tui-input" name="name" placeholder="扫一扫显示设备号" maxlength="50" type="text"
  54. disabled="true" value="{{deviceId}}" bindtap="scanCodeEvent" />
  55. <tui-icon name="sweep" size="24" bindtap="scanCodeEvent"></tui-icon> -->
  56. <!-- <input placeholder-class="phcolor" class="tui-input" placeholder="请输入设备号" name="deviceSn" type="text"
  57. value="{{values.deviceSn}}" data-name="deviceSn" catchinput="inputedit" bindblur="inputedit"/> -->
  58. <input placeholder-class="phcolor" class="tui-input" data-name="values.deviceSn" placeholder="请输入设备号" maxlength="11"
  59. type="number" value="{{values.deviceSn}}" catchinput="inputedit" bindblur="inputedit" name="deviceSn"/>
  60. </view>
  61. </tui-list-cell>
  62. <tui-list-cell hover="{{false}}">
  63. <view class="tui-line-cell">
  64. <view class="tui-title">故障描述:</view>
  65. <input placeholder-class="phcolor" class="tui-input" data-name="values.repairsRemark" placeholder="请输入故障描述" value="{{values.repairsRemark}}" catchinput="inputedit" bindblur="inputedit"/>
  66. </view>
  67. </tui-list-cell>
  68. <view class="tui-btn-box">
  69. <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" formType="submit" type="primary" bindtap="addRepair">提交</button>
  70. <button class="btn-primary btn-gray" hover-class="btn-gray-hover" formType="reset">重置</button>
  71. </view>
  72. <time-picker pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide"
  73. bind:setPickerTime="setPickerTime" config="{{pickerConfig}}"></time-picker>
  74. </form>