From 0190a25a8fcf15d3a1e463b71f4581138be25749 Mon Sep 17 00:00:00 2001 From: palita1991 Date: Tue, 19 Apr 2022 10:55:56 -0300 Subject: [PATCH] feat(CITAS): cambio distribucion de datos de agenda y agrega boton demanda rechazada --- .../turnos/dar-turnos/dar-turnos.component.ts | 16 +++ .../turnos/dar-turnos/dar-turnos.html | 107 ++++++++++++------ .../turnos/dar-turnos/dar-turnos.scss | 37 +++--- 3 files changed, 114 insertions(+), 46 deletions(-) diff --git a/src/app/components/turnos/dar-turnos/dar-turnos.component.ts b/src/app/components/turnos/dar-turnos/dar-turnos.component.ts index 16d1128b4a..49384f6f38 100644 --- a/src/app/components/turnos/dar-turnos/dar-turnos.component.ts +++ b/src/app/components/turnos/dar-turnos/dar-turnos.component.ts @@ -1226,4 +1226,20 @@ export class DarTurnosComponent implements OnInit { this.router.navigate(['citas/sobreturnos', this.agenda.id], { queryParams: { paciente: this.paciente.id } }); } + volver() { + // se ingresó desde monitoreo de inscriptos + if (this.solicitudVacunacion) { + this.afterDarTurno.emit(null); + this.plex.clearNavbar(); + return; + } + + // se ingresó desde citas + if (this._pacienteSeleccionado) { + this.afterDarTurno.emit(this.paciente); + } else { + this.resetBuscarPaciente(); + } + } + } diff --git a/src/app/components/turnos/dar-turnos/dar-turnos.html b/src/app/components/turnos/dar-turnos/dar-turnos.html index 5839de6a9c..5084b4fc45 100644 --- a/src/app/components/turnos/dar-turnos/dar-turnos.html +++ b/src/app/components/turnos/dar-turnos/dar-turnos.html @@ -2,26 +2,17 @@ - - - - {{ opciones.fecha | date: "MMM yyyy" | uppercase }} - + + + - + - +
+ + + +
@@ -84,7 +86,7 @@
- + AGENDA {{indice+1}} /{{agendasDelDia.length}} @@ -99,30 +101,53 @@ icon="account-plus" (click)="agregarSobreturno()" tooltipPosition="top" tooltip="Agregar Sobreturno"> + + + + + + + + + + + + -
- -
+ subtitulo="{{agenda.horaInicio | date: 'HH:mm'}} - {{agenda.horaFin | date: 'HH:mm'}}hs"> - + + - - - - - - + + + + + + + + + + + + @@ -137,7 +162,8 @@ - + @@ -170,9 +196,24 @@ -
+
+ + + + + + + + + + diff --git a/src/app/components/turnos/dar-turnos/dar-turnos.scss b/src/app/components/turnos/dar-turnos/dar-turnos.scss index c0437abd33..a64ebfff12 100644 --- a/src/app/components/turnos/dar-turnos/dar-turnos.scss +++ b/src/app/components/turnos/dar-turnos/dar-turnos.scss @@ -10,6 +10,7 @@ $orange: #ff8d22; display: flex; margin: 2px 0 3px 0; border-bottom: 1px solid $blue; + .btn-prev, .btn-next { width: 20px; @@ -19,24 +20,28 @@ $orange: #ff8d22; cursor: pointer; background: $blue; color: lightblue; + &:hover { plex-icon { color: $dark-blue; } } + &.disabled { background: #35474e; + plex-icon { color: $dark-grey; } } } - .contenido-agenda{ + + .contenido-agenda { width: 100%; margin-left: 1rem; margin-right: 1rem; - plex-help{ + plex-help { display: flex; align-items: center; justify-content: center; @@ -44,21 +49,27 @@ $orange: #ff8d22; } } -.icono-agenda{ - plex-icon{ - display: flex; - justify-content: center; - align-items: center; - border: solid 3px $orange; - border-radius: 50%; - padding: 0.75rem; - height: 3rem; - width: 3rem; +.icono-agenda { + plex-icon { + display: flex; + justify-content: center; + align-items: center; + border: solid 3px $orange; + border-radius: 50%; + padding: 0.75rem; + height: 3rem; + width: 3rem; } } -.turnos_disponibles{ +.turnos_disponibles { margin-top: 0 !important; display: flex !important; justify-content: space-between !important; +} + +.listado-turnos { + plex-grid { + margin-top: 0 !important; + } } \ No newline at end of file