|
@@ -610,12 +610,14 @@ export default {
|
|
let major = new Object();
|
|
let major = new Object();
|
|
major.id = this.allocationForm.id;
|
|
major.id = this.allocationForm.id;
|
|
major.departmentId = this.allocationForm.departmentId;
|
|
major.departmentId = this.allocationForm.departmentId;
|
|
- this.$api.major.edit(major).then(res=>{
|
|
|
|
|
|
+ let taskRecord = new Object();
|
|
|
|
+ taskRecord.recordId = this.allocationForm.recordId;;
|
|
|
|
+ taskRecord.taskData = major;
|
|
|
|
+ this.$api.major.department(taskRecord).then(res=>{
|
|
if (res.code === 200 && res.data){
|
|
if (res.code === 200 && res.data){
|
|
let commit = new Object();
|
|
let commit = new Object();
|
|
commit.instanceNodeId = this.allocationForm.instanceNodeId;
|
|
commit.instanceNodeId = this.allocationForm.instanceNodeId;
|
|
commit.state = 'PASS';
|
|
commit.state = 'PASS';
|
|
- commit.ifCheckTask = false;
|
|
|
|
commit.nodeCode = 'LEADER_ALLOCATION';
|
|
commit.nodeCode = 'LEADER_ALLOCATION';
|
|
this.$api.workflow.commit(commit).then(res=>{
|
|
this.$api.workflow.commit(commit).then(res=>{
|
|
if (res.code === 200 && res.data){
|
|
if (res.code === 200 && res.data){
|
|
@@ -653,6 +655,7 @@ export default {
|
|
this.allocationForm.reason = res.data.comments;
|
|
this.allocationForm.reason = res.data.comments;
|
|
this.allocationForm.refuseTime = res.data.created;
|
|
this.allocationForm.refuseTime = res.data.created;
|
|
this.allocationForm.refuseUser = res.data.handler;
|
|
this.allocationForm.refuseUser = res.data.handler;
|
|
|
|
+ this.allocationForm.recordId = res.data.recordId;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|