This commit is contained in:
Lizandro Guarnizo
2026-06-09 16:44:39 -05:00
parent 4e6913c41e
commit ab8b5ae620
9 changed files with 1590 additions and 323 deletions
+4 -4
View File
@@ -68,7 +68,7 @@ Layout::open('Dashboard Turnero', 'fas fa-chart-bar');
</style>
<div class="page-header">
<a href="<?= BASE_URL ?>/erp.php?m=turnero&v=recepcion" class="back-btn">
<a href="<?= BASE_URL ?>erp.php?m=turnero&v=recepcion" class="back-btn">
<i class="fas fa-arrow-left me-1"></i>Volver
</a>
<h1><i class="fas fa-chart-bar me-2 text-primary"></i>Dashboard Turnero</h1>
@@ -84,7 +84,7 @@ Layout::open('Dashboard Turnero', 'fas fa-chart-bar');
<button class="btn btn-outline-secondary btn-sm" onclick="cargarDatos()" title="Refrescar">
<i class="fas fa-sync-alt"></i>
</button>
<a href="<?= BASE_URL ?>/erp.php?m=turnero&v=configuracion" class="btn btn-outline-secondary btn-sm">
<a href="<?= BASE_URL ?>erp.php?m=turnero&v=configuracion" class="btn btn-outline-secondary btn-sm">
<i class="fas fa-cogs"></i>
</a>
</div>
@@ -151,7 +151,7 @@ Layout::open('Dashboard Turnero', 'fas fa-chart-bar');
/* ═══════════════════════════════════════════════════════════
Dashboard Turnero
═══════════════════════════════════════════════════════════ */
const API = '<?= BASE_URL ?>/modules/turnero/api/';
const API = '<?= BASE_URL ?>modules/turnero/api/';
const BASE_WA = '<?= BASE_URL ?>';
let _turnos = []; // cache para búsqueda local
let _autoReloadId = null;
@@ -194,7 +194,7 @@ function mostrarError(msg) {
// ── Render ───────────────────────────────────────────────────
function renderDashboard(json) {
const { sesion, resumen, por_prioridad, por_lugar, consent_stats, turnos } = json;
const { sesion, resumen, por_prioridad, por_lugar, consent_stats = {}, turnos } = json;
// ── Sesión info ────────────────────────────────────────
const si = document.getElementById('sesionInfo');