refill.order.manual.index.php 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. #selest_nc {
  19. width:220px
  20. }
  21. th {
  22. width: 10px;
  23. }
  24. .txt2 {
  25. position: relative;
  26. }
  27. .btn-search {
  28. position: absolute;
  29. left: 332px;
  30. margin-top: 3px;
  31. }
  32. </style>
  33. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  34. <div class="page">
  35. <div class="fixed-bar">
  36. <div class="item-title">
  37. <h3>订单处理</h3>
  38. <ul class="tab-base">
  39. <li><a href="JavaScript:void(0);" class="current"><span>订单强制处理</span></a></li>
  40. <li><a href="index.php?act=refill_order_manual&op=refill_order_batch"><span>订单批量处理</span></a></li>
  41. <li><a href="index.php?act=refill_order_manual&op=set_cancel_order"><span>拦截订单</span></a></li>
  42. <li><a href="index.php?act=refill_order_manual&op=transfer_order"><span>预回调订单转快充</span></a></li>
  43. <li><a href="index.php?act=refill_order_manual&op=transfer_order_recharge"><span>预回调订单补充</span></a></li>
  44. <li><a href="index.php?act=refill_order_manual&op=refill_buyback"><span>订单手动操作记录</span></a></li>
  45. </ul>
  46. </div>
  47. </div>
  48. <div class="fixed-empty"></div>
  49. <form method="get" action="index.php" name="formSearch" id="formSearch">
  50. <input type="hidden" name="act" value="refill_order_manual"/>
  51. <input type="hidden" name="op" value="index"/>
  52. <table class="tb-type1 noborder search" style="min-width:1400px">
  53. <tbody>
  54. <tr>
  55. <th><label>我方订单号</label></th>
  56. <td style="width: 300px"><input class="txt2" type="text" name="order_sn" value="<?php echo $_GET['order_sn']; ?>"/></td>
  57. <a href="javascript:void(0);" id="ncsubmit" class="btn-search"
  58. title="<?php echo $lang['nc_query']; ?>">&nbsp;
  59. </a>
  60. <td>
  61. <span style="color: red;font-size: 15px">注:此操作为强制性操作,一般用作服务器错误导致的待发货卡单,请谨慎使用。</span>
  62. </td>
  63. </tbody>
  64. </table>
  65. </form>
  66. <table class="table tb-type2 nobdb" style="min-width:1400px">
  67. <thead>
  68. <tr class="thead">
  69. <th class="align-center">编号</th>
  70. <th class="align-center">订单号</th>
  71. <th class="align-center">机构编号</th>
  72. <th class="align-center">机构名称</th>
  73. <th class="align-center">充值卡号</th>
  74. <th class="align-center">充值卡类型</th>
  75. <th class="align-center">充值额度</th>
  76. <th class="align-right">下单日期</th>
  77. <th class="align-right">耗时</th>
  78. <th class="align-center">订单状态</th>
  79. <th class="align-center">运营商流水号</th>
  80. <th class="align-center">备注</th>
  81. <th class="align-center">商家单号</th>
  82. <th class="align-center">渠道单号</th>
  83. <th class="align-center">渠道名称</th>
  84. <th class="align-center">次数</th>
  85. <th class="align-center">质量</th>
  86. <th class="align-center">初始质量</th>
  87. <!-- <th class="align-center">扣款金额</th>-->
  88. <th class="align-center"><?php echo $lang['nc_handle']; ?></th>
  89. </tr>
  90. </thead>
  91. <tbody id="tbody">
  92. <?php if (count($output['order_list']) > 0) { ?>
  93. <?php
  94. foreach ($output['order_list'] as $key => $order) { ?>
  95. <tr class="hover trFlex">
  96. <td class="align-center"><?php echo $key+1;?></td>
  97. <td class="align-left"><?php echo $order['order_sn']; ?></td>
  98. <td class="align-center"><?php echo $order['mchid']; ?></td>
  99. <td class="align-center"><?php echo $order['mch_name']; ?></td>
  100. <td class="align-left"><?php echo $order['card_no']; ?></td>
  101. <td class="align-center"><?php echo $order['card_type_text']; ?></td>
  102. <td class="align-center"><?php echo $order['refill_amount']; ?></td>
  103. <td class="align-right"><?php echo date('Y-m-d H:i:s', $order['order_time']); ?></td>
  104. <td class="align-right">
  105. <?php if(empty($order['notify_time'])) {
  106. if($order['diff_time'] >= 1800 && $order['diff_time'] <= 3600) {
  107. ?>
  108. <span style="color: #fd9d0e"><?php echo $order['diff_time_text']?></span>
  109. <?php }elseif($order['diff_time'] > 3600) {?>
  110. <span style="color: #f30707"><?php echo $order['diff_time_text']?></span>
  111. <?php }else{?>
  112. <?php echo $order['diff_time_text']?>
  113. <?php }?>
  114. <?php }else{?>
  115. <?php echo $order['diff_time_text']?>
  116. <?php }?>
  117. </td>
  118. <td class="align-center"><?php echo orderState($order); ?></td>
  119. <td class="align-left"><?php echo $order['official_sn']; ?></td>
  120. <td class="align-left"><?php echo $order['err_msg']; ?></td>
  121. <td class="align-left"><?php echo $order['mch_order']; ?></td>
  122. <td class="align-left" class="ch_trade_no"><?php echo $order['ch_trade_no']; ?></td>
  123. <td class="align-center"><?php echo $order['channel_name']; ?></td>
  124. <td class="align-center"><?php echo $order['commit_times']; ?></td>
  125. <td class="align-center"><?php echo $order['quality_text']; ?></td>
  126. <td class="align-center"><?php echo $order['org_quality_text']; ?></td>
  127. <!-- <td class="align-center">--><?php //echo $order['mch_amount']; ?><!--</td>-->
  128. <td class="w144 align-center" id="Manual">
  129. <a id="cancel" order_id="<?php echo $order['order_id']; ?>" href="#">
  130. 手动失败</a>
  131. |
  132. <a id="success" order_id="<?php echo $order['order_id']; ?>" href="#">
  133. 手动成功</a>
  134. </td>
  135. </tr>
  136. <?php } ?>
  137. <?php } else { ?>
  138. <tr class="no_data">
  139. <td colspan="19"><?php echo $lang['nc_no_record']; ?></td>
  140. </tr>
  141. <?php } ?>
  142. </tbody>
  143. <tfoot>
  144. <tr class="tfoot">
  145. <td colspan="19" id="dataFuncs">
  146. <div class="pagination"> <?php echo $output['show_page']; ?> </div>
  147. </td>
  148. </tr>
  149. </tfoot>
  150. </table>
  151. </div>
  152. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  153. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  154. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
  155. charset="utf-8"></script>
  156. <link rel="stylesheet" type="text/css"
  157. href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
  158. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/js/xm-select.js"></script>
  159. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/refill/layer.js"></script>
  160. <script type="text/javascript">
  161. $(function () {
  162. $('#ncsubmit').click(function () {
  163. $('input[name="op"]').val('index');
  164. $('#formSearch').submit();
  165. });
  166. // 表格hover时背景
  167. $('.trFlex').each(function () {
  168. $(this).hover(function () {
  169. $(this)[0].style.backgroundColor = '#cbe9f3'
  170. },function() {
  171. $(this)[0].style.backgroundColor = '#fff'
  172. })
  173. })
  174. // 手动失败 成功
  175. $('#Manual #cancel').each(function (index, item) {
  176. $(item).click(function () {
  177. let order_id = $(this).attr("order_id")
  178. layer.confirm('您确实要手动失败', {
  179. btn: ['确定', '取消'],
  180. title: '手动失败'
  181. }, function () {
  182. window.location.href = `index.php?act=refill_order_manual&op=notify_manual_merchant&type=cancel&order_id= ${order_id}`
  183. }, function() {}
  184. )
  185. })
  186. })
  187. // 手动成功
  188. $('#Manual #success').each(function (index, item) {
  189. $(item).click(function () {
  190. let order_id = $(this).attr("order_id")
  191. layer.confirm('您确实要手动成功', {
  192. btn: ['确定', '取消'],
  193. title: '手动成功'
  194. }, function () {
  195. window.location.href = `index.php?act=refill_order_manual&op=notify_manual_merchant&type=success&order_id= ${order_id}`
  196. }, function() {}
  197. )
  198. })
  199. })
  200. })
  201. </script>