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 9ddc0cb6
authored
Aug 17, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
docs: correct low-price approval status filtering
1 parent
95dc21bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
docs/superpowers/specs/2026-08-17-low-price-tab-status-filter-design.md
docs/superpowers/specs/2026-08-17-low-price-tab-status-filter-design.md
0 → 100644
View file @
9ddc0cb
# 低价单页签审批状态筛选设计
## 问题
`pages/tabWorkOrder/pages/index/index`
的页签表达的是低价单审批状态,但
`statusList`
在开发环境 Swagger 中明确定义为“订单状态列表”。将审批通过值
`3`
写入
`statusList[0]`
会查询订单状态 3,而不是
`goodsOrderApplyStatus=3`
,因此已通过页签可能返回空数据。
Swagger 当前漏掉了列表接口的审批状态筛选入参,但返回类型
`GoodsOrderDTO`
明确包含
`goodsOrderApplyStatus`
,而项目历史低价单实现与接口清单均使用
`goodsOrderApplyStatusList`
作为审批状态查询字段。
## 设计
-
保留现有四个页签及审批状态值语义。
-
`resolveApprovalStatusFilter(index)`
返回审批状态数组:
-
全部:
`undefined`
-
待审批:
`[1, 2]`
-
已通过:
`[3]`
-
已驳回:
`[4]`
-
`getWorkList()`
先删除
`statusList`
,避免将审批值误作订单状态。
-
待审批、已通过和已驳回将映射结果写入
`goodsOrderApplyStatusList`
。
-
“全部”不传
`statusList`
也不传
`goodsOrderApplyStatusList`
,保证待跟进等订单不被订单状态误过滤。
## 验证
-
单元测试覆盖四个页签的审批状态映射。
-
页面请求边界测试捕获
`getWorkPackageGoodsList`
的最终入参,断言四个页签均不携带
`statusList`
,且“全部”不携带审批状态字段。
-
运行低价单专项测试和工单迁移回归测试。
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