Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fa75fd2b
authored
Jul 31, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: specify customer work order menu
1 parent
4857e4ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
0 deletions
docs/superpowers/specs/2026-07-31-customer-work-order-menu-design.md
docs/superpowers/specs/2026-07-31-customer-work-order-menu-design.md
0 → 100644
View file @
fa75fd2
# 门店运营管理客户工单菜单设计
## 目标
在
`pages/tab/workspace/workspace`
的“门店运营管理”中增加“客户工单”菜单。该菜单位于
“新增工单”之后,点击后直接进入已经迁移并注册的
`/pages/tabWorkOrder/pages/index/index`
。
## 范围
-
修改工作台
`storeManagementMenus`
配置。
-
从来源项目迁入客户工单原 tab 图标
`images/tab-order.png`
。
-
扩展工作台入口契约测试。
-
同步精品工单入口文档和自动化验收表。
-
不修改客户工单页面、公共路由器、开单弹窗或订单业务判断。
本变更只是给已迁移页面补充入口,属于小型功能补充,不触发迁移 manifest 门禁。
## 菜单配置
“客户工单”紧跟在“新增工单”之后,使用以下语义:
```
js
{
name
:
'客户工单'
,
path
:
'/pages/tabWorkOrder/pages/index/index'
,
iconUrl
:
'/images/tab-order.png'
,
trackingCode
:
'regional-assistant-customer-work-order'
}
```
图标来源固定为:
`C:/Users/admin/Desktop/工作/dj-car-boutique-work-wechat/images/tab-order.png`
目标路径固定为:
`C:/Users/admin/Desktop/工作/regional-assistant/images/tab-order.png`
## 数据流
1.
工作台 WXML 继续遍历
`storeManagementMenus`
,通过既有
`item.iconUrl || (IMG_URL + item.icon + '.png')`
渲染图标。
2.
用户点击“客户工单”,既有
`jumpTo()`
先记录
`regional-assistant-customer-work-order`
埋点。
3.
`jumpTo()`
命中现有
`path`
分支,调用
`wx.navigateTo({ url: '/pages/tabWorkOrder/pages/index/index' })`
。
4.
客户工单列表页按自身生命周期加载数据;不会打开新增工单收款方式弹窗。
## 路由与资源
-
`app.json`
已注册
`pages/tabWorkOrder/pages/index/index`
,无需新增路由。
-
工作台和客户工单页均已配置
`tabWorkOrder`
分包预加载,无需修改预加载规则。
-
新图标使用本地绝对小程序路径
`/images/tab-order.png`
。
-
静态闭包检查必须确认图片存在且路径可达。
## 测试
先扩展
`tests/work-order-migration/workspace-source-contract.test.mjs`
并观察失败,再实现菜单:
1.
工作台存在“客户工单”。
2.
“客户工单”出现在“新增工单”之后。
3.
菜单使用
`/pages/tabWorkOrder/pages/index/index`
。
4.
菜单使用
`/images/tab-order.png`
。
5.
现有“新增工单”仍直接打开收款方式弹窗。
6.
`npm run test:workOrderMigration`
和静态闭包检查通过。
## 文档
-
`docs/order-creation/README.md`
增加“客户工单”入口说明。
-
`docs/order-lifecycle/test-acceptance.md`
增加菜单、路径和图标验收项,并以最终测试结果
更新统计。
## 完成标准
-
“门店运营管理”同时显示“新增工单”和“客户工单”。
-
“客户工单”位于“新增工单”之后。
-
点击“客户工单”直接进入已迁移列表页。
-
原来源图标已迁入目标项目且静态资源闭包完整。
-
自动化测试、静态闭包、JavaScript 语法和差异格式检查通过。
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment