|
@@ -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);
|