From 670eeabfa56090e142698c269f9d1b7ed925abd3 Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Fri, 30 Oct 2026 21:09:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(approval):=20=E5=91=98=E5=B7=A5=E7=AB=AF?= =?UTF-8?q?=E5=AD=98=E6=A1=A3=E7=A1=AE=E8=AE=A4=E4=B8=8E=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E5=8A=A8=E4=BD=9C=20(#21)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 详情页新增“存档确认”(无意见)与“归档”动作 - 展示存档确认人/状态(已确认、待确认)/时间与归档人/时间 - 归档后隐藏全部动作,页面只读 --- src/api/approval/task/index.ts | 26 ++++++ src/packageApproval/pages/detail.vue | 133 ++++++++++++++++++++++++++- 2 files changed, 158 insertions(+), 1 deletion(-) diff --git a/src/api/approval/task/index.ts b/src/api/approval/task/index.ts index a6c9ab8..4f82cd7 100644 --- a/src/api/approval/task/index.ts +++ b/src/api/approval/task/index.ts @@ -44,6 +44,32 @@ export async function rejectTask(id: number, opinion: string) { return Promise.reject(new Error(res.data.message)); } +/** + * 存档确认(无意见,只能确认) + */ +export async function confirmTask(id: number) { + const res = await request.post>( + THINK_API_URL + '/approval/task/' + id + '/confirm' + ); + if (res.data.code === 0 && res.data.data) { + return res.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 归档(或签,归档后单据只读) + */ +export async function archiveTask(id: number) { + const res = await request.post>( + THINK_API_URL + '/approval/task/' + id + '/archive' + ); + if (res.data.code === 0 && res.data.data) { + return res.data; + } + return Promise.reject(new Error(res.data.message)); +} + /** * 撤回 */ diff --git a/src/packageApproval/pages/detail.vue b/src/packageApproval/pages/detail.vue index eb591a8..5dfd20a 100644 --- a/src/packageApproval/pages/detail.vue +++ b/src/packageApproval/pages/detail.vue @@ -33,6 +33,18 @@ 提交时间 {{ formatTime(detail.submitTime) }} + + 审批完成时间 + {{ formatTime(detail.approveTime) }} + + + 归档时间 + {{ formatTime(detail.archiveTime) }} + + + 归档人 + {{ detail.archivistName || '—' }} + @@ -109,6 +121,23 @@ 暂无记录 + + + + {{ item.userName || '—' }} + {{ item.handleTime ? formatTime(item.handleTime) : '—' }} + + + {{ item.statusName }} + + + + + +