1
This commit is contained in:
@@ -67,23 +67,24 @@ class Report extends HD_Controller
|
||||
'sales' => '顾问数(含店长)',
|
||||
'work_per' => '今日开工率',
|
||||
'cust_new' => '今日新增线索数',
|
||||
"cust_push" => "今日未及时分配数",
|
||||
'cust_visit' => '今日新增跟进数',
|
||||
'order_new' => '今日订单新增数',
|
||||
"cust_delay" => "今日线索逾期数",
|
||||
"cust_defeat" => "今日战败申请未处理数",
|
||||
'order_new' => '今日订单新增数',
|
||||
"order_wrong" => "今日订单未达T+1",
|
||||
"order_early" => "今日开票早与订单时间数",
|
||||
"cust_push" => "今日未及时分配数",
|
||||
"cust_defeat" => "今日战败申请未处理数",
|
||||
'score' => '今日运营分',
|
||||
|
||||
'cust_month' => '本月线索总数',
|
||||
'cust_visit_month' => '本月跟进客户数',
|
||||
'order_month' => '本月订单总数',
|
||||
"order_finish" => "本月订单信息完整数",
|
||||
"cust_delay_month" => "本月线索逾期数",
|
||||
"order_wrong_month" => "本月订单未达T+1",
|
||||
"cust_push_month" => "本月未及时分配总数",
|
||||
'cust_visit_month' => '本月跟进客户数',
|
||||
"cust_delay_month" => "本月线索逾期数",
|
||||
"cust_defeat_month" => "本月战败申请未处理数",
|
||||
'order_month' => '本月订单总数',
|
||||
"order_wrong_month" => "本月订单未达T+1",
|
||||
'order_over' => "本月交付总数",
|
||||
"order_finish" => "本月订单信息完整数",
|
||||
'score_month' => '本月运营分',
|
||||
];
|
||||
|
||||
@@ -115,7 +116,7 @@ class Report extends HD_Controller
|
||||
$order_new = $this->receiver_orders_model->select(array('DATE(order_time)' => $day, 'biz_id' => $v['id'], 'status >=' => 0), '', 0, 0, 'id');
|
||||
|
||||
//本月订单总数
|
||||
$order_month = $this->receiver_orders_model->count(array('MONTH(order_time)' => $month, 'biz_id' => $v['id'], 'status >' => 0));
|
||||
$order_month = $this->receiver_orders_model->count(array('MONTH(order_time)' => $month, 'biz_id' => $v['id'], 'status >=' => 0));
|
||||
|
||||
//本月订单信息完整数
|
||||
if($order_new){
|
||||
@@ -163,6 +164,9 @@ class Report extends HD_Controller
|
||||
//本月战败申请未处理数
|
||||
$cust_defeat_moth = $this->receiver_score_log_model->count(array('MONTH(day)' => $month, 'biz_id' => $v['id'], 'type' => 3, 'sub_type' => 5, 'target_id >' => 0), 'target_id');
|
||||
|
||||
//本月交付总数
|
||||
$order_over = $this->receiver_orders_model->count(array('MONTH(over_time)' => $month, 'biz_id' => $v['id'], 'status >' => 0));
|
||||
|
||||
//今日运营分
|
||||
$score = $this->receiver_score_day_model->get(array('day' => $day, 'biz_id' => $v['id'], 'type' => 1));
|
||||
|
||||
@@ -174,26 +178,26 @@ class Report extends HD_Controller
|
||||
'sales' => $sales,
|
||||
'work_per' => number_format($works/$sales, 2) * 100 .'%',
|
||||
'cust_new' => $cust_new,
|
||||
'cust_push' => $cust_push,
|
||||
'cust_visit' => $cust_visit,
|
||||
'order_new' => count($order_new),
|
||||
'cust_delay' => $cust_delay,
|
||||
'cust_defeat' => $cust_defeat,
|
||||
'order_new' => count($order_new),
|
||||
'order_wrong' => $order_wrong,
|
||||
'order_early' => $order_early,
|
||||
'cust_push' => $cust_push,
|
||||
'cust_defeat' => $cust_defeat,
|
||||
'score' => round($score['score']),
|
||||
|
||||
'cust_month' => $cust_month,
|
||||
'cust_visit_month' => $cust_visit_month,
|
||||
'order_month' => $order_month,
|
||||
'order_finish' => $order_finish,
|
||||
'cust_delay_month' => $cust_delay_month,
|
||||
'order_wrong_month' => $order_wrong_month,
|
||||
'cust_push_month' => $cust_push_month,
|
||||
'cust_visit_month' => $cust_visit_month,
|
||||
'cust_delay_month' => $cust_delay_month,
|
||||
'cust_defeat_month' => $cust_defeat_moth,
|
||||
'order_month' => $order_month,
|
||||
'order_wrong_month' => $order_wrong_month,
|
||||
'order_over' => $order_over,
|
||||
'order_finish' => $order_finish,
|
||||
'score_month' => round($score_month['scores']/date('d')),
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user