2026-08-13-oa-pending-batch-approve-return.md 1.3 KB

待办中心批量通过/打回 Implementation Plan

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: 在 mobile-h5 待办中心支持标题栏管理多选,并批量通过 / 打回。

Architecture: 自定义顶栏对齐草稿箱;多选与批量栏对齐抄送/草稿;意见弹层后串行调用现有单条 approve/return API,不新增后端批量接口。

Tech Stack: uni-app (mobile-h5)、现有 oa-api / request 封装


Task 1: API 封装

Files:

  • Modify: mobile-h5/utils/oa-api.js

  • [x] 增加 fetchApproveOaTask(taskId, comment)、fetchReturnOaTask(taskId, comment)

Task 2: 路由自定义导航

Files:

  • Modify: mobile-h5/pages.json(pending)

  • [x] navigationStyle: custom,保留标题文案与下拉刷新配置

Task 3: 待办页 UI + 批量逻辑

Files:

  • Modify: mobile-h5/pages/oa/pending/index.vue

  • [x] 自定义顶栏(返回 / 标题 / 管理)

  • [x] 管理态勾选 + 批量栏

  • [x] 意见弹层(通过可空、打回必填)

  • [x] 串行提交与结果 toast、刷新列表

Task 4: 手工验收

  • 对照 spec §5 清单自测关键路径