mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
fix box sixing
This commit is contained in:
@@ -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();
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user