dy-dashboard/vault/知识库/工作指南/训练记录/2026-08-12-计划预测新增导出功能.md
2026-10-28 11:14:17 +08:00

16 lines
782 B
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-12 计划预测新增导出功能
## 旭东 → OpenClaw
> 现在给计划预测菜单新增一个导出功能,可以导出计划预测里面的所有数据
## OpenClaw 响应
- 后端新增 `POST /api/planning/export` 接口(routes/planning.py):
- 复用列表页全部计算逻辑(销售/库存/在途/预测/支撑天数等所有字段)
- 按当前视图(计划预测/国内品/海外品)导出全部数据,不分页
- 生成 Excel(openpyxl),表头加粗蓝色样式、列宽自适应
- 前端计划预测筛选栏新增「📥 导出」按钮,导出全部 PLAN_COLUMNS 列(除下单清单操作列)
- 验证:登录态测试导出 HTTP 200,Excel 合法,**2451 行全部数据**;服务重启 HTTP 200
- Git 提交 b26968d