turnero: integración QZ Tray para impresión silenciosa en kiosko

- Genera par de llaves RSA (cert en config/qz/)
- api/qz_sign.php firma los print jobs con SHA512
- assets/js/qz-print.js conecta QZ Tray y envía trabajo HTML
- ver_formulario_enviado.php carga QZ cuando ?autoprint=1
- Fallback a window.print() si QZ no está instalado

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-21 14:52:19 -05:00
co-authored by Claude Sonnet 4.6
parent 2cfb77b1a6
commit 5dd6ee5040
6 changed files with 133 additions and 1 deletions
+10 -1
View File
@@ -2762,7 +2762,16 @@ const topaz = (() => {
<?php endif; ?>
</script>
<?php if ($autoprint): ?>
<script>window.addEventListener('load', function() { setTimeout(function() { window.print(); }, 600); });</script>
<script src="https://cdn.jsdelivr.net/npm/qz-tray@2.2.4/qz-tray.js"></script>
<script src="/assets/js/qz-print.js"></script>
<script>
window.addEventListener('load', function() {
setTimeout(function() {
if (typeof qz !== 'undefined') { qzPrint(); }
else { window.print(); }
}, 800);
});
</script>
<?php endif; ?>
</body>
</html>