0
0

details.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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>详情</h5>-->
  8. <!--<div class="ibox-tools">-->
  9. <!--<a class="toback" href="{:url('index')}">-->
  10. <!--返回上一页-->
  11. <!--</a>-->
  12. <!--</div>-->
  13. <!--</div>-->
  14. <div class="ibox-content">
  15. <div style='font-size: 18px;margin-bottom: 5px'>
  16. 计划信息
  17. </div>
  18. <table class="table table-bordered">
  19. <tbody>
  20. <tr>
  21. <th style="width:90px ">任务名称</th><td>{$info['title']}</td>
  22. </tr>
  23. <tr>
  24. <th>开始时间</th><td>{$info['start_time']}</td>
  25. </tr>
  26. <tr>
  27. <th>结束时间</th><td>{$info['end_time']}</td>
  28. </tr>
  29. <tr>
  30. <th>执行人员</th><td>{$info['task_user']}</td>
  31. </tr>
  32. <tr>
  33. <th>任务状态</th>
  34. {if condition="$info['status'] eq 0"}
  35. <td>未执行</td>
  36. {elseif condition="$info['status'] eq 1"}
  37. <td>执行中</td>
  38. {elseif condition="$info['status'] eq 2"}
  39. <td>已完成</td>
  40. {elseif condition="$info['status'] eq 3"}
  41. <td>已验收</td>
  42. {elseif condition="$info['timeout'] eq 1"}
  43. <td>(超时)</td>
  44. {/if}
  45. </tr>
  46. {if $info['status'] == 3}
  47. <tr>
  48. <th>验收人</th><td>{$info['check_user_name']}</td>
  49. </tr>
  50. <tr>
  51. <th>验收日期</th><td>{$info['chek_time']}</td>
  52. </tr>
  53. <tr>
  54. <th>验收报告</th><td>{$info['check_content']}</td>
  55. </tr>
  56. {/if}
  57. </tbody>
  58. </table>
  59. </div>
  60. <div class="ibox-content">
  61. {if !empty($info['formList'])}
  62. <div class="ibox-content">
  63. <div style='font-size: 18px;margin-bottom: 5px;'>记录情况</div>
  64. <table class="table table-bordered">
  65. <thead>
  66. <tr>
  67. <th>执行人</th>
  68. <th>内容</th>
  69. <th>执行时间</th>
  70. <th>详情</th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. {foreach $info['formList'] as $k=>$v}
  75. {if $v['record']}
  76. <tr>
  77. <td>{$v['record']['real_name']}</td>
  78. <td>{$v['record']['content']}</td>
  79. <td>{$v['record']['create_time']}</td>
  80. <td><a href="{:url('subDetail',['id'=>$v['record']['id']])}">详情</a> </td>
  81. </tr>
  82. {/if}
  83. {/foreach}
  84. </tbody>
  85. </table>
  86. </div>
  87. {/if}
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. {/block}