From 2e3534ab0294eb70891712c105ed98ccf67fd9e7 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 28 Jul 2026 12:02:37 -0500 Subject: [PATCH] =?UTF-8?q?feat(bandeja):=20filtro=20por=20estado=20en=20l?= =?UTF-8?q?a=20bandeja=20del=20d=C3=ADa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/views/bandeja.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/modules/turnero/views/bandeja.php b/modules/turnero/views/bandeja.php index 3cce07f..a3a1a90 100644 --- a/modules/turnero/views/bandeja.php +++ b/modules/turnero/views/bandeja.php @@ -357,6 +357,14 @@ Layout::open('Bandeja del día', 'fas fa-layer-group'); Por revisar: — Vistos: — Muestras pend.: — + @@ -441,11 +449,11 @@ async function _bndRefrescarLista() { } function _bndFiltrar() { - const q = (document.getElementById('bnd-filtro')?.value || '').toLowerCase().trim(); + const q = (document.getElementById('bnd-filtro')?.value || '').toLowerCase().trim(); + const st = document.getElementById('bnd-filtro-estado')?.value || ''; const match = t => - !q || - (t.paciente_nombre || '').toLowerCase().includes(q) || - (t.examenes_txt || '').toLowerCase().includes(q); + (!q || (t.paciente_nombre || '').toLowerCase().includes(q) || (t.examenes_txt || '').toLowerCase().includes(q)) && + (!st || t.estado === st); _renderLista( _bndAllData.pendientes?.filter(match) || [],