From da405bba3ffffb4f28625613b0e0c04e2231ca79 Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Thu, 30 Jul 2026 01:26:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=A9=E9=A6=A8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Http/Controllers/API/PdfController.php | 24 +++++++++++++++++++ .../views/pdf/GroupedCheckPdf.blade.php | 10 ++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/PdfController.php b/Laravel/app/Http/Controllers/API/PdfController.php index 9f7f582..3986fee 100644 --- a/Laravel/app/Http/Controllers/API/PdfController.php +++ b/Laravel/app/Http/Controllers/API/PdfController.php @@ -228,6 +228,18 @@ public function GetCheckPdf() ->values() ->toArray(); $room['check_notice'] = implode("\n", $notices); + + //温馨提示:从该诊室所有检查项目读取 warm_tips,去重过滤 + $tips = DB::table('s_check_item') + ->whereIn('item_name', $itemNames) + ->where('status', 1) + ->where('is_del', 0) + ->pluck('warm_tips') + ->filter() + ->unique() + ->values() + ->toArray(); + $room['warm_tips'] = $tips; } } } @@ -546,6 +558,18 @@ public function GenerateGroupedCheckPdf() ->values() ->toArray(); $room['check_notice'] = implode("\n", $notices); + + //温馨提示:从该诊室所有检查项目读取 warm_tips,去重过滤 + $tips = DB::table('s_check_item') + ->whereIn('item_name', $itemNames) + ->where('status', 1) + ->where('is_del', 0) + ->pluck('warm_tips') + ->filter() + ->unique() + ->values() + ->toArray(); + $room['warm_tips'] = $tips; } } } diff --git a/Laravel/resources/views/pdf/GroupedCheckPdf.blade.php b/Laravel/resources/views/pdf/GroupedCheckPdf.blade.php index fc971f9..e6dc1f8 100644 --- a/Laravel/resources/views/pdf/GroupedCheckPdf.blade.php +++ b/Laravel/resources/views/pdf/GroupedCheckPdf.blade.php @@ -95,11 +95,13 @@
- +
温馨提示:温馨提示: -
1、预约后请您及时缴费,门诊患者预约成功后60分钟内不缴费,系统会自动取消您的预约申请。自动取消后,如需继续预约,请到相关检查科室重新预约。
-
2、预约时间为8点~10点的,请8点到登记处签到,预约时间为10点~12点的,请10点前到登记处签到,便于工作人员进行检查评估和准备。
-
3、预约时间不是实际检查时间,以现场登记后排队号为准。
+ @if (isset($room['warm_tips']) && count($room['warm_tips']) > 0) + @foreach($room['warm_tips'] as $tip) +
{!! nl2br(e($tip)) !!}
+ @endforeach + @endif