From aa2d6665f95a0701b61272fd8065663070565034 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期二, 15 四月 2025 12:31:05 +0800
Subject: [PATCH] bug fix: pat_id dev_id 都为空时 不应该取患者列表
---
src/views/ecg/appointment/AppointmentConfirm.vue | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue
index 93a42f6..b0adea6 100644
--- a/src/views/ecg/appointment/AppointmentConfirm.vue
+++ b/src/views/ecg/appointment/AppointmentConfirm.vue
@@ -6,7 +6,7 @@
</div>
<div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px">
- <div v-for="_appointment in appointmentVOList" :key="_appointment.applyNo">
+ <div v-for="(_appointment, index) in appointmentVOList" :key="index">
<CheckItemPanel :appointment="_appointment" @event_appoint_confirm="onEventAppointConfirm"/>
</div>
</div>
@@ -87,13 +87,11 @@
<script setup lang="ts">
import {DICT_TYPE, getIntDictOptions} from '@/utils/dict'
import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment'
-import {useCheckTypeStore} from "@/store/modules/checkType";
import CheckItemPanel from "@/views/ecg/appointment/CheckItemPanel.vue";
+import {getCheckTypeName} from "@/utils/checkTypeFormatter";
/** 棰勭害纭 琛ㄥ崟 */
defineOptions({ name: 'AppointmentConfirm' })
-
-const checkTypeStore = useCheckTypeStore();
const queryParams = reactive({
patId: ''
@@ -104,6 +102,7 @@
const formData = ref<AppointmentVO>({
id: 0,
applyNo: "",
+ episodeId: "",
patSrc: 0,
patId: "",
patName: "",
@@ -118,26 +117,29 @@
patWardCode: "",
patWardDesc: "",
patBedNo: "",
- bookId: "",
bookTime: new Date(),
bookDate: new Date(),
bookTimeslot: 9301030,
- bookCheckType: checkTypeStore.getCheckTypeName(100),
+ bookCheckType: getCheckTypeName(100),
paid: 0,
+ bookSeqNum: 0,
})
const formRef = ref() // 琛ㄥ崟 Ref
const searchBookInfo = async () => {
resetForm()
- if (null === queryParams.patId || "" === queryParams.patId)
+ if (null === queryParams.patId || "" === queryParams.patId.trim())
return
- const data = await AppointmentApi.queryAndCreateAppointmentByPatId(queryParams.patId) // 瀵瑰簲鏁版嵁搴撲腑 pat_id
+ const _patId = queryParams.patId.trim()
+ console.warn("===" + _patId + "===")
+
+ const data = await AppointmentApi.queryAndCreateAppointmentByPatId(_patId) // 瀵瑰簲鏁版嵁搴撲腑 pat_id
console.info( data )
- appointmentVOList.value = data
if (null !== data && data.length > 0) {
formData.value = data[0]
+ appointmentVOList.value = data
console.info( formData.value )
return
}
@@ -155,6 +157,7 @@
formData.value = {
id: 0,
applyNo: "",
+ episodeId: "",
patSrc: 0,
patId: "",
patName: "",
@@ -169,13 +172,12 @@
patWardCode: "",
patWardDesc: "",
patBedNo: "",
- bookId: "",
bookTime: new Date(),
bookDate: new Date(),
bookTimeslot: 9301030,
- bookCheckType: checkTypeStore.getCheckTypeName(100),
+ bookCheckType: getCheckTypeName(100),
paid: 0,
- bookSeqNum: 0
+ bookSeqNum: 0,
}
formRef.value?.resetFields()
}
--
Gitblit v1.9.3