worksheetinfo.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!--pages/worksheetinfo/worksheetinfo.wxml-->
  2. <scroll-view scroll-y='true'>
  3. <view class="context">
  4. <text>场站</text>
  5. <picker class="picker" bindchange="bindChargstationsChange" value="{{chargstationsindex}}" range-key="chargStationName" range="{{chargstations}}">
  6. <text>{{chargstations[chargstationsindex].chargStationName}}</text>
  7. </picker>
  8. </view>
  9. <view class="context">
  10. <text>地址</text>
  11. <input class='input' bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
  12. </view>
  13. <view class="context">
  14. <text>工单状态</text>
  15. <picker class="picker" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
  16. <text>{{workstatus[workstatusindex].text}}</text>
  17. </picker>
  18. </view>
  19. <view class="context">
  20. <text>工单类型</text>
  21. <picker class="picker" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
  22. <text>{{workBigclass[workBigclassindex].text}}</text>
  23. </picker>
  24. </view>
  25. <view class="context">
  26. <text>维修人员</text>
  27. <input bindtap='bindAccendantChange' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
  28. </view>
  29. <view class="context">
  30. <text>工作内容</text>
  31. <input class='input' bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
  32. </view>
  33. <view class="context">
  34. <text>预计完成时间</text>
  35. <picker class="picker1" mode="date" value="{{exceptdate}}" bindchange="bindExceptdateChange">
  36. <text>{{exceptdate}}</text>
  37. </picker>
  38. <picker class="picker2" mode="time" value="{{excepttime}}" bindchange="bindExcepttimeChange">
  39. <text>{{excepttime}}:00</text>
  40. </picker>
  41. <!-- <input class='input' type='text' value='{{worksheetinfo.exceptTime}}'></input> -->
  42. </view>
  43. <view class="context">
  44. <text>实际完成时间</text>
  45. <picker class="picker1" mode="date" value="{{finishdate}}" bindchange="bindFinishdateChange">
  46. <text>{{finishdate}}</text>
  47. </picker>
  48. <picker class="picker2" mode="time" value="{{finishtime}}" bindchange="bindFinishtimeChange">
  49. <text>{{finishtime}}:00</text>
  50. </picker>
  51. <!-- <input class='input' type='text' value='{{worksheetinfo.finishTime}}'></input> -->
  52. </view>
  53. <view wx:if="{{pcitures.length!=0}}" class="question-images">
  54. <block wx:for="{{pcitures}}" wx:key="*this">
  55. <view class="q-image-wrap">
  56. <!-- 图片缩略图 -->
  57. <image class="q-image" src="https://cdgl.xinyhy.cn/profile/station/{{item}}" mode="aspectFill" data-idx="{{index}}"></image>
  58. </view>
  59. </block>
  60. </view>
  61. <view wx:if="{{images.length!=0}}" class="question-images">
  62. <block wx:for="{{images}}" wx:key="*this">
  63. <view class="q-image-wrap">
  64. <!-- 图片缩略图 -->
  65. <image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleImagePreview"></image>
  66. <!-- 移除图片的按钮 -->
  67. <view class="q-image-remover" data-idx="{{index}}" bindtap="removeImage">删除</view>
  68. </view>
  69. </block>
  70. </view>
  71. <view class="context_image">
  72. <text>添加照片</text>
  73. <view class="add" bindtap='openImage' hover-class='active'>
  74. <text>+</text>
  75. </view>
  76. </view>
  77. </scroll-view>
  78. <button bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>