fix(#574): 签到状态 BOOKED(1)→CHECKED_IN(3) + 全链路映射修复

根因:checkInTicket() 将签到后状态设为 BOOKED(1) 而非 CHECKED_IN(3)
导致:前端无法识别已签到状态,池统计漏计已签到人数

修复:
- TicketServiceImpl: 签到状态改为 SlotStatus.CHECKED_IN(3)
- TicketAppServiceImpl: 新增 CHECKED_IN→已签到 映射分支
- SchedulePoolMapper: 池统计兼容 BOOKED 和 CHECKED_IN
- outpatientAppointment/index.vue: STATUS_CLASS_MAP + 患者信息条件加上已签到
- AGENTS.md: 写入状态值一致性/禁止删文件/全链路验证铁律
This commit is contained in:
2026-06-02 09:48:51 +08:00
parent 710a215597
commit b8463f4659
5 changed files with 72 additions and 8 deletions

View File

@@ -279,7 +279,7 @@
</div>
<!-- 7. 已预约患者信息 -->
<div
v-if="(item.status === '已预约' || item.status === '已取号') && item.patientName"
v-if="(item.status === '已预约' || item.status === '已取号' || item.status === '已签到') && item.patientName"
class="ticket-patient"
>
{{ item.patientName }}({{ item.patientId }},{{ getGenderText(item.gender || item.patientGender) }})
@@ -472,6 +472,7 @@ const STATUS_CLASS_MAP = {
'未预约': 'status-unbooked',
'已预约': 'status-booked',
'已取号': 'status-checked',
'已签到': 'status-checked',
'已退号': 'status-returned',
'已停诊': 'status-cancelled',
'已取消': 'status-cancelled'