|
@@ -86,7 +86,11 @@
|
|
|
<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['refill_amount']; ?></td>
|
|
|
- <td class="align-right"><?php echo date('Y-m-d H:i:s', $order['order_time']); ?></td>
|
|
|
+ <td class="align-right">
|
|
|
+ <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) {
|
|
@@ -165,6 +169,61 @@
|
|
|
window.location.reload();
|
|
|
}, 60000);
|
|
|
}
|
|
|
+ //双击
|
|
|
+ $('.doubleclick').dblclick(function() {
|
|
|
+ let db_click = $(this).attr('data-order')
|
|
|
+ $.get('index.php?act=refill_order&op=showOrders', {
|
|
|
+ order_sn:db_click
|
|
|
+ }, function(data) {
|
|
|
+ data = JSON.parse(data)
|
|
|
+ if (data.state == 1) {
|
|
|
+
|
|
|
+ var dbclick = data.data
|
|
|
+ let ConentArr = [];
|
|
|
+ let html = '';
|
|
|
+ for (let i = 0; i < dbclick.length; i++) {
|
|
|
+ var item = dbclick[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>
|
|
|
+ <tr>
|
|
|
+ `
|
|
|
+ }
|
|
|
+ layer.open({
|
|
|
+ title: `<span>共${data.count}单</span> <span class="db-top">回调状态:${data.mch_notify_state}</span> <span>回调次数:${data.mch_notify_times}</span>` ,
|
|
|
+ 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>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ ${html}
|
|
|
+ </tbody>
|
|
|
+ </table>`,
|
|
|
+
|
|
|
+
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ alert("没有此订单");
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
// 表格hover时背景
|
|
|
$('.trFlex').each(function () {
|
|
|
$(this).hover(function () {
|