修改完诊后再接诊初复诊标识不对问题

This commit is contained in:
qk123
2025-11-06 14:00:45 +08:00
parent 88a516d1be
commit 4a5572de26

View File

@@ -325,7 +325,7 @@ function checkPatientHistory(patient) {
if (res.code === 200) {
const records = res.data?.records || [];
// 如果有历史记录,则为复诊
if (res.data && res.data.total > 0) {
if (res.data && res.data.total > 1) {
visitType.value = 'FOLLOW_UP';
// 计算最早一次病历创建时间作为初诊日期
const earliest = records.reduce((min, cur) => {