From ae77ce60725f0bf717c03cc16581166eb349cf35 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期三, 30 十月 2024 15:22:56 +0800 Subject: [PATCH] update --- src/views/ecg/appointment/AppointmentConfirm.vue | 36 +++++++++++++----------------------- 1 files changed, 13 insertions(+), 23 deletions(-) diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue index a7d1a03..f7c5579 100644 --- a/src/views/ecg/appointment/AppointmentConfirm.vue +++ b/src/views/ecg/appointment/AppointmentConfirm.vue @@ -24,7 +24,7 @@ <el-radio v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)" :key="dict.value" - :label="dict.value" + :value="dict.value" > {{ dict.label }} </el-radio> @@ -120,12 +120,7 @@ const message = useMessage() // 娑堟伅寮圭獥 -const loading = ref(true) // 鍒楄〃鐨勫姞杞戒腑 -const list = ref<AppointmentVO[]>([]) // 鍒楄〃鐨勬暟鎹� -const total = ref(0) // 鍒楄〃鐨勬�婚〉鏁� const queryParams = reactive({ - pageNo: 1, - pageSize: 10, patId: undefined }) @@ -154,27 +149,22 @@ const searchBookInfo = async () => { resetForm() - total.value = 0 - list.value = [] - await getList() - if (total.value === 1) { - formData.value = list.value[0] + if (null === queryParams.patId || "" === queryParams.patId) + return + + const data = await AppointmentApi.getAppointmentByPatId(queryParams.patId) // 瀵瑰簲鏁版嵁搴撲腑 pat_id + console.info( data ) + if (null !== data) { + formData.value = data return } - message.notify("璇峰厛棰勭害!") -} -/** 鏌ヨ鍒楄〃 */ -const getList = async () => { - loading.value = true - try { - const data = await AppointmentApi.getAppointmentPage(queryParams) - list.value = data.list - total.value = data.total - } finally { - loading.value = false - } + ElNotification({ + title: '娓╅Θ鎻愮ず', + message: "璇峰厛棰勭害", + type: 'warning' + }) } const _confirmAppointment = async () => { -- Gitblit v1.9.3