Files
shanxia2.0/docs/db-migration/module-status.md
T
2026-06-10 22:59:34 +08:00

45 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.
# 地磅(db)模块移植状态跟踪表
> 策略:**原样搬运 + 门户适配**(见 [00-migration-plan.md](./00-migration-plan.md))
> **2026-06-07**:已删除旧「CRM 式重写」代码(`/api/web/admin/db/*` 及对应 web-admin 页面),从零按新方案实施。
---
## 阶段总览
| 阶段 | 内容 | 状态 | 日期 |
|------|------|------|------|
| DDL | 4 张 `db_*` 表 | ✅ 已完成 | 2026-06-07 |
| 旧重写代码 | admin CRUD 路线 | 🗑️ 已删除 | 2026-06-07 |
| 方案文档 | `docs/db-migration/*` | ✅ 已完成 | 2026-06-07 |
| P0 | ORM + db_router + db_auth | ✅ 已完成 | 2026-06-07 |
| P1 | vehicles + plans | ✅ 已完成 | 2026-06-07 |
| P2 | inventory + weighing(联动) | ✅ 已完成 | 2026-06-07 |
| P3 | dashboard | ✅ 已完成 | 2026-06-07 |
| P4 | 计划自动生成定时任务 | ✅ 已完成 | 2026-06-07 |
| P5 | sys_menu 菜单 SQL | ✅ 已完成 | 2026-06-07 |
| P6 | 前端拷贝 + 适配 | ✅ 已完成 | 2026-06-07 |
| P6-FM | Fresh Mint UI 换皮 | ✅ 已完成 | 2026-06-07 |
| P7 | 历史数据迁移脚本 | ✅ 已完成 | 2026-06-07 |
---
## 后端模块明细
| 模块 | 表 | 后端 | 前端 | 验证 | 备注 |
|------|-----|------|------|------|------|
| 车牌 | `db_vehicle` | ✅ | ✅ | — | prefix `/master-data/vehicles`;P6-5 已完成 |
| 计划 | `db_purchase_plan` | ✅ | ✅ | — | 含 fill-link、third-party、related;P6-2 已完成 |
| 出入库 | `db_inbound_outbound` | ✅ | ✅ | — | 含 create-link-for-plan;P6-3 已完成 |
| 地磅单 | `db_weighing_slip` | ✅ | ✅ | — | 含联动 + void;P6-4 已完成 |
| 仪表盘 | — | ✅ | ✅ | — | 5 个统计端点;P6-1 已完成 |
---
## 不移植项
| 项 | 替代 |
|----|------|
| 原地磅 auth/users | 门户登录 + `sys_user` |
| cargos / companies | CRM 产品/客户 API(方案 A:存名称文本) |