worksheetinfo.wxml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!--pages/worksheetinfo/worksheetinfo.wxml-->
  2. <scroll-view scroll-y='true'>
  3. <view class="context">
  4. <text>场站</text>
  5. <view class='input' type='text'>
  6. <!-- 有清除按钮 -->
  7. <view disabled="{{workstatusFinished}}" class="span_withclear" bindtap='{{workstatusFinished?"":"chargStationNameSelect"}}' wx:if="{{!chargStationNameClearFlag}}">{{chargStationName}}</view>
  8. <image class='img_clear' bindtap='{{workstatusFinished?"":"clear_chargStationName"}}' src="/images/clear.png" wx:if="{{!chargStationNameClearFlag}}"></image>
  9. <!-- 木有清除按钮 -->
  10. <view class="span_withoutclear" bindtap='{{workstatusFinished?"":"chargStationNameSelect"}}' wx:if="{{chargStationNameClearFlag}}">请选择</view>
  11. </view>
  12. <!-- <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindChargstationsChange" value="{{chargstationsindex}}" range-key="chargStationName" range="{{chargstations}}">
  13. <text>{{chargstations[chargstationsindex].chargStationName}}</text>
  14. </picker> -->
  15. </view>
  16. <view class="context">
  17. <text>地址</text>
  18. <input class='input' disabled="{{workstatusFinished}}" bindinput='bindMainLocationInput' type='text' value='{{worksheetinfo.mainLocation}}'></input>
  19. </view>
  20. <view class="context">
  21. <text>工单状态</text>
  22. <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindWorkstatusChange" value="{{workstatusindex}}" range-key="text" range="{{workstatus}}">
  23. <text wx:if="{{worksheetinfo.workStatus == 7}}">完成工单</text>
  24. <text wx:else="">{{workstatus[workstatusindex].text}}</text>
  25. </picker>
  26. <!-- <picker wx:if="{{workstatusFinished}}" disabled="true" class="picker" range-key="text" >
  27. <text>已完成</text>
  28. </picker> -->
  29. </view>
  30. <view class="context">
  31. <text>工单大类</text>
  32. <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
  33. <text>{{workBigclass[workBigclassindex].text}}</text>
  34. </picker>
  35. </view>
  36. <view class="context">
  37. <text>工单小类</text>
  38. <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindwokSmallclassChange" value="{{wokSmallclassindex}}" range-key="text" range="{{wokSmallclass}}">
  39. <text>{{wokSmallclass[wokSmallclassindex].text}}</text>
  40. </picker>
  41. </view>
  42. <!-- <view class="context">
  43. <text>工单类型</text>
  44. <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindWorkBigclassChange" value="{{workBigclassindex}}" range-key="text" range="{{workBigclass}}">
  45. <text>{{workBigclass[workBigclassindex].text}}</text>
  46. </picker>
  47. </view> -->
  48. <!-- breakdownType故障原因:1车辆导致,2桩体导致,3人为导致,4基础设施问题,5其他 -->
  49. <view class="context">
  50. <text>故障原因</text>
  51. <picker class="picker" disabled="{{workstatusFinished}}" bindchange="bindBreakdownType" value="{{breakdownTypeindex}}" range-key="text" range="{{breakdownType}}">
  52. <text>{{breakdownTypeindex==null?'请选择':breakdownType[breakdownTypeindex].text}}</text>
  53. </picker>
  54. </view>
  55. <view class="context">
  56. <text>维修人员</text>
  57. <input disabled="{{workstatusFinished}}" bindtap='{{workstatusFinished?"":"bindAccendantChange"}}' class='input' type='text' value='{{worksheetinfo.accendant}}'></input>
  58. </view>
  59. <view class="context">
  60. <text>工作内容</text>
  61. <input class='input' disabled="{{workstatusFinished}}" bindinput='bindContentInput' type='text' value='{{worksheetinfo.content}}'></input>
  62. </view>
  63. <view class="context">
  64. <text>预计完成时间</text>
  65. <!-- <picker class="picker1" disabled="{{workstatusFinished}}" mode="date" value="{{exceptdate}}" bindchange="bindExceptdateChange">
  66. <text>{{exceptdate==null?'0000-00-00':exceptdate}}</text>
  67. </picker>
  68. <picker class="picker2" disabled="{{workstatusFinished}}" mode="time" value="{{excepttime}}" bindchange="bindExcepttimeChange">
  69. <text>{{excepttime==null?'00:00':excepttime}}:00</text>
  70. </picker> -->
  71. <datepicker wx:if="{{!workstatusFinished}}" params="{{exceptparams}}" bind:getDateString="bindExceptparamsChange" style="width: 100%;"/>
  72. <input wx:if="{{workstatusFinished}}" class='input' type='text' value='{{exceptparams.pText}}' disabled="{{workstatusFinished}}"></input>
  73. </view>
  74. <view class="context">
  75. <text>工作完成截止时间</text>
  76. <!-- <picker class="picker1" disabled="{{worksheetinfo.workStatus==6}}" mode="date" value="{{finishdate}}" bindchange="bindFinishdateChange">
  77. <text>{{finishdate==null?'0000-00-00':finishdate}}</text>
  78. </picker>
  79. <picker class="picker2" disabled="{{worksheetinfo.workStatus==6}}" mode="time" value="{{finishtime}}" bindchange="bindFinishtimeChange">
  80. <text>{{finishtime==null?'00:00':finishtime}}:00</text>
  81. </picker> -->
  82. <datepicker wx:if="{{!workstatusFinished}}" params="{{workEndtimeParams}}" bind:getDateString="bindworkEndtimeParamsChange" style="width: 100%;"/>
  83. <input wx:if="{{workstatusFinished}}" class='input' type='text' value='{{workEndtimeParams.pText}}' disabled="{{workstatusFinished}}"></input>
  84. <!-- <input class='input' type='text' value='{{worksheetinfo.finishTime}}'></input> -->
  85. </view>
  86. <view class="context">
  87. <text>实际完成时间</text>
  88. <!-- <picker class="picker1" disabled="{{workstatusFinished}}" mode="date" value="{{finishdate}}" bindchange="bindFinishdateChange">
  89. <text>{{finishdate==null?'0000-00-00':finishdate}}</text>
  90. </picker>
  91. <picker class="picker2" disabled="{{workstatusFinished}}" mode="time" value="{{finishtime}}" bindchange="bindFinishtimeChange">
  92. <text>{{finishtime==null?'00:00':finishtime}}:00</text>
  93. </picker> -->
  94. <datepicker wx:if="{{!workstatusFinished}}" params="{{finishparams}}" bind:getDateString="bindFinishparamsChange" style="width: 100%;"/>
  95. <input wx:if="{{workstatusFinished}}" class='input' type='text' value='{{finishparams.pText}}' disabled="{{workstatusFinished}}"></input>
  96. </view>
  97. <view wx:if="{{pcitures.length!=0}}" class="question-images">
  98. <block wx:for="{{pcitures}}" wx:key="this">
  99. <view class="q-image-wrap">
  100. <!-- <image wx:if="{{item.flag}}" class="q-image" src="{{item.src}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleSignPreview" ddd="1"></image>
  101. <!-- 图片缩略图 -->
  102. <!-- <image wx:if="{{!item.flag}}" class="q-image" src="{{item.url}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleSignPreview" ddd="2"></image> -->
  103. <image bindtap="handlePcituresPreview" class="q-image" src="{{item.url}}" mode="aspectFill" data-idx="{{index}}" ></image>
  104. <view wx:if="{{!workstatusFinished}}" class="q-image-remover" data-idx="{{index}}" bindtap="removePciture">删除</view>
  105. </view>
  106. </block>
  107. </view>
  108. <view wx:if="{{images.length!=0}}" class="question-images">
  109. <block wx:for="{{images}}" wx:key="this">
  110. <view class="q-image-wrap">
  111. <!-- 图片缩略图 -->
  112. <!-- <image bindtap="handleImagePreview" class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" /> -->
  113. <image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleImagePreview"></image>
  114. <!-- 移除图片的按钮 -->
  115. <view class="q-image-remover" data-idx="{{index}}" bindtap="removeImage">删除</view>
  116. </view>
  117. </block>
  118. </view>
  119. <view class="context_image" wx:if="{{!workstatusFinished}}">
  120. <text>添加照片</text>
  121. <view class="add" bindtap='openImage' hover-class='active'>
  122. <text>+</text>
  123. </view>
  124. </view>
  125. <view wx:if="{{signs.length!=0}}" class="question-images">
  126. <block wx:for="{{signs}}" wx:key="*this">
  127. <view class="q-image-wrap">
  128. <!-- 图片缩略图 -->
  129. <image class="q-image" src="{{item}}" mode="aspectFill" data-idx="{{index}}" bindtap="handleSignPreview"></image>
  130. <!-- 移除图片的按钮 -->
  131. <view class="q-image-remover" data-idx="{{index}}" bindtap="removeSign">删除</view>
  132. </view>
  133. </block>
  134. </view>
  135. <view class="context_image" wx:if="{{!workstatusFinished}}">
  136. <text>签名</text>
  137. <view class="add" bindtap='openSign' hover-class='active'>
  138. <text>+</text>
  139. </view>
  140. </view>
  141. </scroll-view>
  142. <button wx:if="{{!workstatusFinished}}" bindtap='bindWorkSheetSubmit' class='submitbutton'>提交</button>