mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Improve
This commit is contained in:
@@ -1,21 +1,18 @@
|
|||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border px-20">
|
||||||
<app-header></app-header>
|
<app-header></app-header>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div class="main-content d-flex height-100">
|
<div class="main-content d-flex height-100">
|
||||||
<div class="content d-flex flex-column" *ngIf="task">
|
<div class="content d-flex flex-column px-20" *ngIf="task">
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
<div class="title-content width-100 d-flex justify-space-between">
|
<div class="title-content width-100 d-flex justify-space-between">
|
||||||
<div class="font-30 cursor-pointer" (click)="goBack()" defaultHref="#">
|
<div class="font-30 cursor-pointer" (click)="goBack()" defaultHref="#">
|
||||||
<ion-icon slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
<ion-icon slot="end" src='assets/images/icons-arrow-arrow-left.svg'></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="middle d-flex align-center flex-grow-1">
|
<div class="middle d-flex align-center flex-grow-1">
|
||||||
<ion-label class="title">{{ task.Folio}}</ion-label>
|
<div class="title">{{ task.Folio}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="div-icon" (click)="openOptions()">
|
<div class="div-icon" (click)="openOptions()">
|
||||||
<!-- <ion-menu-button autoHide="false">
|
|
||||||
<ion-icon name="ellipsis-vertical-outline"></ion-icon>
|
|
||||||
</ion-menu-button> -->
|
|
||||||
<ion-icon class="font-25 cursor-pointer" src="assets/images/icons-menu.svg"></ion-icon>
|
<ion-icon class="font-25 cursor-pointer" src="assets/images/icons-menu.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -29,6 +26,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
|
|
||||||
|
<div class="overflow-y-auto px-20">
|
||||||
<div class="middle-content" >
|
<div class="middle-content" >
|
||||||
<div *ngIf="intervenientes.length > 0">
|
<div *ngIf="intervenientes.length > 0">
|
||||||
<h5 >Intervenientes</h5>
|
<h5 >Intervenientes</h5>
|
||||||
@@ -75,7 +74,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="task" class="aside-right flex-column height-100">
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="task" class="aside-right flex-column height-100 px-20">
|
||||||
<div class="buttons" *ngIf="task.activityInstanceName == 'Tarefa de Despacho'">
|
<div class="buttons" *ngIf="task.activityInstanceName == 'Tarefa de Despacho'">
|
||||||
<div class="option-desc"> <div>Responder ao PR</div> </div>
|
<div class="option-desc"> <div>Responder ao PR</div> </div>
|
||||||
<button (click)="openAddNoteModal('Executado')" class="btn-cancel mb-0" style="margin-bottom: 0px !important;" shape="round" >Executado</button>
|
<button (click)="openAddNoteModal('Executado')" class="btn-cancel mb-0" style="margin-bottom: 0px !important;" shape="round" >Executado</button>
|
||||||
@@ -100,7 +101,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="!task">
|
<div *ngIf="!task" class="px-20">
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-list-header>
|
<ion-list-header>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
border-top-right-radius: 25px;
|
border-top-right-radius: 25px;
|
||||||
}
|
}
|
||||||
.content{
|
.content{
|
||||||
padding: 30px 20px 0 20px !important;
|
padding: 30px 00px 0 00px !important;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,10 +50,8 @@ export class DespachoPrPage implements OnInit {
|
|||||||
private menu: MenuController,
|
private menu: MenuController,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private alertService: AlertService,
|
|
||||||
public popoverController: PopoverController,
|
public popoverController: PopoverController,
|
||||||
private activatedRoute: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
private animationController: AnimationController,
|
|
||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
private location: Location,
|
private location: Location,
|
||||||
) {
|
) {
|
||||||
@@ -510,7 +508,17 @@ export class DespachoPrPage implements OnInit {
|
|||||||
},
|
},
|
||||||
translucent: true
|
translucent: true
|
||||||
});
|
});
|
||||||
return await popover.present();
|
|
||||||
|
await popover.present();
|
||||||
|
|
||||||
|
popover.onDidDismiss().then(( res =>{
|
||||||
|
|
||||||
|
if( res['data'] == 'close') {
|
||||||
|
this.goBack()
|
||||||
|
}
|
||||||
|
|
||||||
|
}))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,21 +4,15 @@ import { AttachmentsService } from 'src/app/services/attachments.service';
|
|||||||
import { EventsService } from 'src/app/services/events.service';
|
import { EventsService } from 'src/app/services/events.service';
|
||||||
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||||
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
|
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
|
||||||
import { formatDate } from '@angular/common';
|
|
||||||
import { AnimationController, MenuController, ModalController, PopoverController } from '@ionic/angular';
|
import { AnimationController, MenuController, ModalController, PopoverController } from '@ionic/angular';
|
||||||
import { AlertService } from 'src/app/services/alert.service';
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
import { ViewEventPage } from 'src/app/pages/agenda/view-event/view-event.page';
|
|
||||||
import { momentG } from 'src/plugin/momentG'
|
|
||||||
import { CreateProcessPage } from 'src/app/modals/create-process/create-process.page';
|
import { CreateProcessPage } from 'src/app/modals/create-process/create-process.page';
|
||||||
import { DelegarPage } from 'src/app/modals/delegar/delegar.page';
|
import { DelegarPage } from 'src/app/modals/delegar/delegar.page';
|
||||||
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
|
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
|
||||||
import { OptsExpedientePage } from 'src/app/shared/popover/opts-expediente/opts-expediente.page';
|
|
||||||
import { BadRequestPage } from 'src/app/shared/popover/bad-request/bad-request.page';
|
|
||||||
import { SuccessMessagePage } from 'src/app/shared/popover/success-message/success-message.page';
|
|
||||||
import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
|
import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
|
||||||
import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page';
|
import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page';
|
||||||
import { ToastService } from 'src/app/services/toast.service';
|
import { ToastService } from 'src/app/services/toast.service';
|
||||||
|
import { Location } from '@angular/common'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-despachos-pr-options',
|
selector: 'app-despachos-pr-options',
|
||||||
@@ -45,7 +39,8 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
public popoverController: PopoverController,
|
public popoverController: PopoverController,
|
||||||
private activatedRoute: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
private animationController: AnimationController,
|
private animationController: AnimationController,
|
||||||
private toastService: ToastService) { }
|
private toastService: ToastService,
|
||||||
|
private location: Location,) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
@@ -92,10 +87,12 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.popoverController.dismiss('close')
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
sendExpedienteToPending(){
|
sendExpedienteToPending() {
|
||||||
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
this.processes.SetTaskToPending(this.serialnumber).subscribe(res=>{
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.close();
|
this.close();
|
||||||
@@ -127,6 +124,7 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
this.close();
|
this.close();
|
||||||
this.openMenu(); */
|
this.openMenu(); */
|
||||||
}
|
}
|
||||||
|
this.popoverController.dismiss('close')
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user