|
@@ -248,8 +248,8 @@ export default {
|
248
|
248
|
default: true
|
249
|
249
|
}
|
250
|
250
|
},
|
251
|
|
- watch:{
|
252
|
|
- 'taskForm.formId'(){
|
|
251
|
+ watch: {
|
|
252
|
+ 'taskForm.formId'() {
|
253
|
253
|
this.initForm();
|
254
|
254
|
}
|
255
|
255
|
},
|
|
@@ -486,6 +486,18 @@ export default {
|
486
|
486
|
});
|
487
|
487
|
const params = { taskId: this.taskForm.taskId };
|
488
|
488
|
getNextFlowNode(params).then(res => {
|
|
489
|
+ if (this.taskName == '保证金申请') {
|
|
490
|
+ let approvalList = [];
|
|
491
|
+ getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
|
|
492
|
+ let userId = res.data[0].userId;
|
|
493
|
+ approvalList.push(userId)
|
|
494
|
+ this.$set(this.taskForm.variables, "approvalList", approvalList);
|
|
495
|
+ complete(this.taskForm).then(response => {
|
|
496
|
+ this.$modal.msgSuccess(response.msg);
|
|
497
|
+ this.$emit('goBack')
|
|
498
|
+ })
|
|
499
|
+ })
|
|
500
|
+ }
|
489
|
501
|
if (this.taskName == '分管审批') {
|
490
|
502
|
let approvalList = [];
|
491
|
503
|
getUsersDeptLeaderByDept({ deptId: 106 }).then(res => {
|
|
@@ -518,9 +530,11 @@ export default {
|
518
|
530
|
});
|
519
|
531
|
const params = { taskId: this.taskForm.taskId };
|
520
|
532
|
getNextFlowNode(params).then(res => {
|
|
533
|
+ let approvalList = [];
|
521
|
534
|
getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
|
522
|
|
- let userId = res.data.userId;
|
523
|
|
- this.$set(this.taskForm.variables, "approval", userId);
|
|
535
|
+ let userId = res.data[0].userId;
|
|
536
|
+ approvalList.push(userId)
|
|
537
|
+ this.$set(this.taskForm.variables, "approvalList", approvalList);
|
524
|
538
|
complete(this.taskForm).then(response => {
|
525
|
539
|
this.$modal.msgSuccess(response.msg);
|
526
|
540
|
this.$emit('goBack')
|