From fe28e1fe081c83b703d5c10b3ebe017a69da9b3d Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 11 四月 2025 16:52:29 +0800
Subject: [PATCH] 大屏 增加 运行 指示圆点

---
 src/views/ecg/appointment/AppointmentForm.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/ecg/appointment/AppointmentForm.vue b/src/views/ecg/appointment/AppointmentForm.vue
index 432e460..64a4759 100644
--- a/src/views/ecg/appointment/AppointmentForm.vue
+++ b/src/views/ecg/appointment/AppointmentForm.vue
@@ -158,6 +158,7 @@
 import {DICT_TYPE, getIntDictOptions} from '@/utils/dict'
 import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment'
 import {useCheckTypeStore} from "@/store/modules/checkType";
+import {getCheckTypeName} from "@/utils/checkTypeFormatter";
 
 /** 棰勭害 琛ㄥ崟 */
 defineOptions({ name: 'AppointmentForm' })
@@ -219,7 +220,7 @@
     }
   }
 }
-const openByQueue = async (type: string, patId: string) => {
+const openByQueue = async (type: string, patId: string, checkType: number) => {
   dialogVisible.value = true
   dialogTitle.value = t('action.' + type)
   formType.value = type
@@ -228,7 +229,7 @@
   if (patId) {
     formLoading.value = true
     try {
-      formData.value = await AppointmentApi.getCurAppointmentByPatId( patId )
+      formData.value = await AppointmentApi.getCurAppointmentByPatIdAndCheckType( patId, checkType )
     } finally {
       formLoading.value = false
     }
@@ -282,7 +283,7 @@
     bookTime: undefined,
     bookDate: new Date().getTime(),
     bookTimeslot: 9000930,
-    bookCheckType: checkTypeStore.getCheckTypeName(100),
+    bookCheckType: getCheckTypeName(100),
     paid: 0,
   }
   formRef.value?.resetFields()
@@ -290,7 +291,7 @@
 
 const searchBookInfo = async () => {
   const tmpPatId = formData.value.patId
-  if (null === tmpPatId || "" === tmpPatId)
+  if (null == tmpPatId || "" === tmpPatId)
     return
 
   const data = await AppointmentApi.queryAppointmentFromHis( tmpPatId ) // 瀵瑰簲鏁版嵁搴撲腑 pat_id

--
Gitblit v1.9.3