feat: 拣选库位动销分析默认按近 30 天销量划分等级 #58

Merged
youruo merged 1 commits from codex/picking-bin-window-30d-1007 into main 2026-10-07 17:42:07 +08:00
Collaborator

内容

  • 默认统计窗口由近 15 天改为近 30 天(后端 PICKING_BIN_DEFAULT_DAYS + 前端常量同步)
  • 可切换窗口补充「近 60 天」:7 / 15 / 30 / 60
  • 动销等级阈值不变:爆款≥20 / 热卖款 10-20 / 平销款 3-10 / 滞销款-1 1-3 / 滞销款-2 (0,1) / 销售=0

验证

  • 本地接口实测(不带 days 参数):窗口 2026-09-08 ~ 2026-10-08,days=30,7091 个拣选库位,日销=销量÷30
  • 30 天分布:爆款 6 / 热卖 23 / 平销 181 / 滞销-1 625 / 滞销-2 3692 / 销售=0 2564
  • 后端单测 8/8 通过;前端 lint(0 错)/ test(21 通过)/ build 通过

授权

用户 2026-10-07 明确要求日销按近 30 天销售数据做动销等级划分。

## 内容 - 默认统计窗口由近 15 天改为近 30 天(后端 PICKING_BIN_DEFAULT_DAYS + 前端常量同步) - 可切换窗口补充「近 60 天」:7 / 15 / 30 / 60 - 动销等级阈值不变:爆款≥20 / 热卖款 10-20 / 平销款 3-10 / 滞销款-1 1-3 / 滞销款-2 (0,1) / 销售=0 ## 验证 - 本地接口实测(不带 days 参数):窗口 2026-09-08 ~ 2026-10-08,days=30,7091 个拣选库位,日销=销量÷30 - 30 天分布:爆款 6 / 热卖 23 / 平销 181 / 滞销-1 625 / 滞销-2 3692 / 销售=0 2564 - 后端单测 8/8 通过;前端 lint(0 错)/ test(21 通过)/ build 通过 ## 授权 用户 2026-10-07 明确要求日销按近 30 天销售数据做动销等级划分。
youruo added 1 commit 2026-10-07 17:41:54 +08:00
- 默认统计窗口 15 天 -> 30 天(后端 PICKING_BIN_DEFAULT_DAYS 与前端常量同步)
- 可切换窗口补充近 60 天(7 / 15 / 30 / 60)
- 等级阈值不变:爆款≥20 / 热卖 10-20 / 平销 3-10 / 滞销-1 1-3 / 滞销-2 (0,1) / 销售=0
- 单测断言同步更新;实测 30 天窗口:7091 个拣选库位,日销=销量÷30
youruo merged commit ea2942f118 into main 2026-10-07 17:42:07 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunanting/cangku#58
No description provided.