Files
one-pipe-system/openspec/changes/add-agent-distribution-registration-and-withdrawal/tasks.md
2026-09-17 12:16:20 +08:00

1.9 KiB
Raw Blame History

1. 提案与 API 层

  • 1.1 新增 src/api/modules/agentDistribution.tssendCode()registerAgent(),公开请求不带 Token
  • 1.2 扩展 src/types/api/shop.tsShopResponse 增加 distribution_code
  • 1.3 扩展 src/types/api/commission.ts:提现资料资格提交/查询、作废、重提、详情的请求与响应类型
  • 1.4 扩展 src/api/modules/commission.tssubmitWithdrawalQualification / getWithdrawalQualifications / voidWithdrawalQualification / resubmitWithdrawalRequest / getWithdrawalRequestDetail
  • 1.5 扩展 src/types/api/wecom.tsWecomBusinessType 增加三个业务类型
  • 1.6 汇总导出新增类型

2. 企微审批场景

  • 2.1 场景配置页新增三个业务类型选项(agent_distribution_approval / withdrawal_qualification_approval / commission_withdrawal_approval

3. 独立注册页

  • 3.1 staticRoutes.ts 新增 /agent-registration 静态路由
  • 3.2 LOGIN_WHITE_LIST 增加注册页路径
  • 3.3 新增 src/views/agent-registration/index.vue表单、验证码倒计时、密码强度、省市区级联、提交与结束页、H5/PC 响应式

4. 店铺详情

  • 4.1 店铺详情页展示 distribution_code 与注册二维码

5. 我的佣金(代理侧)

  • 5.1 新增「提现资料资格」Tab资格列表脱敏展示+ 提交/替换弹窗(附件走上传接口)
  • 5.2 提现记录新增「详情」抽屉:展示明细、驳回原因、异常标记与尝试记录
  • 5.3 被驳回记录新增「重新提交」弹窗PUT 重提)
  • 5.4 超管可见「作废资格」操作reason 必填)

6. 验证

  • 6.1 运行 npm run build(含 vue-tsc --noEmit
  • 6.2 运行 npm run check:encoding
  • 6.3 运行 openspec.cmd validate add-agent-distribution-registration-and-withdrawal --strict