表单编辑
This commit is contained in:
1 parent
444e1e026c
commit
38835ffe0f
2 files changed
+4
-3
No files matched your search
+2
-2
@@ -315,7 +315,7 @@ class TaskService extends Service {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
async buildNext(actionData, trx) {
|
async buildNext(actionData, trx) {
|
||||||
const { type, id, taskComment } = actionData;
|
let { type, id, taskComment, taskFormInput } = actionData;
|
||||||
const { userId } = this.ctx.userInfo;
|
const { userId } = this.ctx.userInfo;
|
||||||
|
|
||||||
// 准备任务数据
|
// 准备任务数据
|
||||||
@@ -337,7 +337,7 @@ class TaskService extends Service {
|
|||||||
// taskFormInput = JSON.stringify(taskFormInput);
|
// taskFormInput = JSON.stringify(taskFormInput);
|
||||||
// const historyTaskFormInput = JSON.parse(taskInfo.taskFormInput)
|
// const historyTaskFormInput = JSON.parse(taskInfo.taskFormInput)
|
||||||
// historyTaskFormInput .input = taskTpl.input;
|
// historyTaskFormInput .input = taskTpl.input;
|
||||||
const taskFormInput = taskInfo.taskFormInput;
|
taskFormInput = taskFormInput || taskInfo.taskFormInput;
|
||||||
const history = {
|
const history = {
|
||||||
...taskInfo,
|
...taskInfo,
|
||||||
// taskFormInput: JSON.stringify(historyTaskFormInput),
|
// taskFormInput: JSON.stringify(historyTaskFormInput),
|
||||||
|
|||||||
@@ -334,13 +334,14 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
async submitForReview(lineType) {
|
async submitForReview(lineType) {
|
||||||
|
debugger
|
||||||
await window.vtoast.loading("提交审核");
|
await window.vtoast.loading("提交审核");
|
||||||
await window.jianghuAxios({
|
await window.jianghuAxios({
|
||||||
data: {
|
data: {
|
||||||
appData: {
|
appData: {
|
||||||
pageId: 'todo',
|
pageId: 'todo',
|
||||||
actionId: 'submitNode',
|
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) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user