27/27业务模块就绪
26覆盖 DuckDB 表
55当前业务数据行
0缺失模块数
模块覆盖
每个模块必须具备 DuckDB 表、页面入口和 POST API。
架构约束
| 检查项 | 状态 | 证据 |
|---|---|---|
| DuckDB 数据中心 | ready | public/utils/db.py / DuckDBCenter |
| DB 中心唯一入口 | ready | 页面/API 只允许通过 public.utils.db.DB 访问数据库 |
| DRF class-based API | ready | seller/api/<module>/view.py |
| POST action 写入 API | ready | 28 个业务 API 支持 action=create/status/update 等 POST 动作 |
| API 参数错误处理 | ready | SellerActionApi 将缺字段、类型错误和数据库拒绝转换为 400 JSON |
| 操作日志覆盖 | ready | 关键业务写入和状态变更会写入 operation_logs |
| CSV 导入覆盖 | ready | 商品、供应商、采购、库存、订单、广告、财务、预警、报表和 SOP 支持 CSV 导入 |
| 页面文件夹模式 | ready | seller/pages/<page>/view.py |
| 后端页面文件夹模式 | ready | API 按业务模块独立目录拆分 |
| POST 优先 | ready | API 和写入动作使用 POST |
| 局部刷新 | ready | base.html 拦截 POST,支持 partial/full redirect,并重跑页面脚本 |
| ECharts 图表 | ready | 业务看板页面使用前端 ECharts |
| 通用工具目录 | ready | public/utils |
模块清单
| 模块 | DuckDB 表 | 数据行 | 页面 | API | 状态 |
|---|---|---|---|---|---|
| 数据采集 | data_collection_jobs | 2 | /seller/data-collection/ | /api/data-collection/ | ready |
| 选品管理 | product_research | 3 | /seller/research/ | /api/research/ | ready |
| 竞品监控 | competitor_watches | 2 | /seller/competitors/ | /api/competitors/ | ready |
| 关键词排名 | keyword_ranks | 3 | /seller/keyword-ranks/ | /api/keyword-ranks/ | ready |
| 合规认证 | compliance_certs | 2 | /seller/compliance/ | /api/compliance/ | ready |
| 商品管理 | skus | 2 | /seller/products/ | /api/products/ | ready |
| 上架管理 | listing_tasks | 3 | /seller/listing/ | /api/listing/ | ready |
| 供应商管理 | suppliers | 2 | /seller/suppliers/ | /api/suppliers/ | ready |
| 采购管理 | purchase_orders | 2 | /seller/purchase-orders/ | /api/purchase-orders/ | ready |
| 库存管理 | inventory_snapshots | 2 | /seller/inventory/ | /api/inventory/ | ready |
| 补货建议 | inventory_snapshots | 2 | /seller/replenishment/ | /api/replenishment/ | ready |
| FBA 发货 | fba_shipments | 2 | /seller/fba-shipments/ | /api/fba-shipments/ | ready |
| 订单管理 | sales_orders | 2 | /seller/orders/ | /api/orders/ | ready |
| 售后退货 | return_cases | 2 | /seller/return-cases/ | /api/return-cases/ | ready |
| 平台索赔 | claim_cases | 2 | /seller/claim-cases/ | /api/claim-cases/ | ready |
| 评价口碑 | product_reviews | 2 | /seller/product-reviews/ | /api/product-reviews/ | ready |
| 广告日报 | ad_daily_reports | 2 | /seller/advertising/ | /api/advertising/ | ready |
| 广告关键词 | ad_keywords | 3 | /seller/advertising/keywords/ | /api/advertising/keywords/ | ready |
| 促销活动 | promotion_campaigns | 2 | /seller/promotions/ | /api/promotions/ | ready |
| 财务日报 | finance_daily_reports | 2 | /seller/finance/ | /api/finance/ | ready |
| 财务结算 | finance_settlements | 2 | /seller/finance/settlements/ | /api/finance/settlements/ | ready |
| 费用规则 | fee_rules | 3 | /seller/finance/fee-rules/ | /api/finance/fee-rules/ | ready |
| 调价审批 | price_change_logs | 0 | /seller/price-approvals/ | /api/price-approvals/ | ready |
| 预警任务 | alerts | 2 | /seller/alerts/ | /api/alerts/ | ready |
| SOP 协作 | sop_tasks | 2 | /seller/sop-tasks/ | /api/sop-tasks/ | ready |
| 操作日志 | operation_logs | 0 | /seller/operation-logs/ | /api/operation-logs/ | ready |
| 报表中心 | report_snapshots | 2 | /seller/reports/ | /api/reports/ | ready |