refill.order.index.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. <style>
  2. th label { display: inline-block;width: 60px; }
  3. .lineLi {
  4. min-width: 150px;
  5. font-size: 12px;
  6. color:#000;
  7. }
  8. #prompt ul .noLineLi {
  9. background:none;
  10. }
  11. #prompt div {
  12. display:inline-block;
  13. background:none
  14. }
  15. #prompt ul .lineLi {
  16. color:#000;
  17. }
  18. </style>
  19. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  20. <div class="page">
  21. <div class="fixed-bar">
  22. <div class="item-title">
  23. <h3>订单列表</h3>
  24. <ul class="tab-base">
  25. <li><a href="JavaScript:void(0);" class="current"><span>管理</span></a></li>
  26. </ul>
  27. </div>
  28. </div>
  29. <div class="fixed-empty"></div>
  30. <form method="get" action="index.php" name="formSearch" id="formSearch">
  31. <input type="hidden" name="act" value="merchant"/>
  32. <input type="hidden" name="op" value="refill_order"/>
  33. <input type="hidden" name="export" value=""/>
  34. <input type="hidden" name="fShowStat" value=""/>
  35. <table class="tb-type1 noborder search" style="min-width:1400px">
  36. <tbody>
  37. <tr>
  38. <th><label>我方订单号</label></th>
  39. <td><input class="txt2" type="text" name="order_sn" value="<?php echo $_GET['order_sn']; ?>"/></td>
  40. <th><label>客户订单号</label></th>
  41. <td><input class="txt2" type="text" name="mch_order" value="<?php echo $_GET['mch_order']; ?>"/></td>
  42. <th><label>供方订单号</label></th>
  43. <td><input class="txt2" type="text" name="ch_trade_no" value="<?php echo $_GET['ch_trade_no']; ?>"/></td>
  44. </tr>
  45. <tr>
  46. <th><label>客户名称</label></th>
  47. <td>
  48. <select name="mchid" class="querySelect">
  49. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  50. <?php foreach($output['merchant_list'] as $merchant){?>
  51. <option value="<?php echo $merchant['mchid']?>"
  52. <?php if ($_GET['mchid'] == $merchant['mchid']){ ?>selected<?php } ?>><?php echo $merchant['company_name'] == '' ? $merchant['name'] : $merchant['company_name'];?>
  53. </option>
  54. <?php }?>
  55. </select>
  56. </td>
  57. <th><label>供方名称</label></th>
  58. <td>
  59. <select name="store_id" class="querySelect">
  60. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  61. <?php foreach($output['provider_list'] as $provider){?>
  62. <option value="<?php echo $provider['store_id']?>"
  63. <?php if ($_GET['store_id'] == $provider['store_id']){ ?>selected<?php } ?> data-color="<?php echo $provider['opened']?>" class="textColor">
  64. <?php echo $provider['store_name']?>
  65. </option>
  66. <?php }?>
  67. </select>
  68. </td>
  69. </tr>
  70. <tr>
  71. <th><label>充值卡卡号</label></th>
  72. <td><input class="txt2" type="text" name="card_no" value="<?php echo $_GET['card_no']; ?>"/></td>
  73. </tr>
  74. <tr>
  75. <th><label for="query_start_time">下单时间</label></th>
  76. <td>
  77. <input class="txt date" type="text" value="<?php echo $_GET['query_start_time']; ?>"
  78. id="startTime" name="query_start_time" autocomplete="off" style="width:120px" />
  79. <label for="query_start_time">~</label>
  80. <input class="txt date" type="text" value="<?php echo $_GET['query_end_time']; ?>"
  81. id="endTime" name="query_end_time" autocomplete="off" style="width:120px" /></td>
  82. <th><label>订单状态</label></th>
  83. <td>
  84. <select name="order_state" class="querySelect">
  85. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  86. <option value="10"
  87. <?php if ($_GET['order_state'] == '10'){ ?>selected<?php } ?>><?php echo $lang['order_state_new']; ?></option>
  88. <option value="20"
  89. <?php if ($_GET['order_state'] == '20'){ ?>selected<?php } ?>><?php echo $lang['order_state_pay']; ?></option>
  90. <option value="30"
  91. <?php if ($_GET['order_state'] == '30'){ ?>selected<?php } ?>><?php echo $lang['order_state_send']; ?></option>
  92. <option value="40"
  93. <?php if ($_GET['order_state'] == '40'){ ?>selected<?php } ?>><?php echo $lang['order_state_success']; ?></option>
  94. <option value="0"
  95. <?php if ($_GET['order_state'] == '0'){ ?>selected<?php } ?>><?php echo $lang['order_state_cancel']; ?></option>
  96. </select>
  97. <label>充值类型</label>
  98. <select name="card_type" class="querySelect">
  99. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  100. <option value="1"
  101. <?php if ($_GET['card_type'] == '1'){ ?>selected<?php } ?>>中石油</option>
  102. <option value="2"
  103. <?php if ($_GET['card_type'] == '2'){ ?>selected<?php } ?>>中石化</option>
  104. <option value="4"
  105. <?php if ($_GET['card_type'] == '4'){ ?>selected<?php } ?>>中国移动</option>
  106. <option value="5"
  107. <?php if ($_GET['card_type'] == '5'){ ?>selected<?php } ?>>中国联通</option>
  108. <option value="6"
  109. <?php if ($_GET['card_type'] == '6'){ ?>selected<?php } ?>>中国电信</option>
  110. <option value="oil"
  111. <?php if ($_GET['card_type'] == 'oil'){ ?>selected<?php } ?>>油费</option>
  112. <option value="phone"
  113. <?php if ($_GET['card_type'] == 'phone'){ ?>selected<?php } ?>>手机费</option>
  114. </select>
  115. </td>
  116. <th><label>交易面额</label></th>
  117. <td>
  118. <select name="refill_amount" class="querySelect">
  119. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  120. <option value="10"
  121. <?php if ($_GET['refill_amount'] == '10'){ ?>selected<?php } ?>>10</option>
  122. <option value="20"
  123. <?php if ($_GET['refill_amount'] == '20'){ ?>selected<?php } ?>>20</option>
  124. <option value="30"
  125. <?php if ($_GET['refill_amount'] == '30'){ ?>selected<?php } ?>>30</option>
  126. <option value="50"
  127. <?php if ($_GET['refill_amount'] == '50'){ ?>selected<?php } ?>>50</option>
  128. <option value="100"
  129. <?php if ($_GET['refill_amount'] == '100'){ ?>selected<?php } ?>>100</option>
  130. <option value="200"
  131. <?php if ($_GET['refill_amount'] == '200'){ ?>selected<?php } ?>>200</option>
  132. <option value="300"
  133. <?php if ($_GET['refill_amount'] == '300'){ ?>selected<?php } ?>>300</option>
  134. <option value="500"
  135. <?php if ($_GET['refill_amount'] == '500'){ ?>selected<?php } ?>>500</option>
  136. <option value="1000"
  137. <?php if ($_GET['refill_amount'] == '1000'){ ?>selected<?php } ?>>1000</option>
  138. <option value="2000"
  139. <?php if ($_GET['refill_amount'] == '2000'){ ?>selected<?php } ?>>2000</option>
  140. </select>
  141. <label>充值耗时</label>
  142. <select name="time" class="querySelect">
  143. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  144. <option value="1"
  145. <?php if ($_GET['time'] == '1'){ ?>selected<?php } ?>>耗时半小时</option>
  146. <option value="2"
  147. <?php if ($_GET['time'] == '2'){ ?>selected<?php } ?>>耗时一小时</option>
  148. </select>
  149. </td>
  150. <th><label>通道质量</label></th>
  151. <td>
  152. <select name="quality" class="querySelect">
  153. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  154. <option value="1"
  155. <?php if ($_GET['quality'] == '1'){ ?>selected<?php } ?>>普充</option>
  156. <option value="2"
  157. <?php if ($_GET['quality'] == '2'){ ?>selected<?php } ?>>快充</option>
  158. <option value="3"
  159. <?php if ($_GET['quality'] == '3'){ ?>selected<?php } ?>>卡密</option>
  160. <option value="4"
  161. <?php if ($_GET['quality'] == '4'){ ?>selected<?php } ?>>三方</option>
  162. <option value="5"
  163. <?php if ($_GET['quality'] == '5'){ ?>selected<?php } ?>>慢充二十四小时</option>
  164. <option value="6"
  165. <?php if ($_GET['quality'] == '6'){ ?>selected<?php } ?>>慢充六小时</option>
  166. <option value="7"
  167. <?php if ($_GET['quality'] == '7'){ ?>selected<?php } ?>>慢充两小时</option>
  168. </select>
  169. </td>
  170. <td>
  171. <a href="javascript:void(0);" id="ncsubmit" class="btn-search "
  172. title="<?php echo $lang['nc_query']; ?>">&nbsp;
  173. </a>
  174. </td>
  175. </tr>
  176. <tr>
  177. <td></td>
  178. <td>
  179. <a href="#" class="btns" onclick="hCopyChannel(event)">
  180. <span><i class="icon-edit"></i>拷贝渠道单号</span>
  181. </a>
  182. <a href="#" class="btns" onclick="hCopyCardNo(event)">
  183. <span><i class="icon-edit"></i>拷贝充值卡号</span>
  184. </a>
  185. <a href="index.php?act=merchant&op=OrderQuery" class="btns" >
  186. <span><i class="icon-edit"></i>更新待收货订单状态</span>
  187. </a>
  188. </td>
  189. <td></td>
  190. <td>
  191. <a href="index.php?act=merchant&op=mch_notify" class="btns" >
  192. <span><i class="icon-edit"></i>向客户回调</span>
  193. </a>
  194. <a href="#" class="btns" id="10_rder">
  195. <span><i class="icon-edit"></i>10分钟订单</span>
  196. </a>
  197. <a href="#" class="btns" id="30_rder">
  198. <span><i class="icon-edit"></i>半小时订单</span>
  199. </a>
  200. </td>
  201. <td>
  202. <a href="javascript:void(0);" id="ncexport" class="btns" >
  203. <span><i class="icon-edit"></i>导出</span>
  204. </a>
  205. <a href="javascript:void(0);" id="ncstat" class="btns">
  206. <span>搜索+统计</span>
  207. </a>
  208. </td>
  209. </tr>
  210. </tbody>
  211. </table>
  212. </form>
  213. <?php if($_GET['fShowStat'] == 1){?>
  214. <table class="table tb-type2" id="prompt" style="min-width:1400px">
  215. <tbody>
  216. <tr class="space odd">
  217. <th colspan="12"><div class="title"><h5>
  218. 金额统计<?php echo $output['ftoday'] == true ? "(今日)" : "" ?></h5><span class="arrow"></span></div></th>
  219. </tr>
  220. <tr>
  221. <td>
  222. <ul>
  223. <div>
  224. <li class="lineLi">总计订单数量:<?php echo $output['stat']['all']['order_count'] ?? 0?></li>
  225. <li class="lineLi">总计充值金额:<?php echo $output['stat']['all']['refill_amounts'] ?? 0?></li>
  226. <li class="lineLi">总计客户扣款金额:<?php echo $output['stat']['all']['mch_amounts'] ?? 0?></li>
  227. <li class="lineLi noLineLi">&nbsp;</li>
  228. <li class="lineLi">总计供方扣款金额:<?php echo $output['stat']['all']['channel_amounts'] ?? 0?></li>
  229. <li class="lineLi">总计利润:<?php echo ncPriceFormat($output['stat']['all']['mch_amounts'] - $output['stat']['all']['channel_amounts'])?></li>
  230. </div>
  231. <div>
  232. <li class="lineLi">总计充值中订单数量:<?php echo $output['stat']['sending']['order_count'] ?? 0?></li>
  233. <li class="lineLi">总计充值中订单金额:<?php echo $output['stat']['sending']['refill_amounts'] ?? 0?></li>
  234. <li class="lineLi">总计充值中客户扣款金额:<?php echo $output['stat']['sending']['mch_amounts'] ?? 0?></li>
  235. <li class="lineLi noLineLi">&nbsp;</li>
  236. <li class="lineLi">总计充值中供方扣款金额:<?php echo $output['stat']['sending']['channel_amounts'] ?? 0?></li>
  237. <li class="lineLi">总计充值中利润:<?php echo ncPriceFormat($output['stat']['sending']['mch_amounts'] - $output['stat']['sending']['channel_amounts'])?></li>
  238. </div>
  239. <div>
  240. <li class="lineLi">总计充值成功订单数量:<?php echo $output['stat']['success']['order_count'] ?? 0?></li>
  241. <li class="lineLi">总计充值成功订单金额:<?php echo $output['stat']['success']['refill_amounts'] ?? 0?></li>
  242. <li class="lineLi">总计充值成功客户扣款金额:<?php echo $output['stat']['success']['mch_amounts'] ?? 0?></li>
  243. <li class="lineLi noLineLi">&nbsp;</li>
  244. <li class="lineLi">总计充值成功供方扣款金额:<?php echo $output['stat']['success']['channel_amounts'] ?? 0?></li>
  245. <li class="lineLi">总计充值成功利润:<?php echo ncPriceFormat($output['stat']['success']['mch_amounts'] - $output['stat']['success']['channel_amounts'])?></li>
  246. </div>
  247. <div>
  248. <li class="lineLi">总计充值失败订单数量:<?php echo $output['stat']['cancel']['order_count'] ?? 0?></li>
  249. <li class="lineLi">总计充值失败订单金额:<?php echo $output['stat']['cancel']['refill_amounts'] ?? 0?></li>
  250. <li class="lineLi">总计充值失败客户扣款金额:<?php echo $output['stat']['cancel']['mch_amounts'] ?? 0?></li>
  251. <li class="lineLi noLineLi">&nbsp;</li>
  252. <li class="lineLi">总计充值失败供方扣款金额:<?php echo $output['stat']['cancel']['channel_amounts'] ?? 0?></li>
  253. <li class="lineLi">总计充值失败利润:<?php echo ncPriceFormat($output['stat']['cancel']['mch_amounts'] - $output['stat']['cancel']['channel_amounts'])?></li>
  254. </div>
  255. <div>
  256. <li class="lineLi">成功率:
  257. <?php
  258. $count = $output['stat']['success']['order_count'] + $output['stat']['cancel']['order_count'];
  259. if($count == 0) {
  260. echo '0%';
  261. } else {
  262. $ratio = sprintf("%.2f",$output['stat']['success']['order_count'] / $count);
  263. $ratio = $ratio * 100;
  264. echo "{$ratio}%";
  265. }
  266. ?></li>
  267. </div>
  268. </ul>
  269. </td>
  270. </tr>
  271. </tbody>
  272. </table>
  273. <?php }?>
  274. <table class="table tb-type2 nobdb" style="min-width:1400px">
  275. <thead>
  276. <tr class="thead">
  277. <th class="align-center">编号</th>
  278. <th class="align-center">订单号</th>
  279. <th class="align-center">机构编号</th>
  280. <th class="align-center">机构名称</th>
  281. <th class="align-center">充值卡号</th>
  282. <th class="align-center">充值卡类型</th>
  283. <th class="align-center">充值额度</th>
  284. <th class="align-right">下单日期</th>
  285. <th class="align-right">耗时</th>
  286. <th class="align-center">订单状态</th>
  287. <th class="align-center">运营商流水号</th>
  288. <th class="align-center">备注</th>
  289. <th class="align-center">商家单号</th>
  290. <th class="align-center">渠道单号</th>
  291. <th class="align-center">渠道名称</th>
  292. <th class="align-center">次数</th>
  293. <th class="align-center">质量</th>
  294. <th class="align-center">初始质量</th>
  295. <!-- <th class="align-center">扣款金额</th>-->
  296. <th class="align-center"><?php echo $lang['nc_handle']; ?></th>
  297. </tr>
  298. </thead>
  299. <tbody id="tbody">
  300. <?php if (count($output['order_list']) > 0) { ?>
  301. <?php
  302. foreach ($output['order_list'] as $key => $order) { ?>
  303. <tr class="hover trFlex">
  304. <td class="align-center"><?php echo $key+1;?></td>
  305. <td class="align-left"><?php echo $order['order_sn']; ?></td>
  306. <td class="align-center"><?php echo $order['mchid']; ?></td>
  307. <td class="align-center"><?php echo $order['mch_name']; ?></td>
  308. <td class="align-left"><?php echo $order['card_no']; ?></td>
  309. <td class="align-center"><?php echo $order['card_type_text']; ?></td>
  310. <td class="align-center"><?php echo $order['refill_amount']; ?></td>
  311. <td class="align-right"><?php echo date('Y-m-d H:i:s', $order['order_time']); ?></td>
  312. <td class="align-right">
  313. <?php if(empty($order['notify_time'])) {
  314. if($order['diff_time'] >= 1800 && $order['diff_time'] <= 3600) {
  315. ?>
  316. <span style="color: #fd9d0e"><?php echo $order['diff_time_text']?></span>
  317. <?php }elseif($order['diff_time'] > 3600) {?>
  318. <span style="color: #f30707"><?php echo $order['diff_time_text']?></span>
  319. <?php }else{?>
  320. <?php echo $order['diff_time_text']?>
  321. <?php }?>
  322. <?php }else{?>
  323. <?php echo $order['diff_time_text']?>
  324. <?php }?>
  325. </td>
  326. <td class="align-center"><?php echo orderState($order); ?></td>
  327. <td class="align-left"><?php echo $order['official_sn']; ?></td>
  328. <td class="align-left"><?php echo $order['err_msg']; ?></td>
  329. <td class="align-left"><?php echo $order['mch_order']; ?></td>
  330. <td class="align-left" class="ch_trade_no"><?php echo $order['ch_trade_no']; ?></td>
  331. <td class="align-center"><?php echo $order['channel_name']; ?></td>
  332. <td class="align-center"><?php echo $order['commit_times']; ?></td>
  333. <td class="align-center"><?php echo $order['quality_text']; ?></td>
  334. <td class="align-center"><?php echo $order['org_quality_text']; ?></td>
  335. <!-- <td class="align-center">--><?php //echo $order['mch_amount']; ?><!--</td>-->
  336. <td class="w144 align-center">
  337. <a href="index.php?act=merchant&op=notify_merchant&order_id=<?php echo $order['order_id']; ?>">
  338. 回调</a>
  339. |
  340. <a href="index.php?act=merchant&op=notify_manual_merchant&type=cancel&order_id=<?php echo $order['order_id']; ?>">
  341. 手动失败</a>
  342. |
  343. <a href="index.php?act=merchant&op=notify_manual_merchant&type=success&order_id=<?php echo $order['order_id']; ?>">
  344. 手动成功</a>
  345. </td>
  346. </tr>
  347. <?php } ?>
  348. <?php } else { ?>
  349. <tr class="no_data">
  350. <td colspan="19"><?php echo $lang['nc_no_record']; ?></td>
  351. </tr>
  352. <?php } ?>
  353. </tbody>
  354. <tfoot>
  355. <tr class="tfoot">
  356. <td colspan="19" id="dataFuncs">
  357. <div class="pagination"> <?php echo $output['show_page']; ?> </div>
  358. </td>
  359. </tr>
  360. </tfoot>
  361. </table>
  362. </div>
  363. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  364. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  365. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
  366. charset="utf-8"></script>
  367. <link rel="stylesheet" type="text/css"
  368. href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
  369. <script type="text/javascript">
  370. $(function () {
  371. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  372. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  373. $('#ncsubmit').click(function () {
  374. $('input[name="op"]').val('refill_order');
  375. $('#formSearch').submit();
  376. });
  377. // 导出
  378. $('#ncexport').click(function () {
  379. $('input[name="export"]').val('1');
  380. $('input[name="op"]').val('refill_order');
  381. $('#formSearch').submit();
  382. $('input[name="export"]').val('');
  383. })
  384. //搜索+统计
  385. $('#ncstat').click(function () {
  386. $('input[name="fShowStat"]').val('1');
  387. $('input[name="op"]').val('refill_order');
  388. $('#formSearch').submit();
  389. $('input[name="fShowStat"]').val('');
  390. })
  391. // 日期选择器
  392. laydate.render({
  393. elem: '#startTime',
  394. type: 'datetime'
  395. });
  396. laydate.render({
  397. elem: '#endTime',
  398. type: 'datetime'
  399. });
  400. // 表格hover时背景
  401. $('.trFlex').each(function () {
  402. $(this).hover(function () {
  403. $(this)[0].style.backgroundColor = '#cbe9f3'
  404. },function() {
  405. $(this)[0].style.backgroundColor = '#fff'
  406. })
  407. })
  408. // 供方名称颜色
  409. $('.textColor').each(function () {
  410. let color = $(this).attr('data-color')
  411. if (color == '1') {
  412. $(this).css('color', 'green')
  413. } else {
  414. $(this).css('color', 'red')
  415. }
  416. })
  417. // 十分钟订单
  418. $('#10_rder').click(function () {
  419. let date=new Date();
  420. let min=date.getMinutes();
  421. date.setMinutes(min-10);
  422. let y = date.getFullYear();
  423. let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
  424. let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
  425. let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours()
  426. let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes()
  427. let s = date.getSeconds() < 10 ? ('0' + date.getseconds()) : date.getSeconds()
  428. let formatdate = y+'-'+m+'-'+d + " " + h + ":" + f + ":" + s;
  429. // console.log(formatdate)
  430. $('#startTime').val(formatdate)
  431. })
  432. // 30分钟订单
  433. $('#30_rder').click(function () {
  434. let date=new Date();
  435. let min=date.getMinutes();
  436. date.setMinutes(min-30);
  437. let y = date.getFullYear();
  438. let m = (date.getMonth() + 1) < 10 ? ("0" + (date.getMonth() + 1)) : (date.getMonth() + 1);
  439. let d = date.getDate() < 10 ? ("0" + date.getDate()) : date.getDate();
  440. let h = date.getHours() < 10 ? ('0' + date.getHours()) : date.getHours()
  441. let f = date.getMinutes() < 10 ? ('0' + date.getMinutes()) : date.getMinutes()
  442. let s = date.getSeconds() < 10 ? ('0' + date.getseconds()) : date.getSeconds()
  443. let formatdate = y+'-'+m+'-'+d + " " + h + ":" + f + ":" + s;
  444. // console.log(formatdate)
  445. $('#startTime').val(formatdate)
  446. })
  447. });
  448. function hCopyChannel(e) {
  449. let str = ''
  450. $('#tbody tr').each(function () {
  451. let res = $(this).find('td').eq(13).text()
  452. str += res + '\n'
  453. })
  454. let oInput = document.createElement("textarea");
  455. oInput.style.border = "0 none";
  456. oInput.style.color = "transparent";
  457. oInput.value = str;
  458. document.body.appendChild(oInput);
  459. oInput.select(); // 选择对象
  460. document.execCommand("Copy"); // 执行浏览器复制命令
  461. oInput.parentNode.removeChild(oInput)
  462. }
  463. function hCopyCardNo(e) {
  464. let str = ''
  465. $('#tbody tr').each(function () {
  466. let res = $(this).find('td').eq(4).text()
  467. str += res + '\n'
  468. })
  469. let oInput = document.createElement("textarea");
  470. oInput.style.border = "0 none";
  471. oInput.style.color = "transparent";
  472. oInput.value = str;
  473. document.body.appendChild(oInput);
  474. oInput.select(); // 选择对象
  475. document.execCommand("Copy"); // 执行浏览器复制命令
  476. oInput.parentNode.removeChild(oInput)
  477. }
  478. </script>