修改完诊后再接诊初复诊标识不对问题
This commit is contained in:
@@ -325,7 +325,7 @@ function checkPatientHistory(patient) {
|
|||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
const records = res.data?.records || [];
|
const records = res.data?.records || [];
|
||||||
// 如果有历史记录,则为复诊
|
// 如果有历史记录,则为复诊
|
||||||
if (res.data && res.data.total > 0) {
|
if (res.data && res.data.total > 1) {
|
||||||
visitType.value = 'FOLLOW_UP';
|
visitType.value = 'FOLLOW_UP';
|
||||||
// 计算最早一次病历创建时间作为初诊日期
|
// 计算最早一次病历创建时间作为初诊日期
|
||||||
const earliest = records.reduce((min, cur) => {
|
const earliest = records.reduce((min, cur) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user