Files
zkxw/docs/superpowers/plans/2026-10-16-oa-done-print-button.md
T
2026-10-17 11:46:53 +08:00

32 lines
1013 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OA 已办中心打印按钮 — Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
**Goal:** 为 Web / 小程序【已办中心】补齐打印入口,复用现有 PDF 导出链路。
**Architecture:** 不新增打印引擎;Web 复制 `cc`/`mine` 的 `printRow`;小程序复制 `mine` 的 `onCardLongPress` + `autoPrint`。
**Tech Stack:** Vue 3 + Element Plus(web-admin);uni-app Vue2(mobile-h5)
---
### Task 1: Web 已办中心加打印
**Files:**
- Modify: `web-admin/src/views/oa-approval/done/index.vue`
**Step 1:** 操作列加「打印」按钮与 `printRow`(`instanceId`,`exportOaApprovalPdf`)
**Step 2:** 操作列 `min-width` 调至约 320,避免裁切
---
### Task 2: 小程序已办中心加长按打印
**Files:**
- Modify: `mobile-h5/pages/oa/done/index.vue`
**Step 1:** 卡片 `@longpress="onCardLongPress"`
**Step 2:** `onCardLongPress` + `openView(row, { autoPrint })` 对齐 `mine`