From f4493cf74b82af4a6da2ba03decc52e3513e902f Mon Sep 17 00:00:00 2001 From: chenqi Date: Sun, 21 Jun 2026 06:17:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(emr):=20=E6=89=93=E9=80=9AEMR=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9D=97=E4=B8=8E=E9=97=A8=E8=AF=8A/?= =?UTF-8?q?=E4=BD=8F=E9=99=A2=E7=97=85=E5=8E=86=E9=9B=86=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复revision-history API路径与后端对齐 - EMR管理页面支持URL参数自动加载 - 医生工作站添加修订历史/完整性检查入口 - 住院医生工作站添加修订历史/完整性检查入口 --- .../doctorstation/components/emr/emr.vue | 52 ++++++++++++++++++- .../src/views/emr/archive/index.vue | 8 ++- .../views/emr/completeness-check/index.vue | 10 +++- .../src/views/emr/revision-history/api.js | 8 +-- .../src/views/emr/revision-history/index.vue | 7 ++- .../src/views/emr/timeliness/index.vue | 10 +++- .../src/views/emrsearch/index.vue | 9 +++- .../views/inpatientDoctor/home/emr/index.vue | 49 +++++++++++++++++ 8 files changed, 142 insertions(+), 11 deletions(-) diff --git a/healthlink-his-ui/src/views/doctorstation/components/emr/emr.vue b/healthlink-his-ui/src/views/doctorstation/components/emr/emr.vue index 74f8d9f66..ad4fa8cb5 100755 --- a/healthlink-his-ui/src/views/doctorstation/components/emr/emr.vue +++ b/healthlink-his-ui/src/views/doctorstation/components/emr/emr.vue @@ -30,6 +30,22 @@ > 历史病历 + + 修订历史 + + + 完整性检查 + @@ -923,6 +937,41 @@ const onPrint = () => { } }; +// 查看修订历史 +import {useRouter} from 'vue-router'; +import {checkCompleteness as checkEmrCompleteness} from '@/api/emr'; +const router = useRouter(); + +const viewRevisionHistory = () => { + if (!patientInfo.value?.encounterId) { + ElMessage.warning('请先选择患者'); + return; + } + router.push({ + path: '/emr/revision-history', + query: { emrId: patientInfo.value.encounterId } + }); +}; + +// 完整性检查 +const checkCompleteness = async () => { + if (!patientInfo.value?.encounterId) { + ElMessage.warning('请先选择患者'); + return; + } + try { + const res = await checkEmrCompleteness(patientInfo.value.encounterId, patientInfo.value.encounterId); + const data = res.data || res; + if (data.isComplete) { + ElMessage.success('病历完整性检查通过'); + } else { + ElMessage.warning(`病历完整性检查未通过,${data.requiredFailed}项必填项未填写`); + } + } catch (e) { + ElMessage.error('检查失败'); + } +}; + // 添加一个方法供父组件调用,处理患者切换 const handlePatientChange = (patient) => { // 更新患者信息