-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MISC - Agregar filtro por conceptos en el reporte c2 #2634
Conversation
} | ||
if (tipo === 'reporte') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
if (tipo === 'reporte') { | |
} else if (tipo === 'reporte') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corregido!
(value.value) ? this.parametros['cie10'] = this.cie10.codigo : this.parametros['cie10'] = null; | ||
} | ||
if (tipo === 'reporte') { | ||
(this.tipoReportes?.nombre === 'Reporte C2') ? this.reportes = false : this.reportes = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(this.tipoReportes?.nombre === 'Reporte C2') ? this.reportes = false : this.reportes = true; | |
this.reportes = this.tipoReportes?.nombre === 'Reporte C2'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corregido.
@@ -175,4 +182,22 @@ export class EncabezadoReportesComponent implements OnInit { | |||
add(a, b) { | |||
return a + b; | |||
} | |||
|
|||
codigoCIE10(event) { | |||
if (event && event.query) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (event && event.query) { | |
if (event?.query) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corregido.
}; | ||
this.cie10Service.get(query).subscribe((datos) => { | ||
// mapeamos para mostrar el codigo primero y luego la descripcion | ||
datos.map(dato => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
map
si obtenemos un nuevo array, sino forEach
datos.map(dato => { | |
datos.forEach(dato => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O mejor:
const cie10s = datos.map(dato => ({
id: dato.id,
nombre: `(${dato.codigo}) ${dato.nombre}`
}))
La explicación seria que en lugar de mandar el array con los objetos completos, retornamos unicamente las tuplas id, nombre
que son los datos que necesitamos para desplegar las opciones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corregido!
031881d
to
1f6c825
Compare
1f6c825
to
f2194a8
Compare
@@ -18,12 +18,16 @@ | |||
(change)="refreshSelection($event,'zonaSanitaria')" [(ngModel)]="zonaSanitaria" | |||
name="zona" [readonly]="totalOrganizaciones"> | |||
</plex-select> | |||
<plex-select [data]="organizaciones$ | async" label="Organización" | |||
<plex-select tmOrganizaciones label="Organización" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ojo!! se estas cambiando lo que hiciste acá https://github.com/andes/app/pull/2631/files#
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COrregido!
f2194a8
to
d15f018
Compare
@@ -109,6 +110,11 @@ export class EncabezadoReportesComponent implements OnInit { | |||
this.parametros['zonaSanitaria'] = null; | |||
} | |||
} | |||
if (tipo === 'cie10') { | |||
(value.value) ? this.parametros['cie10'] = this.cie10.codigo : this.parametros['cie10'] = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(value.value) ? this.parametros['cie10'] = this.cie10.codigo : this.parametros['cie10'] = null; | |
this.parametros['cie10'] = value.value ? this.cie10.codigo : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corregido!
https://www.loom.com/share/fb6fda500df442c88ab6d1630c79094a |
d15f018
to
8d2b21a
Compare
En el listado hay códigos como el A51, A53, etc los cuales no existen tanto en demo como en producción. Por esa razón al momento de buscarlos no devuelve ningún resultado. Hay que consultar si faltan cargar los códigos a la BD. |
Como el filtro es solo para los reportes C2 solo debería aparecer cuando se selecciona ese reporte, actualmente si cambiamos de reporte sigue apareciendo y se esta enviando como parámetro de la query cuando se realiza la consulta por prestacion, ademas si se cambia de reporte el select queda como readonly y no cambia mas |
8d2b21a
to
68c8653
Compare
Corregido! ahora cada ves que se cambie el reporte a "consultas por prestacion" el filtro desaparece. |
Resolver conflictos para subir |
1 similar comment
Resolver conflictos para subir |
Quedo mal rebaseado |
68c8653
to
1361e1f
Compare
# [5.100.0](v5.99.1...v5.100.0) (2022-07-06) ### Bug Fixes * **plan-indiciaciones:** scroll grilla ([#2695](#2695)) ([b6e0a41](b6e0a41)) ### Features * **CITAS:** agrega nombre del dia en listado de agendas ([#2681](#2681)) ([e1c2727](e1c2727)) * **IN-430:** Permitir anular prestaciones de internacion ([#2658](#2658)) ([c1ab483](c1ab483)) * **IN-442:** Labels de resultados en pantalla de censos ([#2672](#2672)) ([aef3a26](aef3a26)) * **INTERNACION:** cambio de lugar botones ([#2692](#2692)) ([599039f](599039f)) * **MISC-225:** Agregar filtro por conceptos en el reporte c2 ([#2634](#2634)) ([a4b9904](a4b9904)) * **RUP:** cambio condicion de required ([#2694](#2694)) ([89ec7f6](89ec7f6))
Requerimiento
https://proyectos.andes.gob.ar/browse/MISC-225
Funcionalidad desarrollada
UserStory llegó a completarse
Requiere actualizaciones en la base de datos
Requiere actualizaciones en la API
Requiere actualizaciones en andes-test-integracion