Files
platforms/docs/操作日志_气站订单创建方类型中文化_20260819.md

37 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 气站订单创建方类型中文化操作日志
操作时间2026-08-19 20:03:00
操作类型:修改
影响模块:气站管理系统 / 配送订单详情
## 操作前状态
- 配送订单详情中的创建方类型直接展示接口枚举编码,例如 `user`
## 具体操作
- 在气站端通用详情值格式化逻辑中增加创建方类型中文映射。
- 映射范围:`user=用户``staff=工作人员``delivery=配送点``gas=气站`
- 未知编码保留原值并显示为“未知创建方类型(原值)”,便于排查历史数据。
## 操作后状态
- 创建方类型 `user` 展示为“用户”。
- 订单数据、提交参数及后端业务逻辑保持不变。
## 代码变更
- `frontend/gas_admin/src/api/resource-display.ts``displayRawValue` 增加创建方类型中文映射。
## 验证结果
- `pnpm run type:check`:通过。
- `pnpm run contract:check`通过20 个资源。
- `pnpm run resource-pages:check`:通过,详情 20 类、新建 11 类、编辑 8 类。
- `pnpm run build`:通过。
## 风险评估
- 改动仅影响详情文案格式化,不修改接口值。
- 对现有四类创建方编码兼容,未知值有明确兜底提示。