Insert MINI_BX_* menus with mini:bx:* perms on test/prod, expose 9 workbench entries, and register placeholder pages. Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
1.3 KiB
Markdown
30 lines
1.3 KiB
Markdown
# 小程序报销 Batch1:菜单权限 + 占位入口 Implementation Plan
|
||
|
||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||
|
||
**Goal:** 在移动端挂「报销管理」9 个叶子菜单(`mini:bx:*`),测产双库执行;工作台露出入口并进入占位页。
|
||
|
||
**Architecture:** 幂等 SQL(对齐 MINI_DB_* 模式)+ workbench-menus perms + PAGE_PATHS/ROUTE_MAP + 9 个占位 vue(mp-shell 风格,后续批次再上 vant-weapp 业务页)。
|
||
|
||
**Tech Stack:** MySQL、uni-app、现有 menu-codes 过滤
|
||
|
||
**Spec:** `docs/superpowers/specs/2026-09-11-mini-bx-from-bx-mobile-design.md` § Batch 1
|
||
|
||
---
|
||
|
||
## 文件结构
|
||
|
||
| 操作 | 文件 |
|
||
|------|------|
|
||
| Create | `docs/sql/migrations/2026-09-11-mini-bx-menus.sql` |
|
||
| Create | `miniprogram/pages/bx/*/placeholder.vue`(9 页,可共用一个组件模板) |
|
||
| Modify | `miniprogram/config/workbench-menus.js` |
|
||
| Modify | `miniprogram/config/api.js` |
|
||
| Modify | `miniprogram/pages.json` |
|
||
|
||
### Task 1: SQL + 双库执行
|
||
### Task 2: workbench menus + routes + pages.json + 9 placeholders
|
||
### Task 3: 验收过滤与提交
|
||
|
||
(详细步骤见执行会话;SQL 内容以 design 表为准。)
|