feat(historial): mostrar nombre kiosko y nombre BD en columna paciente
Si el nombre registrado en BD difiere del ingresado en kiosko, muestra ambos: el BD como principal y el kiosko en gris debajo. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
7e44fd4050
commit
90e3125e45
@@ -414,7 +414,9 @@ function renderTabla(turnos) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tbody.innerHTML = turnos.map((t,i) => {
|
tbody.innerHTML = turnos.map((t,i) => {
|
||||||
const nombre = esc(t.paciente_bd || t.paciente_nombre || '—');
|
const nombreBd = esc(t.paciente_bd || '');
|
||||||
|
const nombreKiosko = esc(t.paciente_nombre || '');
|
||||||
|
const nombre = nombreBd || nombreKiosko || '—';
|
||||||
const lugar = esc(t.lugar_nombre || '—');
|
const lugar = esc(t.lugar_nombre || '—');
|
||||||
const fecha = t.fecha_sesion || '—';
|
const fecha = t.fecha_sesion || '—';
|
||||||
const horaEnt = t.creado_at
|
const horaEnt = t.creado_at
|
||||||
@@ -447,7 +449,12 @@ function renderTabla(turnos) {
|
|||||||
${esc(t.prioridad_codigo)}
|
${esc(t.prioridad_codigo)}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>${nombre}</td>
|
<td>
|
||||||
|
${nombre}
|
||||||
|
${nombreBd && nombreKiosko && nombreBd !== nombreKiosko
|
||||||
|
? `<div class="text-muted" style="font-size:.72rem">Kiosko: ${nombreKiosko}</div>`
|
||||||
|
: ''}
|
||||||
|
</td>
|
||||||
<td class="small">
|
<td class="small">
|
||||||
<div class="text-muted" style="font-size:.72rem"><i class="fas fa-desktop me-1 opacity-50"></i>${desk}</div>
|
<div class="text-muted" style="font-size:.72rem"><i class="fas fa-desktop me-1 opacity-50"></i>${desk}</div>
|
||||||
<div><i class="fas fa-user-tie me-1 opacity-50" style="font-size:.72rem"></i>${recep}</div>
|
<div><i class="fas fa-user-tie me-1 opacity-50" style="font-size:.72rem"></i>${recep}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user