info.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <!--<div class="ibox-title">-->
  7. <!--<h5>{$modeName}任务详情</h5>-->
  8. <!--<div class="ibox-tools">-->
  9. <!--<a class="toback" href="{:url('index',['mode'=>$mode])}">-->
  10. <!--返回上一页-->
  11. <!--</a>-->
  12. <!--</div>-->
  13. <!--</div>-->
  14. <div class="ibox-content">
  15. <h5>任务信息</h5>
  16. <table class="table">
  17. <tbody>
  18. <tr>
  19. <th style="width:130px ">任务名称</th><td>{$info['title']}</td>
  20. </tr>
  21. <tr>
  22. <th>开始时间</th><td>{$info['start_time']}</td>
  23. </tr>
  24. <tr>
  25. <th>结束时间</th><td>{$info['end_time']}</td>
  26. </tr>
  27. <tr>
  28. <th>执行人员</th><td>{$info['task_user']}</td>
  29. </tr>
  30. <tr>
  31. <th>所属分类</th><td>{$info['cateName']}</td>
  32. </tr>
  33. <tr>
  34. <th>任务状态</th>
  35. {if condition="$info['status'] eq 0"}
  36. <td>未执行</td>
  37. {elseif condition="$info['status'] eq 1"}
  38. <td>执行中</td>
  39. {elseif condition="$info['status'] eq 2"}
  40. <td>已完成</td>
  41. {elseif condition="$info['status'] eq 3"}
  42. <td>未完成</td>
  43. {elseif condition="$info['status'] eq 5"}
  44. <td>中断</td>
  45. {elseif condition="$info['status'] eq 6"}
  46. <td>已关闭</td>
  47. {/if}
  48. </tr>
  49. {if $info['status']==5}
  50. <tr>
  51. <th>中断原因</th><td>{$info['interrupt_reson']}</td>
  52. </tr>
  53. <tr>
  54. <th>中断图片</th><td><img src="{$info['interrupt_img']}" onclick="open_img(this)" style="width: 80px;height: 60px;" ></td>
  55. </tr>
  56. {/if}
  57. <tr>
  58. <th>是否按顺序执行</th>
  59. {if condition="$info['in_order'] eq 0"}
  60. <td>否</td>
  61. {elseif condition="$info['in_order'] eq 1"}
  62. <td>是</td>
  63. {/if}
  64. </tr>
  65. </tbody>
  66. </table>
  67. <div id="vue-plan">
  68. <p><br></p>
  69. <h5>{$modeName}路线</h5>
  70. <hr>
  71. <el-steps direction="vertical">
  72. {volist name="info['addrForms']" id="v"}
  73. <el-step title="{$v.addrTitle}【{$v.formTitle}】">
  74. <div slot="description">
  75. {empty name="v['record']"}
  76. 暂无记录
  77. <p><br></p>
  78. {else /}
  79. <p><br></p>
  80. <table class="table">
  81. <tr>
  82. <td style="width: 100px;">{$modeName}时间</td>
  83. <td>{$v['record']['create_time']}</td>
  84. </tr>
  85. <tr>
  86. <td>执行人员</td>
  87. <td>{$v['record']['uname']}</td>
  88. </tr>
  89. <tr>
  90. <td>状态</td>
  91. <td>
  92. {eq name="$v['record']['is_normal']" value="0"}正常{else /}异常{/eq}
  93. </td>
  94. </tr>
  95. {eq name="info['in_order']" value="1"}
  96. <tr>
  97. <td>时间状态</td>
  98. <td>
  99. {eq name="$v['record']['time']" value="0"}正常{else /}异常{/eq}
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>标准完成时间段</td>
  104. <td>
  105. {$v['record']['min']} ~ {$v['record']['max']} 分
  106. </td>
  107. </tr>
  108. <tr>
  109. <td>实际完成时间</td>
  110. <td>
  111. {$v['record']['wc_time']} 分
  112. </td>
  113. </tr>
  114. {/eq}
  115. <tr>
  116. <td>检查项</td>
  117. <td>
  118. {volist name="v['record']['check_json']" id="voo" key="kkk"}
  119. <div>{$voo.title}</div>
  120. <table class="table table-bordered">
  121. <thead>
  122. <tr>
  123. <th>序号</th>
  124. <th>内容</th>
  125. <th>完成</th>
  126. </tr>
  127. </thead>
  128. {volist name="voo['forms']" id="vo" key="k"}
  129. <tr>
  130. <td width="10%">{$k+1}</td>
  131. <td width="45%">{$vo['title']}</td>
  132. <td width="45%">
  133. {eq name="vo['type']" value="1"}
  134. {$vo.result}
  135. {else /}
  136. {eq name="vo['result']" value="1"}
  137. <input type="checkbox" checked disabled>
  138. {else /}
  139. <input type="checkbox" disabled>
  140. {/eq}
  141. {/eq}
  142. </td>
  143. </tr>
  144. {/volist}
  145. </table>
  146. {/volist}
  147. </td>
  148. </tr>
  149. {if !empty($v['record']['img'])}
  150. <tr>
  151. <td>图片</td>
  152. <td> {foreach ($v['record']['img'] as $key=>$val)}
  153. <img onclick="open_img(this)" src="{$val}" width="80" height="80">
  154. {/foreach}
  155. </td>
  156. </tr>
  157. {/if}
  158. </table>
  159. {/empty}
  160. </div>
  161. </el-step>
  162. {/volist}
  163. </el-steps>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. {/block}
  169. {block name="script"}
  170. <script>
  171. new Vue({
  172. el: '#vue-plan',
  173. data: function() {
  174. return {
  175. }
  176. },
  177. watch: {
  178. },
  179. computed: {
  180. },
  181. created(){
  182. },
  183. methods: {
  184. }
  185. })
  186. </script>
  187. {/block}