From 2128e717e70989f80616b9ea0d0467119016e1ac Mon Sep 17 00:00:00 2001 From: qk123 <18211963828@163.com> Date: Sun, 4 Jan 2026 15:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E8=AF=8A=E6=8C=82=E5=8F=B7->=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E5=AD=97=E6=AE=B5=E6=97=A0=E6=95=B0=E6=8D=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../charge/outpatientregistration/index.vue | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue b/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue index c1d5180b..c4d524de 100644 --- a/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue +++ b/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue @@ -274,7 +274,7 @@ @change=" () => { form.serviceTypeId = undefined; - setchargeItem; + setchargeItem(); } " clearable @@ -709,6 +709,7 @@ const patientInfoList = ref(undefined); const contractList = ref(undefined); // const locationOptions = ref(undefined); // 地点树选项 const doctorList = ref(undefined); // 医生选项 +const allDoctorList = ref(undefined); // 所有医生选项(用于过滤) const healthcareList = ref([]); // 挂号项目选项 const orgOptions = ref(undefined); // 科室选项 const readCardLoading = ref(false); @@ -1014,6 +1015,15 @@ function setInfo() { form.value.doctorName = doctorData.length > 0 ? doctorData[0].name : ''; } +// 挂号类型选择变化处理 +function handleServiceTypeChange() { + setchargeItem(); + // 如果已选择科室和医生,重新过滤医生列表 + if (form.value.orgId && allDoctorList.value) { + filterDoctorsByHealthcare(); + } +} + // 设定费用项管理表单 function setchargeItem() { if (healthcareList.value.length > 0) { @@ -1026,6 +1036,13 @@ function setchargeItem() { form.value.totalPrice = healthcareData.length > 0 ? healthcareData[0].price + healthcareData[0].activityPrice : ''; form.value.definitionId = healthcareData.length > 0 ? healthcareData[0].definitionId : ''; + } else { + // 如果没有挂号类型数据,清空相关字段 + form.value.locationId_dictText = ''; + form.value.price = ''; + form.value.activityPrice = ''; + form.value.totalPrice = ''; + form.value.definitionId = ''; } } /** 查询患者信息 */ @@ -1471,7 +1488,7 @@ function transformFormData(form) { patientId: form.patientId, definitionId: form.definitionId, serviceId: form.serviceTypeId, - totalPrice: form.price, // 默认值为 99.99 + totalPrice: form.totalPrice, // 使用正确的总价字段 }, }; }