fix: 修复待办任务无法审批流程问题

rf
tony 2023-01-06 21:53:41 +08:00
parent b80568dfd7
commit 95d0315dcf
1 changed files with 3 additions and 59 deletions

View File

@ -240,7 +240,6 @@ export default {
if (this.taskForm.taskId) {
this.processVariables(this.taskForm.taskId)
this.getFlowTaskForm(this.taskForm.taskId)
// this.getNextFlowNode(this.taskForm.taskId)
}
this.getFlowRecordList(this.taskForm.procInsId, this.taskForm.deployId);
}
@ -331,44 +330,6 @@ export default {
});
}
},
/** 根据当前任务或者流程设计配置的下一步节点 */
getNextFlowNode(taskId) {
// todo
const params = {taskId: taskId}
getNextFlowNode(params).then(res => {
const data = res.data;
if (data) {
if (data.dataType === 'dynamic') {
if (data.type === 'assignee') { //
this.checkSendUser = true;
this.checkType = "single";
} else if (data.type === 'candidateUsers') { // ()
this.checkSendUser = true;
this.checkType = "multiple";
} else if (data.type === 'candidateGroups') { // ()
this.checkSendRole = true;
} else { //
// elementVariable
this.multiInstanceVars = data.vars;
this.checkSendUser = true;
this.checkType = "multiple";
}
} else {
//
this.taskForm.formData.formData.disabled = true;
//
this.taskForm.formData.formData.formBtns = false;
this.taskForm.variables = Object.assign({}, this.taskForm.variables, this.taskForm.formData.valData);
this.taskForm.variables.variables = this.taskForm.formData.formData;
console.log(this.taskForm, "流程审批提交表单数据")
complete(this.taskForm).then(response => {
this.$modal.msgSuccess(response.msg);
this.goBack();
});
}
}
})
},
/** 加载审批任务弹框 */
handleComplete() {
// this.completeOpen = true;
@ -396,14 +357,12 @@ export default {
this.taskForm.formData.formData.formBtns = false;
this.taskForm.variables = Object.assign({}, this.taskForm.variables, this.taskForm.formData.valData);
this.taskForm.variables.variables = this.taskForm.formData.formData;
console.log(this.taskForm, "流程审批提交表单数据")
complete(this.taskForm).then(response => {
this.$modal.msgSuccess(response.msg);
this.goBack();
});
} else {
console.log(this.taskForm, "流程审批提交表单数据")
// ,
complete(this.taskForm).then(response => {
this.$modal.msgSuccess(response.msg);
this.goBack();
@ -506,25 +465,10 @@ export default {
this.checkSendUser = true;
this.checkType = "multiple";
}
}
}
this.completeOpen = true;
this.completeTitle = "流程审批";
} else {
//
this.taskForm.formData.formData.disabled = true;
//
this.taskForm.formData.formData.formBtns = false;
this.taskForm.variables = Object.assign({}, this.taskForm.variables, this.taskForm.formData.valData);
this.taskForm.variables.variables = this.taskForm.formData.formData;
console.log(this.taskForm, "流程审批提交表单数据")
complete(this.taskForm).then(response => {
this.$modal.msgSuccess(response.msg);
this.goBack();
});
}
} else {
this.completeOpen = true;
this.completeTitle = "流程审批";
}
})
},
},