fix box sixing

This commit is contained in:
Peter Maquiran
2023-05-18 17:40:52 +01:00
parent ef882e8ff1
commit a526b91532
36 changed files with 460 additions and 350 deletions
@@ -142,6 +142,7 @@ export class ExpedientePrPage implements OnInit {
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
this.httpErroHandle.httpsSucessMessagge('Enviar para Pendente')
this.TaskService.loadExpedientes()
this.goBack();
loader.remove()
},
@@ -310,6 +311,7 @@ export class ExpedientePrPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise();
this.close();
this.TaskService.loadExpedientes();
this.httpErroHandle.httpsSucessMessagge('Aprovar')
} catch(error) {
this.httpErroHandle.httpStatusHandle(error)
@@ -336,6 +338,7 @@ export class ExpedientePrPage implements OnInit {
await this.processes.CompleteTask(body).toPromise()
this.close();
this.httpErroHandle.httpsSucessMessagge('Rever')
this.TaskService.loadExpedientes()
} catch(error) {
this.httpErroHandle.httpStatusHandle(error)
} finally {
@@ -377,12 +380,14 @@ export class ExpedientePrPage implements OnInit {
Attachments: DocumentToSave,
}
if(actionName == 'Aprovar'){
if(actionName == 'Aprovar') {
this.approve(res.data.note, docs);
}
else if(actionName == 'Revisão'){
this.sendToReview(res.data.note, docs);
}
this.TaskService.loadExpedientes();
this.goBack();
}
});
@@ -421,6 +426,8 @@ export class ExpedientePrPage implements OnInit {
} finally {
loader.remove()
}
this.TaskService.loadExpedientes()
}
else{
this.close();
@@ -441,6 +448,7 @@ export class ExpedientePrPage implements OnInit {
modal.onDidDismiss().then( async (res)=>{
this.TaskService.loadExpedientes()
if(body == 'descartar') {
if(res['data']== 'Yes'){
let otherbody = {
@@ -576,7 +584,9 @@ export class ExpedientePrPage implements OnInit {
},
translucent: true
});
return await popover.present();
return await popover.present().then(() => {
this.TaskService.loadExpedientes();
})
}
}