You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
8.9 KiB
PHTML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>检查预约回执单</title>
<style>
@page {
margin: 5mm;
}
body {
margin: 0;
padding: 0;
font-family: 'Microsoft YaHei', '微软雅黑', 'SimHei', '黑体', sans-serif;
font-size: 12px;
color: #333;
}
.page {
page-break-after: always;
width: 100%;
height: 297mm;
box-sizing: border-box;
}
.page:last-child {
page-break-after: auto;
}
.PrintShenQingDan {
width: 100%;
padding: 5mm 6mm;
box-sizing: border-box;
}
.PrintShenQingDan td {
vertical-align: top;
}
</style>
</head>
<body>
@foreach ($groups as $typeKey => $typeGroup)
@foreach ($typeGroup['patients'] as $patientKey => $patient)
@foreach ($patient['rooms'] as $roomKey => $room)
<div class="page">
<div class="PrintShenQingDan">
<div style="padding-bottom: 6px; margin-top: 20px; position: relative;">
<div style="width: 100%; text-align: center; font-size: 26px;">秦皇岛市中医医院</div>
<div style="width: 100%; text-align: center; font-size: 22px; font-weight: bold; margin-top: 5px;">检查预约回执单</div>
<div style="width: 251px; height: 69px; position: absolute; right: 15px; top: 0;">
<img src="data:image/png;base64,{{ $patient['barcode'] }}" style="display: block; margin: 0 auto; width: 100%; height: auto;" />
<div style="text-align: center; font-size: 14px;">{{ $patient['barcode_text'] }}</div>
</div>
</div>
<div style="border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 5px 4px;">
<table style="border: none; font-size: 20px; width: 100%;">
<tr style="border: none;">
<td style="border: none; width: 25%; text-align: left;"><span style="display: inline-block; white-space: pre;">姓 名</span>{{ $patient['patient_name'] }}</td>
<td style="border: none; width: 36%; text-align: left;"><span style="display: inline-block; white-space: pre;">性 别</span>{{ $patient['user_sex_label'] }}</td>
<td style="border: none; width: 15%; text-align: left;"><span style="display: inline-block; white-space: pre;">年 龄</span>{{ $patient['age'] }}</td>
<td style="border: none; width: 24%; text-align: left;"><span style="display: inline-block;">病人类型</span>{{ $patient['patient_type_label'] }}</td>
</tr>
<tr style="border: none;">
<td style="border: none; width: 25%; text-align: left;"><span style="display: inline-block;">{{ $patient['patient_type_label'] }}号</span>{{ $patient['patient_id'] }}</td>
@if ($patient['patient_type'] == 0)
<td style="border: none; width: 32%; text-align: left;"><span style="float: left; white-space: nowrap; margin-right: 4px;"><span style="white-space: pre;">病 区</span></span>{{ $patient['warddesc'] }}</td>
<td style="border: none; width: 14%; text-align: left;"><span style="display: inline-block; white-space: pre;">床 号</span>{{ $patient['bedno'] }}</td>
<td style="border: none; width: 29%; text-align: left; white-space: nowrap;"><span style="display: inline-block;">联系电话</span>{{ $patient['user_phone'] }}</td>
@else
<td style="border: none; width: 40%; text-align: left;"><span style="display: inline-block;">联系电话</span>{{ $patient['user_phone'] }}</td>
<td style="border: none; width: 16%; text-align: left;"></td>
<td style="border: none; width: 24%; text-align: left;"></td>
@endif
</tr>
<tr style="border: none;">
<td style="border: none; width: 25%; text-align: left;"><span style="display: inline-block; white-space: pre;">申请医生</span>{{ $room['doctor'] }}</td>
<td style="border: none; width: 75%; text-align: left;" colspan="3"><span style="display: inline-block;">申请科室</span>{{ $room['apply_department'] }}</td>
</tr>
</table>
</div>
<div style="border-bottom: 1px solid #333; padding: 5px 4px;">
<table style="border: none;">
<tr style="border: none; vertical-align: top;">
<td style="width: 15%; border: none; font-size: 22px; font-weight: 900; text-align: left; white-space: nowrap;">检查项目:</td>
<td style="border: none; font-size: 22px; text-align: left;">{{ $room['items_str'] }}</td>
</tr>
<tr style="border: none; vertical-align: top;">
<td style="width: 15%; border: none; font-size: 22px; font-weight: 900; text-align: left; white-space: nowrap;">预约时间:</td>
<td style="border: none; font-size: 22px; text-align: left;">{{ str_replace('-', '/', $room['reservation_date']) }}
@if ($room['period_begin'] && $room['period_end'])
{{ $room['period_begin'] }}-{{ $room['period_end'] }}
@endif
{{ $room['weekday_label'] }}
<span style="margin-left: 20px;"><span style="font-weight: 900;">临床诊断:</span>{{ $room['diagnosis_name'] }}</span></td>
</tr>
<tr style="border: none; vertical-align: top;">
<td style="width: 15%; border: none; font-size: 22px; font-weight: 900; text-align: left; white-space: nowrap;">检查地点:</td>
<td style="border: none; font-size: 22px; text-align: left;">{{ $room['room_addr'] }}</td>
</tr>
<tr style="border: none; vertical-align: top;">
<td style="width: 15%; border: none; font-size: 22px; font-weight: 900; text-align: left; white-space: nowrap;">病史资料:</td>
<td style="border: none; font-size: 20px; text-align: left; line-height: 1.5;">{{ $room['medical_history'] }}</td>
</tr>
</table>
</div>
<div style="padding: 5px 4px;">
<table style="border: none;">
<tr style="border: none;">
<td style="width: 15%; border: none; font-size: 22px; font-weight: 900; text-align: left; vertical-align: middle; white-space: nowrap;">温馨提示:</td>
<td style="text-align: left; border: none; font-size: 20px; line-height: 1.5;">
@if (isset($room['warm_tips']) && count($room['warm_tips']) > 0)
@foreach($room['warm_tips'] as $tip)
<div>{!! nl2br(e($tip)) !!}</div>
@endforeach
@endif
</td>
</tr>
</table>
</div>
<div style="border-top: 1px solid #333; padding: 5px 4px; min-height: 50px;">
<div style="font-size: 22px; font-weight: 900;">检查须知:</div>
@if (isset($room['check_notice']) && $room['check_notice'] !== '')
<div style="font-size: 20px; line-height: 1.5;">
@foreach(explode("\n", $room['check_notice']) as $line)
<div>{{ $line }}</div>
@endforeach
</div>
@endif
</div>
<div style="text-align: right; border-top: 1px solid #333; font-size: 18px; padding: 5px 0;">
{{-- 申请时间:{{ $room['entrust_date_time'] }} --}}
</div>
</div>
</div>
@endforeach
@endforeach
@endforeach
</body>
</html>