From 5c04d9f3a0e9e0db88d3638834b58310917e3c8e Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Wed, 22 Jul 2026 09:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/Http/Controllers/API/Admin/YeWu/WorkMainController.php | 2 +- YiJi-admin/src/components/Yewu/PrintShenQingDan.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php b/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php index 2dca48f..62eefde 100644 --- a/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php +++ b/Laravel/app/Http/Controllers/API/Admin/YeWu/WorkMainController.php @@ -97,7 +97,7 @@ public function getMainDetail() } } } - $barcodeContent = $value->patient_type == 0 ? substr($value->episodeid, -10) : $value->app_num; + $barcodeContent = $value->patient_type == 0 ? substr($value->episodeid, -10) : $value->reg_num; $generator = new \Picqer\Barcode\BarcodeGeneratorPNG(); $barcodePng = $generator->getBarcode($barcodeContent, $generator::TYPE_CODE_128, 2, 40); $value->barcode = base64_encode($barcodePng); diff --git a/YiJi-admin/src/components/Yewu/PrintShenQingDan.vue b/YiJi-admin/src/components/Yewu/PrintShenQingDan.vue index da56496..60ea0ab 100644 --- a/YiJi-admin/src/components/Yewu/PrintShenQingDan.vue +++ b/YiJi-admin/src/components/Yewu/PrintShenQingDan.vue @@ -7,7 +7,7 @@ style="width:200px;text-align: center;padding-bottom: 8px;-webkit-print-color-adjust: exact; position: absolute;right: 10px;top:0px;"> -
{{printInfo.patient_type == 0 ? printInfo.episodeid.slice(-10) : printInfo.app_num}}
+
{{printInfo.patient_type == 0 ? printInfo.episodeid.slice(-10) : printInfo.reg_num}}