|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<title>预约信息明细</title>
|
|
|
<style>
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
body {
|
|
|
font-family: 'Microsoft YaHei', '微软雅黑', 'SimHei', '黑体', sans-serif;
|
|
|
font-size: 12px;
|
|
|
color: #333;
|
|
|
}
|
|
|
.page {
|
|
|
page-break-after: always;
|
|
|
}
|
|
|
.page:last-child {
|
|
|
page-break-after: auto;
|
|
|
}
|
|
|
table {
|
|
|
width: 100%;
|
|
|
border-collapse: collapse;
|
|
|
table-layout: fixed;
|
|
|
border: none;
|
|
|
}
|
|
|
td, th {
|
|
|
border: none;
|
|
|
border-bottom: 1px solid #333;
|
|
|
padding: 4px 6px;
|
|
|
text-align: center;
|
|
|
white-space: nowrap;
|
|
|
overflow: visible;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
.col-no {
|
|
|
width: 40px;
|
|
|
}
|
|
|
tbody td.col-no {
|
|
|
border-right: 1px solid #333;
|
|
|
}
|
|
|
.col-episode { width: 90px; }
|
|
|
.col-bed { width: 40px; }
|
|
|
.col-name { width: 25px; }
|
|
|
.col-ward { width: 140px; }
|
|
|
.col-item { width: auto; }
|
|
|
.col-date { width: 55px; }
|
|
|
.col-period { width: 70px; }
|
|
|
.col-res { width: 130px; }
|
|
|
td.col-episode, td.col-bed, td.col-name, td.col-ward, td.col-item, td.col-date, td.col-period, td.col-res {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.title-cell {
|
|
|
font-size: 24px;
|
|
|
font-weight: bold;
|
|
|
letter-spacing: 2px;
|
|
|
}
|
|
|
.page-info {
|
|
|
font-size: 11px;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.empty-row td {
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
.empty-row td.col-no {
|
|
|
border-right: none;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
@php
|
|
|
$serialBase = 0;
|
|
|
@endphp
|
|
|
@foreach ($pages as $pageIndex => $pageItems)
|
|
|
@php
|
|
|
$currentPage = $pageIndex + 1;
|
|
|
@endphp
|
|
|
<div class="page">
|
|
|
<table>
|
|
|
<colgroup>
|
|
|
<col style="width:40px">
|
|
|
<col style="width:90px">
|
|
|
<col style="width:40px">
|
|
|
<col style="width:60px">
|
|
|
<col style="width:160px">
|
|
|
<col style="width:auto">
|
|
|
<col style="width:80px">
|
|
|
<col style="width:90px">
|
|
|
<col style="width:130px">
|
|
|
</colgroup>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<td class="col-no">序号</td>
|
|
|
<td class="col-episode"> </td>
|
|
|
<td class="col-bed">床号</td>
|
|
|
<td colspan="5" class="title-cell">秦皇岛中医医院 预约信息明细</td>
|
|
|
<td class="col-res page-info">共{{ $totalPages }}页/第{{ $currentPage }}页</td>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@foreach ($pageItems as $index => $item)
|
|
|
@php
|
|
|
$serial = $pageIndex * $perPage + $loop->iteration;
|
|
|
$isInpatient = $item->patient_type == 0;
|
|
|
$entrustText = $item->entrust;
|
|
|
if (!empty($item->requestComment)) {
|
|
|
$entrustText .= '(' . $item->requestComment . ')';
|
|
|
}
|
|
|
$periodText = '';
|
|
|
if (!empty($item->period_begin_time) && !empty($item->period_end_time)) {
|
|
|
$periodText = substr($item->period_begin_time, 0, 5) . '~' . substr($item->period_end_time, 0, 5);
|
|
|
}
|
|
|
@endphp
|
|
|
<tr>
|
|
|
<td class="col-no">{{ $serial }}</td>
|
|
|
<td class="col-episode">{{ $isInpatient ? substr($item->episodeid, -10) : '' }}</td>
|
|
|
<td class="col-bed">{{ $isInpatient ? $item->bedno : '' }}</td>
|
|
|
<td class="col-name">{{ $item->user_name }}</td>
|
|
|
<td class="col-ward">{{ $isInpatient ? $item->warddesc : '' }}</td>
|
|
|
<td class="col-item">{{ $entrustText }}</td>
|
|
|
<td class="col-date">{{ $item->reservation_date }}</td>
|
|
|
<td class="col-period">{{ $periodText }}</td>
|
|
|
<td class="col-res">{{ $item->department_resources_addr }}</td>
|
|
|
</tr>
|
|
|
@endforeach
|
|
|
{{-- 不足25行补空行 --}}
|
|
|
@for ($i = count($pageItems); $i < $perPage; $i++)
|
|
|
<tr class="empty-row">
|
|
|
<td class="col-no"> </td>
|
|
|
<td class="col-episode"> </td>
|
|
|
<td class="col-bed"> </td>
|
|
|
<td class="col-name"> </td>
|
|
|
<td class="col-ward"> </td>
|
|
|
<td class="col-item"> </td>
|
|
|
<td class="col-date"> </td>
|
|
|
<td class="col-period"> </td>
|
|
|
<td class="col-res"> </td>
|
|
|
</tr>
|
|
|
@endfor
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
@endforeach
|
|
|
</body>
|
|
|
</html>
|