fix: 修复 Bug #388 #409 #410

会诊意见格式化存储,确保参加医师和意见完整回显
预约签到挂号时修正 serviceTypeId 为预约类型而非挂号类型
分诊队列显示诊室而非科室,区分预约/挂号类型
This commit is contained in:
wangjian963
2026-04-24 16:52:33 +08:00
parent 22b47fcc95
commit 76094d6eff
6 changed files with 103 additions and 12 deletions

View File

@@ -177,7 +177,7 @@
<el-tag v-else type="warning" size="small">已确认</el-tag>
</div>
<div class="opinion-content">
{{ opinion.opinion }}
{{ formatOpinionContent(opinion.opinion) }}
</div>
<div v-if="opinion.signatureTime" class="opinion-footer">
签名时间:{{ formatDateTime(opinion.signatureTime) }}
@@ -301,6 +301,16 @@ const formatDateTime = (date) => {
return `${yyyy}-${mm}-${dd} ${hh}:${mi}:${ss}`
}
// Bug #388去掉"科室-参加医师"前缀,只显示意见内容
const formatOpinionContent = (opinion) => {
if (!opinion) return ''
const colonIndex = opinion.indexOf('')
if (colonIndex > 0) {
return opinion.substring(colonIndex + 1)
}
return opinion // 向后兼容旧数据
}
const getDoctorName = () => userStore.nickName || userStore.name || '当前医生'
const getDoctorDept = () => userStore.orgName || '当前科室'