From 2a9f3a730b25a50f63deb5d07d6f4b188e332c90 Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Fri, 20 Mar 2026 19:31:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=85=E5=8A=9E=E4=BA=8B=E9=A1=B9?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BA=94=E4=BD=BF=E7=94=A8=20todoLabel?= =?UTF-8?q?=EF=BC=88=E4=B8=AD=E6=96=87=EF=BC=89=E8=80=8C=E9=9D=9E=20todoTy?= =?UTF-8?q?pe=EF=BC=88=E8=8B=B1=E6=96=87=E7=BC=96=E7=A0=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .../2026-03/2026-03-20_todo_display_fix.md | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 changelogs/2026-03/2026-03-20_todo_display_fix.md diff --git a/changelogs/2026-03/2026-03-20_todo_display_fix.md b/changelogs/2026-03/2026-03-20_todo_display_fix.md new file mode 100644 index 0000000..8819820 --- /dev/null +++ b/changelogs/2026-03/2026-03-20_todo_display_fix.md @@ -0,0 +1,46 @@ +# 待办事项显示修正:使用 todoLabel 而非 todoType + +> **类型**: fix +> **日期**: 2026-03-20 +> **涉及页面**: 管理端 - 订单详情页 - 待办事项区域 + +--- + +## 问题 + +待办事项区域显示了英文编码(如 `INSURANCE`、`CONTRACT`、`ARRANGE_ROOM`),应该显示中文标签。 + +## 原因 + +前端使用了 `todoType` 字段(英文编码)来展示,应该使用 `todoLabel` 字段(中文标签)。 + +## 修正方式 + +订单详情接口 `todos` 数组中每个待办对象包含以下字段: + +| 字段 | 类型 | 用途 | 示例 | +|------|------|------|------| +| todoType | String | 编码(用于逻辑判断,**不要用于显示**) | `INSURANCE` | +| todoLabel | String | 中文标签(**用于页面展示**) | `待配置保险` | +| status | String | 状态编码 | `PENDING` / `COMPLETED` | +| sequence | Integer | 排序序号 | 1, 2, 3, 4, 5 | + +### todoType → todoLabel 对照表 + +| todoType | todoLabel | +|----------|-----------| +| INSURANCE | 待配置保险 | +| CONTRACT | 待签订合同 | +| ARRANGE_ROOM | 待安排住宿 | +| ARRANGE_VEHICLE | 待安排车辆 | +| CONFIRM_CHECKLIST | 待确认清单 | +| PROCESS_REFUND | 紧急:需退款处理 | + +### 前端改动 + +将待办事项显示的字段从 `todo.todoType` 改为 `todo.todoLabel`: + +```diff +- {{ todo.todoType }} ++ {{ todo.todoLabel }} +```