diff --git a/admin/views/receiver/report/lists.php b/admin/views/receiver/report/lists.php index 8b4be0ca..ba145b5c 100644 --- a/admin/views/receiver/report/lists.php +++ b/admin/views/receiver/report/lists.php @@ -67,7 +67,7 @@ - % + % @@ -81,6 +81,7 @@ 今日 + % diff --git a/api/controllers/plan/Report.php b/api/controllers/plan/Report.php index f07f766a..fa1659c4 100644 --- a/api/controllers/plan/Report.php +++ b/api/controllers/plan/Report.php @@ -96,6 +96,8 @@ class Report extends HD_Controller //今日线索逾期数 $cust_delay = $this->receiver_score_log_model->count(array('day' => $day, 'biz_id' => $v['id'], 'type' => 3, 'sub_type' => 3, 'target_id >' => 0)); + //本月开工 + $works_month = $this->receiver_score_log_model->count(array('MONTH(day)' => $month, 'biz_id' => $v['id'], 'type' => 0, 'sub_type' => 0, 'score >' => 0)); //本月线索逾期数 $cust_delay_month = $this->receiver_score_log_model->count(array('MONTH(day)' => $month, 'biz_id' => $v['id'], 'type' => 3, 'sub_type' => 3, 'target_id >' => 0)); @@ -143,6 +145,7 @@ class Report extends HD_Controller 'order_early' => $order_early, 'score' => round($score['score']), + 'work_per_month' => number_format($works_month / $sales, 2) * 100, 'cust_month' => $cust_month, 'cust_push_month' => $cust_push_month, 'cust_visit_month' => $cust_visit_month,