运维小程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

index.wxml 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!--pages/workorder/index.wxml-->
  2. <view class="setup">
  3. <view class="workorder_list">
  4. <view class="owner_type1">
  5. <view class="calculation_strategy">
  6. <text style="color: red;margin-right: 8rpx;">*</text>工单标题
  7. </view>
  8. <view class="event">
  9. <view class="switch-container">
  10. <view class="owner_easyinput1">
  11. <view class="calculation_use">
  12. <input class="uni-mt-5" trim="all" value="{{workorderName}}" clearSize="0"
  13. placeholder="请输入工单标题" bindinput="onPeakprice"></input>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="owner_type1">
  20. <picker bindchange="bindeventChange" value="{{index}}" range="{{array}}">
  21. <view class="calculation_top">
  22. <view class="calculation_left">
  23. <text style="color: red;margin-right: 8rpx;">*</text>事件
  24. </view>
  25. <view class="event">
  26. <view class="uni-input">{{array[index]}}</view>
  27. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  28. </view>
  29. </view>
  30. </picker>
  31. </view>
  32. <view class="owner_type1">
  33. <picker mode="date" value="{{datestart}}" start="2000-01-01" end="2060-09-01" bindchange="bindstartChange">
  34. <view class="calculation_top">
  35. <view class="calculation_left">
  36. <text style="color: red;margin-right: 8rpx;">*</text>
  37. 开始时间
  38. </view>
  39. <view class="event">
  40. <view class="uni-inputcolor" wx:if="{{datestart==''}}">请选择开始时间</view>
  41. <view class="uni-input" wx:else>{{datestart}}</view>
  42. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  43. </view>
  44. </view>
  45. </picker>
  46. </view>
  47. <view class="owner_type1">
  48. <picker mode="date" value="{{dateend}}" start="2000-01-01" end="2060-09-01" bindchange="bindendChange">
  49. <view class="calculation_top">
  50. <view class="calculation_left">
  51. <text style="color: red;margin-right: 8rpx;">*</text>
  52. 结束时间
  53. </view>
  54. <view class="event">
  55. <view class="uni-inputcolor" wx:if="{{dateend==''}}">请选择结束时间</view>
  56. <view class="uni-input" wx:else>{{dateend}}</view>
  57. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  58. </view>
  59. </view>
  60. </picker>
  61. </view>
  62. <!-- <view class="owner_type1">
  63. <picker bindchange="bindPickerChange" value="{{typeindex}}" range="{{typelist}}">
  64. <view class="calculation_top">
  65. <view class="calculation_left">
  66. <text style="color: red;margin-right: 8rpx;">*</text>类型
  67. </view>
  68. <view class="event">
  69. <view class="uni-input">{{typelist[typeindex]}}</view>
  70. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  71. </view>
  72. </view>
  73. </picker>
  74. </view> -->
  75. <view class="owner_type1">
  76. <picker bindchange="bindpowerChange" value="{{powerindex}}" range="{{powerdata}}" range-key="powerstationName">
  77. <view class="calculation_top">
  78. <view class="calculation_left">
  79. <text style="color: red;margin-right: 8rpx;">*</text>电站
  80. </view>
  81. <view class="event">
  82. <view class="uni-input" wx:if="{{powerdata[powerindex].powerstationName}}">{{powerdata[powerindex].powerstationName}}</view>
  83. <view class="uni-inputcolor" wx:else>请选择电站</view>
  84. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  85. </view>
  86. </view>
  87. </picker>
  88. </view>
  89. <view class="owner_type1">
  90. <!-- <view class="owner_type1" > -->
  91. <!-- <picker disabled="{{namelist.length == 0}}" value="{{nameindex}}" range="{{namelist}}" range-key="partnerName" bindchange="bindPickerChange"> -->
  92. <view class="calculation_top" bind:tap="{{namelist.length > 0 ? 'bindPickerChange' : 'showEmptyTip'}}">
  93. <view class="calculation_left">
  94. <text style="color: red;margin-right: 8rpx;">*</text>处理人
  95. </view>
  96. <view class="event">
  97. <view class="events">
  98. <view class="inputpartnerName" wx:for="{{checkedItems}}" wx:key="index">{{item.partnerName}}</view>
  99. <view class="uni-inputcolor" wx:if="{{checkedItems.length==0}}">请选择处理人</view>
  100. </view>
  101. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  102. </view>
  103. </view>
  104. <!-- </picker> -->
  105. </view>
  106. <view class="owner_type1">
  107. <!-- <picker disabled="{{namelist.length == 0}}" bindchange="binddeviceChange" value="{{deviceindex}}" range="{{devicedata}}" range-key="devicesName"> -->
  108. <view class="calculation_top" bind:tap="{{namelist.length > 0 ? 'binddeviceChange' : 'showEmptyTip'}}">
  109. <view class="calculation_left">
  110. <text style="color: red;margin-right: 8rpx;">*</text>设备/巡检
  111. </view>
  112. <view class="event">
  113. <view class="events">
  114. <view class="inputpartnerName" wx:for="{{equipmentItems}}" wx:key="index">{{item.devicesName}}</view>
  115. <view class="uni-inputcolor" wx:if="{{equipmentItems.length==0}}">请选择设备/巡检</view>
  116. </view>
  117. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  118. </view>
  119. </view>
  120. <!-- </picker> -->
  121. </view>
  122. <view class="owner_type1">
  123. <view class="calculation_strategy">
  124. <text style="color: red;margin-right: 8rpx;">*</text>工单优先级
  125. </view>
  126. <view class="calculation_capsule">
  127. <t-radio-group default-value="{{priority}}" borderless t-class="box" bindchange="onradio">
  128. <t-radio block="{{false}}" label="低" value="1" />
  129. <t-radio block="{{false}}" label="中" value="2" />
  130. <t-radio block="{{false}}" label="高" value="3" />
  131. </t-radio-group>
  132. </view>
  133. </view>
  134. <view class="owner_type1" wx:if="{{index==1}}">
  135. <view class="calculation_strategy">
  136. <text style="color: red;margin-right: 8rpx;">*</text>报修地点
  137. </view>
  138. <view class="event">
  139. <view class="switch-container">
  140. <view class="owner_easyinput1">
  141. <view class="calculation_usebox">
  142. <input class="uni-mt-5" trim="all" value="{{workorderAddress}}" clearSize="0"
  143. placeholder="请输入报修地点" bindinput="onaddress"></input>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. <view class="owner_type1x">
  150. <view class="calculation_strategy">
  151. 附件上传
  152. </view>
  153. <view class="event">
  154. <view class="switch-container">
  155. <view class="owner_easyinput1">
  156. <view class="calculation_imagebox" wx:if="{{partnerAvite}}" wx:for="{{partnerAvite}}" wx:key="index">
  157. <image class="calculation_image" src="{{item}}" mode="aspectFit" data-src="{{item}}" bindtap="previewImage"/>
  158. <t-icon class="calculation_imagex" data-index="{{index}}" bind:tap="bindCancel" name="close-circle" size="30rpx" data-name="close-circle"/>
  159. </view>
  160. <view class="calculation_usebox1" bind:tap="bindtoImage">
  161. <t-icon name="add" size="100rpx" data-name="add"/>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <view class="owner_type2">
  168. <view class="calculation_strategy">
  169. <text style="color: red;margin-right: 20rpx;"></text>描述
  170. </view>
  171. <view class="calculation_capsule1">
  172. <t-textarea
  173. t-class="external-class"
  174. placeholder="请输入描述"
  175. maxlength="200"
  176. value="{{workorderContent}}"
  177. disableDefaultPadding="{{true}}"
  178. indicator
  179. bindchange="ontextarea"
  180. />
  181. </view>
  182. </view>
  183. </view>
  184. <view style="height: 200rpx;"></view>
  185. </view>
  186. <view class="workorder_box">
  187. <view class="workorder" bind:tap="onworkorder">提交</view>
  188. </view>
  189. <t-popup visible="{{equipment}}" bind:visible-change="onVisibleChange" placement="bottom">
  190. <view class="block">
  191. <view class="header">
  192. <view class="btn btn--cancel" aria-role="button" bind:tap="onVisibleChange">取消</view>
  193. <view class="title">设备/巡检</view>
  194. <view class="btn btn--confirm" aria-role="button" bind:tap="Indeedbutton2">确定</view>
  195. </view>
  196. <scroll-view scroll-y="true" class="checkbox">
  197. <view wx:for="{{devicedata}}" wx:key="index" data-index="{{index}}" bind:tap="togequipment">
  198. <view class="weui-cell">
  199. <view>{{item.devicesName}}</view>
  200. <view class="weui-cell__bd" wx:if="{{item.isChecked}}">✔</view>
  201. </view>
  202. </view>
  203. </scroll-view>
  204. </view>
  205. </t-popup>
  206. <t-popup visible="{{visible}}" bind:visible-change="onVisibleChange" placement="bottom">
  207. <view class="block">
  208. <view class="header">
  209. <view class="btn btn--cancel" aria-role="button" bind:tap="onVisibleChange">取消</view>
  210. <view class="title">处理人</view>
  211. <view class="btn btn--confirm" aria-role="button" bind:tap="Indeedbutton1">确定</view>
  212. </view>
  213. <scroll-view scroll-y="true" class="checkbox">
  214. <view wx:for="{{namelist}}" wx:key="index" data-index="{{index}}" bind:tap="toggleCheck">
  215. <view class="weui-cell" style="background-color: {{item.isChecked?'rgba(60, 158, 250, 0.1)':''}};">
  216. <view>{{item.partnerName}}</view>
  217. <view class="weui-cell__bd" wx:if="{{item.isChecked}}">✔</view>
  218. </view>
  219. </view>
  220. </scroll-view>
  221. </view>
  222. </t-popup>