refill.order.send.index.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. <style>
  2. th label {
  3. display: inline-block;
  4. width: 60px;
  5. }
  6. .lineLi {
  7. display: inline-block;
  8. min-width: 150px;
  9. font-size: 14px;
  10. }
  11. .page .fixed-bar .item-title h3 {
  12. margin-top:18px !important;
  13. margin-bottom:10px !important;
  14. font-weight:700 !important;
  15. }
  16. .tab-base li span {
  17. font-size:12px !important;
  18. }
  19. .layui-form-select .layui-input {
  20. height:23px;
  21. padding-left: 11px;
  22. padding-right: 0!important;
  23. }
  24. input::placeholder{
  25. color:#333;
  26. }
  27. .layui-form-selected dl {
  28. display: flex!important;
  29. flex-wrap: wrap!important;
  30. }
  31. .layui-form-select dl {
  32. top: 29px !important;
  33. left: 4px!important;
  34. min-width: 802%!important;
  35. max-height: 280px!important;
  36. padding: 14px 0!important;
  37. }
  38. .layui-form-select dl dd.layui-this{
  39. display: none;
  40. }
  41. .layui-form-select dl dd {
  42. cursor: pointer;
  43. width: 130px;
  44. }
  45. .lefto {
  46. margin-left: 6px;
  47. }
  48. .db-right {
  49. padding-right: 134px!important;
  50. border-bottom: 1px solid #ccc;
  51. }
  52. .db-center {
  53. padding: 9px 0;
  54. border-bottom: 1px solid #ccc;
  55. }
  56. .db-top {
  57. padding: 0 30px;
  58. }
  59. #selest_nc {
  60. width: 220px
  61. }
  62. </style>
  63. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  64. <div class="page">
  65. <div class="fixed-bar">
  66. <div class="item-title">
  67. <h3>问题订单监控</h3>
  68. <ul class="tab-base">
  69. <li><a href="JavaScript:void(0);" class="current"><span>超时订单监控</span></a></li>
  70. <li><a href="index.php?act=ordersendlist&op=neterr_order"><span>网络错误订单监控</span></a></li>
  71. <li><a href="index.php?act=ordersendlist&op=notify_err_order"><span>未回调订单监控</span></a></li>
  72. </ul>
  73. </div>
  74. </div>
  75. <div class="fixed-empty"></div>
  76. <form method="get" action="index.php" name="formSearch" id="formSearch">
  77. <input type="hidden" name="act" value="OrderSendList"/>
  78. <input type="hidden" name="op" value="index"/>
  79. <input type="hidden" name="order_query" value=""/>
  80. <input type="hidden" name="no_mchid" value=""/>
  81. <input type="hidden" name="default_no_mch" value="<?php echo $_GET['no_mchid']; ?>"/>
  82. <table class="tb-type1 noborder search">
  83. <tr>
  84. <th><label>客户名称</label></th>
  85. <td class="layui-form">
  86. <select name="mchid" class="querySelect" lay-verify="" lay-search>
  87. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  88. <?php foreach ($output['merchant_list'] as $merchant) { ?>
  89. <option value="<?php echo $merchant['mchid'] ?>"
  90. <?php if ($_GET['mchid'] == $merchant['mchid']){ ?>selected<?php } ?>><?php echo $merchant['company_name'] == '' ? $merchant['name'] : $merchant['company_name']; ?>
  91. </option>
  92. <?php } ?>
  93. </select>
  94. </td>
  95. <th><label class="lefto">供方名称</label></th>
  96. <td>
  97. <select name="store_id" class="querySelect">
  98. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  99. <?php foreach ($output['provider_list'] as $provider) { ?>
  100. <option value="<?php echo $provider['store_id'] ?>"
  101. <?php if ($_GET['store_id'] == $provider['store_id']){ ?>selected<?php } ?>
  102. data-color="<?php echo $provider['opened'] ?>" class="textColor">
  103. <?php echo $provider['store_name'] ?>
  104. </option>
  105. <?php } ?>
  106. </select>
  107. </td>
  108. <th><label>充值类型</label></th>
  109. <td>
  110. <select name="card_type" class="querySelect">
  111. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  112. <option value="1"
  113. <?php if ($_GET['card_type'] == '1'){ ?>selected<?php } ?>>中石油
  114. </option>
  115. <option value="2"
  116. <?php if ($_GET['card_type'] == '2'){ ?>selected<?php } ?>>中石化
  117. </option>
  118. <option value="4"
  119. <?php if ($_GET['card_type'] == '4'){ ?>selected<?php } ?>>中国移动
  120. </option>
  121. <option value="5"
  122. <?php if ($_GET['card_type'] == '5'){ ?>selected<?php } ?>>中国联通
  123. </option>
  124. <option value="6"
  125. <?php if ($_GET['card_type'] == '6'){ ?>selected<?php } ?>>中国电信
  126. </option>
  127. <option value="7"
  128. <?php if ($_GET['card_type'] == '7'){ ?>selected<?php } ?>>增值业务
  129. </option>
  130. <option value="oil"
  131. <?php if ($_GET['card_type'] == 'oil'){ ?>selected<?php } ?>>油费
  132. </option>
  133. <option value="phone"
  134. <?php if ($_GET['card_type'] == 'phone'){ ?>selected<?php } ?>>手机费
  135. </option>
  136. </select>
  137. </td>
  138. <th><label>通道质量</label></th>
  139. <td>
  140. <select name="quality" class="querySelect">
  141. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  142. <option value="<?php echo refill\Quality::Normal;?>"
  143. <?php if ($_GET['quality'] == refill\Quality::Normal){ ?>selected<?php } ?>>普充(无流水)
  144. </option>
  145. <option value="<?php echo refill\Quality::Quick;?>"
  146. <?php if ($_GET['quality'] == refill\Quality::Quick){ ?>selected<?php } ?>>快充
  147. </option>
  148. <option value="<?php echo refill\Quality::CardKey;?>"
  149. <?php if ($_GET['quality'] == refill\Quality::CardKey){ ?>selected<?php } ?>>卡密
  150. </option>
  151. <option value="<?php echo refill\Quality::ThirdShop;?>"
  152. <?php if ($_GET['quality'] == refill\Quality::ThirdShop){ ?>selected<?php } ?>>三方
  153. </option>
  154. <option value="<?php echo refill\Quality::SlowTwentyFour;?>"
  155. <?php if ($_GET['quality'] == refill\Quality::SlowTwentyFour){ ?>selected<?php } ?>>慢24(有流水)
  156. </option>
  157. <option value="<?php echo refill\Quality::SlowSix;?>"
  158. <?php if ($_GET['quality'] == refill\Quality::SlowSix){ ?>selected<?php } ?>>慢6
  159. </option>
  160. <option value="<?php echo refill\Quality::SlowTwo;?>"
  161. <?php if ($_GET['quality'] == refill\Quality::SlowTwo){ ?>selected<?php } ?>>慢2
  162. </option>
  163. <option value="<?php echo refill\Quality::SlowFortyEight;?>"
  164. <?php if ($_GET['quality'] == refill\Quality::SlowFortyEight){ ?>selected<?php } ?>>慢48
  165. </option>
  166. <option value="<?php echo refill\Quality::SlowSeventyTwo;?>"
  167. <?php if ($_GET['quality'] == refill\Quality::SlowSeventyTwo){ ?>selected<?php } ?>>慢72
  168. </option>
  169. <option value="<?php echo refill\Quality::Fastest;?>"
  170. <?php if ($_GET['quality'] == refill\Quality::Fastest){ ?>selected<?php } ?>>速充
  171. </option>
  172. </select>
  173. </td>
  174. <th><label>订单耗时</label></th>
  175. <td>
  176. <select name="time" class="querySelect">
  177. <option value=""><?php echo $lang['nc_please_choose']; ?></option>
  178. <option value="1"
  179. <?php if ($_GET['time'] == '1'){ ?>selected<?php } ?>>耗时半小时订单
  180. </option>
  181. <option value="2"
  182. <?php if ($_GET['time'] == '2'){ ?>selected<?php } ?>>耗时一小时订单
  183. </option>
  184. <option value="3"
  185. <?php if ($_GET['time'] == '3'){ ?>selected<?php } ?>>特定耗时3分钟订单
  186. </option>
  187. <option value="4"
  188. <?php if ($_GET['time'] == '4'){ ?>selected<?php } ?>>特定耗时5分钟订单
  189. </option>
  190. <option value="5"
  191. <?php if ($_GET['time'] == '5'){ ?>selected<?php } ?>>特定耗时10分钟订单
  192. </option>
  193. <option value="6"
  194. <?php if ($_GET['time'] == '6'){ ?>selected<?php } ?>>特定耗时15分钟订单
  195. </option>
  196. <option value="7"
  197. <?php if ($_GET['time'] == '7'){ ?>selected<?php } ?>>特定耗时2小时订单
  198. </option>
  199. </select>
  200. </td>
  201. <th><label style="width: 73px;">不包含客户</label></th>
  202. <td>
  203. <div id="selest_nc"></div>
  204. </td>
  205. <td>
  206. <a style="margin-left:15px;" href="javascript:void(0);" id="ncsubmit" class="btn-search "
  207. title="<?php echo $lang['nc_query']; ?>">&nbsp;
  208. </a>
  209. </td>
  210. </tr>
  211. </table>
  212. <table class="tb-type1 noborder search">
  213. <tr>
  214. <td>
  215. <a href="javascript:void(0);" id="order_query" class="btns" >
  216. <span><i class="icon-edit"></i>更新待收货订单状态</span>
  217. </a>
  218. <a href="#" class="btns" onclick="hCopyOrder(event)">
  219. <span><i class="icon-edit"></i>拷贝订单号</span>
  220. </a>
  221. <a href="#" class="btns" onclick="hCopyChannel(event)">
  222. <span><i class="icon-edit"></i>拷贝渠道单号</span>
  223. </a>
  224. <a href="#" class="btns" onclick="hCopyCardNo(event)">
  225. <span><i class="icon-edit"></i>拷贝充值卡号</span>
  226. </a>
  227. </td>
  228. </tr>
  229. </table>
  230. </form>
  231. <table class="table tb-type2" id="prompt">
  232. <tbody>
  233. <tr class="space odd" id="autoClick">
  234. <th colspan="12">
  235. <div class="title"><h5>
  236. 金额统计</h5><span class="arrow"></span></div>
  237. </th>
  238. </tr>
  239. <tr>
  240. <td>
  241. <ul>
  242. <li class="lineLi" style="color:#000;">
  243. 总计充值金额:<?php echo $output['stat']['refill_amounts'] ?? 0 ?></li>
  244. <li class="lineLi" style="color:#000;">总计订单数量:<?php echo $output['stat']['order_count'] ?? 0 ?></li>
  245. <li class="lineLi" style="color:#000;">超过30分钟订单数量:<?php echo $output['count'][0] ?? 0 ?></li>
  246. <li class="lineLi" style="color:#000;">超过1小时订单数量:<?php echo $output['count'][1] ?? 0 ?></li>
  247. <?php if ($_GET['time'] == 3) { ?>
  248. <li class="lineLi" style="color:#000;">超过3分钟订单数量:<?php echo $output['count'][2] ?? 0 ?></li>
  249. <?php } elseif ($_GET['time'] == 4) { ?>
  250. <li class="lineLi" style="color:#000;">超过5分钟订单数量:<?php echo $output['count'][2] ?? 0 ?></li>
  251. <?php } elseif ($_GET['time'] == 5) { ?>
  252. <li class="lineLi" style="color:#000;">超过10分钟订单数量:<?php echo $output['count'][2] ?? 0 ?></li>
  253. <?php } elseif ($_GET['time'] == 6) { ?>
  254. <li class="lineLi" style="color:#000;">超过15分钟订单数量:<?php echo $output['count'][2] ?? 0 ?></li>
  255. <?php } elseif ($_GET['time'] == 7) { ?>
  256. <li class="lineLi" style="color:#000;">超过两小时订单数量:<?php echo $output['count'][2] ?? 0 ?></li>
  257. <?php } ?>
  258. </ul>
  259. </td>
  260. </tr>
  261. </tbody>
  262. </table>
  263. <table class="table tb-type2 nobdb">
  264. <thead>
  265. <tr class="thead">
  266. <th class="align-center">编号</th>
  267. <th class="align-center">订单号</th>
  268. <th class="align-center">机构编号</th>
  269. <th class="align-center">机构名称</th>
  270. <th class="align-center">充值卡号</th>
  271. <th class="align-center">充值卡类型</th>
  272. <th class="align-center">充值额度</th>
  273. <th class="align-right">下单日期</th>
  274. <th class="align-right">耗时</th>
  275. <th class="align-center">订单状态</th>
  276. <th class="align-center">通道质量</th>
  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"><?php echo $lang['nc_handle']; ?></th>
  283. </tr>
  284. </thead>
  285. <tbody id="tbody">
  286. <?php if (count($output['order_list']) > 0) { ?>
  287. <?php
  288. foreach ($output['order_list'] as $key => $order) { ?>
  289. <tr class="hover trFlex" id="dataColor" data-timeout_State="<?php echo $order['time_out_state'];?>">
  290. <td class="align-center"><?php echo $key + 1; ?></td>
  291. <td class="align-left"><?php echo $order['order_sn']; ?></td>
  292. <td class="align-center"><?php echo $order['mchid']; ?></td>
  293. <td class="align-center"><?php echo $order['mch_name']; ?></td>
  294. <td class="align-left"><?php echo $order['card_no']; ?></td>
  295. <td class="align-center"><?php echo $order['card_type_text']; ?></td>
  296. <td class="align-center"><?php echo $order['refill_amount']; ?></td>
  297. <td class="align-right">
  298. <span class="doubleclick" data-order="<?php echo $order['order_sn'];?>">
  299. <?php echo date('Y-m-d H:i:s', $order['order_time']); ?>
  300. </span>
  301. </td>
  302. <td class="align-right">
  303. <?php if (empty($order['notify_time'])) {
  304. if ($order['diff_time'] >= 1800 && $order['diff_time'] <= 3600) {
  305. ?>
  306. <span style="color: #fd9d0e"><?php echo $order['diff_time_text'] ?></span>
  307. <?php } elseif ($order['diff_time'] > 3600) { ?>
  308. <span style="color: #f30707"><?php echo $order['diff_time_text'] ?></span>
  309. <?php } else {
  310. ?>
  311. <?php echo $order['diff_time_text'] ?>
  312. <?php } ?>
  313. <?php } else { ?>
  314. <?php echo $order['diff_time_text'] ?>
  315. <?php } ?>
  316. </td>
  317. <td class="align-center"><?php echo orderState($order); ?></td>
  318. <td class="align-left"><?php echo $order['quality_text']; ?></td>
  319. <td class="align-left"><?php echo $order['err_msg']; ?></td>
  320. <td class="align-left"><?php echo $order['mch_order']; ?></td>
  321. <td class="align-center"><?php echo $order['mch_amount']; ?></td>
  322. <td class="align-left" class="ch_trade_no"><?php echo $order['ch_trade_no']; ?></td>
  323. <td class="align-center"><?php echo $order['channel_name']; ?></td>
  324. <td class="w144 align-center">
  325. <a href="index.php?act=merchant&op=notify_merchant&order_id=<?php echo $order['order_id']; ?>">
  326. 回调</a>
  327. </td>
  328. </tr>
  329. <?php } ?>
  330. <?php } else { ?>
  331. <tr class="no_data">
  332. <td colspan="17"><?php echo $lang['nc_no_record']; ?></td>
  333. </tr>
  334. <?php } ?>
  335. </tbody>
  336. <tfoot>
  337. <tr class="tfoot">
  338. <td colspan="17" id="dataFuncs">
  339. <div class="pagination"> <?php echo $output['show_page']; ?> </div>
  340. </td>
  341. </tr>
  342. </tfoot>
  343. </table>
  344. <!-- 预警提示 -->
  345. <audio id="auto" src="<?php echo RESOURCE_SITE_URL; ?>/warning.mp3"></audio>
  346. </div>
  347. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  348. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  349. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
  350. charset="utf-8"></script>
  351. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/refill/layer.js"></script>
  352. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/js/xm-select.js"></script>
  353. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
  354. <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
  355. <link rel="stylesheet" type="text/css"
  356. href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
  357. <script type="text/javascript">
  358. $(function () {
  359. $('#ncsubmit').click(function () {
  360. let selectArr = selest_nc.getValue();
  361. let selectStr = ''
  362. for (let i = 0; i < selectArr.length; i++) {
  363. selectStr += selectArr[i].value+','
  364. }
  365. selectStr = selectStr.substr(0, selectStr.length-1)
  366. $('input[name="no_mchid"]').val(selectStr);
  367. $('#formSearch').submit();
  368. });
  369. $('#query_start_time').datepicker({dateFormat: 'yy-mm-dd'});
  370. $('#query_end_time').datepicker({dateFormat: 'yy-mm-dd'});
  371. // 日期选择器
  372. laydate.render({
  373. elem: '#startTime',
  374. type: 'datetime'
  375. });
  376. laydate.render({
  377. elem: '#endTime',
  378. type: 'datetime'
  379. });
  380. //双击
  381. $('.doubleclick').dblclick(function() {
  382. let order_sn = $(this).attr('data-order')
  383. $.get('index.php?act=refill_order&op=showOrders', {
  384. order_sn:order_sn
  385. }, function(data) {
  386. data = JSON.parse(data)
  387. if (data.state == 1) {
  388. let order_item = data.data
  389. let html = '';
  390. for (let i = 0; i < order_item.length; i++) {
  391. var item = order_item[i];
  392. html += `
  393. <tr>
  394. <td class="db-center">${item.order_sn}</td>
  395. <td class="db-center">${item.commit_time_text}</td>
  396. <td class="db-center">${item.notify_time_text}</td>
  397. <td class="db-center">${item.diff_time_text}</td>
  398. <td class="db-center">${item.order_state_text}</td>
  399. <td class="db-center">${item.channel_name}</td>
  400. <td class="db-center">${item.err_msg}</td><tr>`
  401. }
  402. let content = `<table>
  403. <thead>
  404. <tr>
  405. <th class="db-right">订单号</th>
  406. <th class="db-right">下单日期</th>
  407. <th class="db-right">回调日期</th>
  408. <th class="db-right">耗时</th>
  409. <th class="db-right">订单状态</th>
  410. <th class="db-right">供方名称</th>
  411. <th class="db-right">错误原因</th></tr>
  412. </thead>
  413. <tbody>${html}</tbody>
  414. </table>`
  415. layer.open({
  416. title: `<span>共${data.count}单</span> <span class="db-top">回调状态:${data.mch_notify_state}</span> <span>回调次数:${data.mch_notify_times}</span>`,
  417. content: content
  418. });
  419. } else {
  420. alert("没有此订单");
  421. }
  422. })
  423. })
  424. // 获取不包含客户
  425. let selest_nc
  426. let default_no_mch = $('input[name="default_no_mch"]').val().split(',');
  427. $.get('index.php?act=refill_order&op=merchant_data', function (data) {
  428. data = JSON.parse(data)
  429. if (default_no_mch) {
  430. for (let index = 0; index < default_no_mch.length; index++) {
  431. for (let j = 0; j < data.length; j++) {
  432. if (default_no_mch[index] == data[j].value) {
  433. data[j].selected = true
  434. }
  435. }
  436. }
  437. }
  438. selest_nc = xmSelect.render({
  439. el: '#selest_nc',
  440. size: 'mini',
  441. filterable: true,
  442. autoRow: true,
  443. height: '500px',
  444. style: {
  445. minHeight: '27px',
  446. lineHeight: '27px',
  447. marginLeft: '4px'
  448. },
  449. language: 'zn',
  450. data: data
  451. })
  452. })
  453. let isWring = '<?php echo $output['count'][1];?>';
  454. let setTimer
  455. let num
  456. if (Number(isWring) > 0) {
  457. window.clearTimeout(setTimer)
  458. setTimer = setTimeout(function () {
  459. $("#auto")[0].play();
  460. // $("#auto").attr("src", '<?php echo RESOURCE_SITE_URL; ?>/warning.mp3');
  461. }, 1000);
  462. window.clearTimeout(num)
  463. num = setTimeout(function () {
  464. window.location.reload();
  465. }, 60000);
  466. }
  467. // 表格hover时背景
  468. $('.trFlex').each(function () {
  469. let data_color = $(this).attr('data-timeout_State');
  470. if (data_color == 1) {
  471. $(this).css('background', '#f1dde6')
  472. } else if (data_color == 2) {
  473. $(this).css('background', '#f2f3c6')
  474. } else if (data_color == 3) {
  475. $(this).css('background', '#ff7575')
  476. } else if (data_color == 4) {
  477. $(this).css('background', '#81C0C0')
  478. } else {
  479. $(this).css('background', '#fff')
  480. }
  481. $(this).hover(function () {
  482. $(this)[0].style.backgroundColor = '#cbe9f3'
  483. }, function () {
  484. let data_color = $(this).attr('data-timeout_State');
  485. if (data_color == 1) {
  486. $(this).css('background', '#f1dde6')
  487. } else if (data_color == 2) {
  488. $(this).css('background', '#f2f3c6')
  489. } else if (data_color == 3) {
  490. $(this).css('background', '#ff7575')
  491. } else if (data_color == 4) {
  492. $(this).css('background', '#81C0C0')
  493. } else {
  494. $(this).css('background', '#fff')
  495. }
  496. })
  497. })
  498. // 供方名称颜色
  499. $('.textColor').each(function () {
  500. let color = $(this).attr('data-color')
  501. if (color == '1') {
  502. $(this).css('color', 'green')
  503. } else {
  504. $(this).css('color', 'red')
  505. }
  506. })
  507. // 更新待收货状态
  508. $('#order_query').click(function () {
  509. $('input[name="order_query"]').val('1');
  510. $('input[name="op"]').val('index');
  511. $('#formSearch').submit();
  512. $('input[name="order_query"]').val('');
  513. var ii = layer.load();
  514. setTimeout(function(){
  515. layer.close(ii);
  516. }, 800);
  517. })
  518. });
  519. function hCopyOrder(e) {
  520. let str = ''
  521. $('#tbody tr').each(function () {
  522. let res = $(this).find('td').eq(1).text()
  523. str += res + '\n'
  524. })
  525. let oInput = document.createElement("textarea");
  526. oInput.style.border = "0 none";
  527. oInput.style.color = "transparent";
  528. oInput.value = str;
  529. document.body.appendChild(oInput);
  530. oInput.select(); // 选择对象
  531. document.execCommand("Copy"); // 执行浏览器复制命令
  532. oInput.parentNode.removeChild(oInput)
  533. }
  534. function hCopyChannel(e) {
  535. let str = ''
  536. $('#tbody tr').each(function () {
  537. let res = $(this).find('td').eq(14).text()
  538. str += res + '\n'
  539. })
  540. let oInput = document.createElement("textarea");
  541. oInput.style.border = "0 none";
  542. oInput.style.color = "transparent";
  543. oInput.value = str;
  544. document.body.appendChild(oInput);
  545. oInput.select(); // 选择对象
  546. document.execCommand("Copy"); // 执行浏览器复制命令
  547. oInput.parentNode.removeChild(oInput)
  548. }
  549. function hCopyCardNo(e) {
  550. let str = ''
  551. $('#tbody tr').each(function () {
  552. let res = $(this).find('td').eq(4).text()
  553. str += res + '\n'
  554. })
  555. let oInput = document.createElement("textarea");
  556. oInput.style.border = "0 none";
  557. oInput.style.color = "transparent";
  558. oInput.value = str;
  559. document.body.appendChild(oInput);
  560. oInput.select(); // 选择对象
  561. document.execCommand("Copy"); // 执行浏览器复制命令
  562. oInput.parentNode.removeChild(oInput)
  563. }
  564. </script>