From 0644d460083c353ca1fef68fd1c46fdd1e743786 Mon Sep 17 00:00:00 2001 From: duhe Date: Mon, 10 Mar 2025 15:18:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E8=AF=8A=E6=8C=82=E5=8F=B7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=20up=20by=20dh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/outpatientregistration.js | 15 +- .../charge/outpatientregistration/index.vue | 158 +++++++++++++++--- 2 files changed, 141 insertions(+), 32 deletions(-) diff --git a/openhis-ui-vue3/src/views/charge/outpatientregistration/components/outpatientregistration.js b/openhis-ui-vue3/src/views/charge/outpatientregistration/components/outpatientregistration.js index 3222fd71..ecce93a8 100644 --- a/openhis-ui-vue3/src/views/charge/outpatientregistration/components/outpatientregistration.js +++ b/openhis-ui-vue3/src/views/charge/outpatientregistration/components/outpatientregistration.js @@ -63,13 +63,14 @@ export function getHealthcareMetadata(query) { }) } -// // 门诊挂号查询 -// export function getOutpatientRegistrationCategory() { -// return request({ -// url: '/outpatient-service/registerinformation-init', -// method: 'get' -// }) -// } +// 门诊挂号查询 +export function getOutpatientRegistrationCurrent(query) { + return request({ + url: '/outpatient-service/register/current-day-encounter', + method: 'get', + params: query + }) +} // 新增门诊挂号信息 export function addOutpatientRegistration(data) { diff --git a/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue b/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue index b9ea39d8..18dfa3c0 100644 --- a/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue +++ b/openhis-ui-vue3/src/views/charge/outpatientregistration/index.vue @@ -507,6 +507,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + { - // loading.value = false; - // outpatientRegistrationList.value = res.data.records; - // total.value = res.data.total; - // }); + loading.value = true; + getOutpatientRegistrationCurrent(queryParams.value).then((res) => { + loading.value = false; + outpatientRegistrationList.value = res.data.records; + console.log( + outpatientRegistrationList.value, + "outpatientRegistrationList.value" + ); + total.value = res.data.total; + }); } /** 查询费用性质 */ @@ -667,12 +782,12 @@ function getContract() { }); } -/** 查询诊断信息 */ -function getConditionDefinition() { - getConditionDefinitionMetadata().then((response) => { - console.log("getConditionDefinitionMetadata", "response", response.data); - }); -} +// /** 查询诊断信息 */ +// function getConditionDefinition() { +// getConditionDefinitionMetadata().then((response) => { +// console.log("getConditionDefinitionMetadata", "response", response.data); +// }); +// } /** 查询就诊位置 */ function getLocationInfo() { @@ -766,11 +881,6 @@ function reset() { }; proxy.resetForm("outpatientRegistrationRef"); } -/** 取消按钮 */ -function cancel() { - open.value = false; - reset(); -} /** 新增按钮操作 */ function handleAdd() { @@ -819,10 +929,8 @@ function transformFormData(form) { getInitData(); getList(); getContract(); -getConditionDefinition(); +// getConditionDefinition(); getLocationInfo(); -// getPractitioner(); -// getHealthcare();