sunhao 5 gadi atpakaļ
vecāks
revīzija
903f707d4a

+ 6 - 2
app/Http/Controllers/Admin/StatisticsController.php

@@ -4392,6 +4392,7 @@ class StatisticsController extends Controller
4392 4392
             $fugou_rate = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 100 . '%' : '';
4393 4393
 
4394 4394
             $result[$k]['customer_count'] = $customer_count;
4395
+            $result[$k]['customer_fugou_count'] = $customer_fugou_count;
4395 4396
             $result[$k]['fugou_rate'] = $fugou_rate;
4396 4397
             $result[$k]['fugou_rate_sort'] = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 10000 : 0;
4397 4398
 
@@ -4478,6 +4479,7 @@ class StatisticsController extends Controller
4478 4479
             $fugou_rate = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 100 . '%' : '';
4479 4480
 
4480 4481
             $result[$k]['customer_count'] = $customer_count;
4482
+            $result[$k]['customer_fugou_count'] = $customer_fugou_count;
4481 4483
             $result[$k]['fugou_rate'] = $fugou_rate;
4482 4484
             $result[$k]['fugou_rate_sort'] = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 10000 : 0;
4483 4485
         }
@@ -4486,8 +4488,10 @@ class StatisticsController extends Controller
4486 4488
         $fugou_rate_arr = array_column($result, 'fugou_rate_sort');
4487 4489
         array_multisort($fugou_rate_arr, SORT_DESC, $result);
4488 4490
 
4489
-        $indexKey = ['admin_name','pv_count','long_count','fan_add','change_rate','customer_count','order_count','order_amount','fugou_rate'];
4490
-        $title = ['销售', 'PV量', '累计预估加粉数', '累计加粉数', '加粉转化率', '下单用户数', '累计下单数', '累计销售额', '复购率'];
4491
+        //$indexKey = ['admin_name','pv_count','long_count','fan_add','change_rate','customer_count','customer_fugou_count','order_count','order_amount','fugou_rate'];
4492
+        $indexKey = ['admin_name','customer_count','customer_fugou_count','order_count','order_amount','fugou_rate'];
4493
+        //$title = ['销售', 'PV量', '累计预估加粉数', '累计加粉数', '加粉转化率', '下单用户数', '复购用户数', '累计下单数', '累计销售额', '复购率'];
4494
+        $title = ['销售', '下单用户数', '复购用户数', '累计下单数', '累计销售额', '复购率'];
4491 4495
         $filename = 'xiaoshoufugou_'.date('Y-m-d_H').'.xlsx';
4492 4496
         return Order::export_excel($result, $filename, $indexKey, $title);  
4493 4497
     }

+ 6 - 4
resources/views/statistics/salerOrderFugou.blade.php

@@ -30,11 +30,12 @@
30 30
                 <thead>
31 31
                 <tr class="text-c">
32 32
                     <th width="5%">销售</th>
33
-                    <th width="5%">PV量</th>
33
+                    <!--th width="5%">PV量</th>
34 34
                     <th width="5%">累计预估加粉数</th>
35 35
                     <th width="5%">累计加粉数</th>
36
-                    <th width="5%">加粉转化率</th>
36
+                    <th width="5%">加粉转化率</th-->
37 37
                     <th width="5%">下单用户数</th>
38
+                    <th width="5%">复购用户数</th>
38 39
                     <th width="5%">累计下单数</th>
39 40
                     <th width="5%">累计销售额</th>                                                
40 41
                     <th width="5%">复购率</th>                                                
@@ -46,11 +47,12 @@
46 47
                     @foreach($result as $a)
47 48
                         <tr class="text-c" style=" text-align:center;">                                                                                                             
48 49
                             <td>{{$a['admin_name']}}</td>                                                                                   
49
-                            <td>{{$a['pv_count']}}</td>                                                                                   
50
+                            <!--td>{{$a['pv_count']}}</td>                                                                                   
50 51
                             <td>{{$a['long_count']}}</td>                                                                                   
51 52
                             <td>{{$a['fan_add']}}</td>                          
52
-                            <td>{{$a['change_rate']}}</td>                                                                                   
53
+                            <td>{{$a['change_rate']}}</td-->                                                                                   
53 54
                             <td>{{$a['customer_count']}}</td>                                                                                   
55
+                            <td>{{$a['customer_fugou_count']}}</td>                                                                                   
54 56
                             <td>{{$a['order_count']}}</td>                                                                                   
55 57
                             <td>{{$a['order_amount']}}</td>                                                                                   
56 58
                             <td>{{$a['fugou_rate']}}</td>