表单编辑

This commit is contained in:
Jam committed 2023-03-09 23:10:17 +08:00
1 parent 444e1e026c
commit 38835ffe0f
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -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),
+2 -1
View File
@@ -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) }
}
}
})