+
Datos Persona
+
+ {/* Fila 1: Ingreso / Tipo Doc / Nro Doc / Radios Conductor - Peatón */}
+
+
+ {/* Fila 2: Nombre / Apellido */}
+
+ Nombre:
+ setForm((prev) => ({ ...prev, nombre: e.target.value }))}
+ />
+ Apellido:
+ setForm((prev) => ({ ...prev, apellido: e.target.value }))}
+ />
+
+
+ {/* Fila 3: Entidad/Empresa / Adultos / Menores */}
+
+ Entidad/Empresa:
+ setForm((prev) => ({ ...prev, entidad: e.target.value }))}
+ />
+ Adultos:
+ setForm((prev) => ({ ...prev, cantidad_ocupantes: Math.max(1, parseInt(e.target.value) || 1) }))}
+ />
+ Menores:
+ setForm((prev) => ({ ...prev, cantidad_menores: Math.max(0, parseInt(e.target.value) || 0) }))}
+ />
+
+
+ {/* Fila 4: Patente y Botonera Operativa Integrada */}
+
+
Patente:
+
+ setForm((prev) => ({ ...prev, patente: e.target.value.toUpperCase() }))}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter') {
+ e.preventDefault();
+ buscarPersonaOPatente();
+ }
+ }}
+ />
+
+
+
+
+
+
+ {!isModoSalida ? (
+ <>
+
+
+ >
+ ) : (
+ <>
+
+
+ >
+ )}
+
+
+
+
+
+ {/* Fila 5: Checks Operativos (Baúl y Cacheo) */}
+
+ {isModoSalida ? (
+ <>
+
+
+
+ >
+ ) : (
+ <>
+
+
+ >
+ )}
+
+
+
+ {/* =========================================================================
+ BLOQUE 2: UBICACIÓN / DESTINO - OBSERVACIONES (Fila Dual)
+ ========================================================================= */}
+
+ {/* Ubicación / Destino */}
+
+
Ubicación / Destino
+
+ Lote:
+ setIsLotModalOpen(true)}
+ style={{ cursor: 'pointer' }}
+ />
+
+
+
+
+ {/* Badge Estado Permiso */}
+
+ {lotPermission ? `Permiso: ${lotPermission.detalle}` : 'Estado Permiso: N/A'}
+
+
+
+ {/* Observaciones */}
+
+ Observaciones
+
+
+
+ {/* =========================================================================
+ BLOQUE 3: DOCUMENTACIÓN Y PÓLIZAS (Acordeón Desplegable)
+ ========================================================================= */}
+
+
setIsDocExpanded(!isDocExpanded)}
+ style={{
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'space-between',
+ cursor: 'pointer',
+ userSelect: 'none',
+ padding: '2px 0',
+ }}
+ >
+
+
+ {isDocExpanded ? '▼' : '▶'}
+
+
+ Documentación y Pólizas
+
+
+ (ART • Licencia • Seguro Auto)
+
+
+
+ {(form.licencia_nro || form.art_poliza || form.seguro_poliza)
+ ? '✓ Pólizas Registradas'
+ : (isDocExpanded ? 'Ocultar ▲' : 'Completar ▼')}
+
+
+
+ {isDocExpanded && (
+
+ )}
+
+
+ {/* =========================================================================
+ BLOQUE 4: LECTOR DE DOCUMENTO/QR - CÁMARAS/IMÁGENES (Fila Dual)
+ ========================================================================= */}
+
+ {/* Lector de Documento / QR */}
+
- {/* Groupbox Cámaras / Imágenes (Compacto en 2 ranuras para encajar en 800px de alto) */}
-
+ {/* Cámaras / Imágenes */}
+
Cámaras / Imágenes
@@ -1570,689 +2097,120 @@ export const ControlPostView: React.FC = () => {
-
- {/* Groupbox: Historial de Escaneos (DNI) reubicado ergonómicamente en Columna 1 */}
-
-
-
- Historial Escaneos ({scanHistory.length})
-
- {scanHistory.length > 0 && (
-
- )}
-
-
-
- {scanHistory.length === 0 ? (
-
- Sin escaneos recientes en este puesto.
-
- ) : (
-
-
- {scanHistory.map((it) => {
- const isSelected = selectedHistoryDoc === it.documento;
- return (
- setSelectedHistoryDoc(it.documento)}
- onDoubleClick={() => handleLoadFromHistory(it)}
- style={{
- borderBottom: '1px solid var(--border-subtle)',
- backgroundColor: isSelected ? 'var(--selection-bg)' : 'transparent',
- cursor: 'pointer',
- transition: 'background-color 0.1s',
- }}
- title="Tocar o doble clic para cargar en carril"
- >
- |
- {it.documento}
-
- {it.sexo}
-
- |
-
- {it.apellido ? `${it.apellido}, ${it.nombre}` : 'Persona'}
- {it.patente ? ({it.patente}) : null}
- |
-
- {it.hora}
- |
-
- );
- })}
-
-
- )}
-
-
- {scanHistory.length > 0 && selectedHistoryDoc && (
-
- )}
-
{/* =========================================================================
- COLUMNA 2: DATOS PERSONA, UBICACIÓN/DESTINO, OBSERVACIONES Y DOCUMENTACIÓN
+ BLOQUE 5: HISTORIAL DE ESCANEO (Ancho Completo)
========================================================================= */}
-
- {/* Groupbox: Datos Persona */}
-
-
Datos Persona
-
- {/* Fila 1: Ingreso / Doc / Nro Doc / Radios Conductor - Peatón (Grid fluido) */}
-
-
- {/* Fila 2: Nombre / Apellido */}
-
- Nombre:
- setForm((prev) => ({ ...prev, nombre: e.target.value }))}
- />
- Apellido:
- setForm((prev) => ({ ...prev, apellido: e.target.value }))}
- />
-
-
- {/* Fila 3: Entidad/Empresa / Adultos / Menores */}
-
- Entidad/Empresa:
- setForm((prev) => ({ ...prev, entidad: e.target.value }))}
- />
- Adultos:
- setForm((prev) => ({ ...prev, cantidad_ocupantes: Math.max(1, parseInt(e.target.value) || 1) }))}
- />
- Menores:
- setForm((prev) => ({ ...prev, cantidad_menores: Math.max(0, parseInt(e.target.value) || 0) }))}
- />
-
-
- {/* Fila 4: Patente y Botonera Operativa Integrada */}
-
-
Patente:
-
- setForm((prev) => ({ ...prev, patente: e.target.value.toUpperCase() }))}
- onKeyDown={(e) => {
- if (e.key === 'Enter') {
- e.preventDefault();
- buscarPersonaOPatente();
- }
- }}
- />
-
-
-
-
-
-
- {!isModoSalida ? (
- <>
-
-
- >
- ) : (
- <>
-
-
- >
- )}
-
-
-
-
-
-
- {/* Dos Cajas Lado a Lado: Ubicación / Destino + Observaciones */}
-
- {/* Ubicación / Destino */}
-
-
Ubicación / Destino
-
- Lote:
- setIsLotModalOpen(true)}
- style={{ cursor: 'pointer' }}
- />
-
-
-
-
- {/* Badge Estado Permiso */}
-
- {lotPermission ? `Permiso: ${lotPermission.detalle}` : 'Estado Permiso: N/A'}
-
-
-
- {/* Observaciones */}
-
- Observaciones
-
-
-
- {/* Groupbox Unificado: Documentación y Pólizas (ART, Licencia y Seguro) con Acordeón Ergonómico */}
-
-
setIsDocExpanded(!isDocExpanded)}
- style={{
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'space-between',
- cursor: 'pointer',
- userSelect: 'none',
- padding: '2px 0',
- }}
- >
-
-
- {isDocExpanded ? '▼' : '▶'}
-
-
- Documentación y Pólizas
-
-
- (ART • Licencia • Seguro Auto)
-
-
-
+
+
+ Historial Escaneos ({scanHistory.length})
+
+ {scanHistory.length > 0 && (
+
-
- {isDocExpanded && (
-
+ 🗑️ Limpiar
+
)}
-
- {/* =========================================================================
- COLUMNA 3: ACCIONES (MÓDULOS VIRTUALES)
- ========================================================================= */}
-
-
-
Acciones (Módulos Virtuales)
-
- {/* Botón Principal y Cancelar */}
-
- {isModoSalida ? (
-
- ) : (
-
- )}
-
- {/* Cancelar Operación / Limpiar */}
-
-
-
- {/* Checks Operativos */}
-
- {isModoSalida ? (
- <>
-
-
-
-
-
- >
- ) : (
- <>
-
-
-
- >
- )}
-
-
- {/* Botonera de Control de Hardware: Pulso Apertura & Forzar Cierre */}
-
-
-
-
+
+ {scanHistory.length === 0 ? (
+
+ Sin escaneos recientes en este puesto.
+
+ ) : (
+
+
+ {scanHistory.map((it) => {
+ const isSelected = selectedHistoryDoc === it.documento;
+ return (
+ setSelectedHistoryDoc(it.documento)}
+ onDoubleClick={() => handleLoadFromHistory(it)}
+ style={{
+ borderBottom: '1px solid var(--border-subtle)',
+ backgroundColor: isSelected ? 'var(--selection-bg)' : 'transparent',
+ cursor: 'pointer',
+ transition: 'background-color 0.1s',
+ }}
+ title="Tocar o doble clic para cargar en carril"
+ >
+ |
+ {it.documento}
+
+ {it.sexo}
+
+ |
+
+ {it.apellido ? `${it.apellido}, ${it.nombre}` : 'Persona'}
+ {it.patente ? ({it.patente}) : null}
+ |
+
+ {it.hora}
+ |
+
+ );
+ })}
+
+
+ )}
+
+ {scanHistory.length > 0 && selectedHistoryDoc && (
+
+ )}
- {/* Dock inferior fijo visible en Tablets Portrait (@media max-width: 960px) */}
-
+ {/* Dock inferior fijo visible de manera permanente */}
+
{isModoSalida ? (