refill.task.php 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <style>
  2. th label {
  3. display: inline-block;
  4. width: 60px;
  5. margin-left: 10px;
  6. }
  7. .page .fixed-bar .item-title h3 {
  8. margin-top: 18px !important;
  9. margin-bottom: 10px !important;
  10. font-weight: 700 !important;
  11. }
  12. .tab-base li span {
  13. font-size: 12px !important;
  14. }
  15. .query_ors {
  16. width: 125px;
  17. }
  18. th label {
  19. display: inline-block;
  20. width: 60px;
  21. }
  22. .lineLi {
  23. min-width: 150px;
  24. font-size: 12px;
  25. color: #000;
  26. }
  27. #prompt ul .noLineLi {
  28. background: none;
  29. }
  30. #prompt div {
  31. display: inline-block;
  32. background: none
  33. }
  34. #prompt ul .lineLi {
  35. color: #000;
  36. }
  37. #selest_nc {
  38. width: 220px
  39. }
  40. tbody {
  41. font-size: 12px;
  42. }
  43. .layui-form-select .layui-input {
  44. padding: 13px 5px;
  45. }
  46. .selection .layui-form-selected dl {
  47. display: flex !important;
  48. flex-wrap: wrap !important;
  49. }
  50. .selection .layui-form-select dl {
  51. top: 29px !important;
  52. min-width: 883% !important;
  53. max-height: 280px !important;
  54. padding: 14px 0 !important;
  55. left: 0 !important;
  56. }
  57. .layui-form-select {
  58. width: 45%;
  59. }
  60. .layui-select-title {
  61. width: 104%;
  62. }
  63. .selection .layui-form-select .layui-input {
  64. padding-left: 11px;
  65. }
  66. .page .fixed-bar .item-title h3 {
  67. margin-top: 18px !important;
  68. margin-bottom: 10px !important;
  69. font-weight: 700 !important;
  70. }
  71. .tab-base li span {
  72. font-size: 12px !important;
  73. }
  74. .layui-form-select .layui-input {
  75. height: 26px;
  76. }
  77. input::placeholder {
  78. color: #333;
  79. }
  80. .xm-tips {
  81. color: #333 !important;
  82. font-size: 12px;
  83. }
  84. .layui-form-select dl dd.layui-this {
  85. display: none;
  86. }
  87. .layui-form-select dl dd {
  88. cursor: pointer;
  89. width: 130px;
  90. }
  91. .tb-type1 td select {
  92. width: 201px;
  93. }
  94. .tb-type1 td input[type="text"],
  95. .tb-type1 td select {
  96. margin-right: 4px;
  97. margin-left: 0;
  98. width: 195px;
  99. }
  100. .layui-form-select .layui-edge {
  101. right: -91px !important;
  102. }
  103. .type .layui-form-select dl {
  104. top: 29px !important;
  105. width: 214% !important;
  106. }
  107. </style>
  108. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  109. <div class="page">
  110. <div class="fixed-bar">
  111. <div class="item-title">
  112. <h3>任务列表</h3>
  113. <ul class="tab-base">
  114. <li><a href="JavaScript:void(0);" class="current"><span>任务列表</span></a></li>
  115. </ul>
  116. </div>
  117. </div>
  118. <div class="fixed-empty"></div>
  119. <form method="get" action="index.php" name="formSearch" id="formSearch">
  120. <input type="hidden" name="act" value="orderstats"/>
  121. <input type="hidden" name="op" value="index"/>
  122. <table class="tb-type1 noborder search">
  123. <tr>
  124. <th><label>处理状态</label></th>
  125. <td>
  126. <label>
  127. <select name="state">
  128. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  129. <?php foreach($output['task_state'] as $key => $value){?>
  130. <option value="<?php echo $key;?>" <?php if ($_GET['state'] == $key){ ?>selected<?php } ?>><?php echo $value;?></option>
  131. <?php }?>
  132. </select>
  133. </label>
  134. </td>
  135. <td>
  136. <a href="javascript:void(0);" id="ncsubmit" class="btn-search "
  137. title="<?php echo $lang['nc_query']; ?>">&nbsp;
  138. </a>
  139. </td>
  140. </tr>
  141. </table>
  142. </form>
  143. <table class="table tb-type2 nobdb">
  144. <thead>
  145. <tr class="thead">
  146. <th class="align-center">编号</th>
  147. <th class="align-center">任务ID</th>
  148. <th class="align-center">任务类型</th>
  149. <th class="align-center">标题</th>
  150. <th class="align-center">任务状态</th>
  151. <th class="align-center">生成日期</th>
  152. <th class="align-center">处理日期</th>
  153. <th class="align-center">完成日期</th>
  154. <th class="align-center">处理结果</th>
  155. <th class="align-center">操作</th>
  156. </tr>
  157. </thead>
  158. <tbody id="tbody">
  159. <?php if (count($output['list']) > 0) { ?>
  160. <?php
  161. foreach ($output['list'] as $key => $value) { ?>
  162. <tr class="hover trFlex">
  163. <td class="align-center"><?php echo $key + 1; ?></td>
  164. <td class="align-center"><?php echo $value['task_id']; ?></td>
  165. <td class="align-center"><?php echo $output['task_type'][$value['type']]; ?></td>
  166. <td class="align-center"><?php echo $value['title']; ?></td>
  167. <td class="align-center"><?php echo $output['task_state'][$value['state']]; ?></td>
  168. <td class="align-center"><?php echo $value['add_time'] ? date('Y-m-d H:i:s', $value['add_time']) : '/'; ?></td>
  169. <td class="align-center"><?php echo $value['act_time'] ? date('Y-m-d H:i:s', $value['act_time']) : '/'; ?></td>
  170. <td class="align-center"><?php echo $value['finish_time'] ? date('Y-m-d H:i:s', $value['finish_time']) : '/'; ?></td>
  171. <td class="align-center">
  172. <?php if($value['state'] == 3 && !empty($value['result'])){?>
  173. <?php if($value['result_state'] == 1){ ?>
  174. <a target="_blank" href="<?php echo UPLOAD_SITE_URL . '/' . ATTACH_TASK . DS . $value['result']; ?>">下载</a>
  175. <?php }else{
  176. echo $value['result'];
  177. }?>
  178. <?php }?>
  179. </td>
  180. <td class="align-center">
  181. <a href="index.php?act=task&op=task_del&task_id=<?php echo $value['task_id'] ?>">删除</a>
  182. </td>
  183. </tr>
  184. <?php } ?>
  185. <?php } else { ?>
  186. <tr class="no_data">
  187. <td colspan="13"><?php echo $lang['nc_no_record']; ?></td>
  188. </tr>
  189. <?php } ?>
  190. </tbody>
  191. <tfoot>
  192. <tr class="tfoot">
  193. <td colspan="13" id="dataFuncs">
  194. <div class="pagination"> <?php echo $output['show_page']; ?> </div>
  195. </td>
  196. </tr>
  197. </tfoot>
  198. </table>
  199. <!-- 预警提示 -->
  200. <audio id="auto" src="<?php echo RESOURCE_SITE_URL; ?>/warning.mp3"></audio>
  201. </div>
  202. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  203. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  204. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
  205. charset="utf-8"></script>
  206. <link rel="stylesheet" type="text/css"
  207. href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
  208. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
  209. <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
  210. <script type="text/javascript">
  211. $(function () {
  212. $('#ncsubmit').click(function () {
  213. $('#formSearch').submit();
  214. });
  215. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  216. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  217. // 日期选择器
  218. laydate.render({
  219. elem: '#startTime',
  220. type: 'datetime'
  221. });
  222. laydate.render({
  223. elem: '#endTime',
  224. type: 'datetime'
  225. });
  226. // 表格hover时背景
  227. $('.trFlex').each(function () {
  228. $(this).hover(function () {
  229. $(this)[0].style.backgroundColor = '#cbe9f3'
  230. }, function () {
  231. $(this)[0].style.backgroundColor = '#fff'
  232. })
  233. })
  234. // 供方名称颜色
  235. $('.textColor').each(function () {
  236. let color = $(this).attr('data-color')
  237. if (color == '1') {
  238. $(this).css('color', 'green')
  239. } else {
  240. $(this).css('color', 'red')
  241. }
  242. })
  243. });
  244. </script>