mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Expediente and pedidos store created and added to expediente and pedidos page
This commit is contained in:
@@ -10,6 +10,8 @@ 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 { PedidoPage } from 'src/app/pages/gabinete-digital/pedidos/pedido/pedido.page';
|
||||
import { PendentesStore } from 'src/app/store/pendestes-store.service';
|
||||
import { PedidosStore } from 'src/app/store/pedidos-store.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-pedidos',
|
||||
@@ -38,6 +40,7 @@ export class PedidosPage implements OnInit {
|
||||
@Input() segment:string;
|
||||
@Output() openPedido:EventEmitter<any> = new EventEmitter<any>();
|
||||
skeletonLoader = true
|
||||
pedidosstore = PedidosStore;
|
||||
|
||||
constructor(
|
||||
private router: Router,
|
||||
@@ -121,6 +124,7 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
this.parecerList.push(task);
|
||||
});
|
||||
this.pedidosstore.resetparecer(this.parecerList);
|
||||
|
||||
}
|
||||
else if(this.segment == 'deferimento') {
|
||||
@@ -155,6 +159,7 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
this.deferimentoList.push(task);
|
||||
});
|
||||
this.pedidosstore.resetdeferimento(this.deferimentoList);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user