Enhance recurring investment features and UI components:

- Implement restrictions on the start date selection in the creation form to prevent past dates.
- Add order status display in the recent execution records for better visibility.
- Introduce system code mapping for order statuses, frequency types, and end types, ensuring multi-language support.
- Implement pagination for the investment plans list to improve performance and user experience.
- Update internationalization files to include new labels for order status and other UI elements.
- Document changes in `IMPACT_ANALYSIS.md` and `TASK_SUMMARY.md` for clarity on the updates.
This commit is contained in:
justin
2026-10-14 14:19:14 +08:00
parent dcb008d381
commit a374bf0178
13 changed files with 639 additions and 28 deletions
+40
View File
@@ -307,3 +307,43 @@
- 创建计划与 `plan/next-execution` 请求体 `ctOffsetMinutes` 传 `null`;预览校验文案改为「请先选择交易所与定投周期」。
- 确认弹窗去掉 CT 偏移行;计划详情仍展示后端返回的偏移。
- 详见 `IMPACT_ANALYSIS.md` 本节补充。
---
## 补充:开始日期禁选过去日 + 详情执行订单状态列(2026-10-14)
- 创建表单「开始日期」日期选择器禁用今天之前的日期;提交校验同步拦截。
- 计划详情「最近执行」表格与移动端卡片末列展示 `orderStatus`(订单状态)。
- 参见 `IMPACT_ANALYSIS.md` 对应补充。
---
## 补充:订单状态系统码映射(2026-10-14)
- 调用 `POST /admin/systemCode/getByCodeTypeBatch` 预加载 `OrderStatus`;`orderStatus` 按 `codeValue` 匹配 `descriptionI18nId`,经 `useServiceI18n` 展示多语言订单状态文案。
- 涉及 `api/systemCode.ts`、`stores/systemCode.ts`、`composables/useSystemCode.ts`、`RecurringInvestmentView.vue`。
- 验证:`npm run build`;详情「訂單狀態」列显示文案而非裸码值。
---
## 补充:定投周期系统码下拉(2026-10-14)
- `ScheduleInvestmentFrequencyType` 批量加载后驱动创建表单「定投周期」下拉(按 `sort` 排序);列表/详情/确认预览统一 `frequencyTypeLabel`。
- 接口不可用时回退本地 `recurring.frequency.*` 文案。
- 详见 `IMPACT_ANALYSIS.md` 本节补充。
---
## 补充:结束类型系统码下拉(2026-10-14)
- `ScheduleInvestmentEndType` 驱动创建表单结束类型下拉;`NO_END`→`none`、`END_DATE`→`date`、`COUNT`→`count`。
- 列表/详情/确认预览的 GTC 等文案经 `endTypeLabel` 与系统码一致。
- 详见 `IMPACT_ANALYSIS.md` 本节补充。
---
## 补充:我的计划列表分页(2026-10-14)
- `getScheduleInvestmentPlanPage` 分页参数驱动列表;表格与移动端卡片共用 `el-pagination`(默认 10 条/页)。
- 新建计划成功后刷新并回到第 1 页。
- 详见 `IMPACT_ANALYSIS.md` 本节补充。