Files
one-pipe-system/openspec/changes/update-agent-fund-main-wallet-asset-link/proposal.md
sexygoat ad56b82944
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m11s
feat: 新增代理流水资产标识
2026-05-29 15:44:53 +08:00

1.1 KiB

Change: Add asset links to main wallet transactions

Why

The agent fund overview detail drawer shows main wallet transaction records, but users cannot identify or navigate to the related asset for deductions tied to asset activity. The backend now returns asset_identifier from GET /api/admin/shops/{shop_id}/main-wallet/transactions, so the UI should expose it.

What Changes

  • Add an "资产标识" column to the "预充值钱包流水" table inside the agent fund overview commission detail drawer.
  • Read and type the new asset_identifier response field from main wallet transaction rows.
  • Render non-empty asset identifiers as clickable links that navigate to the asset information page for that identifier.
  • Render empty asset identifiers as - and do not make them clickable.

Impact

  • Affected specs: commission-management
  • Affected code:
    • src/types/api/commission.ts
    • src/views/commission-management/agent-fund-overview/index.vue
    • Asset information route query handling is reused via RoutesAlias.AssetInformation and identifier search behavior.