Files
shanxia2.0/openspec/changes/pl-plan-archive-draft/tasks.md
T
2026-08-30 09:30:02 +08:00

24 lines
1.1 KiB
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.
## 1. Backend draft archive
- [x] 1.1 在 `pl_plan_archive_stop_service` 增加允许空数量的草稿写入(或 `strict=False` 参数)
- [x] 1.2 运费/品牌/回传附件支持草稿保存(放宽运输量必填)
- [x] 1.3 新增 `POST /{id}/archive-draft`:校验未作废且未 archived,写字段并设 `archive_status=draft`,不调库存
- [x] 1.4 更新模型注释与展示相关文案(archive_status 含 draft)
## 2. Frontend API 与展示
- [x] 2.1 `planApi` 增加 `archiveDraft`
- [x] 2.2 `pl-display` 增加「已暂存」标签与 Tag 类型
- [x] 2.3 归档列表筛选增加「已暂存」选项
## 3. 归档弹窗
- [x] 3.1 未归档/已暂存时底栏增加「暂存」按钮(中性描边 + Document 图标)
- [x] 3.2 实现暂存提交:弱校验、调草稿接口、成功提示、刷新列表并关闭弹窗
- [x] 3.3 确认归档逻辑不变;`draft` 与 `unarchived` 均可正式归档
## 4. 验证
- [x] 4.1 手动或脚本确认草稿不改库存、正式归档仍生效(py_compile + 代码路径复核:draft 接口无 inventory 调用)
- [x] 4.2 更新 graphify(若改了代码)