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) => {
// 更新患者信息