运维小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 bindcolumnchange="bindcolumn" 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 bindcolumnchange="bindcolumn" value="{{nameindex}}" range="{{namelist}}" range-key="partnerName" bindchange="bindPickerChange">
  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" wx:if="{{namelist[nameindex].partnerName}}">{{namelist[nameindex].partnerName}}</view>
  70. <view class="uni-inputcolor" wx:else>请选择处理人</view>
  71. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  72. </view>
  73. </view>
  74. </picker>
  75. </view>
  76. <!-- <view class="owner_type1">
  77. <picker bindcolumnchange="bindcolumn" bindchange="bindPickerChange" value="{{typeindex}}" range="{{typelist}}">
  78. <view class="calculation_top">
  79. <view class="calculation_left">
  80. <text style="color: red;margin-right: 8rpx;">*</text>类型
  81. </view>
  82. <view class="event">
  83. <view class="uni-input">{{typelist[typeindex]}}</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. <picker bindcolumnchange="bindcolumn" bindchange="binddeviceChange" value="{{deviceindex}}" range="{{devicedata}}" range-key="devicesName">
  91. <view class="calculation_top">
  92. <view class="calculation_left">
  93. <text style="color: red;margin-right: 8rpx;">*</text>设备/巡检
  94. </view>
  95. <view class="event">
  96. <view class="uni-input" wx:if="{{devicedata[deviceindex].devicesName}}">{{devicedata[deviceindex].devicesName}}</view>
  97. <view class="uni-inputcolor" wx:else>请选择设备/巡检</view>
  98. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  99. </view>
  100. </view>
  101. </picker>
  102. </view>
  103. <view class="owner_type1">
  104. <view class="calculation_strategy">
  105. <text style="color: red;margin-right: 8rpx;">*</text>工单优先级
  106. </view>
  107. <view class="calculation_capsule">
  108. <t-radio-group default-value="{{priority}}" borderless t-class="box" bindchange="onradio">
  109. <t-radio block="{{false}}" label="低" value="1" />
  110. <t-radio block="{{false}}" label="中" value="2" />
  111. <t-radio block="{{false}}" label="高" value="3" />
  112. </t-radio-group>
  113. </view>
  114. </view>
  115. <view class="owner_type1">
  116. <view class="calculation_strategy">
  117. <text style="color: red;margin-right: 8rpx;">*</text>报修地点
  118. </view>
  119. <view class="event">
  120. <view class="switch-container">
  121. <view class="owner_easyinput1">
  122. <view class="calculation_usebox">
  123. <input class="uni-mt-5" trim="all" value="{{workorderAddress}}" clearSize="0"
  124. placeholder="请输入报修地点" bindinput="onaddress"></input>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="owner_type1x">
  131. <view class="calculation_strategy">
  132. 附件上传
  133. </view>
  134. <view class="event">
  135. <view class="switch-container">
  136. <view class="owner_easyinput1">
  137. <view class="calculation_imagebox" wx:if="{{partnerAvite}}" wx:for="{{partnerAvite}}" wx:key="index">
  138. <image class="calculation_image" src="{{item}}" mode="aspectFit" data-src="{{item}}" bindtap="previewImage"/>
  139. <t-icon class="calculation_imagex" data-index="{{index}}" bind:tap="bindCancel" name="close-circle" size="30rpx" data-name="close-circle"/>
  140. </view>
  141. <view class="calculation_usebox1" bind:tap="bindtoImage">
  142. <t-icon name="add" size="100rpx" data-name="add"/>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="owner_type2">
  149. <view class="calculation_strategy">
  150. <text style="color: red;margin-right: 20rpx;"></text>描述
  151. </view>
  152. <view class="calculation_capsule1">
  153. <t-textarea
  154. t-class="external-class"
  155. placeholder="请输入描述"
  156. maxlength="200"
  157. value="{{workorderContent}}"
  158. disableDefaultPadding="{{true}}"
  159. indicator
  160. bindchange="ontextarea"
  161. />
  162. </view>
  163. </view>
  164. </view>
  165. <view style="height: 200rpx;"></view>
  166. </view>
  167. <view class="workorder_box">
  168. <view class="workorder" bind:tap="onworkorder">提交</view>
  169. </view>