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 0a3fa2ab
authored
Aug 04, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: design low price order store selection
1 parent
cb968742
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
docs/superpowers/specs/2026-08-04-low-price-order-store-selection-design.md
docs/superpowers/specs/2026-08-04-low-price-order-store-selection-design.md
0 → 100644
View file @
0a3fa2a
# 低价单下单门店选择与接口改造设计
## 目标
在现有精品工单迁移范围内补齐低价单链路:订单列表按区域经理权限查询;新建工单在收款方式之前必须先选择下单门店;所选 4S 店及所属园区店贯穿待补录、普通下单与补录提交。既有固定用户模拟只提供登录身份,不再作为本链路下单门店的来源。
## 页面交互
复用工作台现有
`order-prompt-pop`
,新增
`lowPriceMode`
两步模式:
1.
打开弹层后调用
`dj.api.smartcarlife.serviceMerchant.curYqList`
,展示接口返回的 4S 店列表。
2.
第一步标题为“新建低价单”,步骤为“选择下单门店 / 订单收款方式”;支持按门店名称搜索、单选、取消和下一步。
3.
未选择门店时禁止进入下一步并提示“请选择下单门店”。
4.
第二步复用现有未支付、已支付及已支付子收款方式;可返回第一步,确认时一起返回收款方式和门店上下文。
5.
接口失败或没有可选门店时保留空态并给出明确提示,不使用固定用户中的默认 4S 店静默兜底。
既有非低价单调用不传
`lowPriceMode`
,保持原单步收款方式行为。
## 门店上下文
组件统一输出:
```
js
{
lowPriceFlag
:
1
,
merchantId
,
// 选中的 4S 店
merchantName
,
yqMerchantId
,
// 4S 店所属园区店
yqMerchantName
,
sellerMerchantId
:
yqMerchantId
,
sellerMerchantName
:
yqMerchantName
}
```
`curYqList`
返回结构通过纯函数归一化。优先识别园区对象内的 4S 店数组,同时兼容直接返回 4S 店行的结构;缺少园区字段时使用该行的园区/商户标识,但不读取全局用户默认门店。
`lowPriceFlag`
按现有管理端契约使用数值
`1`
。
工作台把该上下文合并进路由参数。若选择嘀加二维码补录,待补录弹层收到同一上下文后请求列表;选定流水后仍将同一上下文传到创建页。
创建页在
`onLoad`
时先把门店上下文写入
`orderObj`
,再执行场景、销售顾问等预填。后续默认预填不得覆盖已选
`merchantId`
、
`sellerMerchantId`
和
`lowPriceFlag`
。现有提交策略直接清洗并提交
`orderObj`
,因此
`createWithPay`
与
`supplementOrder`
都会携带新字段。
## 接口调整
| 用途 | ROP method | 本期参数/返回 |
| --- | --- | --- |
| 区域订单列表 |
`dj.api.smartcarlife.order.search.containPackageGoods.byArea`
| 固定
`sceneType=1`
、
`lowPriceFlag=1`
,按页签传
`goodsOrderApplyStatus`
|
| 审批状态统计 |
`dj.api.smartcarlife.order.statByApplyStatus`
| 固定
`sceneType=1`
、
`lowPriceFlag=1`
|
| 待补录分页 |
`dj.api.smartcarlife.weapp.waitinputorder.page`
| 增加
`lowPriceFlag`
、
`merchantId`
、
`yqMerchantId`
|
| 待补录统计 |
`dj.api.smartcarlife.weapp.waitinputorder.count`
| 增加
`lowPriceFlag`
、
`yqMerchantId`
|
| 普通下单 |
`dj.api.smartcarlife.order.createWithPay`
| 提交
`lowPriceFlag`
、
`sellerMerchantId`
|
| 订单补录 |
`dj.api.smartcarlife.order.supplementOrder`
| 提交
`lowPriceFlag`
、
`sellerMerchantId`
|
| 下单门店 |
`dj.api.smartcarlife.serviceMerchant.curYqList`
| 加载可下单 4S 店及所属园区店 |
| 账号关联门店 |
`dj.api.smartcarlife.serviceMerchant.shopWithYqList`
| 新增公共封装,供列表筛选/后续复用 |
| 订单详情 |
`dj.api.smartcarlife.order.detail`
| 保留返回的
`lowPriceFlag`
,回显/再次进入时不丢失 |
低价单列表页签改为“全部、待审批、已通过、已驳回”。待审批映射审批状态
`1,2`
,已通过映射
`3`
,已驳回映射
`4`
。统计返回字段通过适配器兼容常见命名,避免页面直接绑定后端字段名。
## 测试与门禁
先增加失败测试覆盖门店归一化、搜索、步骤切换、工作台参数传递、待补录入参、创建页初始化和接口 method;确认红灯后创建迁移 manifest 并通过 pre 门禁,再改业务代码。完成后使用 Node 24 运行精品工单迁移、创建页、订单生命周期与静态闭包检查,最后执行 post 门禁并同步接口清单和验收文档。
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