worksheetinfo.wxml 7.0 KB

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