# Change: 增加代理注册申请后台管理 ## Why 后台目前无法查看代理扫码注册申请,也无法处理企业微信审批提交失败或结果未知的注册申请。根据 `docs/产品迭代8月份/代理注册管理.md`,需要提供申请列表、详情和恢复原审批提交入口。 ## What Changes - 新增后台代理注册申请列表页,支持状态、申请/决定时间、手机号、关键字、直接上级店铺和提交异常筛选。 - 新增注册申请详情页,展示完整手机号、注册地址、申请店铺、分销码、业务状态、审批状态和企微提交状态。 - 当 `recoverable = true` 时显示“恢复审批”,调用 `POST /api/admin/agent-distribution-registrations/{id}/recover-approval`,成功后刷新详情。 - 新增代理注册申请 API、类型、路由和权限编码。 - 权限编码:列表 `agent_distribution_registration:list`、详情 `agent_distribution_registration:detail`、恢复审批 `agent_distribution_registration:recover_approval`。 ## Impact - Affected specs: `agent-distribution-registration` - Affected code: - `src/api/modules/agentDistribution.ts` - `src/types/api/agentDistribution.ts` - `src/config/constants/augustIteration.ts` - `src/router/routesAlias.ts` - `src/router/routes/asyncRoutes.ts` - `src/views/shop-management/agent-distribution-registrations/index.vue` - `src/views/shop-management/agent-distribution-registrations/detail.vue` - `src/locales/langs/zh.json` - `docs/权限.md` - Out of scope: - C 端注册流程和代理登录流程。 - 后端审批、数据库和企业微信回调实现。 - 修改注册申请业务资料或审批结果。