diff --git a/openhis-ui-vue3/src/views/doctorstation/index.vue b/openhis-ui-vue3/src/views/doctorstation/index.vue
index 30785ce8d..e357cf3e5 100755
--- a/openhis-ui-vue3/src/views/doctorstation/index.vue
+++ b/openhis-ui-vue3/src/views/doctorstation/index.vue
@@ -443,7 +443,7 @@ import { nextTick } from 'vue';
import { updatePatientInfo } from './components/store/patient.js';
import { ElMessage, ElMessageBox } from 'element-plus';
-import { useRoute } from 'vue-router';
+import { useRoute, useRouter } from 'vue-router';
// // 监听路由离开事件
// onBeforeRouteLeave((to, from, next) => {
@@ -460,6 +460,7 @@ defineOptions({
});
const route = useRoute();
+const router = useRouter();
// 监听路由参数变化
watch(
@@ -621,6 +622,21 @@ function getPatientList() {
active: currentEncounterId.value ? item.encounterId == currentEncounterId.value : false,
};
});
+
+ // Bug #626: 从待写病历页面跳转过来时,自动选中对应患者
+ const targetEncounterId = route.query.encounterId;
+ if (targetEncounterId && patientList.value.length > 0) {
+ const targetIndex = patientList.value.findIndex(
+ (item) => String(item.encounterId) === String(targetEncounterId)
+ );
+ if (targetIndex !== -1) {
+ handleCardClick(patientList.value[targetIndex], targetIndex);
+ }
+ // 清除URL参数,避免刷新时重复选中
+ if (route.query.encounterId) {
+ router.replace({ query: {} });
+ }
+ }
});
}
function setVisitType(type) {
diff --git a/openhis-ui-vue3/src/views/doctorstation/pendingEmr.vue b/openhis-ui-vue3/src/views/doctorstation/pendingEmr.vue
index 1ebe07e7d..b10a48e2b 100755
--- a/openhis-ui-vue3/src/views/doctorstation/pendingEmr.vue
+++ b/openhis-ui-vue3/src/views/doctorstation/pendingEmr.vue
@@ -129,23 +129,79 @@
:total="total"
@pagination="getList"
/>
+
+
+
+
+
+ {{ patientDetailData.patientName || '-' }}
+
+
+ {{ getGenderText(patientDetailData.gender) }}
+
+
+ {{ patientDetailData.age || '-' }}
+
+
+ {{ patientDetailData.busNo || '-' }}
+
+
+ {{ patientDetailData.idCard || '-' }}
+
+
+ {{ patientDetailData.phone || '-' }}
+
+
+ {{ patientDetailData.address || '-' }}
+
+
+ {{ parseTime(patientDetailData.registerTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+ {{ patientDetailData.organizationName || '-' }}
+
+
+
+
+ 关闭
+
+
+