diff --git a/modules/turnero/views/historial.php b/modules/turnero/views/historial.php index 676b6aa..c95696b 100644 --- a/modules/turnero/views/historial.php +++ b/modules/turnero/views/historial.php @@ -193,12 +193,12 @@ Layout::open('Historial de Turnos', 'fas fa-history'); Código Prioridad Paciente - Teléfono - Lugar + Recepción + Lugar / Bacteriólogo + Exámenes Estado Espera Servicio - Entrada @@ -414,6 +414,16 @@ function renderTabla(turnos) { const lbl = ESTADO_LBL[t.estado] || t.estado; const rowId = `det-${t.id}`; + // Recepción: desk + recepcionista + const desk = esc(t.recepcion_desk_nombre || '—'); + const recep = esc(t.atendido_recepcion_nombre || '—'); + const bacterio = esc(t.atendido_lugar_nombre || '—'); + + // Exámenes: badges con código + const examsHtml = (t.examenes && t.examenes.length) + ? t.examenes.map(e => `${esc(e.codigo)}`).join('') + : ''; + return ` ${esc(fecha)} ${esc(t.codigo)} @@ -423,12 +433,18 @@ function renderTabla(turnos) { ${nombre} - ${tel} - ${lugar} + +
${desk}
+
${recep}
+ + +
${lugar}
+
${bacterio}
+ + ${examsHtml} ${lbl} ${espMin} ${srvMin} - ${horaEnt}