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) || [],