|
|
|
|
@ -464,7 +464,7 @@ class StatisticsController extends CommonController
|
|
|
|
|
// 床位占比
|
|
|
|
|
$item->bed_rate = 0;
|
|
|
|
|
if ($totalBed) {
|
|
|
|
|
$item->bed_rate = round($item->beds_count / $totalBed, 2) * 100;
|
|
|
|
|
$item->bed_rate = round($item->beds_count / $totalBed, 4) * 100;
|
|
|
|
|
}
|
|
|
|
|
// 订单数
|
|
|
|
|
$item->order_total = Orders::where('project_id', $project_id)
|
|
|
|
|
@ -474,10 +474,10 @@ class StatisticsController extends CommonController
|
|
|
|
|
$item->rate = 0;
|
|
|
|
|
if ($totalBed) {
|
|
|
|
|
// 配比
|
|
|
|
|
$item->rate = round($item->order_total / $totalBed, 2) * 100;
|
|
|
|
|
$item->rate = round($item->order_total / $totalBed, 4) * 100;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return view($this->bladePath . ".bed", compact("area", "totalBed","project", "project_id", "month", "projects"));
|
|
|
|
|
return view($this->bladePath . ".bed", compact("area", "totalBed", "project", "project_id", "month", "projects"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|