fix(health): 全链路流通性验证修复
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- 创建 stub migration 解决缺失文件报错
- PatientList/PatientDetail: DatePicker dayjs 对象序列化为 YYYY-MM-DD
- AppointmentList: 预约类型与后端验证对齐(outpatient/recheck/health_checkup/consultation/dialysis)
- AppointmentList: 医生字段改为必填(后端 CAS 排班要求), destroyOnClose→destroyOnHidden
- Home.tsx: 补充审计日志 action 翻译(created/login_failed 等)

全链路验证通过: 医生CRUD→排班→预约创建+状态流转→随访生命周期→咨询会话+消息→患者详情+健康数据
This commit is contained in:
iven
2026-04-25 11:31:54 +08:00
parent 7a2d8e4664
commit 355e8da272
6 changed files with 50 additions and 14 deletions

View File

@@ -72,8 +72,8 @@ function StatValue({ value, loading }: { value: number; loading: boolean }) {
}
const ACTION_LABELS: Record<string, string> = {
create: '创建', update: '更新', delete: '删除',
login: '登录', user_login: '登录', 'user.login': '登录',
create: '创建', created: '创建', update: '更新', updated: '更新', delete: '删除', deleted: '删除',
login: '登录', login_failed: '登录失败', user_login: '登录', 'user.login': '登录',
'user.create': '创建', 'user.update': '更新', 'user.delete': '删除',
'role.create': '创建', 'role.update': '更新', 'role.delete': '删除',
'patient.create': '创建', 'patient.update': '更新',