xiaoyu vor 3 Jahren
Ursprung
Commit
c05a3823af
1 geänderte Dateien mit 72 neuen und 1 gelöschten Zeilen
  1. 72 1
      admin/templates/default/refill.order.send.index.php

+ 72 - 1
admin/templates/default/refill.order.send.index.php

@@ -47,6 +47,15 @@
     .lefto {
         margin-left: 6px;
     }
+    .db-right {
+        padding-right: 98px!important;
+    border-bottom: 1px solid #ccc;
+
+    }
+    .db-center {
+        padding: 9px 0;
+    border-bottom: 1px solid #ccc;
+    }
 </style>
 
 <?php defined('InShopNC') or exit('Access Invalid!'); ?>
@@ -255,7 +264,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) {
@@ -326,6 +339,64 @@
             elem: '#endTime',
             type: 'datetime'
         });
+                //双击
+                $('.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.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>
+
+
+                             <tr>
+                    `
+                }
+
+
+                    layer.open({
+                   title: `共${data.count}单`,
+                   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>
+
+                             </tr>
+                    </thead>
+                             <tbody>
+                             ${html}
+                             </tbody>
+                            </table>`,
+                            
+
+                        });
+                } else {
+                    alert("没有此订单");
+
+                }
+                
+            })
+
+        })
         let isWring = '<?php echo $output['count'][1];?>';
         // console.log('isWring', Number(isWring));
         let setTimer