From f139835ad42c967961cbe213a8f300fe63553349 Mon Sep 17 00:00:00 2001 From: yang chen Date: Thu, 11 Dec 2025 17:06:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(bpm):=20=E6=B7=BB=E5=8A=A0=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=BE=85=E9=98=85=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=B5=81=E7=A8=8B=E5=AE=9E=E4=BE=8B=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 handleProcessInstanceCC 接口用于处理待阅操作 - 在流程实例详情页初始化时调用待阅处理接口 - 优化页面按钮图标与文字的布局展示 - 调整打印表单相关逻辑及页面结构 - 统一接口请求参数格式并移除多余空格 - 修复表单变量合并逻辑并优化对象展开语法 - 更新组件引用路径及函数调用方式一致性 --- src/api/bpm/processInstance/index.ts | 24 ++-- .../bpm/processInstance/detail/index.vue | 103 ++++++++++-------- 2 files changed, 71 insertions(+), 56 deletions(-) diff --git a/src/api/bpm/processInstance/index.ts b/src/api/bpm/processInstance/index.ts index a937eae..dba70a6 100644 --- a/src/api/bpm/processInstance/index.ts +++ b/src/api/bpm/processInstance/index.ts @@ -27,16 +27,16 @@ export type ProcessInstanceCCVO = { processInstanceName: string, processInstanceKey: string, startUserId: string, - options:string [], + options: string [], reason: string } export const getMyProcessInstancePage = async (params) => { - return await request.get({ url: '/bpm/process-instance/my-page', params }) + return await request.get({url: '/bpm/process-instance/my-page', params}) } export const createProcessInstance = async (data) => { - return await request.post({ url: '/bpm/process-instance/create', data: data }) + return await request.post({url: '/bpm/process-instance/create', data: data}) } export const cancelProcessInstance = async (id: number, reason: string) => { @@ -44,11 +44,11 @@ export const cancelProcessInstance = async (id: number, reason: string) => { id: id, reason: reason } - return await request.delete({ url: '/bpm/process-instance/cancel', data: data }) + return await request.delete({url: '/bpm/process-instance/cancel', data: data}) } export const getProcessInstance = async (id: number) => { - return await request.get({ url: '/bpm/process-instance/get?id=' + id }) + return await request.get({url: '/bpm/process-instance/get?id=' + id}) } /** @@ -57,14 +57,18 @@ export const getProcessInstance = async (id: number) => { * @returns 是否抄送成功 */ export const createProcessInstanceCC = async (data) => { - return await request.post({ url: '/bpm/process-instance/cc/create', data: data }) + return await request.post({url: '/bpm/process-instance/cc/create', data: data}) } /** * 抄送列表 - * @param params - * @returns + * @param params + * @returns */ export const getProcessInstanceCCPage = async (params) => { - return await request.get({ url: '/bpm/process-instance/cc/my-page', params }) -} \ No newline at end of file + return await request.get({url: '/bpm/process-instance/cc/my-page', params}) +} + +export const handleProcessInstanceCC = async (processInstanceId: string) => { + return await request.post({url: '/bpm/process-instance/cc/process-current-user-copy/' + processInstanceId}) +} diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index 346a667..e4a7e5a 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -34,16 +34,16 @@
- + 通过 - + 不通过 - + - + 抄送 - + - + 回退
@@ -64,28 +64,28 @@
- - + - + + + + + +
+ +
+
- - + +
- + - + - + - - + +