fix(health): 统一随访类型为 5 种 — phone/outpatient/home_visit/online/wechat

- validation.rs: face_to_face 替换为 outpatient,新增 home_visit/wechat
- FollowUpTaskList.tsx: 新增 online 选项,与后端对齐
- 迁移 078: follow_up_task + follow_up_record face_to_face → outpatient
This commit is contained in:
iven
2026-04-27 11:20:57 +08:00
parent 6a7d83ec4d
commit 7e66561a5f
4 changed files with 51 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ const FOLLOW_UP_TYPE_OPTIONS = [
{ value: 'phone', label: '电话' },
{ value: 'outpatient', label: '门诊' },
{ value: 'home_visit', label: '家访' },
{ value: 'online', label: '线上' },
{ value: 'wechat', label: '微信' },
];
@@ -41,6 +42,7 @@ const FOLLOW_UP_TYPE_MAP: Record<string, string> = {
phone: '电话',
outpatient: '门诊',
home_visit: '家访',
online: '线上',
wechat: '微信',
};