Files
one-pipe-system/openspec/changes/update-exchange-separate-asset-search-display/proposal.md
luo 7d3352038a
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m34s
feat: 换货新旧资产展示与独立搜索
2026-07-22 16:57:17 +08:00

30 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Change: 更新换货列表的新旧资产展示与独立搜索
## Why
换货管理列表当前使用一个资产标识符条件同时匹配旧资产和新资产,且表格未完整区分两侧资产类型与标识。运营人员无法准确按换出资产或换入资产检索、识别换货单。
## What Changes
- 将换货列表筛选区的单一“资产标识符”替换为“旧资产”和“新资产”两个独立输入框。
- 列表查询使用 `old_asset_keyword``new_asset_keyword`;两个条件可独立或组合传递,空条件不传。
- 停止在换货列表查询中使用旧的通用 `identifier` 参数。
- 扩展换货列表项契约,支持旧资产和新资产各自的 `type``id``identifier`,以及 `status``status_name`
- 换货列表分别展示旧资产类型、旧资产标识、新资产类型、新资产标识四列,不能混列。
- 物联网卡使用后端返回的 ICCID设备使用后端返回的设备号前端不转换接入号、虚拟号或其他输入标识。
## Impact
- Affected specs:
- `exchange-management`
- Related active changes:
- `update-exchange-flow-direct-type`,本提案替换其换货列表通用资产标识符筛选口径,不改变流程类型筛选与换货操作。
- `update-asset-exchange-generation-links`,仅共享换货领域概念,不修改资产详情换货链路展示。
- Affected code:
- `src/api/modules/exchange.ts`
- `src/views/asset-management/exchange-management/index.vue`
- API contract:
- `GET /api/admin/exchanges?old_asset_keyword=&new_asset_keyword=`
- Dependencies:
- 后端列表接口支持分别按旧资产和新资产关键词查询,并返回新旧资产字段。