增加月开工率

This commit is contained in:
lcc
2025-01-08 15:28:25 +08:00
parent 1148b91500
commit 65c3031fc8
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -67,7 +67,7 @@
<td rowspan="2" style="vertical-align: middle;"><?= $v['biz_name'] ?></td>
<td rowspan="2" style="vertical-align: middle;"><?= $v['day'] ?></td>
<td rowspan="2" style="vertical-align: middle;"><?= $v['sales'] ?></td>
<td rowspan="2" style="vertical-align: middle;"><?= intval($v['work_per']) ?>%</td>
<td><?= intval($v['work_per']) ?>%</td>
<td><?= $v['cust_new'] ?></td>
<td><?= $v['cust_push'] ?></td>
<td><?= $v['cust_visit'] ?></td>
@@ -81,6 +81,7 @@
<td>今日</td>
</tr>
<tr>
<td><?= intval($v['work_per_month']) ?>%</td>
<td><?= $v['cust_month'] ?></td>
<td><?= $v['cust_push_month'] ?></td>
<td><?= $v['cust_visit_month'] ?></td>
+3
View File
@@ -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,