Prototipo: quita "Por aprobar y emitir" del sidebar (redundante)

Era equivalente a activar el filtro "Listos para facturar" en Solicitudes
(Jira) — mismos 3 tickets, sin aportar nada nuevo. El wizard de emisión
sigue accesible desde el detalle de una solicitud ("Iniciar facturación").
This commit is contained in:
JohannVelazquez
2026-07-10 00:58:52 -06:00
parent 365c99acb6
commit 4dca2ecc7c
9 changed files with 3 additions and 59 deletions
+3 -59
View File
@@ -523,11 +523,6 @@
Solicitudes (Jira)
<span class="nav-num">8</span>
</div>
<div class="nav-item" data-view="emision">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9l-6-6Z"/><path d="M14 3v6h6M9 14l2 2 4-4"/></svg>
Por aprobar y emitir
<span class="nav-num">3</span>
</div>
<div class="nav-item" data-view="envio">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="m22 2-11 11M22 2 15 22l-4-9-9-4 20-7Z"/></svg>
Envío al cliente
@@ -861,52 +856,7 @@
VISTA 3 · EMISIÓN ASISTIDA (WIZARD 5 PASOS)
============================================================ -->
<section class="view" id="view-emision">
<!-- Bandeja -->
<div id="emi-lista">
<h1 class="view-title">Por aprobar y emitir</h1>
<p class="view-sub">Tickets con <b>cotización BIND ya vinculada</b>, listos para iniciar el wizard de preparación, aprobación y emisión de CFDI.</p>
<div class="card" style="overflow:hidden">
<table class="tbl">
<thead>
<tr>
<th>Ticket</th><th>Cliente</th><th>Proyecto / resumen</th>
<th>Moneda</th><th class="num">Monto est.</th><th>Cotización BIND</th><th></th>
</tr>
</thead>
<tbody>
<tr class="row-click" onclick="startWizard()">
<td class="mono">FAC-0876</td>
<td><b>CEMEX</b></td>
<td>Célula datos · Ing. Mariana Gutiérrez — julio</td>
<td>MXN</td><td class="num">$68,440</td>
<td><span class="chip chip-ok">COT-2026-0455 ✓</span></td>
<td><button class="btn btn-sm btn-primary">Iniciar →</button></td>
</tr>
<tr class="row-click" onclick="toast('Wizard completo disponible para FAC-0876 (demo). En la app real, cada ticket abriría su propio wizard con estos mismos datos.')">
<td class="mono">FAC-0875</td>
<td><b>Dilo</b></td>
<td>Cierre vacante Gerente TI — 50% restante (Luis Cantú)</td>
<td>MXN</td><td class="num">$95,700</td>
<td><span class="chip chip-ok">COT-2026-0461 ✓</span></td>
<td><button class="btn btn-sm btn-ghost">Iniciar →</button></td>
</tr>
<tr class="row-click" onclick="toast('Wizard completo disponible para FAC-0876 (demo). En la app real, cada ticket abriría su propio wizard con estos mismos datos.')">
<td class="mono">FAC-0870</td>
<td><b>ACUNTIA</b></td>
<td>Consultoría infraestructura · bolsa 40 h</td>
<td>MXN</td><td class="num">$34,800</td>
<td><span class="chip chip-ok">COT-2026-0449 ✓</span></td>
<td><button class="btn btn-sm btn-ghost">Iniciar →</button></td>
</tr>
</tbody>
</table>
</div>
<p class="footnote">Bandeja de ejemplo — en este prototipo solo FAC-0876 tiene el wizard completo construido; los otros dos ilustran cómo se vería la cola real con varios tickets esperando en paralelo.</p>
</div>
<div id="wiz-main" style="display:none">
<div id="wiz-main">
<h1 class="view-title">Preparación, aprobación y emisión de CFDI</h1>
<p class="view-sub"><b>Cotización BIND → prefactura → aprobación humana → CFDI.</b> Aprobar no timbra.</p>
@@ -961,7 +911,7 @@
</div>
</div>
<div class="wiz-foot">
<button class="btn btn-ghost" onclick="show('emision')">Cancelar</button>
<button class="btn btn-ghost" onclick="show('solicitudes')">Cancelar</button>
<button class="btn btn-primary" onclick="wiz(2)">Continuar con COT-2026-0455 →</button>
</div>
</div>
@@ -1662,11 +1612,6 @@ function show(view){
document.getElementById('sol-lista').style.display = 'block';
document.getElementById('sol-detalle').style.display = 'none';
}
if(view === 'emision'){
document.getElementById('emi-lista').style.display = 'block';
document.getElementById('wiz-main').style.display = 'none';
document.getElementById('wiz-exito').style.display = 'none';
}
window.scrollTo({top:0, behavior:'instant'});
}
@@ -1694,9 +1639,8 @@ function wiz(n){
}
function startWizard(){
show('emision');
document.getElementById('emi-lista').style.display = 'none';
resetWizard();
show('emision');
}
function resetWizard(){
Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 KiB

After

Width:  |  Height:  |  Size: 273 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 KiB

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 KiB

After

Width:  |  Height:  |  Size: 249 KiB