worksheetinfo.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!--pages/worksheetinfo/worksheetinfo.wxml-->
  2. <scroll-view scroll-y='true'>
  3. <view class="context">
  4. <text>场站</text>
  5. <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" 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' disabled="{{worksheetinfo.workStatus==6}}" bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
  12. </view>
  13. <view class="context">
  14. <text>工单状态</text>
  15. <picker class="picker" wx:if="{{worksheetinfo.workStatus!=6}}" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
  16. <text>{{workstatus[workstatusindex].text}}</text>
  17. </picker>
  18. <picker wx:if="{{worksheetinfo.workStatus==6}}" disabled="true" class="picker" range-key="text" >
  19. <text>已完成</text>
  20. </picker>
  21. </view>
  22. <view class="context">
  23. <text>工单类型</text>
  24. <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
  25. <text>{{workBigclass[workBigclassindex].text}}</text>
  26. </picker>
  27. </view>
  28. <!-- breakdownType故障原因:1车辆导致,2桩体导致,3人为导致,4基础设施问题,5其他 -->
  29. <view class="context">
  30. <text>故障原因</text>
  31. <picker class="picker" disabled="{{worksheetinfo.workStatus==6}}" bindchange="bindBreakdownType" value="{{breakdownTypeindex}}" range-key="text" range="{{breakdownType}}">
  32. <text>{{breakdownTypeindex==null?'请选择':breakdownType[breakdownTypeindex].text}}</text>
  33. </picker>
  34. </view>
  35. <view class="context">
  36. <text>维修人员</text>
  37. <input disabled="{{worksheetinfo.workStatus==6}}" bindtap='{{worksheetinfo.workStatus==6?"":"bindAccendantChange"}}' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
  38. </view>
  39. <view class="context">
  40. <text>工作内容</text>
  41. <input class='input' disabled="{{worksheetinfo.workStatus==6}}" bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
  42. </view>
  43. <view class="context">
  44. <text>预计完成时间</text>
  45. <picker class="picker1" disabled="{{worksheetinfo.workStatus==6}}" mode="date" value="{{exceptdate}}" bindchange="bindExceptdateChange">
  46. <text>{{exceptdate==null?'0000-00-00':exceptdate}}</text>
  47. </picker>
  48. <picker class="picker2" disabled="{{worksheetinfo.workStatus==6}}" mode="time" value="{{excepttime}}" bindchange="bindExcepttimeChange">
  49. <text>{{excepttime==null?'00:00':excepttime}}:00</text>
  50. </picker>
  51. <!-- <input class='input' type='text' value='{{worksheetinfo.exceptTime}}'></input> -->
  52. </view>
  53. <view class="context">
  54. <text>实际完成时间</text>
  55. <picker class="picker1" disabled="{{worksheetinfo.workStatus==6}}" mode="date" value="{{finishdate}}" bindchange="bindFinishdateChange">
  56. <text>{{finishdate==null?'0000-00-00':finishdate}}</text>
  57. </picker>
  58. <picker class="picker2" disabled="{{worksheetinfo.workStatus==6}}" mode="time" value="{{finishtime}}" bindchange="bindFinishtimeChange">
  59. <text>{{finishtime==null?'00:00':finishtime}}:00</text>
  60. </picker>
  61. <!-- <input class='input' type='text' value='{{worksheetinfo.finishTime}}'></input> -->
  62. </view>
  63. <view wx:if="{{pcitures.length!=0}}" class="question-images">
  64. <block wx:for="{{pcitures}}" wx:key="*this">
  65. <view class="q-image-wrap">
  66. <image wx:if="{{item.flag}}" class="q-image" src="{{item.src}}" mode="aspectFill" data-idx="{{index}}"></image>
  67. <!-- 图片缩略图 -->
  68. <image wx:if="{{!item.flag}}" class="q-image" src="https://cdgl.pjnes.com/profile/station/{{item.src}}" mode="aspectFill" data-idx="{{index}}"></image>
  69. <view wx:if="{{worksheetinfo.workStatus!=6}}" class="q-image-remover" data-idx="{{index}}" bindtap="removePciture">删除</view>
  70. </view>
  71. </block>
  72. </view>
  73. <view wx:if="{{images.length!=0}}" class="question-images">
  74. <block wx:for="{{images}}" wx:key="*this">
  75. <view class="q-image-wrap">
  76. <!-- 图片缩略图 -->
  77. <image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleImagePreview"></image>
  78. <!-- 移除图片的按钮 -->
  79. <view class="q-image-remover" data-idx="{{index}}" bindtap="removeImage">删除</view>
  80. </view>
  81. </block>
  82. </view>
  83. <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
  84. <text>添加照片</text>
  85. <view class="add" bindtap='openImage' hover-class='active'>
  86. <text>+</text>
  87. </view>
  88. </view>
  89. <view wx:if="{{signs.length!=0}}" class="question-images">
  90. <block wx:for="{{signs}}" wx:key="*this">
  91. <view class="q-image-wrap">
  92. <!-- 图片缩略图 -->
  93. <image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleSignPreview"></image>
  94. <!-- 移除图片的按钮 -->
  95. <view class="q-image-remover" data-idx="{{index}}" bindtap="removeSign">删除</view>
  96. </view>
  97. </block>
  98. </view>
  99. <view class="context_image" wx:if="{{worksheetinfo.workStatus!=6}}">
  100. <text>签名</text>
  101. <view class="add" bindtap='openSign' hover-class='active'>
  102. <text>+</text>
  103. </view>
  104. </view>
  105. </scroll-view>
  106. <button wx:if="{{worksheetinfo.workStatus!=6}}" bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>