addworksheetinfo.wxml 6.4 KB

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