fix(oa): 同意/拒绝/打回前自动发送评论草稿 #125

Merged
cykj merged 1 commits from codex/issue-118-oa-comment-flush-b75064c39af7 into V2.0 2026-11-19 03:56:42 +00:00
Owner

Summary

  • Web 与移动 OA:点击同意/拒绝/打回时,若评论区有未发送草稿(文字/@/附件),先等同点击【发送】再继续审批动作。
  • 空草稿跳过发送;发送失败则中止审批。

关联

Test plan

  • node --test web-admin/src/utils/oa-comment-draft.test.ts
  • node --test mobile-oa-h5/src/oa/oa-comment-draft.test.js
  • 合入后用户验收:审批详情评论区有草稿时点同意/拒绝/打回,评论先入库再走审批

构建与整体运行验收由用户在合入后进行。

## Summary - Web 与移动 OA:点击同意/拒绝/打回时,若评论区有未发送草稿(文字/@/附件),先等同点击【发送】再继续审批动作。 - 空草稿跳过发送;发送失败则中止审批。 ## 关联 - https://gitea.aichengyan.com/cykj/zkxw/issues/118 ## Test plan - [x] `node --test web-admin/src/utils/oa-comment-draft.test.ts` - [x] `node --test mobile-oa-h5/src/oa/oa-comment-draft.test.js` - [ ] 合入后用户验收:审批详情评论区有草稿时点同意/拒绝/打回,评论先入库再走审批 构建与整体运行验收由用户在合入后进行。
cykj added 1 commit 2026-11-19 03:56:08 +00:00
审批动作前冲刷评论区未发送内容,减少先点发送再审批的一步操作。
关联 #118。

Co-authored-by: Cursor <cursoragent@cursor.com>
cykj merged commit f0a6abe538 into V2.0 2026-11-19 03:56:42 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cykj/zkxw#125