refill.query.err.php 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <style>
  2. th label {
  3. display: inline-block;
  4. width: 60px;
  5. margin-left: 10px;
  6. }
  7. .lineLi {
  8. display: inline-block;
  9. min-width: 150px;
  10. font-size: 14px;
  11. }
  12. .page .fixed-bar .item-title h3 {
  13. margin-top: 18px !important;
  14. margin-bottom: 10px !important;
  15. font-weight: 700 !important;
  16. }
  17. .tab-base li span {
  18. font-size: 12px !important;
  19. }
  20. .layui-form-select .layui-input {
  21. height: 23px;
  22. padding-left: 11px;
  23. padding-right: 0 !important;
  24. }
  25. input::placeholder {
  26. color: #333;
  27. }
  28. .layui-form-selected dl {
  29. display: flex !important;
  30. flex-wrap: wrap !important;
  31. }
  32. .layui-form-select dl {
  33. top: 29px !important;
  34. left: 4px !important;
  35. min-width: 802% !important;
  36. max-height: 280px !important;
  37. padding: 14px 0 !important;
  38. }
  39. .layui-form-select dl dd.layui-this {
  40. display: none;
  41. }
  42. .layui-form-select dl dd {
  43. cursor: pointer;
  44. width: 130px;
  45. }
  46. .lefto {
  47. margin-left: 6px;
  48. }
  49. .db-right {
  50. padding-right: 134px !important;
  51. border-bottom: 1px solid #ccc;
  52. }
  53. .db-center {
  54. padding: 9px 0;
  55. border-bottom: 1px solid #ccc;
  56. }
  57. .db-top {
  58. padding: 0 30px;
  59. }
  60. #selectAll {
  61. cursor: pointer;
  62. }
  63. .query_ors {
  64. width: 140px;
  65. }
  66. </style>
  67. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  68. <div class="page">
  69. <div class="fixed-bar">
  70. <div class="item-title">
  71. <h3>问题订单监控</h3>
  72. <ul class="tab-base">
  73. <li><a href="index.php?act=ordersendlist&op=index"><span>商户超时订单监控</span></a></li>
  74. <li><a href="index.php?act=ordersendlist&op=monitor_notify"><span>渠道回调超时监控</span></a></li>
  75. <li><a href="index.php?act=ordersendlist&op=neterr_order"><span>网络错误订单监控</span></a></li>
  76. <li><a href="index.php?act=ordersendlist&op=notify_err_order"><span>未回调订单监控</span></a></li>
  77. <li><a href="index.php?act=ordersendlist&op=refill_detail_monitor"><span>接单记录监控</span></a></li>
  78. <li><a href="JavaScript:void(0);" class="current"><span>机构查单错误列表</span></a></li>
  79. <li>
  80. <a href="index.php?act=ordersendlist&op=order_exception"><span>异常订单监控</span>
  81. <?php if($output['except_stat'] > 0){?>
  82. <span class="badge"><?php echo $output['except_stat'];?></span>
  83. <?php }?>
  84. </a>
  85. </li>
  86. </ul>
  87. </div>
  88. </div>
  89. <div class="fixed-empty"></div>
  90. <form method="get" action="index.php" name="formSearch" id="formSearch">
  91. <input type="hidden" name="act" value="ordersendlist"/>
  92. <input type="hidden" name="op" value="query_err"/>
  93. <table class="tb-type1 noborder search">
  94. <tr>
  95. <th><label>客户名称</label></th>
  96. <td class="layui-form">
  97. <select name="mchid" class="querySelect" lay-verify="">
  98. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  99. <?php foreach ($output['merchant_list'] as $merchant) { ?>
  100. <option value="<?php echo $merchant['mchid'] ?>"<?php if ($_GET['mchid'] == $merchant['mchid']){ ?>selected<?php } ?>><?php echo $merchant['company_name'] == '' ? $merchant['name'] : $merchant['company_name']; ?></option>
  101. <?php } ?>
  102. </select>
  103. </td>
  104. <th><label for="query_start_time">查询时间</label></th>
  105. <td>
  106. <input class="txt date" type="text" value="<?php echo $_GET['query_start_time']; ?>"
  107. id="startTime" name="query_start_time" autocomplete="off" style="width:120px" />
  108. <label for="query_start_time">~</label>
  109. <input class="txt date" type="text" value="<?php echo $_GET['query_end_time']; ?>"
  110. id="endTime" name="query_end_time" autocomplete="off" style="width:120px" />
  111. </td>
  112. <th><label class="query_ors">商家单号(多行查询)</label></th>
  113. <td><textarea name="mch_orders" id="mch_orders" cols="30" rows="10"><?php echo $_GET['mch_orders'];?></textarea></td>
  114. <td>
  115. <a href="javascript:void(0);" id="ncsubmit" class="btn-search "
  116. title="<?php echo $lang['nc_query']; ?>">&nbsp;
  117. </a>
  118. </td>
  119. </tr>
  120. </table>
  121. </form>
  122. <table class="table tb-type2 nobdb">
  123. <thead>
  124. <tr class="thead">
  125. <th class="align-left">编号</th>
  126. <th class="align-left">机构编号</th>
  127. <th class="align-left">机构名称</th>
  128. <th class="align-left">商家单号</th>
  129. <th class="align-left">查询时间</th>
  130. <th class="align-left">错误code</th>
  131. <th class="align-left">错误信息</th>
  132. </tr>
  133. </thead>
  134. <tbody id="tbody">
  135. <?php if (count($output['list']) > 0) { ?>
  136. <?php
  137. foreach ($output['list'] as $key => $item) { ?>
  138. <tr class="hover trFlex">
  139. <td class="align-left"><?php echo $key+1;?></td>
  140. <td class="align-left"><?php echo $item['mchid']; ?></td>
  141. <td class="align-left"><?php echo $output['merchants'][$item['mchid']]['company_name'];?></td>
  142. <td class="align-left"><?php echo $item['mch_order']; ?></td>
  143. <td class="align-left"><?php echo date('Y-m-d H:i:s', $item['query_time']) ?? '/'; ?></td>
  144. <td class="align-left"><?php echo $item['code']; ?></td>
  145. <td class="align-left"><?php echo $item['msg']; ?></td>
  146. </tr>
  147. <?php } ?>
  148. <?php } else { ?>
  149. <tr class="no_data">
  150. <td colspan="7"><?php echo $lang['nc_no_record']; ?></td>
  151. </tr>
  152. <?php } ?>
  153. </tbody>
  154. <tfoot>
  155. <tr class="tfoot">
  156. <td colspan="7" id="dataFuncs">
  157. <div class="pagination"> <?php echo $output['show_page']; ?> </div>
  158. </td>
  159. </tr>
  160. </tfoot>
  161. </table>
  162. <!-- 预警提示 -->
  163. <audio id="auto" src="<?php echo RESOURCE_SITE_URL; ?>/warning.mp3"></audio>
  164. </div>
  165. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  166. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  167. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
  168. charset="utf-8"></script>
  169. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/refill/layer.js"></script>
  170. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
  171. <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
  172. <link rel="stylesheet" type="text/css"
  173. href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
  174. <script type="text/javascript">
  175. $(function () {
  176. $('#ncsubmit').click(function () {
  177. $('#formSearch').submit();
  178. });
  179. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  180. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  181. // 日期选择器
  182. laydate.render({
  183. elem: '#startTime',
  184. type: 'datetime'
  185. });
  186. laydate.render({
  187. elem: '#endTime',
  188. type: 'datetime'
  189. });
  190. //过滤
  191. $("#mch_orders").blur(function () {
  192. let test_mch = $("#mch_orders").val();
  193. let result = test_mch.replace(/[\ \r\n\,]+/g, ",");
  194. $(this).val(result)
  195. })
  196. // 表格hover时背景
  197. $('.trFlex').each(function () {
  198. let data_color = $(this).attr('data-timeout_State');
  199. $(this).css('background', '#fff')
  200. $(this).hover(function () {
  201. $(this)[0].style.backgroundColor = '#cbe9f3'
  202. }, function () {
  203. $(this).css('background', '#fff')
  204. })
  205. })
  206. });
  207. function hCopyOrder(e) {
  208. let str = ''
  209. $('#tbody tr').each(function () {
  210. let res = $(this).find('td').eq(4).text()
  211. str += res + '\n'
  212. })
  213. let oInput = document.createElement("textarea");
  214. oInput.style.border = "0 none";
  215. oInput.style.color = "transparent";
  216. oInput.value = str;
  217. document.body.appendChild(oInput);
  218. oInput.select(); // 选择对象
  219. document.execCommand("Copy"); // 执行浏览器复制命令
  220. oInput.parentNode.removeChild(oInput)
  221. }
  222. function hCopyCardNo(e) {
  223. let str = ''
  224. $('#tbody tr').each(function () {
  225. let res = $(this).find('td').eq(5).text()
  226. str += res + '\n'
  227. })
  228. let oInput = document.createElement("textarea");
  229. oInput.style.border = "0 none";
  230. oInput.style.color = "transparent";
  231. oInput.value = str;
  232. document.body.appendChild(oInput);
  233. oInput.select(); // 选择对象
  234. document.execCommand("Copy"); // 执行浏览器复制命令
  235. oInput.parentNode.removeChild(oInput)
  236. }
  237. </script>