For agentic workers: REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (
- [ ]) syntax for tracking.
Goal: 协议编辑页内嵌转账登记/提交财务确认/撤回,与 Web SamplePaymentPanel 一致;去掉小程序协议审核操作。
Architecture: 复用既有 /mini/market/{role}/payment-transfers API;在 ProtocolSamplePaymentPanel 每期次下挂转账卡片;MarketModuleForm 传入 protocolId、角色与转账字典;前端/后端协议动作白名单去掉 audit。
Tech Stack: Vue 3 + Vant(mobile-oa-h5)、FastAPI market_mobile、既有 payment transfer 服务
| 文件 | 职责 |
|---|---|
mobile-oa-h5/src/market/components/ProtocolSamplePaymentPanel.vue |
内嵌转账 UI + 调用 |
mobile-oa-h5/src/views/market/MarketModuleForm.vue |
传 protocolId / role / transferTypes / canManageTransfers |
mobile-oa-h5/src/market/action-policy.js |
协议白名单去 audit |
backend/app/services/market_support.py |
protocol allowed_actions 去 audit |
相关 *.test.js / pytest |
契约与白名单 |
module-actions.test.js:moduleActions('protocol') 不含 audit;collectAllowedActions 交集不含 auditaction-policy.js 去掉 audit;后端 allowed_actions protocol 去掉 auditmobile-parity-ui.test.js 或新测:ProtocolSamplePaymentPanel 含「添加转账」「提交财务确认」「撤回」protocolId+schedule.id;成功后写回 id/payStatusprotocol-sample-transfer.js)mobile-oa-h5 相关 node tests + 必要 backend pytest