From e5e1f33efbe9c5bea0f10a0008f870f69eab513a Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Fri, 24 Apr 2026 19:25:10 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20team-report=20=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=BB=84=E6=8E=A5=E5=85=A5=20agencyOptions=20=E6=89=8B?= =?UTF-8?q?=E6=8A=8A=E6=89=8B=E7=A4=BA=E4=BE=8B=20(=E7=94=A8=E6=88=B7=2020?= =?UTF-8?q?26-04-24=20=E5=8F=8D=E9=A6=88=E4=BB=8D=E6=98=BE=E8=8B=B1?= =?UTF-8?q?=E6=96=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...fix_order-v2_team-report-prefill-fields.md | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/changelogs/2026-04/24_fix_order-v2_team-report-prefill-fields.md b/changelogs/2026-04/24_fix_order-v2_team-report-prefill-fields.md index eb2a791..3457440 100644 --- a/changelogs/2026-04/24_fix_order-v2_team-report-prefill-fields.md +++ b/changelogs/2026-04/24_fix_order-v2_team-report-prefill-fields.md @@ -56,3 +56,51 @@ - `agencyCode` / `businessType` 字段类型与原先一致 (前者 String code, 后者 Integer) - 保存/提交接口 (`/save`、`/submit`、`/cancel`、`/status`) 无改动 + +## 🚨 紧急:用户 2026-04-24 截图反馈「旅行社编码按钮组仍显英文 code」,必须接 options + +后端已返 (curl `https://api.test.1814.love:9443/admin/team-report/prefill/2047252402389598209` 实测): +```json +"agencyOptions": [ + {"code": "bohua-test", "name": "内蒙古博华牛牛测试旅行社有限公司123"}, + {"code": "hulai", "name": "内蒙古呼籁国际旅行社有限公司"}, + {"code": "qianshou", "name": "内蒙古呼籁山河国际旅行社有限公司"}, + {"code": "hulai-wenlu", "name": "内蒙古呼籁文旅投资开发集团有限公司"} +] +``` + +前端同步 tab「基础信息」→「旅行社编码」按钮组**当前大概率硬编码了** +```js +const AGENCY_CODES = ['hulai', 'qianshou', 'hulai-wenlu'] +// 或 {{ c }} +``` + +请改为 (Vue3 + naive-ui 示例): + +```vue + + + {{ opt.name }} + + +``` + +「业务类型」按钮组同样改走 `form.businessTypeOptions`: + +```vue + + + {{ opt.name }} + + +``` + +**注意**: `value` 绑 `code` (提交给后端还是 `qianshou` / `2`), `label` 文本用 `name` 显示中文。这样既保持 12301 上报 contract, 又解决用户反馈的「英文 code 不好看」问题。