Prototipo: bandeja real para "Por aprobar y emitir"
Antes el ítem del sidebar abría directo el wizard hardcodeado de FAC-0876, igual que "Iniciar facturación" desde la solicitud — dos accesos al mismo destino sin explicar el badge de "3". Ahora tiene su propia bandeja con los 3 tickets "listos para facturar" (mismo criterio que el filtro en Solicitudes); solo FAC-0876 abre el wizard completo, los otros dos muestran un toast que deja claro que es demo. Cancelar en el paso 1 regresa a esta bandeja en vez de saltar a Solicitudes.
This commit is contained in:
@@ -861,7 +861,52 @@
|
||||
VISTA 3 · EMISIÓN ASISTIDA (WIZARD 5 PASOS)
|
||||
============================================================ -->
|
||||
<section class="view" id="view-emision">
|
||||
<div id="wiz-main">
|
||||
|
||||
<!-- 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">
|
||||
<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>
|
||||
|
||||
@@ -916,7 +961,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="wiz-foot">
|
||||
<button class="btn btn-ghost" onclick="show('solicitudes')">Cancelar</button>
|
||||
<button class="btn btn-ghost" onclick="show('emision')">Cancelar</button>
|
||||
<button class="btn btn-primary" onclick="wiz(2)">Continuar con COT-2026-0455 →</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1617,6 +1662,11 @@ 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'});
|
||||
}
|
||||
|
||||
@@ -1644,8 +1694,9 @@ function wiz(n){
|
||||
}
|
||||
|
||||
function startWizard(){
|
||||
resetWizard();
|
||||
show('emision');
|
||||
document.getElementById('emi-lista').style.display = 'none';
|
||||
resetWizard();
|
||||
}
|
||||
|
||||
function resetWizard(){
|
||||
|
||||
Reference in New Issue
Block a user