|
@@ -444,23 +444,68 @@ export default {
|
444
|
444
|
});
|
445
|
445
|
toast.show();
|
446
|
446
|
let postData = {};
|
447
|
|
- if(isRadioUser){
|
448
|
|
- postData = {
|
449
|
|
- assginee: selectUserId,
|
450
|
|
- incId: this.modelsData.assignee ? this.modelsData.id : undefined,
|
451
|
|
- handlerIncidentId: this.modelsData.state.value === 'handler' ? this.modelsData.id : undefined,
|
452
|
|
- incidentId: this.modelsData.assignee ? undefined : this.modelsData.id,
|
453
|
|
- taskType: this.modelsData.state.value == 'handler' ? 'handlerform' : (this.modelsData.state.value == 'pending' ? 'receiveform' : undefined)
|
454
|
|
- };
|
455
|
|
- }else{
|
456
|
|
- postData = {
|
457
|
|
- group: selectGroupId,
|
458
|
|
- taskType: this.modelsData.state.value == 'handler' ? 'handlerform' : (this.modelsData.state.value == 'pending' ? 'receiveform' : undefined)
|
459
|
|
- };
|
460
|
|
- console.log(postData)
|
|
447
|
+ if(selectUserId){
|
|
448
|
+ // 派人
|
|
449
|
+ // 接单
|
|
450
|
+ if(this.modelsData.state.value == 'pending'){
|
|
451
|
+ postData = {
|
|
452
|
+ type: 'receiveAssginee',
|
|
453
|
+ userId: selectUserId,
|
|
454
|
+ taskId: this.modelsData.taskId,
|
|
455
|
+ incidentId: this.modelsData.id,
|
|
456
|
+ }
|
|
457
|
+ }
|
|
458
|
+ // 处理中
|
|
459
|
+ if(this.modelsData.state.value == 'handler'){
|
|
460
|
+ postData = {
|
|
461
|
+ type: 'handlerAssginee',
|
|
462
|
+ userId: selectUserId,
|
|
463
|
+ taskId: this.modelsData.taskId,
|
|
464
|
+ incidentId: this.modelsData.id,
|
|
465
|
+ }
|
|
466
|
+ }
|
|
467
|
+ } else if(selectGroupId){
|
|
468
|
+ // 派组
|
|
469
|
+ // 接单,派组
|
|
470
|
+ if(this.modelsData.state.value == 'pending'){
|
|
471
|
+ postData = {
|
|
472
|
+ type: 'receiveGroup',
|
|
473
|
+ groupId: selectGroupId,
|
|
474
|
+ taskId: this.modelsData.taskId,
|
|
475
|
+ activityId: 'usertask5',
|
|
476
|
+ executionId: this.modelsData.processInstanceId,
|
|
477
|
+ incidentId: this.modelsData.id,
|
|
478
|
+ }
|
|
479
|
+ }
|
|
480
|
+ // 处理中
|
|
481
|
+ if(this.modelsData.state.value == 'handler'){
|
|
482
|
+ postData = {
|
|
483
|
+ type: 'handlerGroup',
|
|
484
|
+ groupId: selectGroupId,
|
|
485
|
+ taskId: this.modelsData.taskId,
|
|
486
|
+ activityId: 'usertask5',
|
|
487
|
+ executionId: this.modelsData.processInstanceId,
|
|
488
|
+ incidentId: this.modelsData.id,
|
|
489
|
+ }
|
|
490
|
+ }
|
461
|
491
|
}
|
|
492
|
+ // if(isRadioUser){
|
|
493
|
+ // postData = {
|
|
494
|
+ // assginee: selectUserId,
|
|
495
|
+ // incId: this.modelsData.assignee ? this.modelsData.id : undefined,
|
|
496
|
+ // handlerIncidentId: this.modelsData.state.value === 'handler' ? this.modelsData.id : undefined,
|
|
497
|
+ // incidentId: this.modelsData.assignee ? undefined : this.modelsData.id,
|
|
498
|
+ // taskType: this.modelsData.state.value == 'handler' ? 'handlerform' : (this.modelsData.state.value == 'pending' ? 'receiveform' : undefined)
|
|
499
|
+ // };
|
|
500
|
+ // }else{
|
|
501
|
+ // postData = {
|
|
502
|
+ // group: selectGroupId,
|
|
503
|
+ // taskType: this.modelsData.state.value == 'handler' ? 'handlerform' : (this.modelsData.state.value == 'pending' ? 'receiveform' : undefined)
|
|
504
|
+ // };
|
|
505
|
+ // console.log(postData)
|
|
506
|
+ // }
|
462
|
507
|
this.$http
|
463
|
|
- .post("service/bpm/bpm/delegateTask/" + this.modelsData.taskId, postData)
|
|
508
|
+ .post("service/bpm/bpm/delegateTask2", postData)
|
464
|
509
|
.then(res => {
|
465
|
510
|
toast.hide();
|
466
|
511
|
this.models.disjunctor = false;
|