mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Fix
This commit is contained in:
@@ -64,15 +64,18 @@ export class DarParecerPage implements OnInit {
|
|||||||
}
|
}
|
||||||
console.log(body);
|
console.log(body);
|
||||||
|
|
||||||
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.processes.CompleteTask(body).toPromise();
|
await this.processes.CompleteTask(body).toPromise();
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
this.toastService.successMessage('Pedido de Parecer solicitado')
|
this.toastService.successMessage('Parecer enviado');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.toastService.badRequest("Pedido de Parecer não solicitado")
|
this.toastService.badRequest("Parecer não solicitado");
|
||||||
|
} finally {
|
||||||
|
loader.remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
removeAttachment(index: number){
|
removeAttachment(index: number){
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { CalendarComponent } from 'ionic2-calendar';
|
import { CalendarComponent } from 'ionic2-calendar';
|
||||||
|
|
||||||
import { DailyWorkTask, tasksList } from '../../../models/dailyworktask.model';
|
import { DailyWorkTask, tasksList } from '../../../models/dailyworktask.model';
|
||||||
import { ProcessesService } from 'src/app/services/processes.service';
|
import { ProcessesService } from 'src/app/services/processes.service';
|
||||||
import { formatDate } from '@angular/common';
|
|
||||||
import { ModalController, NavParams } from '@ionic/angular';
|
import { ModalController, NavParams } from '@ionic/angular';
|
||||||
import { ExpedienteDetailPage } from 'src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page';
|
|
||||||
import { AlertService } from 'src/app/services/alert.service';
|
import { AlertService } from 'src/app/services/alert.service';
|
||||||
|
|
||||||
import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
||||||
|
|||||||
@@ -27,6 +27,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
|
|
||||||
|
<div class="overflow-y-auto" style="margin-right: -20px; margin-right: -20px;">
|
||||||
<div class="middle-content">
|
<div class="middle-content">
|
||||||
<h5 *ngIf="intervenientes">Intervenientes</h5>
|
<h5 *ngIf="intervenientes">Intervenientes</h5>
|
||||||
<ion-item class="ion-no-margin ion-no-padding">
|
<ion-item class="ion-no-margin ion-no-padding">
|
||||||
@@ -66,6 +68,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div *ngIf="task" class="aside-right flex-column height-100">
|
<div *ngIf="task" class="aside-right flex-column height-100">
|
||||||
<div class="buttons" *ngIf="task.activityInstanceName == 'Tarefa de Despacho'">
|
<div class="buttons" *ngIf="task.activityInstanceName == 'Tarefa de Despacho'">
|
||||||
<button (click)="openAddNoteModal('Executado')" class="btn-cancel" shape="round" >Executado</button>
|
<button (click)="openAddNoteModal('Executado')" class="btn-cancel" shape="round" >Executado</button>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="title d-flex align-center">
|
<div class="title d-flex align-center">
|
||||||
<app-btn-modal-dismiss (click)="goBack()" ></app-btn-modal-dismiss>
|
<app-btn-modal-dismiss (click)="goBack()" ></app-btn-modal-dismiss>
|
||||||
|
|
||||||
<div class="thetitle"><ion-label >Despachos</ion-label></div>
|
<div class="title"><ion-label >Despachos</ion-label></div>
|
||||||
<div class="theicon btn-refresh">
|
<div class="theicon btn-refresh">
|
||||||
<button class="btn-no-color" (click)="doRefresh($event)">
|
<button class="btn-no-color" (click)="doRefresh($event)">
|
||||||
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
<ion-icon slot="end" class="title-icon" name="reload-circle"></ion-icon>
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
overflow:auto;
|
|
||||||
color:#000;
|
color:#000;
|
||||||
transform: translate3d(0, 1px, 0);
|
transform: translate3d(0, 1px, 0);
|
||||||
.title-content{
|
.title-content{
|
||||||
@@ -63,7 +62,6 @@ ion-button{
|
|||||||
.upper-content{
|
.upper-content{
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
margin-left: 41px;
|
margin-left: 41px;
|
||||||
overflow: auto;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|
||||||
.label{
|
.label{
|
||||||
|
|||||||
@@ -68,9 +68,8 @@ export class AllProcessesPage implements OnInit {
|
|||||||
this.allProcessesList = removeDuplicate( this.allProcessesList)
|
this.allProcessesList = removeDuplicate( this.allProcessesList)
|
||||||
this.allProcessesList = this.sortArrayISODate(this.allProcessesList).reverse();
|
this.allProcessesList = this.sortArrayISODate(this.allProcessesList).reverse();
|
||||||
});
|
});
|
||||||
//this.pendentesstore.reset(this.allProcessesList);
|
|
||||||
this.skeletonLoader = false;
|
|
||||||
|
|
||||||
|
this.skeletonLoader = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sortArrayISODate(myArray: any){
|
sortArrayISODate(myArray: any){
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
|
|
||||||
console.log('serialnumber', this.serialnumber)
|
console.log('serialnumber', this.serialnumber)
|
||||||
|
|
||||||
|
|
||||||
this.showEnviarPendentes = this.navParams.get('showEnviarPendentes');
|
this.showEnviarPendentes = this.navParams.get('showEnviarPendentes');
|
||||||
|
|
||||||
if(!this.showEnviarPendentes) this.showEnviarPendentes = false
|
if(!this.showEnviarPendentes) this.showEnviarPendentes = false
|
||||||
@@ -68,10 +67,9 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
if( window.innerWidth < 801){
|
if( window.innerWidth < 801){
|
||||||
this.popoverController.dismiss();
|
this.popoverController.dismiss('close');
|
||||||
}
|
} else {
|
||||||
else{
|
this.modalController.dismiss('close');
|
||||||
this.modalController.dismiss();
|
|
||||||
}
|
}
|
||||||
this.router.navigate(['/home/gabinete-digital/pedidos']);
|
this.router.navigate(['/home/gabinete-digital/pedidos']);
|
||||||
}
|
}
|
||||||
@@ -135,9 +133,6 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
this.distartExpedientModal();
|
this.distartExpedientModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.modalController.dismiss('close')
|
|
||||||
this.popoverController.dismiss('close')
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,9 +154,6 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
modal.onDidDismiss().then(res=>{
|
modal.onDidDismiss().then(res=>{
|
||||||
if(res['data']=='close'){
|
if(res['data']=='close'){
|
||||||
this.close();
|
this.close();
|
||||||
/* console.log('2Expedient Discard closed2');
|
|
||||||
this.close();
|
|
||||||
this.openMenu(); */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -258,12 +250,9 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
this.toastService.badRequest('Processo não arquivado')
|
this.toastService.badRequest('Processo não arquivado')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async openDarParecer(task: any) {
|
async openDarParecer(task: any) {
|
||||||
this.popoverController.dismiss('close');
|
|
||||||
// console.log(task);
|
|
||||||
|
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 800){
|
if( window.innerWidth <= 800){
|
||||||
@@ -281,12 +270,14 @@ export class RequestOptionsPage implements OnInit {
|
|||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss();
|
modal.onDidDismiss().then( () => {
|
||||||
|
this.popoverController.dismiss('close');
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async openDelegarModal(task: any) {
|
async openDelegarModal(task: any) {
|
||||||
this.popoverController.dismiss();
|
this.popoverController.dismiss();
|
||||||
// console.log(task);
|
|
||||||
|
|
||||||
let classs;
|
let classs;
|
||||||
if( window.innerWidth <= 800){
|
if( window.innerWidth <= 800){
|
||||||
|
|||||||
Reference in New Issue
Block a user