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) } } } })