From 1b145b5655fa023032c8713bb2375bccdf0fc314 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 24 十月 2024 11:13:40 +0800
Subject: [PATCH] 领用完成后 立即刷新 患者列表

---
 src/views/ecg/appointment/AppointmentConfirm.vue |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue
index db8a21c..f795312 100644
--- a/src/views/ecg/appointment/AppointmentConfirm.vue
+++ b/src/views/ecg/appointment/AppointmentConfirm.vue
@@ -53,7 +53,7 @@
       <el-form-item label="棰勭害妫�鏌ョ被鍨�" prop="bookCheckType">
         <el-select v-model="formData.bookCheckType" placeholder="璇烽�夋嫨棰勭害妫�鏌ョ被鍨�">
           <el-option
-            v-for="dict in getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE)"
+            v-for="dict in checkTypeStore.getCheckTypeOptions()"
             :key="dict.value"
             :label="dict.label"
             :value="dict.value"
@@ -111,9 +111,12 @@
 <script setup lang="ts">
 import {DICT_TYPE, getIntDictOptions} from '@/utils/dict'
 import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment'
+import {useCheckTypeStore} from "@/store/modules/checkType";
 
 /** 棰勭害纭 琛ㄥ崟 */
 defineOptions({ name: 'AppointmentConfirm' })
+
+const checkTypeStore = useCheckTypeStore();
 
 const message = useMessage() // 娑堟伅寮圭獥
 
@@ -126,7 +129,7 @@
     patId: undefined
 })
 
-const formData = ref({
+const formData = ref<AppointmentVO>({
   id: 0,
   patId: "",
   patName: "",
@@ -144,8 +147,8 @@
   bookId: "",
   bookTime: new Date(),
   bookDate: new Date(),
-  bookTimeslot: 10001015,
-  bookCheckType: 10
+  bookTimeslot: 9000930,
+  bookCheckType: checkTypeStore.getCheckTypeName(100)
 })
 const formRef = ref() // 琛ㄥ崟 Ref
 
@@ -176,9 +179,12 @@
 
 const _confirmAppointment = async () => {
     const data = await AppointmentApi.confirmAppointment(formData.value)
-    message.info(data)
+    ElNotification({
+      title: '娓╅Θ鎻愮ず',
+      message: data,
+      type: 'warning'
+    })
 }
-
 
 /** 閲嶇疆琛ㄥ崟 */
 const resetForm = () => {
@@ -200,7 +206,7 @@
     bookId: "",
     bookTime: new Date(),
     bookDate: new Date(),
-    bookTimeslot: 10001015,
+    bookTimeslot: 9000930,
     bookCheckType: 10
   }
   formRef.value?.resetFields()

--
Gitblit v1.9.3