From 8544ad5024c46f25e25f5426c8f6bf7c2a845836 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 28 十月 2024 09:22:56 +0800
Subject: [PATCH] remove pay-related icons
---
src/views/ecg/doctor/components/RoutinePanel.vue | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/views/ecg/doctor/components/RoutinePanel.vue b/src/views/ecg/doctor/components/RoutinePanel.vue
index 46cd7dc..9023179 100644
--- a/src/views/ecg/doctor/components/RoutinePanel.vue
+++ b/src/views/ecg/doctor/components/RoutinePanel.vue
@@ -10,7 +10,7 @@
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="鎮h�呯紪鍙�" prop="patId">
- <el-input v-model="formData.patId" placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�" @input="getAppointmentInfoByPatId" />
+ <el-input v-model="formData.patId" placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�" @input="getRentInfoByPatId" />
</el-form-item>
<el-form-item label="鎮h�呭悕绉�" prop="patName">
<el-input v-model="formData.patName" placeholder="璇疯緭鍏ユ偅鑰呭悕绉�" />
@@ -126,8 +126,10 @@
const emit = defineEmits(['event_routine']) // 瀹氫箟 success 浜嬩欢锛岀敤浜庢搷浣滄垚鍔熷悗鐨勫洖璋�
const setPatient = (queueVO: QueueVO | undefined) => {
+ resetForm()
formData.value.patId = queueVO?.patId
- getAppointmentInfoByPatId()
+ formData.value.patName = queueVO?.patName
+ getFreeRentInfo(formData.value)
}
defineExpose({ setPatient }) // 鎻愪緵 setPatient 鏂规硶锛岀敤浜庤缃偅鑰�
@@ -193,26 +195,25 @@
formRef.value?.resetFields()
}
-const getAppointmentInfoByPatId = () => {
+const getRentInfoByPatId = () => {
const tempPatId = formData.value.patId;
resetForm()
if (isStringEmpty(tempPatId))
return
formData.value.patId = tempPatId;
- getAppointmentInfo()
+ getFreeRentInfo(formData.value)
}
-const getAppointmentInfo = async () => {
- const appointmentData = await AppointmentApi.getAppointmentByPatId(formData.value.patId)
- if (null === appointmentData)
+const getFreeRentInfo = async (devRentVO) => {
+ const data = await DevRentApi.getFreeRent(devRentVO)
+ if (null === data)
return
// formDate 瀵瑰簲 DevRent
- formData.value.patName = appointmentData.patName
- formData.value.patDeptDesc = appointmentData.patDeptDesc
- formData.value.patWardDesc = appointmentData.patWardDesc
- formData.value.patBedNo = appointmentData.patBedNo
+ // formData.value = data //涓嶈兘鏁翠釜璧嬪�硷紝 榛樿棰嗙敤鏃堕棿琚竻绌�
+ formData.value.id = data.id;
+ formData.value.patDetails = data.patDetails
}
--
Gitblit v1.9.3