1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138 |
- <style>
- th label {
- display: inline-block;
- width: 60px;
- }
- .lineLi {
- min-width: 150px;
- font-size: 12px;
- color: #000;
- }
- #prompt ul .noLineLi {
- background: none;
- }
- #prompt div {
- display: inline-block;
- background: none
- }
- #prompt ul .lineLi {
- color: #000;
- }
- #select_nc {
- width: 220px
- }
- #denomination {
- width: 220px
- }
- tbody {
- font-size: 12px;
- }
- .layui-form-select .layui-input {
- padding: 13px 5px;
- }
- #mchid_td .layui-form-selected dl {
- display: flex !important;
- flex-wrap: wrap !important;
- }
- #mchid_td .layui-form-select dl {
- top: 29px !important;
- left: 4px !important;
- min-width: 883% !important;
- max-height: 280px !important;
- padding: 14px 0 !important;
- }
- #mchid_td .layui-form-select .layui-input {
- padding-right: 0 !important;
- cursor: pointer;
- width: 124%;
- }
- .layui-form-select {
- width: 45%;
- }
- .layui-select-title {
- width: 100%;
- }
- .layui-form-select .layui-input {
- padding-left: 4px;
- }
- .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: 26px;
- }
- input::placeholder {
- color: #333;
- }
- .xm-tips {
- color: #333 !important;
- font-size: 12px;
- }
- .layui-form-select dl dd.layui-this {
- /* display: none; */
- background: #099ACF !important;
- }
- #mchid_td .layui-form-select dl dd {
- cursor: pointer;
- width: 130px;
- }
- #mchid_td .layui-form-select .layui-edge {
- right: -24px !important;
- }
- .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;
- }
- .covercolor:hover,
- .covercolor:visited,
- .covercolor:link,
- .covercolor:active {
- color: #0D93BF;
- }
- #store_id_box .layui-form-select {
- width: 230px;
- }
- #store_id_box .layui-form-select dl {
- left: 3px;
- top: 28px;
- }
- </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="JavaScript:void(0);" class="current"><span>管理</span></a></li>
- </ul>
- </div>
- </div>
- <div class="fixed-empty"></div>
- <form method="get" action="index.php" name="formSearch" id="formSearch" lay-filter="userform">
- <input type="hidden" name="act" value="refill_order" />
- <input type="hidden" name="op" value="index" />
- <input type="hidden" name="export" value="" />
- <input type="hidden" name="mch_notify" value="" />
- <input type="hidden" name="order_query" value="" />
- <input type="hidden" name="export_stats" value="" />
- <input type="hidden" name="fShowStat" value="" />
- <input type="hidden" name="no_mchid" value="" />
- <input type="hidden" name="no_amount" value="" />
- <input type="hidden" name="task_title" value="" />
- <input type="hidden" name="exmechs" value="<?php echo $output['exmechs']; ?>" />
- <input type="hidden" name="default_no_mch" value="<?php echo $_GET['no_mchid']; ?>" />
- <input type="hidden" name="default_no_amount" value="<?php echo $_GET['no_amount']; ?>" />
- <table class="tb-type1 noborder search" style="min-width:1400px">
- <tbody>
- <tr>
- <th><label>我方订单号</label></th>
- <td><input class="txt2" type="text" name="order_sn" value="<?php echo $_GET['order_sn']; ?>" /></td>
- <th><label>客户订单号</label></th>
- <td><input class="txt2" type="text" name="mch_order" value="<?php echo $_GET['mch_order']; ?>" /></td>
- <th><label>供方订单号</label></th>
- <td><input class="txt2" type="text" name="ch_trade_no" value="<?php echo $_GET['ch_trade_no']; ?>" /></td>
- </tr>
- <tr>
- <th><label>客户名称</label></th>
- <td class="layui-form" id="mchid_td">
- <select name="mchid" id="mchid" class="querySelect mchid" lay-verify="" lay-search lay-filter="mchid">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <?php foreach ($output['merchant_list'] as $merchant) { ?>
- <option class="mchid_name" alpha-data="<?php echo $merchant['alpha'] ?>" 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>供方名称</label></th>
- <td id="store_id_box">
- <div class="layui-form" lay-filter="store_id_select">
- <select name="store_id" class="store_id" lay-search style="width:220px;">
- <option data-color="<?php echo $provider['opened'] ?>" value=""><?php echo $lang['nc_please_choose']; ?></option>
- <?php foreach ($output['provider_list'] as $provider) { ?>
- <option value="<?php echo $provider['store_id'] ?>" <?php if ($_GET['store_id'] == $provider['store_id']) { ?>selected<?php } ?> data-color="<?php echo $provider['opened'] ?>" class="textColor"><?php echo $provider['store_name'] ?></option>
- <?php } ?>
- </select>
- </div>
- </td>
- <th><label>不包含客户</label></th>
- <td>
- <div id="select_nc"></div>
- </td>
- <th><label>初始质量</label></th>
- <td>
- <select name="org_quality" class="querySelect">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="<?php echo refill\Quality::Normal; ?>" <?php if ($_GET['org_quality'] == refill\Quality::Normal) { ?>selected<?php } ?>>普充(无流水)
- </option>
- <option value="<?php echo refill\Quality::Quick; ?>" <?php if ($_GET['org_quality'] == refill\Quality::Quick) { ?>selected<?php } ?>>快充
- </option>
- <option value="<?php echo refill\Quality::CardKey; ?>" <?php if ($_GET['org_quality'] == refill\Quality::CardKey) { ?>selected<?php } ?>>卡密
- </option>
- <option value="<?php echo refill\Quality::ThirdShop; ?>" <?php if ($_GET['org_quality'] == refill\Quality::ThirdShop) { ?>selected<?php } ?>>三方
- </option>
- <option value="<?php echo refill\Quality::SlowTwentyFour; ?>" <?php if ($_GET['org_quality'] == refill\Quality::SlowTwentyFour) { ?>selected<?php } ?>>慢24(有流水)
- </option>
- <option value="<?php echo refill\Quality::SlowSix; ?>" <?php if ($_GET['org_quality'] == refill\Quality::SlowSix) { ?>selected<?php } ?>>慢6
- </option>
- <option value="<?php echo refill\Quality::SlowTwo; ?>" <?php if ($_GET['org_quality'] == refill\Quality::SlowTwo) { ?>selected<?php } ?>>慢2
- </option>
- <option value="<?php echo refill\Quality::SlowFortyEight; ?>" <?php if ($_GET['org_quality'] == refill\Quality::SlowFortyEight) { ?>selected<?php } ?>>慢48
- </option>
- <option value="<?php echo refill\Quality::SlowSeventyTwo; ?>" <?php if ($_GET['org_quality'] == refill\Quality::SlowSeventyTwo) { ?>selected<?php } ?>>慢72
- </option>
- <option value="<?php echo refill\Quality::Fastest; ?>" <?php if ($_GET['org_quality'] == refill\Quality::Fastest) { ?>selected<?php } ?>>速充
- </option>
- <option value="<?php echo refill\Quality::DefSuccess; ?>" <?php if ($_GET['org_quality'] == refill\Quality::DefSuccess) { ?>selected<?php } ?>>普充+卡密+快充
- </option>
- <option value="<?php echo refill\Quality::CardkeyNormalQuick; ?>" <?php if ($_GET['org_quality'] == refill\Quality::CardkeyNormalQuick) { ?>selected<?php } ?>>卡密+普充+快充
- </option>
- <option value="<?php echo refill\Quality::NormalQuick; ?>" <?php if ($_GET['org_quality'] == refill\Quality::NormalQuick) { ?>selected<?php } ?>>普充+快充
- </option>
- </select>
- </td>
- </tr>
- <tr>
- <th><label>充值卡卡号</label></th>
- <td><input class="txt2" type="text" name="card_no" value="<?php echo $_GET['card_no']; ?>" /></td>
- <th><label>卡号状态</label></th>
- <td>
- <select name="cardno_state" class="querySelect">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="0" <?php if ($_GET['cardno_state'] == '0') { ?>selected<?php } ?>>空号</option>
- <option value="1" <?php if ($_GET['cardno_state'] == '1') { ?>selected<?php } ?>>实号</option>
- <option value="2" <?php if ($_GET['cardno_state'] == '2') { ?>selected<?php } ?>>停机</option>
- <option value="3" <?php if ($_GET['cardno_state'] == '3') { ?>selected<?php } ?>>库无</option>
- <option value="4" <?php if ($_GET['cardno_state'] == '4') { ?>selected<?php } ?>>沉默号</option>
- <option value="5" <?php if ($_GET['cardno_state'] == '5') { ?>selected<?php } ?>>风险号</option>
- </select>
- <label>是否携号转网</label>
- <select name="is_transfer">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="1" <?php if ($_GET['is_transfer'] == '1') { ?>selected<?php } ?>>是</option>
- <option value="0" <?php if ($_GET['is_transfer'] == '0') { ?>selected<?php } ?>>否</option>
- </select>
- </td>
- <th><label>不包含面额</label></th>
- <td>
- <div id="denomination"></div>
- </td>
- <th><label>日期类型</label></th>
- <td>
- <select name="time_type" class="time_type">
- <option value="order_time" <?php if ($_GET['time_type'] == 'order_time') { ?>selected<?php } ?>>下单时间</option>
- <option value="notify_time" <?php if ($_GET['time_type'] == 'notify_time') { ?>selected<?php } ?>>回调时间</option>
- </select>
- <label>导出对象</label>
- <select name="export_type" class="export_type">
- <option value="merchant" <?php if ($_GET['export_type'] == 'merchant') { ?>selected<?php } ?>>机构</option>
- <option value="provider" <?php if ($_GET['export_type'] == 'provider') { ?>selected<?php } ?>>上游</option>
- </select>
- </td>
- </tr>
- <tr>
- <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>订单状态</label></th>
- <td>
- <select name="order_state" class="querySelect order_state">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="10" <?php if ($_GET['order_state'] == '10') { ?>selected<?php } ?>><?php echo $lang['order_state_new']; ?></option>
- <option value="20" <?php if ($_GET['order_state'] == '20') { ?>selected<?php } ?>><?php echo $lang['order_state_pay']; ?></option>
- <option value="30" <?php if ($_GET['order_state'] == '30') { ?>selected<?php } ?>><?php echo $lang['order_state_send']; ?></option>
- <option value="40" <?php if ($_GET['order_state'] == '40') { ?>selected<?php } ?>><?php echo $lang['order_state_success']; ?></option>
- <option value="0" <?php if ($_GET['order_state'] == '0') { ?>selected<?php } ?>><?php echo $lang['order_state_cancel']; ?></option>
- </select>
- <label>充值类型</label>
- <select name="card_type" class="querySelect">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="1" <?php if ($_GET['card_type'] == '1') { ?>selected<?php } ?>>中石油</option>
- <option value="2" <?php if ($_GET['card_type'] == '2') { ?>selected<?php } ?>>中石化</option>
- <option value="4" <?php if ($_GET['card_type'] == '4') { ?>selected<?php } ?>>中国移动</option>
- <option value="5" <?php if ($_GET['card_type'] == '5') { ?>selected<?php } ?>>中国联通</option>
- <option value="6" <?php if ($_GET['card_type'] == '6') { ?>selected<?php } ?>>中国电信</option>
- <option value="7" <?php if ($_GET['card_type'] == '7') { ?>selected<?php } ?>>增值业务</option>
- <option value="oil" <?php if ($_GET['card_type'] == 'oil') { ?>selected<?php } ?>>油费</option>
- <option value="phone" <?php if ($_GET['card_type'] == 'phone') { ?>selected<?php } ?>>手机费</option>
- </select>
- </td>
- <th><label>交易面额</label></th>
- <td>
- <select name="refill_amount" class="querySelect">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="10" <?php if ($_GET['refill_amount'] == '10') { ?>selected<?php } ?>>10</option>
- <option value="20" <?php if ($_GET['refill_amount'] == '20') { ?>selected<?php } ?>>20</option>
- <option value="30" <?php if ($_GET['refill_amount'] == '30') { ?>selected<?php } ?>>30</option>
- <option value="50" <?php if ($_GET['refill_amount'] == '50') { ?>selected<?php } ?>>50</option>
- <option value="100" <?php if ($_GET['refill_amount'] == '100') { ?>selected<?php } ?>>100</option>
- <option value="200" <?php if ($_GET['refill_amount'] == '200') { ?>selected<?php } ?>>200</option>
- <option value="300" <?php if ($_GET['refill_amount'] == '300') { ?>selected<?php } ?>>300</option>
- <option value="500" <?php if ($_GET['refill_amount'] == '500') { ?>selected<?php } ?>>500</option>
- <option value="1000" <?php if ($_GET['refill_amount'] == '1000') { ?>selected<?php } ?>>1000</option>
- <option value="2000" <?php if ($_GET['refill_amount'] == '2000') { ?>selected<?php } ?>>2000</option>
- </select>
- <label>有无上游</label>
- <select name="have_chname">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="1" <?php if ($_GET['have_chname'] == '1') { ?>selected<?php } ?>>无上游通道</option>
- <option value="2" <?php if ($_GET['have_chname'] == '2') { ?>selected<?php } ?>>有上游通道</option>
- </select>
- </td>
- <th><label>通道质量</label></th>
- <td>
- <select name="quality" class="querySelect">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="<?php echo refill\Quality::Normal; ?>" <?php if ($_GET['quality'] == refill\Quality::Normal) { ?>selected<?php } ?>>普充(无流水)
- </option>
- <option value="<?php echo refill\Quality::Quick; ?>" <?php if ($_GET['quality'] == refill\Quality::Quick) { ?>selected<?php } ?>>快充
- </option>
- <option value="<?php echo refill\Quality::CardKey; ?>" <?php if ($_GET['quality'] == refill\Quality::CardKey) { ?>selected<?php } ?>>卡密
- </option>
- <option value="<?php echo refill\Quality::ThirdShop; ?>" <?php if ($_GET['quality'] == refill\Quality::ThirdShop) { ?>selected<?php } ?>>三方
- </option>
- <option value="<?php echo refill\Quality::SlowTwentyFour; ?>" <?php if ($_GET['quality'] == refill\Quality::SlowTwentyFour) { ?>selected<?php } ?>>慢24(有流水)
- </option>
- <option value="<?php echo refill\Quality::SlowSix; ?>" <?php if ($_GET['quality'] == refill\Quality::SlowSix) { ?>selected<?php } ?>>慢6
- </option>
- <option value="<?php echo refill\Quality::SlowTwo; ?>" <?php if ($_GET['quality'] == refill\Quality::SlowTwo) { ?>selected<?php } ?>>慢2
- </option>
- <option value="<?php echo refill\Quality::SlowFortyEight; ?>" <?php if ($_GET['quality'] == refill\Quality::SlowFortyEight) { ?>selected<?php } ?>>慢48
- </option>
- <option value="<?php echo refill\Quality::SlowSeventyTwo; ?>" <?php if ($_GET['quality'] == refill\Quality::SlowSeventyTwo) { ?>selected<?php } ?>>慢72
- </option>
- <option value="<?php echo refill\Quality::Fastest; ?>" <?php if ($_GET['quality'] == refill\Quality::Fastest) { ?>selected<?php } ?>>速充
- </option>
- <option value="<?php echo refill\Quality::DefSuccess; ?>" <?php if ($_GET['quality'] == refill\Quality::DefSuccess) { ?>selected<?php } ?>>普充+卡密+快充
- </option>
- <option value="<?php echo refill\Quality::CardkeyNormalQuick; ?>" <?php if ($_GET['quality'] == refill\Quality::CardkeyNormalQuick) { ?>selected<?php } ?>>卡密+普充+快充
- </option>
- <option value="<?php echo refill\Quality::NormalQuick; ?>" <?php if ($_GET['quality'] == refill\Quality::NormalQuick) { ?>selected<?php } ?>>普充+快充
- </option>
- </select>
- <label>有无流水</label>
- <select name="official_status">
- <option value=""><?php echo $lang['nc_please_choose']; ?></option>
- <option value="1" <?php if ($_GET['official_status'] == '1') { ?>selected<?php } ?>>无流水</option>
- <option value="2" <?php if ($_GET['official_status'] == '2') { ?>selected<?php } ?>>有流水</option>
- </select>
- </td>
- <td>
- <a href="javascript:void(0);" id="ncsubmit" class="btn-search " title="<?php echo $lang['nc_query']; ?>">
- </a>
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <a href="#" class="btns" onclick="hCopyChannel(event)">
- <span><i class="icon-edit"></i>拷贝渠道单号</span>
- </a>
- <a href="#" class="btns" onclick="hCopyCardNo(event)">
- <span><i class="icon-edit"></i>拷贝充值卡号</span>
- </a>
- <a href="#" class="btns" onclick="hCopyOrderSn(event)">
- <span><i class="icon-edit"></i>拷贝订单号</span>
- </a>
- <a href="#" class="btns" onclick="hCopyMchOrder(event)">
- <span><i class="icon-edit"></i>拷贝客户单号</span>
- </a>
- </td>
- <td></td>
- <td>
- <a href="javascript:void(0);" id="order_query" class="btns">
- <span><i class="icon-edit"></i>更新待收货订单状态</span>
- </a>
- <a href="javascript:void(0);" id="mch_notify" class="btns">
- <span><i class="icon-edit"></i>向客户回调</span>
- </a>
- </td>
- <td>
- </td>
- <td>
- <a href="javascript:void(0);" id="ncexport" class="btns">
- <span><i class="icon-edit"></i>导出Excel</span>
- </a>
- <a href="javascript:void(0);" id="ncstat" class="btns">
- <span>搜索+统计</span>
- </a>
- </td>
- </tr>
- <tr>
- <td></td>
- <td>
- <a href="#" class="btns" id="10_rder">
- <span><i class="icon-edit"></i>10分钟订单</span>
- </a>
- <a href="#" class="btns" id="30_rder">
- <span><i class="icon-edit"></i>半小时订单</span>
- </a>
- <a href="#" class="btns" id="60_rder">
- <span><i class="icon-edit"></i>一小时订单</span>
- </a>
- <a href="#" class="btns" id="0_rder">
- <span><i class="icon-edit"></i>当天零点订单</span>
- </a>
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- <table class="table tb-type2" style="min-width:1400px">
- <tbody>
- <tr>
- <td>
- <ul>
- <li>
- 队列任务个数: <?php echo $output['dispatcher_queue_length'] ?? 0; ?>
- </li>
- <li>
- 监控队列任务: <?php echo $output['monitor_queue_length'] ?? 0; ?>
- </li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- <?php if ($_GET['fShowStat'] == 1) { ?>
- <table class="table tb-type2" id="prompt" style="min-width:1400px">
- <tbody>
- <tr class="space odd">
- <th colspan="12">
- <div class="title">
- <h5>
- 金额统计<?php echo $output['ftoday'] == true ? "(今日)" : "" ?></h5><span class="arrow"></span>
- </div>
- <span style="margin-left: 35px;"><?php echo $output['stat_tip'] ?? ''; ?></span>
- </th>
- </tr>
- <tr>
- <td>
- <ul>
- <div>
- <li class="lineLi">总计订单数量:<?php echo $output['stat']['all']['order_count'] ?? 0 ?></li>
- <li class="lineLi">总计充值金额:<?php echo $output['stat']['all']['refill_amounts'] ?? 0 ?></li>
- <!-- --><?php //if ($output['admin_info']['id'] == 1) { ?>
- <!-- <li class="lineLi">总计客户扣款金额:--><?php //echo $output['stat']['all']['mch_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi noLineLi"> </li>-->
- <!-- <li class="lineLi">总计供方扣款金额:--><?php //echo $output['stat']['all']['channel_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi">总计利润:--><?php //echo ncPriceFormat($output['stat']['all']['mch_amounts'] - $output['stat']['all']['channel_amounts']) ?><!--</li>-->
- <!-- --><?php //} ?>
- </div>
- <div>
- <li class="lineLi">总计充值中订单数量:<?php echo $output['stat']['sending']['order_count'] ?? 0 ?></li>
- <li class="lineLi">总计充值中订单金额:<?php echo $output['stat']['sending']['refill_amounts'] ?? 0 ?></li>
- <!-- --><?php //if ($output['admin_info']['id'] == 1) { ?>
- <!-- <li class="lineLi">总计充值中客户扣款金额:--><?php //echo $output['stat']['sending']['mch_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi noLineLi"> </li>-->
- <!-- <li class="lineLi">总计充值中供方扣款金额:--><?php //echo $output['stat']['sending']['channel_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi">总计充值中利润:--><?php //echo ncPriceFormat($output['stat']['sending']['mch_amounts'] - $output['stat']['sending']['channel_amounts']) ?><!--</li>-->
- <!-- --><?php //} ?>
- </div>
- <div>
- <li class="lineLi">总计充值成功订单数量:<?php echo $output['stat']['success']['order_count'] ?? 0 ?></li>
- <li class="lineLi">总计充值成功订单金额:<?php echo $output['stat']['success']['refill_amounts'] ?? 0 ?></li>
- <!-- --><?php //if ($output['admin_info']['id'] == 1) { ?>
- <!-- <li class="lineLi">总计充值成功客户扣款金额:--><?php //echo $output['stat']['success']['mch_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi noLineLi"> </li>-->
- <!-- <li class="lineLi">总计充值成功供方扣款金额:--><?php //echo $output['stat']['success']['channel_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi">总计充值成功利润:--><?php //echo ncPriceFormat($output['stat']['success']['mch_amounts'] - $output['stat']['success']['channel_amounts']) ?><!--</li>-->
- <!-- --><?php //} ?>
- </div>
- <div>
- <li class="lineLi">总计充值失败订单数量:<?php echo $output['stat']['cancel']['order_count'] ?? 0 ?></li>
- <li class="lineLi">总计充值失败订单金额:<?php echo $output['stat']['cancel']['refill_amounts'] ?? 0 ?></li>
- <!-- --><?php //if ($output['admin_info']['id'] == 1) { ?>
- <!-- <li class="lineLi">总计充值失败客户扣款金额:--><?php //echo $output['stat']['cancel']['mch_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi noLineLi"> </li>-->
- <!-- <li class="lineLi">总计充值失败供方扣款金额:--><?php //echo $output['stat']['cancel']['channel_amounts'] ?? 0 ?><!--</li>-->
- <!-- <li class="lineLi">总计充值失败利润:--><?php //echo ncPriceFormat($output['stat']['cancel']['mch_amounts'] - $output['stat']['cancel']['channel_amounts']) ?><!--</li>-->
- <!-- --><?php //} ?>
- </div>
- <div>
- <li class="lineLi">成功率:
- <?php
- $count = $output['stat']['success']['order_count'] + $output['stat']['cancel']['order_count'];
- if ($count == 0) {
- echo '0%';
- } else {
- $ratio = sprintf("%.2f", $output['stat']['success']['order_count'] / $count);
- $ratio = $ratio * 100;
- echo "{$ratio}%";
- }
- ?></li>
- </div>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- <?php } ?>
- <table class="table tb-type2 nobdb" style="min-width:1400px">
- <thead>
- <tr class="thead">
- <th class="align-center">编号</th>
- <th class="align-left">机构编号</th>
- <th class="align-left">机构名称</th>
- <th class="align-left">订单号</th>
- <th class="align-left">充值卡号</th>
- <th class="align-center">充值卡类型</th>
- <th class="align-center">转</th>
- <th class="align-center">充值额度</th>
- <th class="align-center">接单日期</th>
- <th class="align-right">耗时</th>
- <th class="align-center">订单状态</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">供方单号</th>
- <th class="align-right">次数</th>
- <th class="align-center">质量</th>
- <th class="align-center">初始质量</th>
- <!-- <th class="align-center">扣款金额</th>-->
- <th class="align-center"><?php echo $lang['nc_handle']; ?></th>
- </tr>
- </thead>
- <tbody id="tbody">
- <?php if (count($output['order_list']) > 0) { ?>
- <?php
- foreach ($output['order_list'] as $key => $order) { ?>
- <tr class="hover trFlex">
- <td class="align-center"><?php echo $key + 1; ?></td>
- <td class="align-left"><?php echo $order['mchid']; ?></td>
- <td class="align-left"><?php echo $order['mch_name']; ?></td>
- <td class="align-left"><?php echo $order['order_sn']; ?></td>
- <td class="align-left"><?php echo $order['card_no']; ?></td>
- <td class="align-center"><?php echo $order['card_type_text']; ?></td>
- <td class="align-center"><?php echo $order['is_transfer']; ?></td>
- <td class="align-center"><?php echo $order['refill_amount']; ?></td>
- <td class="align-center">
- <span class="doubleclick" data-order="<?php echo $order['order_sn']; ?>">
- <?php echo date('Y-m-d H:i:s', $order['order_time']); ?>
- </span>
- </td>
- <td class="align-right">
- <?php if (empty($order['notify_time'])) {
- if ($order['diff_time'] >= 1800 && $order['diff_time'] <= 3600) {
- ?>
- <span style="color: #fd9d0e"><?php echo $order['diff_time_text'] ?></span>
- <?php } elseif ($order['diff_time'] > 3600) { ?>
- <span style="color: #f30707"><?php echo $order['diff_time_text'] ?></span>
- <?php } else { ?>
- <?php echo $order['diff_time_text'] ?>
- <?php } ?>
- <?php } else { ?>
- <?php echo $order['diff_time_text'] ?>
- <?php } ?>
- </td>
- <td class="align-center"><?php echo orderState($order); ?></td>
- <td class="align-left"><?php echo $order['official_sn']; ?></td>
- <td class="align-left"><?php echo $order['err_msg']; ?></td>
- <td class="align-left"><?php echo $order['mch_order']; ?></td>
- <td class="align-left"><?php echo $order['channel_name']; ?></td>
- <td class="align-left" class="ch_trade_no"><?php echo $order['ch_trade_no']; ?></td>
- <td class="align-right"><?php echo $order['commit_times']; ?></td>
- <td class="align-center"><?php echo $order['quality_text']; ?></td>
- <td class="align-center"><?php echo $order['org_quality_text']; ?></td>
- <!-- <td class="align-center">--><?php //echo $order['mch_amount'];
- ?>
- <!--</td>-->
- <td class="align-center" id="Manual">
- <?php if (($order['order_state'] == ORDER_STATE_CANCEL || $order['order_state'] == ORDER_STATE_SUCCESS) && $order['is_retrying'] == 0) { ?>
- <a class="covercolor" href="index.php?act=merchant&op=notify_merchant&order_id=<?php echo $order['order_id']; ?>">
- 回调</a>
- <?php } ?>
- <?php if ($order['order_state'] == ORDER_STATE_SEND) { ?>
- <a class="covercolor" id="cancel" order_id="<?php echo $order['order_id']; ?>" href="#">
- 手动失败</a>
- |
- <a class="covercolor" id="success" order_id="<?php echo $order['order_id']; ?>" href="#">
- 手动成功</a>
- <?php } ?>
- <?php if ($order['card_type'] == mtopcard\ThirdRefillCard) { ?>
- |
- <a class="covercolor" href="#" id="examine" data-order="<?php echo $order['order_id']; ?>">
- 查看</a>
- <?php } ?>
- </td>
- </tr>
- <?php } ?>
- <?php } else { ?>
- <tr class="no_data">
- <td colspan="20"><?php echo $lang['nc_no_record']; ?></td>
- </tr>
- <?php } ?>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="20" id="dataFuncs">
- <div class="pagination"> <?php echo $output['show_page']; ?> </div>
- </td>
- </tr>
- </tfoot>
- </table>
- </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>
- <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" src="<?php echo ADMIN_TEMPLATES_URL; ?>/js/xm-select.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/refill/layer.js"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/refill/moment-with-locales.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" />
- <script type="text/javascript">
- $(function() {
- layui.use('form', function() {
- var form = layui.form;
- form.render('select', 'store_id_select');
- })
- function initialHighlight(id) {
- const $options = $('.mchid_name');
- const attrs = [];
- for (let i = 0; i < $options.length; i++) {
- attrs.push({
- alpha: $options.eq(i).attr('alpha-data'),
- value: $options.eq(i).attr('value')
- })
- }
- var highlight = [];
- var currentLetter = '';
- for (let i = 0; i < attrs.length; i++) {
- if (currentLetter == attrs[i].alpha) {
- continue;
- } else {
- highlight.push(attrs[i]);
- currentLetter = attrs[i].alpha;
- }
- }
- const $realDom = $(id).siblings('.layui-form-select').find('dd');
- for (let i = 0; i < highlight.length; i++) {
- for (let j = 0; j < $realDom.length; j++) {
- if (highlight[i].value == $realDom.eq(j).attr('lay-value')) {
- let text = $realDom.eq(j).text();
- $realDom.eq(j).html('<span class="highlightLetter-' + i + '-' + j + '" style="color:red;position:relative;">' + text.substring(0, 1) + '</span>' + text.substring(1, text.length))
- $('<style type="text/css">.highlightLetter-' + i + '-' + j + ':before{ content:"' + highlight[i].alpha.toLocaleUpperCase() + '";position:absolute;right:4px;top:-10px;color:#09C;width:12px;height:12px;line-height:12px;text-align:center;}</style>').appendTo('head');
- }
- }
- }
- console.log('highlight', highlight);
- }
- initialHighlight('#mchid');
- let EntTime = localStorage.getItem('Endtime')
- $('#endTime').val(EntTime)
- localStorage.clear();
- //查看
- $('#examine').click(function() {
- let order_id = $(this).attr('data-order')
- $.get('index.php?act=refill_order&op=refill_third_info', {
- order_id: order_id
- }, function(data) {
- data = JSON.parse(data)
- if (data.state == 1) {
- let contentArr = []
- contentArr.push(`单号:${data.data.order_sn}`)
- contentArr.push(`产品编码:${data.data.pcode}`)
- contentArr.push(`渠道编码:${data.data.chcode}`)
- contentArr.push(`充值数量:${data.data.quantity}`)
- if (data.data.user_account) {
- contentArr.push(`充值账号:${data.data.user_account}`)
- contentArr.push(`账号类型:${data.data.account_type_text}`)
- } else {
- contentArr.push(`卡密验证状态:${data.data.ret_state_text}`)
- contentArr.push(`卡密信息:${data.data.card_info}`)
- }
- let content = ''
- for (let index = 0; index < contentArr.length; index++) {
- content += `<p>${contentArr[index]}</p>`
- }
- layer.open({
- title: "查看",
- content: content
- });
- }
- })
- })
- //双击
- $('.doubleclick').dblclick(function() {
- let order_sn = $(this).attr('data-order')
- $.get('index.php?act=refill_order&op=showOrders', {
- order_sn: order_sn
- }, function(data) {
- data = JSON.parse(data)
- if (data.state == 1) {
- let order_item = data.data
- let html = '';
- for (let i = 0; i < order_item.length; i++) {
- let item = order_item[i];
- html += `
- <tr>
- <td class="db-center">${item.order_sn}</td>
- <td class="db-center">${item.commit_time_text}</td>
- <td class="db-center">${item.notify_time_text}</td>
- <td class="db-center">${item.diff_time_text}</td>
- <td class="db-center">${item.order_state_text}</td>
- <td class="db-center">${item.channel_name}</td>
- <td class="db-center">${item.err_msg}</td>
- <td class="db-center">${item.close_reason}</td>
- <td class="db-center">${item.quality_text}</td>
- <tr> `
- }
- let content = `<table>
- <thead>
- <tr>
- <th class="db-right">订单号</th>
- <th class="db-right">提单日期</th>
- <th class="db-right">回调日期</th>
- <th class="db-right">耗时</th>
- <th class="db-right">订单状态</th>
- <th class="db-right">供方名称</th>
- <th class="db-right">错误原因(充值)</th>
- <th class="db-right">错误原因(订单)</th>
- <th class="db-right">订单质量</th>
- </tr>
- </thead>
- <tbody>${html}</tbody>
- </table>`
- layer.open({
- title: `<span>共${data.count}单</span> <span class="db-top">回调状态:${data.mch_notify_state}</span> <span>回调次数:${data.mch_notify_times}</span>`,
- content: content
- });
- } else {
- alert("没有此订单");
- }
- })
- })
- // 手动失败 成功
- $('#Manual #cancel').each(function(index, item) {
- $(item).click(function() {
- let order_id = $(this).attr("order_id")
- layer.confirm('您确实要手动失败', {
- btn: ['确定', '取消'],
- title: '手动失败'
- }, function() {
- window.location.href = `index.php?act=merchant&op=notify_manual_merchant&type=cancel&order_id= ${order_id}`
- }, function() {})
- })
- })
- // 手动成功
- $('#Manual #success').each(function(index, item) {
- $(item).click(function() {
- let order_id = $(this).attr("order_id")
- layer.confirm('您确实要手动成功', {
- btn: ['确定', '取消'],
- title: '手动成功'
- }, function() {
- window.location.href = `index.php?act=merchant&op=notify_manual_merchant&type=success&order_id= ${order_id}`
- }, function() {})
- })
- })
- let Base64 = {
- encode(str) {
- // first we use encodeURIComponent to get percent-encoded UTF-8,
- // then we convert the percent encodings into raw bytes which
- // can be fed into btoa.
- return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,
- function toSolidBytes(match, p1) {
- return String.fromCharCode('0x' + p1);
- }));
- },
- decode(str) {
- // Going backwards: from bytestream, to percent-encoding, to original string.
- return decodeURIComponent(atob(str).split('').map(function(c) {
- return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
- }).join(''));
- }
- };
- // 获取不包含客户
- let exclude_merchant
- let default_no_mch = $('input[name="default_no_mch"]').val().split(',');
- let exmechs = $('input[name="exmechs"]').val();
- $('input[name="exmechs"]').val('');
- exmechs = Base64.decode(exmechs)
- let data = JSON.parse(exmechs)
- if (default_no_mch) {
- for (let index = 0; index < default_no_mch.length; index++) {
- for (let j = 0; j < data.length; j++) {
- if (default_no_mch[index] == data[j].value) {
- data[j].selected = true
- }
- }
- }
- }
- exclude_merchant = xmSelect.render({
- el: '#select_nc',
- size: 'mini',
- filterable: true,
- autoRow: true,
- height: '500px',
- style: {
- minHeight: '27px',
- lineHeight: '27px',
- marginLeft: '4px'
- },
- language: 'zn',
- data: data
- })
- // 获取包含面值
- let denomination
- let default_no_amount = $('input[name="default_no_amount"]').val().split(',');
- let datas = [{
- name: '10',
- value: 10
- },
- {
- name: '20',
- value: 20
- },
- {
- name: '30',
- value: 30
- },
- {
- name: '50',
- value: 50
- },
- {
- name: '100',
- value: 100
- },
- {
- name: '200',
- value: 200
- },
- {
- name: '300',
- value: 300
- },
- {
- name: '500',
- value: 500
- },
- {
- name: '1000',
- value: 1000
- },
- {
- name: '2000',
- value: 2000
- },
- ]
- if (default_no_amount) {
- for (let index = 0; index < default_no_amount.length; index++) {
- for (let j = 0; j < datas.length; j++) {
- if (default_no_amount[index] == datas[j].value) {
- datas[j].selected = true
- }
- }
- }
- }
- denomination = xmSelect.render({
- el: '#denomination',
- size: 'mini',
- filterable: true,
- autoRow: true,
- height: '500px',
- style: {
- minHeight: '27px',
- lineHeight: '27px',
- marginLeft: '4px'
- },
- language: 'zn',
- data: datas
- })
- $('#ncsubmit').click(function() {
- loadIndex = layer.load();
- $('input[name="op"]').val('index');
- let selectArr = exclude_merchant.getValue();
- let selectStr = ''
- for (let i = 0; i < selectArr.length; i++) {
- selectStr += selectArr[i].value + ','
- }
- selectStr = selectStr.substr(0, selectStr.length - 1)
- let nominalAll = denomination.getValue();
- let nominalStr = ''
- for (let i = 0; i < nominalAll.length; i++) {
- nominalStr += nominalAll[i].value + ','
- }
- nominalStr = nominalStr.substr(0, nominalStr.length - 1)
- $('input[name="no_mchid"]').val(selectStr);
- $('input[name="no_amount"]').val(nominalStr);
- $('#formSearch').submit();
- let Endtime = $('#endTime').val()
- localStorage.setItem('Endtime', Endtime)
- });
- // 导出
- $('#ncexport').click(function() {
- $('input[name="export"]').val('1');
- $('input[name="op"]').val('index');
- // 不包含客户
- let selectArr = exclude_merchant.getValue();
- let selectStr = ''
- for (let i = 0; i < selectArr.length; i++) {
- selectStr += selectArr[i].value + ','
- }
- selectStr = selectStr.substr(0, selectStr.length - 1)
- $('input[name="no_mchid"]').val(selectStr);
- let time_type = $('.time_type').find('option:selected').text();
- let mchid = $('#mchid[name=mchid]').find('option:selected').html()
- let store_id = $('.store_id').find('option:selected').text();
- let order_state = $('.order_state').find('option:selected').text();
- let startTime = $('#startTime').val()
- let endTime = $('#endTime').val()
- let str = time_type + ` : ${startTime}-${endTime}`
- if (mchid != '请选择') {
- str = str + `,客户名称:${mchid}`
- }
- if (store_id != '请选择') {
- str = str + `,供方名称:${store_id}`
- }
- if (order_state != '请选择') {
- str = str + `,订单状态:${order_state}`
- }
- $('input[name="task_title"]').val(str);
- $('#formSearch').submit();
- $('input[name="export"]').val('');
- let Endtime = $('#endTime').val()
- localStorage.setItem('Endtime', Endtime)
- layer.load();
- })
- //搜索+统计
- $('#ncstat').click(function() {
- layer.load();
- $('input[name="fShowStat"]').val('1');
- $('input[name="op"]').val('index');
- // 不包含客户
- let selectArr = exclude_merchant.getValue();
- let selectStr = ''
- for (let i = 0; i < selectArr.length; i++) {
- selectStr += selectArr[i].value + ','
- }
- selectStr = selectStr.substr(0, selectStr.length - 1)
- // 不包含面值
- let nominalAll = denomination.getValue();
- let nominalStr = ''
- for (let i = 0; i < nominalAll.length; i++) {
- nominalStr += nominalAll[i].value + ','
- }
- nominalStr = nominalStr.substr(0, nominalStr.length - 1)
- $('input[name="no_mchid"]').val(selectStr);
- $('input[name="no_amount"]').val(nominalStr);
- $('#formSearch').submit();
- $('input[name="fShowStat"]').val('');
- let Endtime = $('#endTime').val()
- localStorage.setItem('Endtime', Endtime)
- })
- // 向客户回调
- $('#mch_notify').click(function() {
- layer.load();
- $('input[name="mch_notify"]').val('1');
- $('input[name="op"]').val('index');
- // 不包含客户
- let selectArr = exclude_merchant.getValue();
- let selectStr = ''
- for (let i = 0; i < selectArr.length; i++) {
- selectStr += selectArr[i].value + ','
- }
- selectStr = selectStr.substr(0, selectStr.length - 1)
- $('input[name="no_mchid"]').val(selectStr);
- $('#formSearch').submit();
- $('input[name="mch_notify"]').val('');
- })
- // 更新待收货状态
- $('#order_query').click(function() {
- layer.load();
- $('input[name="order_query"]').val('1');
- $('input[name="op"]').val('index');
- // 不包含客户
- let selectArr = exclude_merchant.getValue();
- let selectStr = ''
- for (let i = 0; i < selectArr.length; i++) {
- selectStr += selectArr[i].value + ','
- }
- selectStr = selectStr.substr(0, selectStr.length - 1)
- $('input[name="no_mchid"]').val(selectStr);
- $('#formSearch').submit();
- $('input[name="order_query"]').val('');
- })
- // 日期选择器
- laydate.render({
- elem: '#startTime',
- type: 'datetime',
- trigger: 'click'
- });
- laydate.render({
- elem: '#endTime',
- type: 'datetime',
- trigger: 'click'
- });
- // 表格hover时背景
- $('.trFlex').each(function() {
- $(this).hover(function() {
- $(this)[0].style.backgroundColor = '#cbe9f3'
- }, function() {
- $(this)[0].style.backgroundColor = '#fff'
- })
- })
- // 供方名称颜色
- $('.textColor').each(function() {
- let color = $(this).attr('data-color')
- if (color == '1') {
- $(this).css('color', 'green')
- } else {
- $(this).css('color', 'red')
- }
- })
- // 十分钟订单
- $('#10_rder').click(function() {
- let date = new Date()
- let time = date.getTime() - 600000
- let str = moment(time).format("YYYY-M-DD HH:mm:ss")
- $('#startTime').val(str)
- });
- // 30分钟订单
- $('#30_rder').click(function() {
- let date = new Date()
- let time = date.getTime() - 1800000
- let str = moment(time).format("YYYY-M-DD HH:mm:ss")
- $('#startTime').val(str)
- });
- // 60分钟订单
- $('#60_rder').click(function() {
- let date = new Date()
- let time = date.getTime() - 3600000
- let str = moment(time).format("YYYY-M-DD HH:mm:ss")
- $('#startTime').val(str)
- });
- // 当前零点钟订单
- $('#0_rder').click(function() {
- // let date = new Date()
- // let time = date.getTime()
- // let str = moment(time).format("YYYY-MM-DD HH:mm:ss")
- // let start = moment(str,"YYYY-M-DD")
- // str = start.format("YYYY-MM-DD HH:mm:ss")
- let str = moment().startOf('day').format('YYYY-MM-DD HH:mm:ss');
- $('#startTime').val(str)
- })
- });
- function copy_some(col) {
- let str = ''
- $('#tbody tr').each(function() {
- let res = $(this).find('td').eq(col).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 hCopyChannel(e) {
- copy_some(15)
- }
- function hCopyCardNo(e) {
- copy_some(4)
- }
- function hCopyOrderSn(e) {
- copy_some(3)
- }
- function hCopyMchOrder(e) {
- copy_some(13)
- }
- </script>
|