worksheetinfo.wxml 5.8 KB

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