Backup local changes before resolving remote repository issue

This commit is contained in:
2026-01-27 10:05:25 +08:00
parent 11c2758289
commit 86bca03b04
29 changed files with 2626 additions and 126 deletions

View File

@@ -209,6 +209,7 @@ import useUserStore from '@/store/modules/user';
import { nextTick } from 'vue';
import { updatePatientInfo } from './components/store/patient.js';
import { ElMessage, ElMessageBox } from 'element-plus';
import { debounce } from 'lodash-es';
// // 监听路由离开事件
// onBeforeRouteLeave((to, from, next) => {
@@ -487,7 +488,8 @@ function handleOpen() {
patientDrawerRef.value.refreshList();
}
function handleCardClick(item, index) {
// 原始的handleCardClick函数
function handleCardClickOriginal(item, index) {
console.log('handleCardClick 被调用');
console.log('点击的患者项目:', item);
console.log('患者项目中的encounterId:', item.encounterId);
@@ -544,6 +546,9 @@ function handleCardClick(item, index) {
});
}
// 使用防抖的handleCardClick函数防止短时间内多次点击
const handleCardClick = debounce(handleCardClickOriginal, 500);
function handleLeave(encounterId) {
leaveEncounter(encounterId).then((res) => {
if (res.code == 200) {
@@ -589,7 +594,7 @@ function handleHospitalizationClick() {
// 接诊回调
function handleReceive(row) {
handleCardClick(row);
handleCardClickOriginal(row);
currentEncounterId.value = row.encounterId;
drawer.value = false;
getPatientList();
@@ -776,7 +781,7 @@ const markSeen = async () => {
currentCallPatient.value = {};
};
const callThis = (row) => {
handleCardClick(row);
handleCardClickOriginal(row);
currentCallPatient.value = row;
dialogVisible.value = false;
// 刷新患者列表和候诊列表