feat(bandeja): filtro de muestras pendientes
Añade conteo de muestras_pendientes por turno en la lista y opción de filtro en el selector de estados de la bandeja del día. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
2e3534ab02
commit
4cb133010a
@@ -364,6 +364,7 @@ Layout::open('Bandeja del día', 'fas fa-layer-group');
|
||||
<option value="finalizado">Finalizado</option>
|
||||
<option value="ausente">Ausente</option>
|
||||
<option value="cancelado">Cancelado</option>
|
||||
<option value="muestras_pendientes">Muestras pendientes</option>
|
||||
</select>
|
||||
<button class="bnd-refresh-btn" onclick="_bndRefrescarLista()">
|
||||
<i class="fas fa-sync-alt" id="bnd-spin"></i> Actualizar
|
||||
@@ -453,7 +454,7 @@ function _bndFiltrar() {
|
||||
const st = document.getElementById('bnd-filtro-estado')?.value || '';
|
||||
const match = t =>
|
||||
(!q || (t.paciente_nombre || '').toLowerCase().includes(q) || (t.examenes_txt || '').toLowerCase().includes(q)) &&
|
||||
(!st || t.estado === st);
|
||||
(!st || (st === 'muestras_pendientes' ? +t.muestras_pendientes > 0 : t.estado === st));
|
||||
|
||||
_renderLista(
|
||||
_bndAllData.pendientes?.filter(match) || [],
|
||||
|
||||
Reference in New Issue
Block a user