Files
shanxia2.0/docs/superpowers/plans/2026-07-19-pl-inbound-outbound-order.md
T
2026-07-20 10:50:26 +08:00

40 lines
1.9 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.
# PL 入库单 / 出库单 Implementation Plan
> **For agentic workers:** Execute task-by-task. Spec: `docs/superpowers/specs/2026-07-19-pl-inbound-outbound-order-design.md`
**Goal:** 安排运输后落 PL 入库/出库主从表;一单一链免登录填实际数量;管理端库存管理菜单列表编辑;作废计划作废单据;已安排计划冻结(无调整运输)。
**Architecture:** `pl_inbound_order`/`pl_outbound_order` + item;安排运输时创建(替代新 `pl_transport_site_link`);地磅数量仅预填;公共页 `/public/pl/inbound|outbound/{token}`。
**Tech Stack:** FastAPI + SQLAlchemy + Vue3/Element Plus;菜单 `sys_menu`;Fresh Mint UI。
---
## File map
| 职责 | 路径 |
|------|------|
| DDL 迁移 | `backend/scripts/migration_20260719_pl_inbound_outbound_order.sql` |
| 模型 | `backend/app/models/pl_models.py` |
| 服务 | `backend/app/services/pl_io_order_service.py` |
| Schema | `backend/app/schemas/pl/io_order.py` |
| 管理 API | `backend/app/api/pl/io_order.py` |
| 公共 API | `backend/app/api/pl/public_io_order.py` |
| 安排/作废接入 | `backend/app/api/pl/transport.py`, `plan.py` |
| 路由注册 | `backend/app/api/pl/__init__.py`, `main.py` |
| 菜单 | 同上 migration SQL;`web-admin/src/router/modules/pl.ts` |
| 前端 API | `web-admin/src/api/pl/index.ts` |
| 列表/弹窗 | `web-admin/src/views/pl/inbound/index.vue`, `outbound/index.vue` |
| 公共页 | `web-admin/src/views/public/pl/inbound/index.vue`, `outbound/...` |
| 计划冻结 UX | `web-admin/src/views/pl/plan/index.vue`, arrange dialog |
### Task 1: DDL + Models + Menu SQL
### Task 2: pl_io_order_service + arrange/cancel wire + block rearrange
### Task 3: Admin + Public APIs
### Task 4: Frontend lists/dialogs/public/freeze/archive
### Task 5: graphify update + smoke check
---
**执行方式:** 本会话 Inline 连续实现(用户已确认「继续」)。