123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- <style>
- th label {
- display: inline-block;
- width: 60px;
- margin-left: 10px;
- }
- .lineLi {
- display: inline-block;
- min-width: 150px;
- font-size: 14px;
- }
- .page .fixed-bar .item-title h3 {
- margin-top: 18px !important;
- margin-bottom: 10px !important;
- font-weight: 700 !important;
- }
- .tab-base li span {
- font-size: 12px !important;
- }
- .layui-form-select .layui-input {
- height: 23px;
- padding-left: 11px;
- padding-right: 0 !important;
- }
- input::placeholder {
- color: #333;
- }
- .layui-form-selected dl {
- display: flex !important;
- flex-wrap: wrap !important;
- }
- .layui-form-select dl {
- top: 29px !important;
- left: 4px !important;
- min-width: 802% !important;
- max-height: 280px !important;
- padding: 14px 0 !important;
- }
- .layui-form-select dl dd.layui-this {
- display: none;
- }
- .layui-form-select dl dd {
- cursor: pointer;
- width: 130px;
- }
- .lefto {
- margin-left: 6px;
- }
- .db-right {
- padding-right: 134px !important;
- border-bottom: 1px solid #ccc;
- }
- .db-center {
- padding: 9px 0;
- border-bottom: 1px solid #ccc;
- }
- .db-top {
- padding: 0 30px;
- }
- #selectAll {
- cursor: pointer;
- }
- .query_ors {
- width: 140px;
- }
- </style>
- <?php defined('InShopNC') or exit('Access Invalid!'); ?>
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <h3>问题订单监控</h3>
- <ul class="tab-base">
- <li><a href="index.php?act=ordersendlist&op=index"><span>商户超时订单监控</span></a></li>
- <li><a href="index.php?act=ordersendlist&op=monitor_notify"><span>渠道回调超时监控</span></a></li>
- <li><a href="index.php?act=ordersendlist&op=neterr_order"><span>网络错误订单监控</span></a></li>
- <li><a href="index.php?act=ordersendlist&op=notify_err_order"><span>未回调订单监控</span></a></li>
- <li><a href="index.php?act=ordersendlist&op=refill_detail_monitor"><span>接单记录监控</span></a></li>
- <li><a href="JavaScript:void(0);" class="current"><span>机构查单错误列表</span></a></li>
- <li>
- <a href="index.php?act=ordersendlist&op=order_exception"><span>异常订单监控</span>
- <?php if($output['except_stat'] > 0){?>
- <span class="badge"><?php echo $output['except_stat'];?></span>
- <?php }?>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <div class="fixed-empty"></div>
- <form method="get" action="index.php" name="formSearch" id="formSearch">
- <input type="hidden" name="act" value="ordersendlist"/>
- <input type="hidden" name="op" value="query_err"/>
- <table class="tb-type1 noborder search">
- <tr>
- <th><label>客户名称</label></th>
- <td class="layui-form">
- <select name="mchid" class="querySelect" lay-verify="">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <?php foreach ($output['merchant_list'] as $merchant) { ?>
- <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>
- <?php } ?>
- </select>
- </td>
- <th><label for="query_start_time">查询时间</label></th>
- <td>
- <input class="txt date" type="text" value="<?php echo $_GET['query_start_time']; ?>"
- id="startTime" name="query_start_time" autocomplete="off" style="width:120px" />
- <label for="query_start_time">~</label>
- <input class="txt date" type="text" value="<?php echo $_GET['query_end_time']; ?>"
- id="endTime" name="query_end_time" autocomplete="off" style="width:120px" />
- </td>
- <th><label class="query_ors">商家单号(多行查询)</label></th>
- <td><textarea name="mch_orders" id="mch_orders" cols="30" rows="10"><?php echo $_GET['mch_orders'];?></textarea></td>
- <td>
- <a href="javascript:void(0);" id="ncsubmit" class="btn-search "
- title="<?php echo $lang['nc_query']; ?>">
- </a>
- </td>
- </tr>
- </table>
- </form>
- <table class="table tb-type2 nobdb">
- <thead>
- <tr class="thead">
- <th class="align-left">编号</th>
- <th class="align-left">机构编号</th>
- <th class="align-left">机构名称</th>
- <th class="align-left">商家单号</th>
- <th class="align-left">查询时间</th>
- <th class="align-left">错误code</th>
- <th class="align-left">错误信息</th>
- </tr>
- </thead>
- <tbody id="tbody">
- <?php if (count($output['list']) > 0) { ?>
- <?php
- foreach ($output['list'] as $key => $item) { ?>
- <tr class="hover trFlex">
- <td class="align-left"><?php echo $key+1;?></td>
- <td class="align-left"><?php echo $item['mchid']; ?></td>
- <td class="align-left"><?php echo $output['merchants'][$item['mchid']]['company_name'];?></td>
- <td class="align-left"><?php echo $item['mch_order']; ?></td>
- <td class="align-left"><?php echo date('Y-m-d H:i:s', $item['query_time']) ?? '/'; ?></td>
- <td class="align-left"><?php echo $item['code']; ?></td>
- <td class="align-left"><?php echo $item['msg']; ?></td>
- </tr>
- <?php } ?>
- <?php } else { ?>
- <tr class="no_data">
- <td colspan="7"><?php echo $lang['nc_no_record']; ?></td>
- </tr>
- <?php } ?>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="7" id="dataFuncs">
- <div class="pagination"> <?php echo $output['show_page']; ?> </div>
- </td>
- </tr>
- </tfoot>
- </table>
- <!-- 预警提示 -->
- <audio id="auto" src="<?php echo RESOURCE_SITE_URL; ?>/warning.mp3"></audio>
- </div>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
- charset="utf-8"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/refill/layer.js"></script>
- <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
- <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
- <link rel="stylesheet" type="text/css"
- href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
- <script type="text/javascript">
- $(function () {
- $('#ncsubmit').click(function () {
- $('#formSearch').submit();
- });
- $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
- $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
- // 日期选择器
- laydate.render({
- elem: '#startTime',
- type: 'datetime'
- });
- laydate.render({
- elem: '#endTime',
- type: 'datetime'
- });
- //过滤
- $("#mch_orders").blur(function () {
- let test_mch = $("#mch_orders").val();
- let result = test_mch.replace(/[\ \r\n\,]+/g, ",");
- $(this).val(result)
- })
- // 表格hover时背景
- $('.trFlex').each(function () {
- let data_color = $(this).attr('data-timeout_State');
- $(this).css('background', '#fff')
- $(this).hover(function () {
- $(this)[0].style.backgroundColor = '#cbe9f3'
- }, function () {
- $(this).css('background', '#fff')
- })
- })
- });
- function hCopyOrder(e) {
- let str = ''
- $('#tbody tr').each(function () {
- let res = $(this).find('td').eq(4).text()
- str += res + '\n'
- })
- let oInput = document.createElement("textarea");
- oInput.style.border = "0 none";
- oInput.style.color = "transparent";
- oInput.value = str;
- document.body.appendChild(oInput);
- oInput.select(); // 选择对象
- document.execCommand("Copy"); // 执行浏览器复制命令
- oInput.parentNode.removeChild(oInput)
- }
- function hCopyCardNo(e) {
- let str = ''
- $('#tbody tr').each(function () {
- let res = $(this).find('td').eq(5).text()
- str += res + '\n'
- })
- let oInput = document.createElement("textarea");
- oInput.style.border = "0 none";
- oInput.style.color = "transparent";
- oInput.value = str;
- document.body.appendChild(oInput);
- oInput.select(); // 选择对象
- document.execCommand("Copy"); // 执行浏览器复制命令
- oInput.parentNode.removeChild(oInput)
- }
- </script>
|