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.
123 lines
5.9 KiB
123 lines
5.9 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>
|
|
<button class="btn btn-primary ml-1" type="button" onclick="PageBodyPrint()">打印</button>
|
|
</form>
|
|
</div>
|
|
<!--start print-->
|
|
<div style="position: relative;padding-bottom: 20px;">
|
|
<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">护理费用(元)</th>
|
|
<th class="p-1" style="white-space: nowrap">手续费0.6%</th>
|
|
<th class="p-1" style="white-space: nowrap">增值税6%</th>
|
|
<th class="p-1" style="white-space: nowrap">实际收入(元)</th>
|
|
<th class="p-1" style="white-space: nowrap">院方管理费6%</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($area as $row)
|
|
<tr>
|
|
<td>{{ $row->name }}</td>
|
|
<td>{{ $row->order_total }}</td>
|
|
<td>{{ $row->shouxufei }}</td>
|
|
<td>{{ $row->zengshishui }}</td>
|
|
<td>{{ $row->shijishouru }}</td>
|
|
<td>{{ $row->guanlifei }}</td>
|
|
</tr>
|
|
@endforeach
|
|
<tr>
|
|
<td>合计</td>
|
|
<td>{{ $total['order_total'] }}</td>
|
|
<td>{{ $total['shouxufei'] }}</td>
|
|
<td>{{ $total['zengshishui'] }}</td>
|
|
<td>{{ $total['shijishouru'] }}</td>
|
|
<td>{{ $total['guanlifei'] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>退款</td>
|
|
<td>{{ $refund['order_total'] }}</td>
|
|
<td></td>
|
|
<td></td>
|
|
<td>{{ $refund['shijishouru'] }}</td>
|
|
<td>{{ $refund['guanlifei'] }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>总计</td>
|
|
<td>{{ $zongji['order_total'] }}</td>
|
|
<td>{{ $zongji['shouxufei'] }}</td>
|
|
<td>{{ $zongji['zengshishui'] }}</td>
|
|
<td>{{ $zongji['shijishouru'] }}</td>
|
|
<td>{{ $zongji['guanlifei'] }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<img class="print-yz" src="/images/yz.png" alt=""
|
|
style="filter: saturate(2);position: absolute;right: 20px; bottom: 20px; width: 154px;">
|
|
<div
|
|
style="text-align: right;line-height: 2;margin-top: 20px;font-weight: 600;position: relative;z-index: 3;">
|
|
<div>
|
|
江苏天天欣业物业服务有限公司
|
|
</div>
|
|
<div style="padding-right: 20px;">
|
|
填报人:{{ $admin->name }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--end print-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function doExport(ele) {
|
|
var url = "{{ url("admin/statistics/income") }}";
|
|
url += "?is_export=1";
|
|
var params = $(ele).closest("form").serialize();
|
|
url += "&" + params;
|
|
window.open(url);
|
|
}
|
|
|
|
function PageBodyPrint() {
|
|
var bdhtml = window.document.body.innerHTML; //获取当前页的html代码
|
|
var sprnstr = "<!--start print-->"; //设置打印开始区域
|
|
var eprnstr = "<!--end print-->"; //设置打印结束区域
|
|
var prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18);
|
|
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
|
|
window.document.body.innerHTML = prnhtml;
|
|
|
|
$(".print-yz").on("load", function () {
|
|
window.print();
|
|
window.document.body.innerHTML = bdhtml;
|
|
})
|
|
}
|
|
</script>
|
|
@endsection
|