liyinglin 2 years ago
parent 84d6e71177
commit 21ed461c3a

@ -467,9 +467,10 @@ class StatisticsController extends CommonController
$item->bed_rate = round($item->beds_count / $totalBed, 4) * 100;
}
// 订单数
$bedsIdTemp = Bed::where('area_id', $item->id)->where('project_id', $project_id)->pluck('id');
$item->order_total = Orders::where('project_id', $project_id)
->where('created_at', 'like', '%' . $month . '%')
->whereIn('bed_id', $beds->pluck('id'))
->whereIn('bed_id', $bedsIdTemp)
->count();
$item->rate = 0;
if ($totalBed) {

@ -29,7 +29,7 @@
<thead>
<tr>
<th class="p-1" style="white-space: nowrap">病区</th>
<th class="p-1" style="white-space: nowrap">床位数量(总数{{$totalBed}})</th>
<th class="p-1" style="white-space: nowrap">床位数量(总数:{{$totalBed}})</th>
<th class="p-1" style="white-space: nowrap">床位占比</th>
<th class="p-1" style="white-space: nowrap">订单数量</th>
<th class="p-1" style="white-space: nowrap">护工配比</th>

Loading…
Cancel
Save