From 19601ea0df627ef882fffa757dec9e00d9eeb7cd Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Mon, 23 Mar 2026 16:04:32 +0800 Subject: [PATCH] =?UTF-8?q?changelog:=20=E4=B8=89=E4=B8=AA=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E9=97=AE=E9=A2=98=EF=BC=88=E6=93=8D=E4=BD=9C=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E9=97=B4+=E4=BA=A4=E9=80=9A=E4=BF=9D?= =?UTF-8?q?=E5=AD=98+=E4=BF=9D=E9=99=A9=E7=8A=B6=E6=80=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 操作记录需显示createTime 2. 交通信息接口已就绪,含请求格式 3. 保险状态应用statusLabel显示 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../2026-03-23_three_frontend_issues.md | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 changelogs/2026-03/2026-03-23_three_frontend_issues.md diff --git a/changelogs/2026-03/2026-03-23_three_frontend_issues.md b/changelogs/2026-03/2026-03-23_three_frontend_issues.md new file mode 100644 index 0000000..b94aed2 --- /dev/null +++ b/changelogs/2026-03/2026-03-23_three_frontend_issues.md @@ -0,0 +1,69 @@ +# 三个前端展示问题 + +**日期**: 2026-03-23 + +--- + +## 1. 操作记录需要显示时间 + +**页面**: 订单详情 → 操作记录 +**问题**: 操作记录列表没有显示时间 + +后端每条 timeline 记录都有 `createTime` 字段(格式:`2026-03-23 10:33:20`),前端需要展示出来。 + +建议格式: +``` +系统自动投保成功 +system · 系统 · 2026-03-23 10:33 +``` + +## 2. 交通信息保存接口 + +**页面**: 订单详情 → 交通信息 +**接口已就绪**,无需后端改动。 + +### 保存交通信息 +``` +PUT /admin/order/{orderId}/transport +{ + "segments": [ + { + "transportType": "FLIGHT", // 必填:FLIGHT=航班, TRAIN=火车 + "transportNo": "CA1234", // 航班号/车次号 + "departStation": "北京首都T3", // 出发站 + "arriveStation": "海拉尔东山", // 到达站 + "departTime": "2026-03-24T08:00:00", // 出发时间 + "arriveTime": "2026-03-24T11:30:00", // 到达时间 + "remark": "去程", // 备注 + "sortOrder": 1 // 排序 + } + ] +} +``` + +### 查询交通信息 +``` +GET /admin/order/{orderId}/transport +``` + +### 关联字典 +`transport_type`:FLIGHT=航班, TRAIN=火车 + +### 注意 +- 每次保存是**全量替换**(先删后增),前端需要把所有交通段都传回去 +- 时间字段用 ISO 8601 格式(`yyyy-MM-ddTHH:mm:ss`) + +## 3. 保险状态显示错误 + +**页面**: 订单详情 → 保险保障 +**问题**: 保险实际状态是"已承保"(INSURED),前端显示"已退保" + +请检查前端是否正确读取了 `insurances[].status` 字段并用 `statusLabel` 显示。后端返回的数据: +```json +{ + "status": "INSURED", + "statusLabel": "已承保" +} +``` + +直接用 `statusLabel` 字段显示即可。