Skip to content

Commit

Permalink
fix(rup): solicitudes pierde el formato (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltergarrido authored Oct 16, 2020
1 parent 28e51f6 commit f7129e3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Output, Input, EventEmitter, OnInit } from '@angular/core';
import { Component, Output, Input, EventEmitter, OnInit, AfterViewInit } from '@angular/core';
import { RUPComponent } from './../core/rup.component';
import { RupElement } from '.';

Expand All @@ -7,12 +7,19 @@ import { RupElement } from '.';
templateUrl: 'solicitudPrestacionDefault.html'
})
@RupElement('SolicitudPrestacionDefaultComponent')
export class SolicitudPrestacionDefaultComponent extends RUPComponent implements OnInit {
export class SolicitudPrestacionDefaultComponent extends RUPComponent implements OnInit, AfterViewInit {

private listaPlanes: any = [];
public organizaciones: any[] = [];
afterInit = false;
// public puedeAutocitar: Boolean = false;

ngAfterViewInit() {
setTimeout(() => {
this.afterInit = true;
}, 300);
}

ngOnInit() {
if (!this.registro.valor) {
this.registro.valor = {
Expand All @@ -29,6 +36,8 @@ export class SolicitudPrestacionDefaultComponent extends RUPComponent implements
});
}



if (!this.soloValores) {
this.conceptObserverService.observe(this.registro).subscribe((data) => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<plex-text label="Diagnóstico/Motivo" multiline="true" autoFocus="1"
[(ngModel)]="registro.valor.solicitudPrestacion.motivo" name="motivo"></plex-text>
<plex-text label="Indicaciones" [html]="true" height=100
[(ngModel)]="registro.valor.solicitudPrestacion.indicaciones" name="indicaciones"></plex-text>
[(ngModel)]="registro.valor.solicitudPrestacion.indicaciones" name="indicaciones" *ngIf="afterInit">
</plex-text>

<!-- <plex-select [(ngModel)]="registro.valor?.solicitudPrestacion?Prestacion.profesionales" (getData)="loadProfesionales($event)" placeholder="Profesionales"
(change)="verificarAutocitacion()" labelField="apellido + ' ' + nombre" [multiple]="true" label="Profesional(es) destino">
Expand All @@ -28,7 +29,6 @@
</div>
<div>
<span>Indicaciones</span>

<span [innerHTML]="registro.valor.solicitudPrestacion.indicaciones"></span>
</div>
<div *ngIf="registro.valor?.solicitudPrestacion?.organizacionDestino">
Expand Down

0 comments on commit f7129e3

Please sign in to comment.