sunhao 5 years ago
parent
commit
fc77e0da67

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

@@ -3642,6 +3642,8 @@ class StatisticsController extends Controller
3642 3642
             $v['new_fan_rate'] = $fan_count->fan_count>0 ? round( $new_orderfan_count / $fan_count->fan_count, 4 ) : '';
3643 3643
             //客单价
3644 3644
             $v['order_amount_avg'] = $v['order_count'] > 0 ? round( $v['order_amount'] / $v['order_count'], 4 ) : '';
3645
+
3646
+            $v['new_orderfan_count'] = $new_orderfan_count;
3645 3647
         }
3646 3648
 
3647 3649
         $teamList = DB::table('teams')->select('id', 'name')->get();
@@ -3845,10 +3847,12 @@ class StatisticsController extends Controller
3845 3847
             $v['new_fan_rate'] = $fan_count->fan_count>0 ? round( $new_orderfan_count / $fan_count->fan_count, 4 ) : '';
3846 3848
             //客单价
3847 3849
             $v['order_amount_avg'] = $v['order_count'] > 0 ? round( $v['order_amount'] / $v['order_count'], 4 ) : '';
3850
+
3851
+            $v['new_orderfan_count'] = $new_orderfan_count;
3848 3852
         }
3849 3853
 
3850
-        $indexKey = ['admin_name','month','order_count','order_amount','amount','target_rate','time_rate','day_remain', 'fan_count', 'new_reply_count', 'new_consult_count', 'new_order_count', 'new_order_amount', 'old_order_count', 'old_order_amount', 'fugou_order_count', 'fugou_order_amount', 'order_count', 'order_amount', 'new_fan_rate', 'order_amount_avg'];
3851
-        $title = ['销售', '月份', '总订单', '总销售额', '目标销售额','销售额完成率', '时间进度', '剩余每天销售任务', '粉丝数', '初步响应', '单品咨询', '新粉成单', '新粉流水', '老粉成单', '老粉流水', '复购成单', '复购流水', '总订单', '总流水', '新粉丝转化', '客单价'];
3854
+        $indexKey = ['admin_name','month','order_count','order_amount','amount','target_rate','time_rate','day_remain', 'fan_count', 'new_reply_count', 'new_consult_count', 'new_order_count', 'new_order_amount', 'old_order_count', 'old_order_amount', 'fugou_order_count', 'fugou_order_amount', 'order_count', 'order_amount', 'new_orderfan_count', 'new_fan_rate', 'order_amount_avg'];
3855
+        $title = ['销售', '月份', '总订单', '总销售额', '目标销售额','销售额完成率', '时间进度', '剩余每天销售任务', '粉丝数', '初步响应', '单品咨询', '新粉当日成单', '新粉流水', '老粉成单', '老粉流水', '复购成单', '复购流水', '总订单', '总流水', '新粉下单人数', '新粉丝转化', '客单价'];
3852 3856
         
3853 3857
         $filename = 'xiaoshouyuebao_'.date('Y-m-d_H').'.xlsx';
3854 3858
         return Order::export_excel($result, $filename, $indexKey, $title);

+ 3 - 1
resources/views/statistics/salerTargetProgress.blade.php

@@ -46,7 +46,7 @@
46 46
                     <th width="4%">粉丝数</th>
47 47
                     <th width="4%">初步响应</th>
48 48
                     <th width="4%">单品咨询</th>
49
-                    <th width="4%">新粉成单</th>                                                
49
+                    <th width="4%">新粉当日成单</th>                                                
50 50
                     <th width="5%">新粉流水</th>                                                
51 51
                     <th width="4%">老粉成单</th>                                                
52 52
                     <th width="5%">老粉流水</th>                                                
@@ -54,6 +54,7 @@
54 54
                     <th width="5%">复购流水</th>                                                
55 55
                     <th width="4%">总订单</th>                                                
56 56
                     <th width="5%">总流水</th>                                                
57
+                    <th width="5%">新粉下单人数</th>                                                
57 58
                     <th width="5%">新粉丝转化</th>                                                
58 59
                     <th width="5%">客单价</th>                                                
59 60
                 </tr>
@@ -81,6 +82,7 @@
81 82
                             <td>{{$a['fugou_order_amount']}}</td>                                                                                 
82 83
                             <td>{{$a['order_count']}}</td>                                                                                 
83 84
                             <td>{{$a['order_amount']}}</td>                                                                                 
85
+                            <td>{{$a['new_orderfan_count']}}</td>                                                                                 
84 86
                             <td>{{$a['new_fan_rate']}}</td>                                                                                 
85 87
                             <td>{{$a['order_amount_avg']}}</td>                                                                                                                                                                 
86 88