mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve task options
This commit is contained in:
@@ -11,7 +11,8 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
path: 'empty-chat',
|
path: 'empty-chat',
|
||||||
loadChildren: () => import('./shared/chat/empty-chat/empty-chat.module').then( m => m.EmptyChatPageModule)
|
loadChildren: () => import('./shared/chat/empty-chat/empty-chat.module').then( m => m.EmptyChatPageModule)
|
||||||
},
|
},
|
||||||
@@ -91,6 +92,10 @@ const routes: Routes = [
|
|||||||
path: 'diplomas-assinar',
|
path: 'diplomas-assinar',
|
||||||
loadChildren: () => import('./shared/gabinete-digital/diplomas-assinar/diplomas-assinar.module').then( m => m.DiplomasAssinarPageModule)
|
loadChildren: () => import('./shared/gabinete-digital/diplomas-assinar/diplomas-assinar.module').then( m => m.DiplomasAssinarPageModule)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'opts-expediente-pr',
|
||||||
|
loadChildren: () => import('./shared/popover/opts-expediente-pr/opts-expediente-pr.module').then( m => m.OptsExpedientePrPageModule)
|
||||||
|
},
|
||||||
|
|
||||||
/* {
|
/* {
|
||||||
path: 'chat',
|
path: 'chat',
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path:'expediente-task-modal',
|
path:'expediente-task-modal',
|
||||||
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module').then(m => m.ExpedientTaskModalPageModule),
|
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.module').then(m => m.ExpedientTaskModalPageModule),
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -186,6 +186,10 @@ const routes: Routes = [
|
|||||||
path:'new-publication',
|
path:'new-publication',
|
||||||
loadChildren: ()=> import('../shared/publication/new-publication/new-publication.module').then(m => m.NewPublicationPageModule)
|
loadChildren: ()=> import('../shared/publication/new-publication/new-publication.module').then(m => m.NewPublicationPageModule)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'request-options',
|
||||||
|
loadChildren: () => import('../shared/popover/request-options/request-options.module').then( m => m.RequestOptionsPageModule)
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -170,10 +170,6 @@ export class DelegarPage implements OnInit {
|
|||||||
this.taskParticipants = taskParticipants;
|
this.taskParticipants = taskParticipants;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async successMessage(message?: string) {
|
async successMessage(message?: string) {
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
padding-top: 0px !important;
|
padding-top: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.title{
|
.title{
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { DailyWorkTask } from '../../../../models/dailyworktask.model';
|
|||||||
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
|
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
|
||||||
import { formatDate } from '@angular/common';
|
import { formatDate } from '@angular/common';
|
||||||
import { Event } from '../../../../models/event.model';
|
import { Event } from '../../../../models/event.model';
|
||||||
import { MenuController, ModalController, PopoverController } from '@ionic/angular';
|
import { MenuController, ModalController, NavParams, 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 { ViewEventPage } from 'src/app/pages/agenda/view-event/view-event.page';
|
||||||
import { momentG } from 'src/plugin/momentG'
|
import { momentG } from 'src/plugin/momentG'
|
||||||
@@ -20,6 +20,7 @@ import { AuthService } from 'src/app/services/auth.service';
|
|||||||
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
|
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
|
||||||
import { BadRequestComponent } from 'src/app/shared/popover/bad-request/bad-request.component';
|
import { BadRequestComponent } from 'src/app/shared/popover/bad-request/bad-request.component';
|
||||||
import { SuccessMessageComponent } from 'src/app/shared/popover/success-message/success-message.component';
|
import { SuccessMessageComponent } from 'src/app/shared/popover/success-message/success-message.component';
|
||||||
|
import { OptsExpedientePrPage } from 'src/app/shared/popover/opts-expediente-pr/opts-expediente-pr.page';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-expediente-pr',
|
selector: 'app-expediente-pr',
|
||||||
@@ -394,7 +395,7 @@ export class ExpedientePrPage implements OnInit {
|
|||||||
|
|
||||||
async openOptions(taskAction: any) {
|
async openOptions(taskAction: any) {
|
||||||
const popover = await this.popoverController.create({
|
const popover = await this.popoverController.create({
|
||||||
component: OptsExpedientePage,
|
component: OptsExpedientePrPage,
|
||||||
cssClass: 'exp-options',
|
cssClass: 'exp-options',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
task: this.task,
|
task: this.task,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<ion-label class="title">{{ task.Folio}}</ion-label>
|
<ion-label class="title">{{ task.Folio}}</ion-label>
|
||||||
</div>
|
</div>
|
||||||
<div class="div-icon">
|
<div class="div-icon">
|
||||||
<div autoHide="false" class="d-flex">
|
<div autoHide="false" class="d-flex" (click)="openOptions()">
|
||||||
<ion-icon class="font-30 cursor-pointer" src="assets/images/icons-menu.svg"></ion-icon>
|
<ion-icon class="font-30 cursor-pointer" src="assets/images/icons-menu.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { DailyWorkTask } from '../../../../models/dailyworktask.model';
|
|||||||
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
|
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
|
||||||
import { formatDate } from '@angular/common';
|
import { formatDate } from '@angular/common';
|
||||||
import { Event } from '../../../../models/event.model';
|
import { Event } from '../../../../models/event.model';
|
||||||
import { MenuController, ModalController } from '@ionic/angular';
|
import { 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 { ViewEventPage } from 'src/app/pages/agenda/view-event/view-event.page';
|
||||||
import { momentG } from 'src/plugin/momentG'
|
import { momentG } from 'src/plugin/momentG'
|
||||||
@@ -18,6 +18,8 @@ import { CreateProcessPage } from 'src/app/modals/create-process/create-process.
|
|||||||
import { DelegarPage } from 'src/app/modals/delegar/delegar.page';
|
import { DelegarPage } from 'src/app/modals/delegar/delegar.page';
|
||||||
import { DarParecerPage } from 'src/app/modals/dar-parecer/dar-parecer.page';
|
import { DarParecerPage } from 'src/app/modals/dar-parecer/dar-parecer.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 { RequestOptionsPage } from 'src/app/shared/popover/request-options/request-options.page';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-pedido',
|
selector: 'app-pedido',
|
||||||
@@ -47,13 +49,14 @@ export class PedidoPage implements OnInit {
|
|||||||
private menu: MenuController,
|
private menu: MenuController,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private alertService: AlertService) {
|
private alertService: AlertService,
|
||||||
|
public popoverController: PopoverController) {
|
||||||
this.activatedRoute.queryParams.subscribe(params => {
|
this.activatedRoute.queryParams.subscribe(params => {
|
||||||
if(params["serialNumber"]) {
|
if(params["serialNumber"]) {
|
||||||
this.serialnumber = params["serialNumber"];
|
this.serialnumber = params["serialNumber"];
|
||||||
// console.log(params["serialNumber"]);
|
// console.log(params["serialNumber"]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -157,6 +160,23 @@ export class PedidoPage implements OnInit {
|
|||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async openOptions(taskAction?: any) {
|
||||||
|
const popover = await this.popoverController.create({
|
||||||
|
component: RequestOptionsPage,
|
||||||
|
cssClass: 'exp-options',
|
||||||
|
componentProps: {
|
||||||
|
task: this.task,
|
||||||
|
fulltask: this.fulltask,
|
||||||
|
taskAction:taskAction,
|
||||||
|
showEnviarPendentes: false
|
||||||
|
},
|
||||||
|
translucent: true
|
||||||
|
});
|
||||||
|
return await popover.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
repreciar(note:string, documents:any) {
|
repreciar(note:string, documents:any) {
|
||||||
let body = {
|
let body = {
|
||||||
"serialNumber": this.serialnumber,
|
"serialNumber": this.serialnumber,
|
||||||
|
|||||||
@@ -91,16 +91,16 @@ export class PedidosPage implements OnInit {
|
|||||||
this.router.navigate(['/home/gabinete-digital/pedidos/pedido'], navigationExtras);
|
this.router.navigate(['/home/gabinete-digital/pedidos/pedido'], navigationExtras);
|
||||||
}
|
}
|
||||||
|
|
||||||
notImplemented(){
|
notImplemented(){
|
||||||
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
||||||
}
|
}
|
||||||
|
|
||||||
openExpedientDetailPage(data){
|
openExpedientDetailPage(data){
|
||||||
console.log(data);
|
console.log(data);
|
||||||
this.openExpedientDetail.emit(data);
|
this.openExpedientDetail.emit(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadList(){
|
LoadList(){
|
||||||
if(this.segment == 'parecer'){
|
if(this.segment == 'parecer'){
|
||||||
this.taskType = "Pedido de Parecer";
|
this.taskType = "Pedido de Parecer";
|
||||||
this.processes.GetTasksList("Pedido de Parecer", false).subscribe(result => {
|
this.processes.GetTasksList("Pedido de Parecer", false).subscribe(result => {
|
||||||
@@ -159,11 +159,11 @@ export class PedidosPage implements OnInit {
|
|||||||
console.log(this.taskType);
|
console.log(this.taskType);
|
||||||
}
|
}
|
||||||
|
|
||||||
doRefresh() {
|
doRefresh() {
|
||||||
this.LoadList();
|
this.LoadList();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
async viewPedidoDetail(serialNumber:any) {
|
async viewPedidoDetail(serialNumber:any) {
|
||||||
console.log(this.profile);
|
console.log(this.profile);
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<ion-icon slot="start" src="assets/images/icons-location.svg"></ion-icon>
|
<ion-icon slot="start" src="assets/images/icons-location.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="ion-input-class">
|
<div class="ion-input-class">
|
||||||
<ion-input placeholder="Localização" [(ngModel)]="Location"></ion-input>
|
<ion-input placeholder="Localização" [(ngModel)]="eventProcess.workflowInstanceDataFields.Location"></ion-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Error messages -->
|
<!-- Error messages -->
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
<div class="ion-input-class width-100">
|
<div class="ion-input-class width-100">
|
||||||
<ion-datetime
|
<ion-datetime
|
||||||
placeholder="Início"
|
placeholder="Início"
|
||||||
[(ngModel)]="eventProcess.taskStartDate"
|
[(ngModel)]="eventProcess.workflowInstanceDataFields.StartDate"
|
||||||
displayFormat="D MMM YYYY H:mm"
|
displayFormat="D MMM YYYY H:mm"
|
||||||
minuteValues="0,15,30,45"
|
minuteValues="0,15,30,45"
|
||||||
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
monthShortNames="Jan, Fev, Mar, Abr, Mai, Jun, Jul, Aug, Sep, Out, Nov, Dez"
|
||||||
|
|||||||
@@ -134,10 +134,10 @@ export class PedidosPage implements OnInit {
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
goToPedido(serialNumber:any){
|
goToPedido(serialNumber:any) {
|
||||||
let navigationExtras: NavigationExtras = {
|
let navigationExtras: NavigationExtras = {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
"serialNumber": serialNumber,
|
"serialNumber": serialNumber,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.router.navigate(['/home/gabinete-digital/pedidos/pedido'], navigationExtras);
|
this.router.navigate(['/home/gabinete-digital/pedidos/pedido'], navigationExtras);
|
||||||
|
|||||||
Reference in New Issue
Block a user