mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
improve
This commit is contained in:
@@ -318,10 +318,10 @@ export class DespachoPage implements OnInit {
|
||||
|
||||
try {
|
||||
await this.despachoService.arquivar(note, documents, this.serialnumber).toPromise()
|
||||
this.toastService.successMessage('Processo descartado')
|
||||
this.toastService._successMessage('Processo descartado')
|
||||
this.close();
|
||||
} catch (error) {
|
||||
this.toastService.badRequest("Processo não descartado")
|
||||
this.toastService._badRequest("Processo não descartado")
|
||||
}
|
||||
finally {
|
||||
loader.remove()
|
||||
@@ -371,10 +371,10 @@ export class DespachoPage implements OnInit {
|
||||
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.toastService.successMessage()
|
||||
this.toastService._successMessage()
|
||||
this.close();
|
||||
} catch (error) {
|
||||
this.toastService.badRequest()
|
||||
this.toastService._badRequest()
|
||||
} finally {
|
||||
loader.remove()
|
||||
}
|
||||
@@ -390,10 +390,10 @@ export class DespachoPage implements OnInit {
|
||||
|
||||
this.despachoService.sendExpedienteToPending(this.serialnumber).subscribe(res => {
|
||||
this.goBack();
|
||||
this.toastService.successMessage()
|
||||
this.toastService._successMessage()
|
||||
},
|
||||
error => {
|
||||
this.toastService.badRequest("Processo não enviado para despacho")
|
||||
this.toastService._badRequest("Processo não enviado para despacho")
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -549,7 +549,7 @@ export class GabineteDigitalPage implements OnInit, DoCheck {
|
||||
this.loadCount = true;
|
||||
}
|
||||
|
||||
let allProcessesList = allPreocesses_;
|
||||
let allProcessesList = allPreocesses_ || [];
|
||||
|
||||
allProcessesList = allProcessesList.filter(element => element.activityInstanceName != 'Conhecimento')
|
||||
allProcessesList = allProcessesList.filter(element => element.activityInstanceName != 'Revisar Diploma')
|
||||
|
||||
Reference in New Issue
Block a user