refill.task.php 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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="index.php?act=OrderStats&op=index&type=system"><span>上游对账记录</span></a></li>
  115. <li><a href="index.php?act=OrderStats&op=index&type=provider"><span>上游对账记录</span></a></li>
  116. <li><a href="index.php?act=OrderStats&op=index&type=merchant"><span>下游对账记录</span></a></li>
  117. <li><a href="JavaScript:void(0);" class="current"><span>任务列表</span></a></li>
  118. </ul>
  119. </div>
  120. </div>
  121. <div class="fixed-empty"></div>
  122. <form method="get" action="index.php" name="formSearch" id="formSearch">
  123. <input type="hidden" name="act" value="orderstats"/>
  124. <input type="hidden" name="op" value="refill_task"/>
  125. <table class="tb-type1 noborder search">
  126. <tr>
  127. <th><label>处理状态</label></th>
  128. <td>
  129. <label>
  130. <select name="state">
  131. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  132. <?php foreach($output['task_state'] as $key => $value){?>
  133. <option value="<?php echo $key;?>" <?php if ($_GET['state'] == $key){ ?>selected<?php } ?>><?php echo $value;?></option>
  134. <?php }?>
  135. </select>
  136. </label>
  137. </td>
  138. <td>
  139. <a href="javascript:void(0);" id="ncsubmit" class="btn-search "
  140. title="<?php echo $lang['nc_query']; ?>">&nbsp;
  141. </a>
  142. </td>
  143. </tr>
  144. </table>
  145. </form>
  146. <table class="table tb-type2 nobdb">
  147. <thead>
  148. <tr class="thead">
  149. <th class="align-center">编号</th>
  150. <th class="align-center">任务ID</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. <th class="align-center">完成日期</th>
  157. <th class="align-center">处理结果</th>
  158. <th class="align-center">操作</th>
  159. </tr>
  160. </thead>
  161. <tbody id="tbody">
  162. <?php if (count($output['list']) > 0) { ?>
  163. <?php
  164. foreach ($output['list'] as $key => $value) { ?>
  165. <tr class="hover trFlex">
  166. <td class="align-center"><?php echo $key + 1; ?></td>
  167. <td class="align-center"><?php echo $value['task_id']; ?></td>
  168. <td class="align-center"><?php echo $output['task_type'][$value['type']]; ?></td>
  169. <!-- <td class="align-center">-->
  170. <!-- --><?php //if(!empty($value['condition']['refill_order.order_time'])) { ?>
  171. <!-- <p>统计日期范围:-->
  172. <!-- --><?php //echo date("Y-m-d H:i:s", $value['condition']['refill_order.order_time'][0][1]) ?? '/';?>
  173. <!-- ~--><?php //echo date("Y-m-d H:i:s", $value['condition']['refill_order.order_time'][1][1]) ?? '/';?>
  174. <!-- --><?php //}?>
  175. <!---->
  176. <!-- <p>订单状态:-->
  177. <!-- --><?php //if ($value['condition']['order_state'] === '') {
  178. // echo '/';
  179. // } else {
  180. // echo orderState($value['condition']);
  181. // }
  182. // ?>
  183. <!-- </p>-->
  184. <!-- </td>-->
  185. <td class="align-center"><?php echo $output['task_state'][$value['state']]; ?></td>
  186. <td class="align-center"><?php echo $value['add_time'] ? date('Y-m-d H:i:s', $value['add_time']) : '/'; ?></td>
  187. <td class="align-center"><?php echo $value['act_time'] ? date('Y-m-d H:i:s', $value['act_time']) : '/'; ?></td>
  188. <td class="align-center"><?php echo $value['finish_time'] ? date('Y-m-d H:i:s', $value['finish_time']) : '/'; ?></td>
  189. <td class="align-center">
  190. <?php if($value['state'] == 3 && !empty($value['result'])){?>
  191. <?php if($value['result_state'] == 1){ ?>
  192. <a target="_blank" href="<?php echo UPLOAD_SITE_URL . '/' . ATTACH_TASK . DS . $value['result']; ?>">下载</a>
  193. <?php }else{
  194. echo $value['result'];
  195. }?>
  196. <?php }?>
  197. </td>
  198. <td class="align-center">
  199. <a href="index.php?act=OrderStats&op=task_del&task_id=<?php echo $value['task_id'] ?>">删除</a>
  200. </td>
  201. </tr>
  202. <?php } ?>
  203. <?php } else { ?>
  204. <tr class="no_data">
  205. <td colspan="13"><?php echo $lang['nc_no_record']; ?></td>
  206. </tr>
  207. <?php } ?>
  208. </tbody>
  209. <tfoot>
  210. <tr class="tfoot">
  211. <td colspan="13" id="dataFuncs">
  212. <div class="pagination"> <?php echo $output['show_page']; ?> </div>
  213. </td>
  214. </tr>
  215. </tfoot>
  216. </table>
  217. <!-- 预警提示 -->
  218. <audio id="auto" src="<?php echo RESOURCE_SITE_URL; ?>/warning.mp3"></audio>
  219. </div>
  220. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  221. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  222. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
  223. charset="utf-8"></script>
  224. <link rel="stylesheet" type="text/css"
  225. href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
  226. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
  227. <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
  228. <script type="text/javascript">
  229. $(function () {
  230. $('#ncsubmit').click(function () {
  231. $('#formSearch').submit();
  232. });
  233. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  234. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  235. // 日期选择器
  236. laydate.render({
  237. elem: '#startTime',
  238. type: 'datetime'
  239. });
  240. laydate.render({
  241. elem: '#endTime',
  242. type: 'datetime'
  243. });
  244. // 表格hover时背景
  245. $('.trFlex').each(function () {
  246. $(this).hover(function () {
  247. $(this)[0].style.backgroundColor = '#cbe9f3'
  248. }, function () {
  249. $(this)[0].style.backgroundColor = '#fff'
  250. })
  251. })
  252. // 供方名称颜色
  253. $('.textColor').each(function () {
  254. let color = $(this).attr('data-color')
  255. if (color == '1') {
  256. $(this).css('color', 'green')
  257. } else {
  258. $(this).css('color', 'red')
  259. }
  260. })
  261. });
  262. </script>