sunhao 5 years ago
parent
commit
592abb28fa

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

@@ -4641,8 +4641,8 @@ class StatisticsController extends Controller
4641 4641
         $result = json_decode(json_encode($result), true);   
4642 4642
         $result  = array_merge([$data], $result);
4643 4643
 
4644
-        $indexKey = ['idate','throw_cost','cust_count','order_count','order_amount','goods_cost', 'freight_cost', 'aftersale_cost', 'profit'];
4645
-        $title = ['汇总日期', '总投放', '总客户数', '总下单数', '总销售额', '总货品成本', '总运费成本', '总售后', '总毛利'];
4644
+        $indexKey = ['idate','throw_cost','cust_count','order_count','order_amount','goods_cost', 'freight_cost', 'aftersale_cost', 'refund_fee', 'profit'];
4645
+        $title = ['汇总日期', '总投放', '总客户数', '总下单数', '总销售额', '总货品成本', '总运费成本', '总售后', '总退补', '总毛利'];
4646 4646
         $filename = 'huizongshuj_'.date('Y-m-d_H').'.xlsx';
4647 4647
         return Order::export_excel($result, $filename, $indexKey, $title); 
4648 4648
     }

+ 2 - 0
resources/views/statistics/dayGrandTotal.blade.php

@@ -23,6 +23,7 @@
23 23
                     <th width="5%">总货品成本</th>                                                
24 24
                     <th width="5%">总运费成本</th>                                                
25 25
                     <th width="5%">总售后</th>  
26
+                    <th width="5%">总退补</th>  
26 27
                     <th width="5%">总毛利</th>                                                                                            
27 28
                                              
28 29
                 </tr>
@@ -39,6 +40,7 @@
39 40
                             <td>{{$a['goods_cost']}}</td>                                                                                   
40 41
                             <td>{{$a['freight_cost']}}</td>  
41 42
                             <td>{{$a['aftersale_cost']}}</td>                                                                                 
43
+                            <td>{{$a['refund_fee']}}</td>                                                                                 
42 44
                             <td>{{$a['profit']}}</td>                                                                                   
43 45
                            
44 46
                         </tr>