master
cody 4 months ago
parent f405290aaf
commit d4b486edf2

@ -7,11 +7,10 @@
<div class="card-body"> <div class="card-body">
<div class="mb-3"> <div class="mb-3">
<form class="form-inline" id="search-form" autocomplete="off"> <form class="form-inline" id="search-form" autocomplete="off">
<select class="form-control mr-1" name="project_id" <select class="form-control mr-1" name="project_id" onchange="$(this).closest('form').submit()">
onchange="$(this).closest('form').submit()">
@foreach($projects as $pp) @foreach($projects as $pp)
<option <option value="{{$pp->id}}" @if($pp->id == $project_id) {{ "selected" }}@endif>{{$pp->name}}
value="{{$pp->id}}" @if($pp->id == $project_id) {{ "selected" }}@endif>{{$pp->name}}</option> </option>
@endforeach @endforeach
</select> </select>
<select class="form-control" name="month" onchange="$(this).closest('form').submit()"> <select class="form-control" name="month" onchange="$(this).closest('form').submit()">
@ -24,47 +23,45 @@
<div>合计:{{$sumOrderTotal}}</div> <div>合计:{{$sumOrderTotal}}</div>
<table class="table table-bordered" id="data-table"> <table class="table table-bordered" id="data-table">
<thead> <thead>
<tr> <tr>
<th>医院</th> <th>医院</th>
<th> <th>
楼栋 楼栋
</th> </th>
<th>病区</th> <th>病区</th>
<th>总收入</th> <th>总收入</th>
@if(!empty($lie)) @if(!empty($lie))
@foreach ($lie as $lieItem) @foreach ($lie as $lieItem)
<th> <th>
<div>{{$lieItem['name'] ?? ''}}</div> <div>{{$lieItem['name'] ?? ''}}</div>
@if(!empty($lieItem['factor_item_name']))
<div style="font-size: 0.85em; color: #666; font-weight: normal;">{{$lieItem['factor_item_name']}}</div> </th>
@endif @endforeach
</th> @endif
@endforeach </tr>
@endif
</tr>
</thead> </thead>
<tbody> <tbody>
@foreach ($data as $row) @foreach ($data as $row)
<tr data-id="{{$row->id}}"> <tr data-id="{{$row->id}}">
<td>
{{ $row->project->name }}
</td>
<td>
{{ $row->building->name }}
</td>
<td>
{{ $row->name }}
</td>
<td>{{ $row->order_total }}</td>
@foreach ($row->lies as $r)
<td> <td>
{{$r['total']}} {{ $row->project->name }}
</td> </td>
@endforeach <td>
{{ $row->building->name }}
</td>
<td>
{{ $row->name }}
</td>
<td>{{ $row->order_total }}</td>
</tr> @foreach ($row->lies as $r)
@endforeach <td>
{{$r['total']}}
</td>
@endforeach
</tr>
@endforeach
</tbody> </tbody>
</table> </table>
@include("public._pages") @include("public._pages")
@ -81,4 +78,4 @@
<script> <script>
</script> </script>
@endpush @endpush
Loading…
Cancel
Save