附录A全接入:7新页面+路由菜单+库存大盘抽屉 / P1-2真机非法值拦截全绿 / 文档终版510+514
This commit is contained in:
@@ -82,17 +82,35 @@ seed_demo/demo 幂等兜底、两个测试侧 membership 修补、exceptions 去
|
||||
补 `rules`(平台/店铺ID/店铺名必填,App Key 留空合法)+ 保存前 validate。
|
||||
5. **文档数字**:README PG 口径 `499` → `514`(实跑)。
|
||||
|
||||
## 最终验证(2026-09-12)
|
||||
## 本轮新增(2026-09-12 续-3 · 附录 A #3–#10 全接入 + P1-2 真机验证)
|
||||
|
||||
7 个新页面(路由+菜单已接线,构建 ✅ 6.37s):
|
||||
|
||||
| # | 页面 | 路由 | 后端接口 | 真机数据 |
|
||||
|---|---|---|---|---|
|
||||
| 3 | 核销记录 `Allocations.vue`(只读) | `/finance/allocations` | `GET /finance/allocations/` | 30 行 |
|
||||
| 4 | 库存流水 `Movements.vue`(只读) | `/stocks/movements` | `GET /inventory/movements/` | 50 行 |
|
||||
| 5 | 预警规则 `AlertRules.vue`(CRUD+开关+init-default) | `/notify/rules` | `/notify/rules/` + `init-default` | 4 行 |
|
||||
| 6 | 打印模板 `PrintTemplates.vue`(CRUD) | `/printing/templates` | `/printing/templates/` | 空态 200 ✅ |
|
||||
| 7 | 自定义报表 `ReportDefinitions.vue`(init-system+run) | `/report/definitions` | `definitions/` + `init-system` + `run` | 空态 200 ✅ |
|
||||
| 8 | 库存大盘 | Dashboard 库存卡片点击 → 明细抽屉 | `/report/dashboard/inventory-status/` | 2 仓/30734 件/¥131,509.92 |
|
||||
| 9 | 科目管理 `Accounts.vue`(init-chart+启用开关) | `/finance/accounts` | `/finance/accounts/` + `init-chart` | 空态 200 ✅ |
|
||||
| 10 | 价格等级/联系人 `PriceLevels.vue`(等级 CRUD + 联系人只读) | `/partner/price-levels` | `price-levels/` + `contacts/` | 空态 200 ✅ |
|
||||
|
||||
P1-2 Playwright 真机(dev :18099 + demo 租户,0 console errors):
|
||||
空提交被拦——Vouchers(请输入摘要)/ AlertRules(编码+名称)/ Channel(店铺ID+店铺名),
|
||||
dialog 不关闭;抽屉字段曾与后端键名错位(`by_warehouse` vs 实际 `warehouses`/
|
||||
`grand_total_*`),已按实测键修好并复验出真数据。
|
||||
|
||||
## 最终验证(2026-09-12 终版)
|
||||
|
||||
- 后端 SQLite:**510 passed / 4 skipped**(PG 专用并发用例)
|
||||
- 后端 PostgreSQL 5433:**514 passed / 0 skipped**
|
||||
- 前端:`npm run build` ✅ 6.50s;`npm test` ✅ 11/11
|
||||
- 前端:`npm run build` ✅ 6.37s;`npm test` ✅ 11/11
|
||||
- `manage.py check` 0 issues;`makemigrations --check` No changes
|
||||
- Playwright Register 真机:空/非法被拦、合法 201 跳 dashboard、0 console errors
|
||||
- Playwright:Register 空/非法被拦、合法 201 跳 dashboard;9 页渲染全过;3 页空提交被拦;抽屉真数据;全程 0 console errors
|
||||
|
||||
## 遗留(诚实记录)
|
||||
|
||||
- §附录 A #4–#10(库存流水/预警规则/打印模板/自定义报表/库存大盘/科目管理/价格等级页)
|
||||
仍是后端有、前端无——超出本轮 27 条真源范围,未动。
|
||||
- P2-2 部署 readiness gate + 上线 192.168.5.7:需 Docker/服务器凭证,未动。
|
||||
- P2-3/D2 移动开单、P3-1 行业专版:按客户驱动,未动。
|
||||
|
||||
Reference in New Issue
Block a user