You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
3.0 KiB
69 lines
3.0 KiB
@extends("admin.layouts.layout")
|
|
|
|
@push("header")
|
|
|
|
@endpush
|
|
|
|
@section("content")
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body" style="overflow: auto">
|
|
<div class="mb-3">
|
|
<form class="form-inline">
|
|
<select class="form-control mr-1" name="project_id"
|
|
onchange="$(this).closest('form').submit()">
|
|
@foreach($projects as $pp)
|
|
<option
|
|
value="{{$pp->id}}" @if($pp->id == $project_id) {{ "selected" }}@endif>{{$pp->name}}</option>
|
|
@endforeach
|
|
</select>
|
|
<select class="form-control" name="month" onchange="$(this).closest('form').submit()">
|
|
@foreach($months as $mm)
|
|
<option value="{{$mm}}" @if($mm == $month) {{ "selected" }}@endif>{{$mm}}</option>
|
|
@endforeach
|
|
</select>
|
|
@if(\App\Models\CommonModel::checkExport())
|
|
<button class="btn btn-primary ml-1" type="button" onclick="doExport(this)">导出</button>
|
|
@endif
|
|
|
|
</form>
|
|
</div>
|
|
<table class="table table-bordered mb-0 table-datatable">
|
|
<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">床位占比</th>
|
|
<th class="p-1" style="white-space: nowrap">陪护人天</th>
|
|
<th class="p-1" style="white-space: nowrap">陪护率</th>
|
|
</tr>
|
|
</thead>
|
|
<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>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function doExport(ele) {
|
|
var url = "{{ url("admin/statistics/bed") }}";
|
|
url += "?is_export=1";
|
|
var params = $(ele).closest("form").serialize();
|
|
url += "&" + params;
|
|
window.open(url);
|
|
}
|
|
</script>
|
|
@endsection
|