This commit is contained in:
tiago.kayaya
2021-07-13 17:39:23 +01:00
parent 3bbab397be
commit 1c7cf39689
7 changed files with 224 additions and 222 deletions
@@ -76,7 +76,7 @@ export class ExpedienteDetailPage implements OnInit {
if(this.task.Status == "Pending" && this.caller != 'events'){
if (window.innerWidth <= 800) {
this.router.navigate(['/home/gabinete-digital/pendentes']);
}
}
else {
let navigationExtras: NavigationExtras = {
queryParams: {
@@ -92,7 +92,7 @@ export class ExpedienteDetailPage implements OnInit {
case 'events':
this.router.navigate(['/home',params["params"].caller]);
break;
case 'gabinete-digital':
let navigationExtras: NavigationExtras = {
queryParams: {
@@ -105,7 +105,7 @@ export class ExpedienteDetailPage implements OnInit {
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
}
break;
}
});
}
@@ -161,7 +161,7 @@ export class ExpedienteDetailPage implements OnInit {
console.log('this.task.DocumentURL', this.task.DocumentURL)
});
}
@@ -184,10 +184,10 @@ export class ExpedienteDetailPage implements OnInit {
viewDocument() {
this.processes.GetDocumentUrl(this.task.DocId, this.task.FsId).subscribe(res=>{
const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
const browser = this.iab.create(url,"_blank");
browser.show();
});
}
@@ -218,6 +218,7 @@ export class ExpedienteDetailPage implements OnInit {
}
else{
console.log('Not open');
this.goBack();
}
});
}
@@ -230,7 +231,7 @@ export class ExpedienteDetailPage implements OnInit {
cssClass: 'discart-expedient-modal',
backdropDismiss: false
});
await modal.present();
modal.onDidDismiss().then( async (res)=>{
console.log(res['data']);
@@ -248,7 +249,7 @@ export class ExpedienteDetailPage implements OnInit {
const loader = this.toastService.loading()
try {
try {
await this.processes.CompleteTask(otherbody).toPromise()
this.toastService.successMessage('Processo descartado');
this.goBack();
@@ -266,7 +267,7 @@ export class ExpedienteDetailPage implements OnInit {
else{
if(res['data']== 'Yes'){
const loader = this.toastService.loading()
try {
try {
await this.processes.CompleteTask(body).toPromise();
this.toastService.successMessage('Processo descartado');
this.goBack();
@@ -297,7 +298,7 @@ export class ExpedienteDetailPage implements OnInit {
async openBookMeetingModal(task: any) {
console.log(task);
let classs;
if( window.innerWidth <= 800){
classs = 'book-meeting-modal modal modal-desktop'
@@ -338,7 +339,7 @@ export class ExpedienteDetailPage implements OnInit {
}
});
}
async openOptions(taskAction?: any) {
const popover = await this.popoverController.create({