taskVerify.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>清洁单列表</title>
  7. <meta name="description" content="">
  8. <meta name="keywords" content="">
  9. <link href="/css/ims/base.css" rel="stylesheet">
  10. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
  11. <link rel="stylesheet" type="text/css" href="/css/ims/jquery.datetimepicker.css"/>
  12. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  13. <style>
  14. .green {
  15. color: green;
  16. }
  17. .red {
  18. color: red;
  19. }
  20. .ims-box {
  21. margin: 20px;
  22. }
  23. .screen > div {
  24. float: left;
  25. margin-right: 8px;
  26. }
  27. .screen .date > input {
  28. height: 30px;
  29. border-radius: 4px;
  30. border: 1px solid #ccc;
  31. box-shadow: none;
  32. text-indent: 10px;
  33. }
  34. .screen .purposeOrderNo > input {
  35. height: 30px;
  36. border-radius: 4px;
  37. border: 1px solid #ccc;
  38. box-shadow: none;
  39. text-indent: 10px;
  40. }
  41. .screen button {
  42. padding: 4px 12px;
  43. }
  44. .table-box {
  45. margin-top: 30px;
  46. }
  47. .btn-formal-order {
  48. cursor: pointer;
  49. }
  50. .application-number-box {
  51. margin-top: 20px;
  52. text-align: center;
  53. }
  54. .application-number-box span {
  55. margin-right: 20px;
  56. }
  57. .layui-layer-btn .layui-layer-btn0 {
  58. border-color: #15ae68 !important;
  59. background-color: #15ae68 !important;
  60. color: #fff;
  61. }
  62. .btn-date_show{
  63. display: inline-block;width: 170px;overflow: hidden; text-overflow:ellipsis; white-space: nowrap;
  64. }
  65. </style>
  66. </head>
  67. <body>
  68. <div class="ims-box">
  69. <form action="<?php echo Yii::app()->createUrl('imsDevice/taskVerify'); ?>" method="get">
  70. <div class="screen">
  71. <div class="purposeOrderNo">
  72. <input type="text" placeholder="计划名称" id="epName" name="epName" value="<?php echo isset($_GET['epName'])?$_GET['epName']:'' ;?>"/>
  73. </div>
  74. <div class="diy_select">
  75. <input type="hidden" id="schoolsId" name="storageId" class="diy_select_input" value="<?php echo isset($storageId) ? $storageId : 0; ?>">
  76. <div class="diy_select_txt"><?php echo isset($storageId) && $storageId > 0 ? $page['school'][$storageId] : '请选择学校'; ?></div>
  77. <div class="diy_select_btn"></div>
  78. <ul class="diy_select_list" style="display: none;">
  79. <?php if ($page['school']): ?>
  80. <li val="" >请选择学校</li>
  81. <?php foreach ($page['school'] as $school_id => $school_name): ?>
  82. <li val="<?php echo $school_id ?>" <?php echo isset($storageId) && $storageId == $school_id ? 'class' : ''; ?>><?php echo $school_name ?></li>
  83. <?php endforeach; ?>
  84. <?php else: ?>
  85. <li val="">暂无学校</li>
  86. <?php endif; ?>
  87. </ul>
  88. </div>
  89. <div class="diy_select">
  90. <input type="hidden" id="schoolsId" name="taskStatus" class="diy_select_input" value="<?php echo (isset($status) && $status>=0) ? $status : -1; ?>">
  91. <div class="diy_select_txt"><?php echo (isset($status) && $status >= 0) ? $page['taskStatus'][$status] : '请选择任务状态'; ?></div>
  92. <div class="diy_select_btn"></div>
  93. <ul class="diy_select_list" style="display: none;">
  94. <li val="-1" >请选择任务状态</li>
  95. <li val="0" <?php echo isset($status) && $status == 0 ? 'class' : ''; ?>>未发布</li>
  96. <li val="1" <?php echo isset($status) && $status == 1 ? 'class' : ''; ?>>学管清洁中</li>
  97. <li val="2" <?php echo isset($status) && $status == 2 ? 'class' : ''; ?>>组长审核中</li>
  98. <li val="3" <?php echo isset($status) && $status == 3 ? 'class' : ''; ?>>组长审核完成</li>
  99. <li val="4" <?php echo isset($status) && $status == 4 ? 'class' : ''; ?>>设备部抽查中</li>
  100. <li val="5" <?php echo isset($status) && $status == 5 ? 'class' : ''; ?>>完成</li>
  101. <li val="6" <?php echo isset($status) && $status == 6 ? 'class' : ''; ?>>学管超时</li>
  102. <li val="7" <?php echo isset($status) && $status == 7 ? 'class' : ''; ?>>组长超时</li>
  103. </ul>
  104. </div>
  105. <div class="diy_select">
  106. <input type="hidden" id="schoolsId" name="checkResult" class="diy_select_input" value="<?php echo (isset($finalResult) && $finalResult>=0) ? $finalResult : -1; ?>">
  107. <div class="diy_select_txt"><?php echo (isset($finalResult) && $finalResult >= 0) ? $page['result'][$finalResult] : '请选择最终结果'; ?></div>
  108. <div class="diy_select_btn"></div>
  109. <ul class="diy_select_list" style="display: none;">
  110. <li val="-1" >请选择最终结果</li>
  111. <?php foreach ($page['result'] as $result_id => $result_name): ?>
  112. <li val="<?php echo $result_id ?>" <?php echo isset($finalResult) && $finalResult == $result_id ? 'class' : ''; ?>><?php echo $result_name ?></li>
  113. <?php endforeach; ?>
  114. </ul>
  115. </div>
  116. <button type="submit" class="label-primary-s bth-s">查询</button>
  117. </div>
  118. </form>
  119. <div class="table-box">
  120. <table id="intention-table"
  121. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  122. style="font-size:12px">
  123. <thead>
  124. <tr>
  125. <th>计划名称</th>
  126. <th>计划编号</th>
  127. <th>提交截止时间</th>
  128. <th>要求清洁日期</th>
  129. <th>设备编号</th>
  130. <th>设备名称</th>
  131. <th>设备状态</th>
  132. <th>任务提交时间</th>
  133. <th>状态</th>
  134. <th>最终审核结果</th>
  135. <th>组长</th>
  136. <th>组长审核意见</th>
  137. <th>学管部审核意见</th>
  138. <th>设备部审核意见</th>
  139. <th>操作</th>
  140. </tr>
  141. </thead>
  142. <tbody>
  143. <?php
  144. if ($list):
  145. if (isset($_GET['page'])) {
  146. $nowPage = $_GET['page'];
  147. }else{
  148. $nowPage = 1;
  149. }
  150. ?>
  151. <?php foreach ($list as $item): ?>
  152. <tr>
  153. <td><?php echo $item['epName'];?></td>
  154. <td><?php echo $item['epCode'];?></td>
  155. <td><?php echo $item['coachDate'];?></td>
  156. <td><?php echo $item['epDate'];?></td>
  157. <td><?php echo $item['fixedCode'];?></td>
  158. <td><?php echo $item['itemName'];?></td>
  159. <td><?php echo $item['fixedStatus'];?></td>
  160. <td><?php echo $item['coachRealDate'];?></td>
  161. <td><?php echo $item['statusName'];?></td>
  162. <td><?php echo $item['finalResultName'];?></td>
  163. <td><?php echo $item['groupName'];?></td>
  164. <td><?php echo $item['groupCheckResultName'];?></td>
  165. <td><?php echo $item['recheckResultName'];?></td>
  166. <td><?php echo $item['spotCheckResultName'];?></td>
  167. <td><?php if($item['status'] == 2)echo '<a href="'.$this->createUrl('imsDevice/taskView',array('epsId'=>$item['epsId'], 'isGroup'=>1,'page'=>$nowPage)).'">审核</a>' ;elseif($item['status'] > 2) echo '<a href="'.$this->createUrl('imsDevice/taskView',array('epsId'=>$item['epsId'], 'isGroup'=>2)).'">查看</a>';?></td>
  168. <input type="hidden" id="epsId" />
  169. </tr>
  170. <?php endforeach; ?>
  171. <?php endif; ?>
  172. </tbody>
  173. </table>
  174. <?php if ($page): ?>
  175. <div class="col-sm-12">
  176. <ul class="pagination">
  177. <?php
  178. $params = array();
  179. if (isset($_GET['epName']) && $_GET['epName']) {
  180. $params['epName'] = $_GET['epName'];
  181. }
  182. if (isset($_GET['storageId']) && $_GET['storageId']) {
  183. $params['storageId'] = $_GET['storageId'];
  184. }
  185. if (isset($_GET['taskStatus']) && $_GET['taskStatus']) {
  186. $params['taskStatus'] = $_GET['taskStatus'];
  187. }
  188. if (isset($_GET['checkResult']) && $_GET['checkResult']) {
  189. $params['checkResult'] = $_GET['checkResult'];
  190. }
  191. if (isset($_GET['page'])) {
  192. $params['page'] = $_GET['page'];
  193. }else{
  194. $params['page'] = 1;
  195. }
  196. echo formatPage($page, 'imsDevice/taskVerify', $params);
  197. ?>
  198. </ul>
  199. </div>
  200. <?php endif; ?>
  201. </div>
  202. </div>
  203. <script src="/js/productset/jquery.min.js"></script>
  204. <script src="/js/ims/jquery.datetimepicker.js"></script>
  205. <script src="/js/ims/xsgl.js"></script>
  206. <script src="/js/layer/layer.js"></script>
  207. <script>
  208. $(document).ready(function () {
  209. //筛选条件赋值
  210. <?php if(isset($_GET['beginTime'])):?>
  211. $("#some_class_1").attr("value","<?php echo $_GET['beginTime']?>");
  212. $("#some_class_2").attr("value", "<?php echo $_GET['endTime']?>");
  213. <?php endif;?>
  214. <?php if(isset($_GET['goodsId']) && $_GET['goodsId']):?>
  215. var goodsId = "<?php echo $_GET['goodsId'];?>";
  216. $('#goodsId').val(goodsId);
  217. var txt = $('.diy_select li[val='+goodsId+']').html();
  218. $('.diy_select_txt').html(txt);
  219. <?php endif;?>
  220. $('.some_class').datetimepicker({
  221. format: "Y-m-d", //格式化日期
  222. timepicker: false //关闭时间选项
  223. });
  224. $(".btn-date_show").on("click", function () {
  225. layer.alert($(this).text(), {
  226. title: '使用月份',
  227. area: ['420px', '240px']
  228. });
  229. });
  230. });
  231. $('body').on('focus', '#applicationNumber', function () {
  232. $('.alert-msg').css("display",'none');
  233. });
  234. </script>
  235. </body>
  236. </html>