mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fix
This commit is contained in:
@@ -55,7 +55,7 @@ export class DeplomaOptionsPage implements OnInit {
|
||||
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss().then(res => {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
if(res.data){
|
||||
|
||||
|
||||
@@ -73,11 +73,11 @@ export class DeplomaOptionsPage implements OnInit {
|
||||
|
||||
|
||||
if(actionName == 'Solicitar assinatura'){
|
||||
this.askSignature(res.data.note, docs);
|
||||
await this.askSignature(res.data.note, docs);
|
||||
this.goBack();
|
||||
}
|
||||
else if(actionName == 'Solicitar alteração'){
|
||||
this.askToChange(res.data.note, docs);
|
||||
await this.askToChange(res.data.note, docs);
|
||||
this.goBack();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss().then(res => {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
console.log(res);
|
||||
if(res.data) {
|
||||
|
||||
@@ -195,19 +195,19 @@ export class DespachosOptionsPage implements OnInit {
|
||||
}
|
||||
|
||||
if(actionName == 'Executado'){
|
||||
this.executado(res.data.note, docs);
|
||||
await this.executado(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Arquivar'){
|
||||
this.arquivar(res.data.note, docs);
|
||||
await this.arquivar(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Gerar Diploma'){
|
||||
this.generateDiploma(res.data.note, docs);
|
||||
await this.generateDiploma(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Concluido'){
|
||||
//this.concluir(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Reexecução'){
|
||||
this.reexecutar(res.data.note, docs);
|
||||
await this.reexecutar(res.data.note, docs);
|
||||
}
|
||||
this.goBack();
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ export class DespachosPrOptionsPage implements OnInit {
|
||||
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss().then(res => {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
console.log(res);
|
||||
if(res.data){
|
||||
|
||||
@@ -230,19 +230,19 @@ export class DespachosPrOptionsPage implements OnInit {
|
||||
}
|
||||
|
||||
if(actionName == 'Executado'){
|
||||
this.executado(res.data.note, docs);
|
||||
await this.executado(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Arquivar'){
|
||||
this.arquivar(res.data.note, docs);
|
||||
await this.arquivar(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Gerar Diploma'){
|
||||
this.generateDiploma(res.data.note, docs);
|
||||
await this.generateDiploma(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Concluido'){
|
||||
//this.concluir(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Reexecução'){
|
||||
this.reexecutar(res.data.note, docs);
|
||||
await this.reexecutar(res.data.note, docs);
|
||||
}
|
||||
this.goBack();
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ export class OptsExpedientePrPage implements OnInit {
|
||||
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss().then(res => {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
console.log(res);
|
||||
if(res.data){
|
||||
const DocumentToSave = res.data.documents.map((e) => {
|
||||
@@ -106,10 +106,10 @@ export class OptsExpedientePrPage implements OnInit {
|
||||
}
|
||||
|
||||
if(actionName == 'Aprovar'){
|
||||
this.approve(res.data.note, docs);
|
||||
await this.approve(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Revisão'){
|
||||
this.sendToReview(res.data.note, docs);
|
||||
await this.sendToReview(res.data.note, docs);
|
||||
}
|
||||
this.goBack();
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ export class RequestOptionsPage implements OnInit {
|
||||
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss().then(res => {
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
|
||||
|
||||
const DocumentToSave = res.data.documents.map((e) => {
|
||||
@@ -218,10 +218,10 @@ export class RequestOptionsPage implements OnInit {
|
||||
if(res.data){
|
||||
if(actionName == 'Solicitar Reapreciação') {
|
||||
|
||||
this.repreciar(res.data.note, docs);
|
||||
await this.repreciar(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Arquivar'){
|
||||
this.arquivar(res.data.note, docs);
|
||||
await this.arquivar(res.data.note, docs);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user