From c8dfa498526164d548490e80a729bcefdf0ab848 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 11 四月 2025 16:30:57 +0800
Subject: [PATCH] import missing
---
src/views/ecg/appointment/AppointmentConfirm.vue | 56 +++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 37 insertions(+), 19 deletions(-)
diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue
index badefc0..b0adea6 100644
--- a/src/views/ecg/appointment/AppointmentConfirm.vue
+++ b/src/views/ecg/appointment/AppointmentConfirm.vue
@@ -6,8 +6,8 @@
</div>
<div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px">
- <div v-for="_appointment in appointmentVOList" :key="_appointment.applyNo">
- <CheckItemPanel :appointment="_appointment" />
+ <div v-for="(_appointment, index) in appointmentVOList" :key="index">
+ <CheckItemPanel :appointment="_appointment" @event_appoint_confirm="onEventAppointConfirm"/>
</div>
</div>
@@ -28,8 +28,7 @@
<el-radio
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)"
:key="dict.value"
- :value="dict.value"
- >
+ :value="dict.value">
{{ dict.label }}
</el-radio>
</el-radio-group>
@@ -88,19 +87,14 @@
<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 {RoomStatus} from "@/components/RoomStatus";
+import {getCheckTypeName} from "@/utils/checkTypeFormatter";
/** 棰勭害纭 琛ㄥ崟 */
defineOptions({ name: 'AppointmentConfirm' })
-const checkTypeStore = useCheckTypeStore();
-
-const message = useMessage() // 娑堟伅寮圭獥
-
const queryParams = reactive({
- patId: undefined
+ patId: ''
})
const appointmentVOList = ref<AppointmentVO[]>([])
@@ -108,6 +102,7 @@
const formData = ref<AppointmentVO>({
id: 0,
applyNo: "",
+ episodeId: "",
patSrc: 0,
patId: "",
patName: "",
@@ -122,25 +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) {
+ if (null !== data && data.length > 0) {
formData.value = data[0]
+ appointmentVOList.value = data
console.info( formData.value )
return
}
@@ -154,9 +153,11 @@
/** 閲嶇疆琛ㄥ崟 */
const resetForm = () => {
+ appointmentVOList.value.length=0;
formData.value = {
id: 0,
applyNo: "",
+ episodeId: "",
patSrc: 0,
patId: "",
patName: "",
@@ -171,14 +172,31 @@
patWardCode: "",
patWardDesc: "",
patBedNo: "",
- bookId: "",
bookTime: new Date(),
bookDate: new Date(),
bookTimeslot: 9301030,
- bookCheckType: checkTypeStore.getCheckTypeName(100)
+ bookCheckType: getCheckTypeName(100),
+ paid: 0,
+ bookSeqNum: 0,
}
formRef.value?.resetFields()
}
+
+const onEventAppointConfirm = () => {
+/*
+ if (null !== appointmentVOList.value && appointmentVOList.value.length === 1) {
+ queryParams.patId = ""
+ }
+*/
+ queryParams.patId = ""
+}
+
+/** 鍒濆鍖� **/
+onMounted(() => {
+ resetForm()
+})
+
+
</script>
<style lang="scss" scoped>
--
Gitblit v1.9.3