liyinglin 2 years ago
parent c88b91af8d
commit bf11eff9ad

@ -477,7 +477,7 @@ class StatisticsController extends CommonController
$item->rate = round($item->order_total / $totalBed, 2) * 100;
}
}
return view($this->bladePath . ".bed", compact("area", "project", "project_id", "month", "projects"));
return view($this->bladePath . ".bed", compact("area", "totalBed","project", "project_id", "month", "projects"));
}
}

@ -29,7 +29,7 @@
<thead>
<tr>
<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">床位数量(总数:{{$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>
@ -38,12 +38,12 @@
<tbody>
@foreach ($area as $row)
<tr>
<td>{{ $row->name }}</td>
<td>{{ $row->beds_count }}</td>
<td>{{ $row->bed_rate }}%</td>
<td>{{ $row->order_total }}</td>
<td>{{ $row->rate }}%</td>
</tr>
<td>{{ $row->name }}</td>
<td>{{ $row->beds_count }}</td>
<td>{{ $row->bed_rate }}%</td>
<td>{{ $row->order_total }}</td>
<td>{{ $row->rate }}%</td>
</tr>
@endforeach
</tbody>
</table>

Loading…
Cancel
Save