运维小程序
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.wxml 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <!-- <image class="calculation" src="https://esos-iot.com/myminio/project/a6546181416e4ca5a266b3b5ce31c335.jpg" mode="widthFix"/> -->
  2. <!-- <view class="side-bar-wrapper" style="height: calc(100vh - {{navbarHeight}}px)">
  3. </view> -->
  4. <view class="workorder">
  5. <t-tabs value="{{tabsindex}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" split="{{false}}">
  6. <t-tab-panel label="待办" value="1,2" />
  7. <t-tab-panel label="办结" value="3" />
  8. <t-tab-panel label="全部" value="0" />
  9. </t-tabs>
  10. <view bind:tap="onfilter">
  11. <t-icon name="filter" size="50rpx" color="#585CE5" data-name="filter" />
  12. </view>
  13. </view>
  14. <view style="height: 100rpx;"></view>
  15. <view class="examine_list">
  16. <view class="examine_box" wx:for="{{reviewdata}}" wx:key="index" data-id="{{item.id}}" data-workorderId="{{item.workorderId}}" bind:tap="ondetails">
  17. <view class="examine_title">
  18. <view class="examine_title0" wx:if="{{item.type==1}}">日常<text style="padding: 0rpx 10rpx;">/</text><text wx:if="{{item.workorderGrade==1}}"> 低</text><text wx:if="{{item.workorderGrade==2}}"> 中</text><text wx:if="{{item.workorderGrade==3}}"> 高</text></view>
  19. <view class="examine_title01" wx:if="{{item.type==2}}">故障 <text style="padding: 0rpx 10rpx;">/</text> <text wx:if="{{item.workorderGrade==1}}"> 低</text><text wx:if="{{item.workorderGrade==2}}"> 中</text><text wx:if="{{item.workorderGrade==3}}"> 高</text></view>
  20. <view class="examine_title02" wx:if="{{item.type==3}}">其他<text style="padding: 0rpx 10rpx;">/</text> <text wx:if="{{item.workorderGrade==1}}"> 低</text><text wx:if="{{item.workorderGrade==2}}"> 中</text><text wx:if="{{item.workorderGrade==3}}"> 高</text></view>
  21. <view class="examine_title1">{{item.workorderName}}</view>
  22. <view class="process_bj2" wx:if="{{item.workorderType==1}}">待处理</view>
  23. <view class="process_bj3" wx:if="{{item.workorderType==2}}">处理中</view>
  24. <view class="examine_title2" wx:if="{{item.workorderType==3}}">处理完成</view>
  25. <!-- <view class="examine_title2" wx:if="{{item.workorderType==3&&item.examineType==5}}">待审核</view>
  26. <view class="examine_title2" wx:if="{{item.workorderType==3&&item.examineType==6}}">审核完成</view>
  27. <view class="examine_title2" wx:if="{{item.workorderType==3&&item.examineType==7}}">审核失败</view> -->
  28. </view>
  29. <view class="examine_content">
  30. <view class="examine_name">描述:{{item.workorderContent}}</view>
  31. <view class="feedback examine_name" wx:if="{{item.examineType==7}}">退回原因:{{item.workoderReason}}</view>
  32. <view class="feedback examine_name" wx:if="{{item.examineCount!=0&&item.examineType!=7}}">退回原因:{{item.lastfail||'无'}}</view>
  33. </view>
  34. <view class="examine_titletop">
  35. <view style="margin-right: 6rpx;">工单所属:</view>
  36. <view>{{item.powerstationName}}</view>
  37. </view>
  38. <view class="examine_bottom">
  39. <view class="examine_bottompro">
  40. <view style="display: flex;">
  41. <view class="promoter">
  42. <view class="promoter_people">发起人</view>
  43. <view class="promoter_name">{{item.workorderPromoter}}</view>
  44. </view>
  45. <view class="promoter_right">
  46. <view class="promoter_people">发起时间</view>
  47. <view class="promoter_name">{{item.workorderTime}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="promoter_review">
  52. <view class="Undo" data-id="{{item.workorderId}}" wx:if="{{item.promoterId==partnerPosition.partnerId&&item.workorderType==1||item.promoterId==partnerPosition.partnerId&&item.workorderType==2}}" catch:tap="onUndo">撤消</view>
  53. <text class="promoter_review_color" wx:if="{{item.workorderType==3&&item.examineType==5}}">待审核</text>
  54. <text class="promoter_review_color" wx:if="{{item.workorderType==3&&item.examineType==6}}">审核完成</text>
  55. <text class="promoter_review_colors" wx:if="{{item.workorderType==3&&item.examineType==7}}">审核失败</text>
  56. </view>
  57. </view>
  58. <!-- <view class="examine_button">
  59. <view class="examine_buttonleft">通过</view>
  60. <view class="examine_buttonright">不通过</view>
  61. </view> -->
  62. </view>
  63. <view class="available" wx:if="{{reviewdata.length==0}}">
  64. <image src="https://esos-iot.com/myminio/project/9efa1691f71a48b6ae20648c0a2dae56.png" mode="aspectFit"/>
  65. </view>
  66. <view style="height: 160rpx;"></view>
  67. </view>
  68. <t-popup
  69. visible="{{visible}}"
  70. bind:visible-change="onVisibleChange"
  71. placement="right"
  72. >
  73. <view class="filter">
  74. <view class="mtinput">
  75. <input class="uni-mt-5" trim="all" value="{{workorderName}}" clearSize="0"
  76. placeholder="请输入工单标题" bindinput="onPeakprice"></input>
  77. </view>
  78. <!-- <view class="owner_type1">
  79. <picker bindchange="bindPickerChange" value="{{index}}" range="{{objectArray}}" range-key="powerstationName">
  80. <view class="picker">
  81. {{objectArray[index].powerstationName}}
  82. <t-icon class="chevron_down" name="chevron-down" size="40rpx" data-name="chevron-down"/>
  83. </view>
  84. </picker>
  85. </view> -->
  86. <view class="owner_type1">
  87. <picker mode="date" value="{{datestart}}" start="2000-01-01" end="2060-09-01" bindchange="bindstartChange">
  88. <view class="calculation_top">
  89. <view class="calculation_left">
  90. 开始时间
  91. </view>
  92. <view class="event">
  93. <view class="uni-input">{{datestart}}</view>
  94. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  95. </view>
  96. </view>
  97. </picker>
  98. </view>
  99. <view class="owner_type1">
  100. <picker mode="date" value="{{dateend}}" start="2000-01-01" end="2060-09-01" bindchange="bindendChange">
  101. <view class="calculation_top">
  102. <view class="calculation_left">
  103. 结束时间
  104. </view>
  105. <view class="event">
  106. <view class="uni-input">{{dateend}}</view>
  107. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  108. </view>
  109. </view>
  110. </picker>
  111. </view>
  112. <view class="owner_type1">
  113. <picker bindcolumnchange="bindcolumn" bindchange="bindeventChange" value="{{index}}" range="{{array}}">
  114. <view class="calculation_top">
  115. <view class="calculation_left">
  116. 事件
  117. </view>
  118. <view class="event">
  119. <view class="uni-input">{{array[index]}}</view>
  120. <t-icon name="chevron-right" size="40rpx" data-name="chevron-right"/>
  121. </view>
  122. </view>
  123. </picker>
  124. </view>
  125. <view class="owner_type11">
  126. <view class="calculation_strategy">
  127. 工单优先级
  128. </view>
  129. <view class="calculation_capsule">
  130. <t-radio-group default-value="{{priority}}" value="{{priority}}" borderless t-class="box" bindchange="onradio">
  131. <t-radio block="{{false}}" label="低" value="0" />
  132. <t-radio block="{{false}}" label="中" value="1" />
  133. <t-radio block="{{false}}" label="高" value="2" />
  134. </t-radio-group>
  135. </view>
  136. </view>
  137. <view class="owner_type11">
  138. <view class="calculation_strategy">
  139. 审核状态
  140. </view>
  141. <view class="calculation_capsule">
  142. <t-radio-group default-value="{{examineType}}" value="{{examineType}}" borderless t-class="box" bindchange="onexamineType">
  143. <t-radio block="{{false}}" label="成功" value="6" />
  144. <t-radio block="{{false}}" label="失败" value="7" />
  145. </t-radio-group>
  146. </view>
  147. </view>
  148. <view class="workorder_box">
  149. <view class="workorder1" bind:tap="onworkorder">提交</view>
  150. <view class="workorder1" bind:tap="onreset">重置</view>
  151. </view>
  152. </view>
  153. </t-popup>
  154. <!-- -->