From 38835ffe0f2bc2ee0110abaf5ed64d2777fb1a97 Mon Sep 17 00:00:00 2001 From: Jam Date: Thu, 9 Mar 2023 23:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/task.js | 4 ++-- app/view/page/todo.html | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/service/task.js b/app/service/task.js index 2e5fad4..564efaa 100644 --- a/app/service/task.js +++ b/app/service/task.js @@ -315,7 +315,7 @@ class TaskService extends Service { }); } async buildNext(actionData, trx) { - const { type, id, taskComment } = actionData; + let { type, id, taskComment, taskFormInput } = actionData; const { userId } = this.ctx.userInfo; // 准备任务数据 @@ -337,7 +337,7 @@ class TaskService extends Service { // taskFormInput = JSON.stringify(taskFormInput); // const historyTaskFormInput = JSON.parse(taskInfo.taskFormInput) // historyTaskFormInput .input = taskTpl.input; - const taskFormInput = taskInfo.taskFormInput; + taskFormInput = taskFormInput || taskInfo.taskFormInput; const history = { ...taskInfo, // taskFormInput: JSON.stringify(historyTaskFormInput), diff --git a/app/view/page/todo.html b/app/view/page/todo.html index 47887c3..3d4d4c6 100644 --- a/app/view/page/todo.html +++ b/app/view/page/todo.html @@ -334,13 +334,14 @@ }, async submitForReview(lineType) { + debugger await window.vtoast.loading("提交审核"); await window.jianghuAxios({ data: { appData: { pageId: 'todo', actionId: 'submitNode', - actionData: { type: lineType, id: this.updateItem.id, taskId: this.updateItem.taskId, taskComment: this.updateItem.taskComment } + actionData: { type: lineType, id: this.updateItem.id, taskId: this.updateItem.taskId, taskComment: this.updateItem.taskComment, taskFormInput: JSON.stringify(this.updateItem.taskFormInput) } } } })