From 705e68759db0a6f6b6b49db2d6180412dc3e466f Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Fri, 6 Mar 2026 18:36:32 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=E8=BD=AC=E5=8A=9E?= =?UTF-8?q?=E7=AD=89=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/task/types.ts | 2 ++ src/components/Process/processMeddle.vue | 9 ++++++--- src/components/Process/submitVerify.vue | 12 ++++++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/api/workflow/task/types.ts b/src/api/workflow/task/types.ts index e3c9abfc..e0367d65 100644 --- a/src/api/workflow/task/types.ts +++ b/src/api/workflow/task/types.ts @@ -53,6 +53,8 @@ export interface TaskOperationBo { userIds?: string[]; //任务ID(必填) taskId: string | number; + //消息类型 + messageType?: string[]; //意见或备注信息(可选) message?: string; } diff --git a/src/components/Process/processMeddle.vue b/src/components/Process/processMeddle.vue index d024b691..444bbdc1 100644 --- a/src/components/Process/processMeddle.vue +++ b/src/components/Process/processMeddle.vue @@ -113,7 +113,8 @@ const handleTransferTask = async (data) => { const taskOperationBo = reactive({ userId: data[0].userId, taskId: task.value.id, - message: '' + message: '', + messageType: ['1'] }); await proxy?.$modal.confirm('是否确认提交?'); loading.value = true; @@ -139,7 +140,8 @@ const addMultiInstanceUser = async (data) => { const taskOperationBo = reactive({ userIds: data.map((e) => e.userId), taskId: task.value.id, - message: '' + message: '', + messageType: ['1'] }); await proxy?.$modal.confirm('是否确认提交?'); loading.value = true; @@ -163,7 +165,8 @@ const deleteMultiInstanceUser = async (row) => { const taskOperationBo = reactive({ userIds: [row.userId], taskId: task.value.id, - message: '' + message: '', + messageType: ['1'] }); await taskOperation(taskOperationBo, 'reductionSignature').finally(() => { loading.value = false; diff --git a/src/components/Process/submitVerify.vue b/src/components/Process/submitVerify.vue index 477178cc..a1917ca3 100644 --- a/src/components/Process/submitVerify.vue +++ b/src/components/Process/submitVerify.vue @@ -397,7 +397,8 @@ const addMultiInstanceUser = async (data) => { const taskOperationBo = reactive({ userIds: data.map((e) => e.userId), taskId: taskId.value, - message: form.value.message + message: form.value.message, + messageType: ['1'] }); await proxy?.$modal.confirm('是否确认提交?'); loading.value = true; @@ -421,7 +422,8 @@ const deleteMultiInstanceUser = async (row) => { const taskOperationBo = reactive({ userIds: [row.userId], taskId: taskId.value, - message: form.value.message + message: form.value.message, + messageType: ['1'] }); await taskOperation(taskOperationBo, 'reductionSignature').finally(() => { loading.value = false; @@ -441,7 +443,8 @@ const handleTransferTask = async (data) => { const taskOperationBo = reactive({ userId: data[0].userId, taskId: taskId.value, - message: form.value.message + message: form.value.message, + messageType: ['1'] }); await proxy?.$modal.confirm('是否确认提交?'); loading.value = true; @@ -468,7 +471,8 @@ const handleDelegateTask = async (data) => { const taskOperationBo = reactive({ userId: data[0].userId, taskId: taskId.value, - message: form.value.message + message: form.value.message, + messageType: ['1'] }); await proxy?.$modal.confirm('是否确认提交?'); loading.value = true;