提交
This commit is contained in:
1 parent
0e1b750457
commit
8c49021d38
93 files changed
+22731
-12107
No files matched your search
@@ -0,0 +1,41 @@
|
||||
# OA Detail Header Stamp 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:** Remove duplicate title on mobile OA detail and show a 72px dingding-style status stamp at the form top-right.
|
||||
|
||||
**Architecture:** Extract `resolveStamp` to a shared module; add `OaStatusStamp.vue`; overlay it in `OaDetail.vue` over the form host.
|
||||
|
||||
**Tech Stack:** Vue 3, mobile-oa-h5, Node assert tests
|
||||
|
||||
**Spec:** `docs/superpowers/specs/2026-08-13-oa-detail-header-stamp-design.md`
|
||||
|
||||
---
|
||||
|
||||
### Task 1: Extract `resolveStamp`
|
||||
|
||||
**Files:**
|
||||
- Create: `mobile-oa-h5/src/oa/oa-status-stamp.js`
|
||||
- Create: `mobile-oa-h5/src/oa/oa-status-stamp.test.js`
|
||||
- Modify: `mobile-oa-h5/src/oa/print/exportOaApprovalPdf.js` (re-export / import)
|
||||
|
||||
- [x] Write failing tests for stamp mapping
|
||||
- [x] Implement `resolveStamp`
|
||||
- [x] Point print module at shared export
|
||||
|
||||
### Task 2: `OaStatusStamp` component
|
||||
|
||||
**Files:**
|
||||
- Create: `mobile-oa-h5/src/oa/components/OaStatusStamp.vue`
|
||||
|
||||
- [x] Dingding stamp DOM + 72px CSS (demo `.sm`)
|
||||
- [x] Props: `status` → uses `resolveStamp`
|
||||
|
||||
### Task 3: Wire `OaDetail`
|
||||
|
||||
**Files:**
|
||||
- Modify: `mobile-oa-h5/src/views/OaDetail.vue`
|
||||
|
||||
- [x] Remove header title + status tag
|
||||
- [x] Wrap form in relative host; render stamp when `detail.status`
|
||||
- [x] Drop unused `statusText` / `statusTone` imports if unused
|
||||
@@ -32,7 +32,7 @@
|
||||
- Create: `mobile-h5/utils/oa-corner-index.js`
|
||||
- Create: `mobile-h5/utils/oa-corner-index.test.js`
|
||||
|
||||
- [ ] **Step 1: 写失败单测**
|
||||
- [x] **Step 1: 写失败单测**
|
||||
|
||||
```js
|
||||
// mobile-h5/utils/oa-corner-index.test.js
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
# 待办中心批量通过/打回 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 清单自测关键路径
|
||||
Reference in new issue
Block a user