From 9c9acbed706efe59d85cf30a3a45898ce3a490ad Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 23 Jun 2026 23:06:40 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20dashboard=20turnero=20muestra=20recepci?= =?UTF-8?q?=C3=B3n,=20bacteri=C3=B3logo=20y=20ex=C3=A1menes=20en=20tabla?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Columnas añadidas: Recepción (desk + recepcionista), Lugar/Bacteriólogo, Exámenes - Elimina columnas Lugar y Entrada que eran menos informativas - colspan actualizado a 10 Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/views/dashboard.php | 38 ++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/modules/turnero/views/dashboard.php b/modules/turnero/views/dashboard.php index b573fc2..25e19a1 100644 --- a/modules/turnero/views/dashboard.php +++ b/modules/turnero/views/dashboard.php @@ -174,16 +174,17 @@ Layout::open('Dashboard Turnero', 'fas fa-chart-bar'); Código Prioridad Paciente - Lugar + Recepción + Lugar / Bacteriólogo + Exámenes Estado Espera - Servicio - Entrada + Serv. - Cargando... + Cargando... @@ -384,26 +385,41 @@ function renderTabla(turnos) { tbody.innerHTML = turnos.map(t => { const nombrePac = escHtml(t.paciente_bd || t.paciente_nombre || '—'); const docPac = t.paciente_doc ? `
${escHtml(t.paciente_tipo_doc||'CC')} ${escHtml(t.paciente_doc)}
` : ''; - const lugar = escHtml(t.lugar_nombre || '—'); const estadoCls = mapEstado[t.estado] || 'eb-finalizado'; const estadoLbl = labelEstado[t.estado] || t.estado; - const hora = t.creado_at ? new Date(t.creado_at.replace(' ', 'T')).toLocaleTimeString('es-CO', {hour:'2-digit',minute:'2-digit'}) : '—'; - const espMin = t.espera_min !== null ? t.espera_min + ' m' : '—'; - const srvMin = t.servicio_min !== null ? t.servicio_min + ' m' : '—'; + const espMin = t.espera_min !== null ? t.espera_min + ' m' : '—'; + const srvMin = t.servicio_min !== null ? t.servicio_min + ' m' : '—'; const rowId = `dash-det-${t.id}`; + + // Recepción + const desk = escHtml(t.recepcion_desk_nombre || '—'); + const recep = escHtml(t.atendido_recepcion_nombre || '—'); + const recepCell = `
${desk}
${recep}
`; + + // Lugar + bacteriólogo + const lugar = escHtml(t.lugar_nombre || '—'); + const bacterio = escHtml(t.atendido_lugar_nombre || '—'); + const lugarCell = `
${lugar}
${bacterio}
`; + + // Exámenes + const examsHtml = (t.examenes && t.examenes.length) + ? t.examenes.map(e => `${escHtml(e.nombre||e.codigo||'')}`).join('') + : ''; + return ` ${escHtml(t.codigo)} ${escHtml(t.prioridad_codigo)} ${nombrePac}${docPac} - ${lugar} + ${recepCell} + ${lugarCell} + ${examsHtml} ${estadoLbl} ${espMin} ${srvMin} - ${hora} - +
${renderDashDetalle(t)}
`;