From ff165ca9ba3bb20836252e7f681d73eab75ed6ab Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Mon, 23 Mar 2026 15:41:42 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E6=9E=9A=E4=B8=BE=E5=80=BC=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E4=B8=AD=E6=96=87label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .../2026-03/2026-03-23_chinese_labels.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 changelogs/2026-03/2026-03-23_chinese_labels.md diff --git a/changelogs/2026-03/2026-03-23_chinese_labels.md b/changelogs/2026-03/2026-03-23_chinese_labels.md new file mode 100644 index 0000000..f359c6a --- /dev/null +++ b/changelogs/2026-03/2026-03-23_chinese_labels.md @@ -0,0 +1,32 @@ +# 【BUG】订单详情页英文枚举值需要中文显示 + +## 问题 +订单详情 API 返回了大量英文枚举值,页面直接显示英文。以下是需要处理的字段: + +## 后端会修复(补充 xxxLabel 字段) + +### 已有 Label 但值是英文的(后端 bug) +| 字段 | 当前值 | 应该显示 | +|------|--------|---------| +| timeline[].actionLabel | `CHECKLIST_CONFIRMED` | 确认清单 | +| timeline[].actionLabel | `EDIT_CONFIRMED` | 确认修改 | +| timeline[].actionLabel | `TODO_COMPLETED` | 待办完成 | +| timeline[].actionLabel | `PAYMENT_SUCCESS` | 支付成功 | +| timeline[].actionLabel | `ROOM_UPGRADE` | 房型升级 | + +### 缺少 Label 字段(后端会补充) +| 字段 | 示例值 | 中文 | 新增Label字段 | +|------|--------|------|-------------| +| productType | CORE | 核心产品 | productTypeLabel | +| paymentMode | DEPOSIT | 定金+尾款 | paymentModeLabel | +| todos[].todoType | INSURANCE | 投保 | todoTypeLabel | +| todos[].status | PENDING | 待处理 | - (前端已有) | +| todos[].assigneeRoleKey | CUSTOMIZER | 定制师 | assigneeRoleLabel | +| travelers[].idCardType | ID_CARD | 身份证 | idCardTypeLabel | +| travelers[].travelerType | ADULT | 成人 | travelerTypeLabel | +| timeline[].operatorType | ADMIN/USER/SYSTEM | 管理员/用户/系统 | operatorTypeLabel | +| contracts[].contractType | TOUR | 旅游合同 | contractTypeLabel | +| contracts[].mode | STANDARD | 电子签约 | modeLabel | + +## 前端处理建议 +优先使用 `xxxLabel` 字段显示,如果没有 label 字段,前端做本地映射。后端会尽快补充所有缺失的 label。