Refactor recurring investment form and API payloads:
- Simplify the creation form by removing price type and CT offset fields, defaulting to market orders. - Update `buildScheduleInvestmentCreateBody` and related functions to handle new payload structure with `ctOffsetMinutes` set to null. - Consolidate end type options into a dropdown, integrating 'GTC' as a selection. - Adjust internationalization files to reflect new labels and hints for the updated form. - Document changes in `IMPACT_ANALYSIS.md` and `TASK_SUMMARY.md` for clarity on the updates.
This commit is contained in:
+10
-1
@@ -151,7 +151,7 @@
|
||||
|
||||
## 补充:结束类型合一控件
|
||||
|
||||
- 「特定日期 / 期數」与结束日期或期数输入合并为 `field-combo`;日期模式下保留「无结束日期」勾选。
|
||||
- 「特定日期 / GTC / 期数」与结束日期或期数输入合并为 `field-combo`;无结束日期改为下拉项 `endByGtc`(`endMode: none`),不再使用独立勾选框;表单标签为「结束类型」;接口 `endType` 为 `NO_END` / `END_DATE` / `COUNT`。
|
||||
|
||||
---
|
||||
|
||||
@@ -298,3 +298,12 @@
|
||||
|
||||
- 详情弹窗按断点加宽;移动端执行记录卡片列表,平板/桌面表格横滑 + 首列 sticky + 滑动提示。
|
||||
- 参见 `IMPACT_ANALYSIS.md` 对应补充。
|
||||
|
||||
---
|
||||
|
||||
## 补充:创建表单隐藏价格类型与 CT 偏移(2026-10-13)
|
||||
|
||||
- 创建表单不展示「订单价格类型」「交易时间偏移」,固定市价;在投资金额/数量 hint 下增加市价说明 `orderPriceTypeMarketHint`。
|
||||
- 创建计划与 `plan/next-execution` 请求体 `ctOffsetMinutes` 传 `null`;预览校验文案改为「请先选择交易所与定投周期」。
|
||||
- 确认弹窗去掉 CT 偏移行;计划详情仍展示后端返回的偏移。
|
||||
- 详见 `IMPACT_ANALYSIS.md` 本节补充。
|
||||
|
||||
Reference in New Issue
Block a user