This commit is contained in:
tiago.kayaya
2021-05-04 17:03:44 +01:00
parent 29987825e0
commit a84bc7fb57
12 changed files with 312 additions and 42 deletions
@@ -114,7 +114,7 @@
<button (click)="sendExpedienteToPending()" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
</div>
<div class="buttons" *ngIf="task.WorkflowName == 'Pedido de Parecer'">
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Dar meu Parecer</button>
<button (click)="openDarParecer()" class="btn-cancel" shape="round" >Dar meu Parecer</button>
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
<button (click)="sendExpedienteToPending()" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
</div>
@@ -16,6 +16,7 @@ import { ExpedientTaskModalPage } from '../../expediente/expedient-task-modal/ex
import { BookMeetingModalPage } from '../../expediente/book-meeting-modal/book-meeting-modal.page';
import { CreateProcessPage } from 'src/app/modals/create-process/create-process.page';
import { DelegarPage } from 'src/app/modals/delegar/delegar.page';
import { DarParecerPage } from 'src/app/modals/dar-parecer/dar-parecer.page';
@Component({
selector: 'app-pedido',
@@ -326,5 +327,26 @@ export class PedidoPage implements OnInit {
await modal.present();
modal.onDidDismiss();
}
async openDarParecer(task: any) {
console.log(task);
let classs;
if( window.innerWidth <= 800){
classs = 'book-meeting-modal modal modal-desktop'
} else {
classs = 'modal modal-desktop showAsideOptions'
}
const modal = await this.modalController.create({
component: DarParecerPage,
componentProps: {
task: this.task,
},
cssClass: classs,
backdropDismiss: false
});
await modal.present();
modal.onDidDismiss();
}
}
@@ -11,10 +11,10 @@
<ion-toolbar>
<ion-segment [(ngModel)]="segment" (ionChange)="segmentChanged($event)">
<ion-segment-button value="parecer">
Pedidos de Parecer
Parecer
</ion-segment-button>
<ion-segment-button value="deferimento">
Pedidos de Defereimento
Defereimento
</ion-segment-button>
</ion-segment>
</ion-toolbar>