diff --git a/src/app/modals/create-process/create-process.page.ts b/src/app/modals/create-process/create-process.page.ts index 3e973bf34..b8a497039 100644 --- a/src/app/modals/create-process/create-process.page.ts +++ b/src/app/modals/create-process/create-process.page.ts @@ -219,7 +219,6 @@ export class CreateProcessPage implements OnInit { try { await this.processes.postParecer(this.postData).toPromise(); - this.FinalizarParecer('Pedido de Parecer enviado'); } catch (error) { @@ -364,7 +363,7 @@ export class CreateProcessPage implements OnInit { } async FinalizarDespacho(message?) { - + let body; if(this.task.activityInstanceName =='Tarefa de Despacho' || @@ -382,7 +381,7 @@ export class CreateProcessPage implements OnInit { } else if(this.task.activityInstanceName =='Concluir Despacho' || this.task.activityInstanceName == 'Concluir Parecer' || - this.task.activityInstanceName =='Concluir de Deferimento' || + this.task.activityInstanceName =='Concluir Deferimento' || this.task.activityInstanceName =='Reapreciar Deferimento' ) { @@ -395,9 +394,9 @@ export class CreateProcessPage implements OnInit { }, "AttachmentList" :null, } - } - + console.log(body); + try { await this.processes.CompleteTask(body).toPromise(); this.toastService.successMessage(message); diff --git a/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts b/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts index 6b20bd5dc..d94f49595 100644 --- a/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts +++ b/src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts @@ -283,7 +283,7 @@ export class PedidoPage implements OnInit { const modal = await this.modalController.create({ component: BookMeetingModalPage, componentProps: { - task: this.task, + task: task, }, cssClass: classs, backdropDismiss: false