From 106d90222ad7fb031cae93876e904e9dc8e5ce7f Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 11 四月 2025 16:05:47 +0800
Subject: [PATCH] fix warnings

---
 src/views/ecg/appointment/CheckItemPanel.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/ecg/appointment/CheckItemPanel.vue b/src/views/ecg/appointment/CheckItemPanel.vue
index d841bda..7b63084 100644
--- a/src/views/ecg/appointment/CheckItemPanel.vue
+++ b/src/views/ecg/appointment/CheckItemPanel.vue
@@ -9,6 +9,7 @@
 import { cloneDeep } from 'lodash-es'
 import {hiprint} from "vue-plugin-hiprint";
 import {calGender, getBookBeginTime} from "@/utils";
+import {getCheckTypeName} from "@/utils/checkTypeFormatter";
 
 defineComponent({
   name: 'CheckItemPanel'
@@ -129,7 +130,7 @@
   //var panel = hiprintTemplate.addPrintPanel({ width: 100, height: 130, paperFooter: 340, paperHeader: 10 }); 瀵艰嚧璧颁笁椤�
   var panel = hiprintTemplate.addPrintPanel({ width: 140, height: 130, paperNumberDisabled:true});
 //鏂囨湰
-  const checkTypeName = checkTypeStore.getCheckTypeName(props.appointment.bookCheckType)
+  const checkTypeName = getCheckTypeName(props.appointment.bookCheckType)
   panel.addPrintText({ options: { width: 150, height: 15, top: 2, left: 10, title: checkTypeName, textAlign: 'center', fontSize: 15, fontFamily: '寰蒋闆呴粦',  fontWeight: '700', } });
   const patientBaisc = props.appointment.patName + "  " + calGender(props.appointment.patGender) + "  " + calculateAge(props.appointment.patBirthday) + "宀�"
   panel.addPrintText({ options: { width: 150, height: 15, top: 27, left: 10, title: patientBaisc, textAlign: 'center' , fontSize: 15, fontFamily: '寰蒋闆呴粦', fontWeight: '700', } });
@@ -168,7 +169,7 @@
 
 <template>
   <el-card style="width: 200px" shadow="hover" >
-    <template #header>{{checkTypeStore.getCheckTypeName(appointment.bookCheckType)}}</template>
+    <template #header>{{getCheckTypeName(appointment.bookCheckType)}}</template>
     <div>{{formatDate(appointment.bookDate, 'YYYY-MM-DD')}}</div>
     <div>{{formatTimeslot(appointment.bookTimeslot)}}</div>
 

--
Gitblit v1.9.3