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 e4f3ec8..2cf8fa3 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 }} + + + + + +