fix(ui/ux): optimize tablet aspect ratio, single-screen landscape fit and portrait sticky dock
This commit is contained in:
@@ -633,9 +633,9 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
.desktop-cockpit-grid {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr 220px;
|
||||
gap: 12px;
|
||||
padding: 10px 14px;
|
||||
grid-template-columns: 225px 1fr 215px;
|
||||
gap: 8px;
|
||||
padding: 6px 10px;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
background-color: var(--bg-main, #0B1120);
|
||||
@@ -644,25 +644,25 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
.desktop-groupbox {
|
||||
background-color: var(--bg-surface, #1E293B);
|
||||
border: 1px solid var(--border, #334155);
|
||||
border-radius: 10px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
gap: 6px;
|
||||
box-sizing: border-box;
|
||||
box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
|
||||
.desktop-groupbox-title {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 700;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 800;
|
||||
color: var(--text-2, #93C5FD);
|
||||
letter-spacing: 0.03em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 2px;
|
||||
margin-bottom: 1px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.desktop-input {
|
||||
@@ -670,9 +670,9 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
border: 1px solid var(--border-strong, #475569);
|
||||
border-radius: 6px;
|
||||
color: var(--text-1, #F8FAFC);
|
||||
font-size: 0.92rem;
|
||||
padding: 6px 10px;
|
||||
min-height: 42px;
|
||||
font-size: 0.88rem;
|
||||
padding: 4px 8px;
|
||||
min-height: 36px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
@@ -689,9 +689,9 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
border: 1px solid var(--border-strong, #475569);
|
||||
border-radius: 6px;
|
||||
color: var(--text-1, #F8FAFC);
|
||||
font-size: 0.92rem;
|
||||
padding: 6px 10px;
|
||||
min-height: 42px;
|
||||
font-size: 0.88rem;
|
||||
padding: 4px 8px;
|
||||
min-height: 36px;
|
||||
outline: none;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
@@ -702,24 +702,24 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
}
|
||||
|
||||
.desktop-label {
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-2, #CBD5E1);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.desktop-btn-action {
|
||||
font-size: 0.85rem;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
padding: 6px 12px;
|
||||
min-height: 42px;
|
||||
padding: 5px 10px;
|
||||
min-height: 36px;
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
gap: 5px;
|
||||
white-space: nowrap;
|
||||
transition: background-color 0.15s ease, transform 0.05s ease, filter 0.15s ease, box-shadow 0.15s ease;
|
||||
color: #FFFFFF;
|
||||
@@ -786,10 +786,10 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
|
||||
.desktop-avatar-box {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
height: 75px;
|
||||
background-color: var(--input-bg, #091124);
|
||||
border: 1px dashed var(--border-strong, #334155);
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -801,18 +801,52 @@ button:disabled, .btn:disabled, .touch-button:disabled {
|
||||
============================================================================== */
|
||||
@media (max-width: 1180px) and (min-width: 961px) {
|
||||
.desktop-cockpit-grid {
|
||||
grid-template-columns: 220px 1fr 200px !important;
|
||||
gap: 10px !important;
|
||||
padding: 8px 10px !important;
|
||||
grid-template-columns: 210px 1fr 195px !important;
|
||||
gap: 8px !important;
|
||||
padding: 6px 8px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modo Vertical (Portrait) en Tablets o Pantallas Estrechas */
|
||||
@media (max-width: 960px) {
|
||||
/* Modo Vertical (Portrait) en Tablets (Samsung Galaxy Tab 800x1340) -> 2 Columnas */
|
||||
@media (max-width: 960px) and (min-width: 680px) {
|
||||
.desktop-cockpit-grid {
|
||||
grid-template-columns: 270px 1fr !important;
|
||||
gap: 8px !important;
|
||||
padding: 8px 10px !important;
|
||||
padding-bottom: 64px !important;
|
||||
}
|
||||
.desktop-column-actions {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modo Smartphone o Pantalla Muy Estrecha (<680px) */
|
||||
@media (max-width: 679px) {
|
||||
.desktop-cockpit-grid {
|
||||
grid-template-columns: 1fr !important;
|
||||
gap: 14px !important;
|
||||
padding: 10px 12px !important;
|
||||
gap: 10px !important;
|
||||
padding: 8px 10px !important;
|
||||
padding-bottom: 64px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dock de Acciones Rápidas para Modo Vertical (Portrait) */
|
||||
.tablet-portrait-dock {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.tablet-portrait-dock {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
background-color: var(--bg-surface);
|
||||
border-top: 1px solid var(--border-strong);
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1509,78 +1509,80 @@ export const ControlPostView: React.FC = () => {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Groupbox Cámaras / Imágenes */}
|
||||
<div className="desktop-groupbox" style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: '0.6rem' }}>
|
||||
{/* Groupbox Cámaras / Imágenes (Compacto en 2 ranuras para encajar en 800px de alto) */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem', padding: '6px 8px' }}>
|
||||
<span className="desktop-groupbox-title">Cámaras / Imágenes</span>
|
||||
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '0.45rem' }}>
|
||||
{/* Foto Persona BD */}
|
||||
<div>
|
||||
<div style={{ fontSize: '0.78rem', color: 'var(--text-secondary)', marginBottom: '0.25rem' }}>Foto (BD):</div>
|
||||
<div style={{ fontSize: '0.72rem', color: 'var(--text-secondary)', marginBottom: '0.15rem', fontWeight: 700 }}>Foto (BD):</div>
|
||||
<div className="desktop-avatar-box">
|
||||
{fotoPersonaUrl ? (
|
||||
<img src={fotoPersonaUrl} alt="Persona" style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
|
||||
) : (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', color: 'var(--text-muted)' }}>
|
||||
<svg width="60" height="60" viewBox="0 0 24 24" fill="currentColor">
|
||||
<svg width="34" height="34" viewBox="0 0 24 24" fill="currentColor">
|
||||
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" />
|
||||
</svg>
|
||||
<span style={{ fontSize: '0.75rem', marginTop: '0.25rem' }}>Foto Persona</span>
|
||||
<span style={{ fontSize: '0.65rem' }}>Persona</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
style={{ width: '100%', marginTop: '0.45rem', padding: '0.45rem 0.5rem', fontSize: '0.8rem' }}
|
||||
style={{ width: '100%', marginTop: '0.25rem', padding: '0.2rem 0.35rem', fontSize: '0.72rem', minHeight: '32px' }}
|
||||
onClick={() => setScannerOpen(true)}
|
||||
>
|
||||
Capturar Persona (Webcam)
|
||||
📷 Persona
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Foto DNI Frente */}
|
||||
<div style={{ marginTop: '0.25rem' }}>
|
||||
<div style={{ fontSize: '0.78rem', color: 'var(--text-secondary)', marginBottom: '0.25rem' }}>DNI (Frente):</div>
|
||||
<div>
|
||||
<div style={{ fontSize: '0.72rem', color: 'var(--text-secondary)', marginBottom: '0.15rem', fontWeight: 700 }}>DNI (Frente):</div>
|
||||
<div className="desktop-avatar-box">
|
||||
{fotoDniUrl ? (
|
||||
<img src={fotoDniUrl} alt="DNI" style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
|
||||
) : (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', color: 'var(--text-muted)' }}>
|
||||
<svg width="54" height="54" viewBox="0 0 24 24" fill="currentColor">
|
||||
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
|
||||
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z" />
|
||||
</svg>
|
||||
<span style={{ fontSize: '0.75rem', marginTop: '0.25rem' }}>Foto DNI</span>
|
||||
<span style={{ fontSize: '0.65rem' }}>DNI</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
style={{ width: '100%', marginTop: '0.45rem', padding: '0.45rem 0.5rem', fontSize: '0.8rem' }}
|
||||
style={{ width: '100%', marginTop: '0.25rem', padding: '0.2rem 0.35rem', fontSize: '0.72rem', minHeight: '32px' }}
|
||||
onClick={() => setScannerOpen(true)}
|
||||
>
|
||||
Capturar DNI (Webcam)
|
||||
📷 DNI
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* =========================================================================
|
||||
COLUMNA 2: DATOS PERSONA, UBICACIÓN/DESTINO, OBSERVACIONES Y DOCUMENTACIÓN
|
||||
========================================================================= */}
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.75rem' }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
|
||||
{/* Groupbox: Datos Persona */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.45rem', padding: '8px 12px' }}>
|
||||
<span className="desktop-groupbox-title">Datos Persona</span>
|
||||
|
||||
{/* Fila 1: Ingreso / Doc / Nro Doc / Radios Conductor - Peatón */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'auto auto auto 1fr auto', alignItems: 'center', gap: '0.5rem' }}>
|
||||
{/* Fila 1: Ingreso / Doc / Nro Doc / Radios Conductor - Peatón (Fluido con flex-wrap para que Nro Doc nunca se aplaste) */}
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', flexWrap: 'wrap' }}>
|
||||
<span className="desktop-label">Ingreso / Doc:</span>
|
||||
<select
|
||||
className="desktop-select"
|
||||
value={tipoIngresoLabel}
|
||||
onChange={(e) => setTipoIngresoLabel(e.target.value)}
|
||||
style={{ width: '90px' }}
|
||||
style={{ width: '95px' }}
|
||||
>
|
||||
<option value="Visita">Visita</option>
|
||||
<option value="Proveedor">Proveedor</option>
|
||||
@@ -1597,12 +1599,12 @@ export const ControlPostView: React.FC = () => {
|
||||
<option value="PAS">Pasaporte</option>
|
||||
<option value="EXT">Extranjero</option>
|
||||
</select>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.4rem' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.35rem', flex: '1 1 180px', minWidth: '150px' }}>
|
||||
<span className="desktop-label" style={{ whiteSpace: 'nowrap' }}>Nro Doc:</span>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder={isModoSalida ? "DNI para Salida (Enter o Busc..." : "DNI de la Persona..."}
|
||||
placeholder={isModoSalida ? "DNI Salida (Enter)..." : "DNI Persona..."}
|
||||
value={form.documento}
|
||||
onChange={(e) => {
|
||||
const raw = e.target.value;
|
||||
@@ -1625,30 +1627,30 @@ export const ControlPostView: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.75rem', paddingLeft: '0.5rem' }}>
|
||||
<label style={{ display: 'inline-flex', alignItems: 'center', gap: '0.35rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.65rem', paddingLeft: '0.25rem' }}>
|
||||
<label style={{ display: 'inline-flex', alignItems: 'center', gap: '0.3rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<input
|
||||
type="radio"
|
||||
name="tipo_ingreso"
|
||||
checked={form.tipo_ingreso === 'CONDUCTOR'}
|
||||
onChange={() => setForm((prev) => ({ ...prev, tipo_ingreso: 'CONDUCTOR' }))}
|
||||
/>
|
||||
<span>Conductor</span>
|
||||
<span style={{ fontWeight: 600 }}>Conductor</span>
|
||||
</label>
|
||||
<label style={{ display: 'inline-flex', alignItems: 'center', gap: '0.35rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<label style={{ display: 'inline-flex', alignItems: 'center', gap: '0.3rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<input
|
||||
type="radio"
|
||||
name="tipo_ingreso"
|
||||
checked={form.tipo_ingreso === 'PEATON'}
|
||||
onChange={() => setForm((prev) => ({ ...prev, tipo_ingreso: 'PEATON' }))}
|
||||
/>
|
||||
<span>Peatón</span>
|
||||
<span style={{ fontWeight: 600 }}>Peatón</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Fila 2: Nombre / Apellido */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'auto 1fr auto 1fr', alignItems: 'center', gap: '0.5rem' }}>
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'auto 1fr auto 1fr', alignItems: 'center', gap: '0.45rem' }}>
|
||||
<span className="desktop-label">Nombre:</span>
|
||||
<input
|
||||
type="text"
|
||||
@@ -1665,8 +1667,8 @@ export const ControlPostView: React.FC = () => {
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Fila 3: Entidad/Empresa / Adultos */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'auto 1fr auto auto', alignItems: 'center', gap: '0.5rem' }}>
|
||||
{/* Fila 3: Entidad/Empresa / Adultos / Menores */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'auto 1fr auto auto auto auto', alignItems: 'center', gap: '0.45rem' }}>
|
||||
<span className="desktop-label">Entidad/Empresa:</span>
|
||||
<input
|
||||
type="text"
|
||||
@@ -1680,20 +1682,29 @@ export const ControlPostView: React.FC = () => {
|
||||
type="number"
|
||||
min="1"
|
||||
className="desktop-input"
|
||||
style={{ width: '65px', textAlign: 'center' }}
|
||||
style={{ width: '55px', textAlign: 'center' }}
|
||||
value={form.cantidad_ocupantes}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, cantidad_ocupantes: Math.max(1, parseInt(e.target.value) || 1) }))}
|
||||
/>
|
||||
<span className="desktop-label">Menores:</span>
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
className="desktop-input"
|
||||
style={{ width: '55px', textAlign: 'center' }}
|
||||
value={form.cantidad_menores}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, cantidad_menores: Math.max(0, parseInt(e.target.value) || 0) }))}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Fila 4: Patente / Menores */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'auto 1fr auto auto', alignItems: 'center', gap: '0.5rem' }}>
|
||||
{/* Fila 4: Patente y Botonera Operativa Integrada */}
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.45rem', flexWrap: 'wrap' }}>
|
||||
<span className="desktop-label">Patente:</span>
|
||||
<div style={{ display: 'flex', gap: '0.4rem', alignItems: 'center' }}>
|
||||
<div style={{ display: 'flex', gap: '0.35rem', alignItems: 'center', width: '180px' }}>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder={isModoSalida ? "Patente para Salida (Enter)..." : "Patente vehicular..."}
|
||||
placeholder={isModoSalida ? "Patente Salida..." : "Patente..."}
|
||||
value={form.patente}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, patente: e.target.value.toUpperCase() }))}
|
||||
onKeyDown={(e) => {
|
||||
@@ -1706,81 +1717,32 @@ export const ControlPostView: React.FC = () => {
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
style={{ padding: '0.35rem 0.65rem' }}
|
||||
style={{ padding: '0 0.5rem', minHeight: '36px' }}
|
||||
onClick={() => setIsVehicleModalOpen(true)}
|
||||
title="Buscar por Patente en base de datos"
|
||||
>
|
||||
🔍
|
||||
</button>
|
||||
</div>
|
||||
<span className="desktop-label">Menores:</span>
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
className="desktop-input"
|
||||
style={{ width: '65px', textAlign: 'center' }}
|
||||
value={form.cantidad_menores}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, cantidad_menores: Math.max(0, parseInt(e.target.value) || 0) }))}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Fila 5: Botonera Operativa */}
|
||||
<div style={{ display: 'flex', gap: '0.4rem', marginTop: '0.25rem', flexWrap: 'wrap' }}>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
onClick={() => setIsPersonSearchModalOpen(true)}
|
||||
title="Búsqueda avanzada por DNI, Nombre o Apellido"
|
||||
>
|
||||
BUSCAR DNI/PERSONA
|
||||
</button>
|
||||
|
||||
{isModoSalida ? (
|
||||
<>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-slate"
|
||||
onClick={() => setIsVehicleModalOpen(true)}
|
||||
title="Buscar vehículo ingresado por patente"
|
||||
>
|
||||
BUSCAR PATENTE
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-green"
|
||||
onClick={() => setIsIngresadosModalOpen(true)}
|
||||
>
|
||||
BUSCAR INGRESADOS
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
onClick={() => setIsPersonProfileModalOpen(true)}
|
||||
>
|
||||
VER FICHA
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-red"
|
||||
onClick={() => setIsMassExitModalOpen(true)}
|
||||
title="Gestión de salida masiva / toque de queda"
|
||||
>
|
||||
🚨 SALIDA MASIVA
|
||||
</button>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<div style={{ display: 'flex', gap: '0.35rem', flexWrap: 'wrap', flex: 1 }}>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
onClick={() => setIsPersonSearchModalOpen(true)}
|
||||
style={{ minHeight: '36px', padding: '0 0.65rem', fontSize: '0.8rem' }}
|
||||
title="Búsqueda avanzada de personas"
|
||||
>
|
||||
BUSCAR PERSONA
|
||||
</button>
|
||||
|
||||
{!isModoSalida ? (
|
||||
<>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-cyan"
|
||||
onClick={() => setIsPreauthorizedModalOpen(true)}
|
||||
style={{ minHeight: '36px', padding: '0 0.65rem', fontSize: '0.8rem' }}
|
||||
title="Visitas preautorizadas / Invitaciones"
|
||||
>
|
||||
📋 PREAUTORIZADOS
|
||||
@@ -1789,33 +1751,57 @@ export const ControlPostView: React.FC = () => {
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-purple"
|
||||
onClick={() => setCompanionsModalOpen(true)}
|
||||
style={{ minHeight: '36px', padding: '0 0.65rem', fontSize: '0.8rem' }}
|
||||
>
|
||||
ACOMPAÑANTES
|
||||
</button>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-green"
|
||||
onClick={() => setIsIngresadosModalOpen(true)}
|
||||
style={{ minHeight: '36px', padding: '0 0.65rem', fontSize: '0.8rem' }}
|
||||
>
|
||||
BUSCAR INGRESADOS
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-red"
|
||||
onClick={() => setIsMassExitModalOpen(true)}
|
||||
style={{ minHeight: '36px', padding: '0 0.65rem', fontSize: '0.8rem' }}
|
||||
title="Gestión de salida masiva / toque de queda"
|
||||
>
|
||||
🚨 SALIDA MASIVA
|
||||
</button>
|
||||
</>
|
||||
)}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
onClick={() => setIsPersonProfileModalOpen(true)}
|
||||
style={{ minHeight: '36px', padding: '0 0.65rem', fontSize: '0.8rem' }}
|
||||
>
|
||||
VER FICHA
|
||||
</button>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Dos Cajas Lado a Lado: Ubicación / Destino + Observaciones */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '1.2fr 1fr', gap: '0.75rem' }}>
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '1.2fr 1fr', gap: '0.5rem' }}>
|
||||
{/* Ubicación / Destino */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.35rem', padding: '8px 10px' }}>
|
||||
<span className="desktop-groupbox-title">Ubicación / Destino</span>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.4rem' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.35rem' }}>
|
||||
<span className="desktop-label">Lote:</span>
|
||||
<input
|
||||
type="text"
|
||||
readOnly
|
||||
className="desktop-input"
|
||||
placeholder="Seleccione un Lote con el botón..."
|
||||
placeholder="Seleccione Lote..."
|
||||
value={form.lote_codigo}
|
||||
onClick={() => setIsLotModalOpen(true)}
|
||||
style={{ cursor: 'pointer' }}
|
||||
@@ -1824,7 +1810,7 @@ export const ControlPostView: React.FC = () => {
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
onClick={() => setIsLotModalOpen(true)}
|
||||
style={{ whiteSpace: 'nowrap' }}
|
||||
style={{ whiteSpace: 'nowrap', minHeight: '36px', padding: '0 0.65rem' }}
|
||||
>
|
||||
Seleccionar...
|
||||
</button>
|
||||
@@ -1832,24 +1818,10 @@ export const ControlPostView: React.FC = () => {
|
||||
type="button"
|
||||
onClick={clearLot}
|
||||
title="Limpiar Lote"
|
||||
style={{
|
||||
background: 'none',
|
||||
border: '1px solid #475569',
|
||||
borderRadius: '4px',
|
||||
padding: '0.35rem 0.5rem',
|
||||
cursor: 'pointer',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
}}
|
||||
className="desktop-btn-action desktop-btn-slate"
|
||||
style={{ padding: '0 0.55rem', minHeight: '36px', fontSize: '0.9rem' }}
|
||||
>
|
||||
<img
|
||||
src="/broom.png"
|
||||
alt="Limpiar"
|
||||
style={{ width: '16px', height: '16px' }}
|
||||
onError={(e) => {
|
||||
(e.target as HTMLElement).style.display = 'none';
|
||||
}}
|
||||
/>
|
||||
🧹
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -1868,9 +1840,9 @@ export const ControlPostView: React.FC = () => {
|
||||
: 'var(--border-subtle)'
|
||||
}`,
|
||||
borderRadius: '6px',
|
||||
padding: '0.45rem',
|
||||
padding: '0.3rem 0.5rem',
|
||||
textAlign: 'center',
|
||||
fontSize: '0.85rem',
|
||||
fontSize: '0.82rem',
|
||||
fontWeight: 700,
|
||||
}}
|
||||
>
|
||||
@@ -1879,11 +1851,11 @@ export const ControlPostView: React.FC = () => {
|
||||
</div>
|
||||
|
||||
{/* Observaciones */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column' }}>
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', padding: '8px 10px' }}>
|
||||
<span className="desktop-groupbox-title">Observaciones</span>
|
||||
<textarea
|
||||
className="desktop-input"
|
||||
style={{ flex: 1, resize: 'none', minHeight: '68px' }}
|
||||
style={{ flex: 1, resize: 'none', minHeight: '58px', fontSize: '0.85rem' }}
|
||||
placeholder="Notas adicionales..."
|
||||
value={form.observaciones}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, observaciones: e.target.value }))}
|
||||
@@ -1891,122 +1863,89 @@ export const ControlPostView: React.FC = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Groupbox Documentación Personal (ART y Reg. Conducir) */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.45rem' }}>
|
||||
<span className="desktop-groupbox-title">Documentación Personal (ART y Reg. Conducir)</span>
|
||||
{/* Groupbox Unificado: Documentación y Pólizas (ART, Licencia y Seguro) */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem', padding: '8px 12px' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
||||
<span className="desktop-groupbox-title" style={{ margin: 0 }}>Documentación y Pólizas de Seguro</span>
|
||||
<span style={{ fontSize: '0.72rem', color: 'var(--text-muted)' }}>ART • Registro • Seguro Auto</span>
|
||||
</div>
|
||||
|
||||
{/* Reg. Conductor */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '115px 1fr 1fr 1fr 1fr', alignItems: 'center', gap: '0.4rem' }}>
|
||||
<span className="desktop-label">Reg. Conductor:</span>
|
||||
{/* Fila 1: Reg. Conductor */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '95px 1fr 1fr 135px', alignItems: 'center', gap: '0.4rem' }}>
|
||||
<span className="desktop-label">Licencia Cond:</span>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder="Nro Certificado"
|
||||
placeholder="Nro Licencia..."
|
||||
value={form.licencia_nro}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, licencia_nro: e.target.value }))}
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder="Expedido Por"
|
||||
placeholder="Expedido Por..."
|
||||
value={form.licencia_entidad}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, licencia_entidad: e.target.value }))}
|
||||
/>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.25rem' }}>
|
||||
<input
|
||||
type="date"
|
||||
className="desktop-input"
|
||||
value={form.art_desde}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, art_desde: e.target.value }))}
|
||||
/>
|
||||
<span>📅</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.25rem' }}>
|
||||
<input
|
||||
type="date"
|
||||
className="desktop-input"
|
||||
title="Vencimiento Licencia de Conducir"
|
||||
value={form.licencia_hasta}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, licencia_hasta: e.target.value }))}
|
||||
/>
|
||||
<span>📅</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Pol ART */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '115px 1fr 1fr 1fr 1fr', alignItems: 'center', gap: '0.4rem' }}>
|
||||
<span className="desktop-label">Pol ART:</span>
|
||||
{/* Fila 2: Pol ART */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '95px 1fr 1fr 135px', alignItems: 'center', gap: '0.4rem' }}>
|
||||
<span className="desktop-label">Póliza ART:</span>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder="Nro Póliza ART"
|
||||
placeholder="Nro Póliza ART..."
|
||||
value={form.art_poliza}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, art_poliza: e.target.value }))}
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder="Compañía ART"
|
||||
placeholder="Compañía Aseguradora ART..."
|
||||
value={form.art_empresa}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, art_empresa: e.target.value }))}
|
||||
/>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.25rem' }}>
|
||||
<input
|
||||
type="date"
|
||||
className="desktop-input"
|
||||
value={form.art_desde}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, art_desde: e.target.value }))}
|
||||
/>
|
||||
<span>📅</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.25rem' }}>
|
||||
<input
|
||||
type="date"
|
||||
className="desktop-input"
|
||||
title="Vencimiento Cobertura ART"
|
||||
value={form.art_hasta}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, art_hasta: e.target.value }))}
|
||||
/>
|
||||
<span>📅</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Groupbox Documentación del Vehículo */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.45rem' }}>
|
||||
<span className="desktop-groupbox-title">Documentación del Vehículo</span>
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '115px 1fr 1fr 1fr 1fr', alignItems: 'center', gap: '0.4rem' }}>
|
||||
{/* Fila 3: Seguro Auto */}
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '95px 1fr 1fr 135px', alignItems: 'center', gap: '0.4rem' }}>
|
||||
<span className="desktop-label">Seguro Auto:</span>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder="Nro Póliza Seguro..."
|
||||
placeholder="Nro Póliza Seguro Automotor..."
|
||||
value={form.seguro_poliza}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, seguro_poliza: e.target.value }))}
|
||||
/>
|
||||
<input
|
||||
type="text"
|
||||
className="desktop-input"
|
||||
placeholder="Compañía Aseg..."
|
||||
placeholder="Compañía Aseguradora Auto..."
|
||||
value={form.seguro_empresa}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, seguro_empresa: e.target.value }))}
|
||||
/>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.25rem' }}>
|
||||
<input
|
||||
type="date"
|
||||
className="desktop-input"
|
||||
value={form.seguro_desde}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, seguro_desde: e.target.value }))}
|
||||
/>
|
||||
<span>📅</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '0.25rem' }}>
|
||||
<input
|
||||
type="date"
|
||||
className="desktop-input"
|
||||
title="Vencimiento Póliza Automotor"
|
||||
value={form.seguro_hasta}
|
||||
onChange={(e) => setForm((prev) => ({ ...prev, seguro_hasta: e.target.value }))}
|
||||
/>
|
||||
<span>📅</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2014,8 +1953,8 @@ export const ControlPostView: React.FC = () => {
|
||||
{/* =========================================================================
|
||||
COLUMNA 3: ACCIONES (MÓDULOS VIRTUALES)
|
||||
========================================================================= */}
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.75rem' }}>
|
||||
<div className="desktop-groupbox" style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: '0.85rem' }}>
|
||||
<div className="desktop-column-actions" style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
|
||||
<div className="desktop-groupbox" style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: '0.6rem' }}>
|
||||
<span className="desktop-groupbox-title">Acciones (Módulos Virtuales)</span>
|
||||
|
||||
{/* Botón Principal: Generar INGRESO / SALIDA */}
|
||||
@@ -2024,10 +1963,10 @@ export const ControlPostView: React.FC = () => {
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-red"
|
||||
style={{
|
||||
padding: '0.85rem 1rem',
|
||||
fontSize: '1.05rem',
|
||||
padding: '0.7rem 1rem',
|
||||
fontSize: '1rem',
|
||||
fontWeight: 800,
|
||||
minHeight: '48px',
|
||||
minHeight: '44px',
|
||||
}}
|
||||
onClick={procesarSalida}
|
||||
disabled={isSubmitting}
|
||||
@@ -2039,10 +1978,10 @@ export const ControlPostView: React.FC = () => {
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-green"
|
||||
style={{
|
||||
padding: '0.85rem 1rem',
|
||||
fontSize: '1.05rem',
|
||||
padding: '0.7rem 1rem',
|
||||
fontSize: '1rem',
|
||||
fontWeight: 800,
|
||||
minHeight: '48px',
|
||||
minHeight: '44px',
|
||||
}}
|
||||
onClick={() => handleRegisterEntry()}
|
||||
disabled={isSubmitting}
|
||||
@@ -2055,17 +1994,17 @@ export const ControlPostView: React.FC = () => {
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-slate"
|
||||
style={{ padding: '0.55rem 1rem', fontWeight: 600 }}
|
||||
style={{ padding: '0.45rem 1rem', fontWeight: 600, fontSize: '0.85rem' }}
|
||||
onClick={limpiarCampos}
|
||||
>
|
||||
Cancelar Operación / Limpiar
|
||||
</button>
|
||||
|
||||
{/* Checks Operativos */}
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem', marginTop: '0.5rem' }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem', marginTop: '0.2rem' }}>
|
||||
{isModoSalida ? (
|
||||
<>
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.88rem' }}>
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={form.cacheo_salida}
|
||||
@@ -2075,7 +2014,7 @@ export const ControlPostView: React.FC = () => {
|
||||
<span style={{ color: '#93C5FD', fontWeight: 600 }}>Cacheo a la Salida</span>
|
||||
</label>
|
||||
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.88rem' }}>
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={form.baul_inspeccionado}
|
||||
@@ -2089,12 +2028,12 @@ export const ControlPostView: React.FC = () => {
|
||||
type="button"
|
||||
onClick={() => setSalidaAutomatica(!salidaAutomatica)}
|
||||
style={{
|
||||
marginTop: '0.5rem',
|
||||
padding: '0.6rem 1rem',
|
||||
marginTop: '0.35rem',
|
||||
padding: '0.5rem 0.8rem',
|
||||
backgroundColor: salidaAutomatica ? '#10B981' : '#F8FAFC',
|
||||
color: salidaAutomatica ? '#FFFFFF' : '#0F172A',
|
||||
fontWeight: 700,
|
||||
fontSize: '0.9rem',
|
||||
fontSize: '0.85rem',
|
||||
borderRadius: '6px',
|
||||
border: 'none',
|
||||
cursor: 'pointer',
|
||||
@@ -2106,7 +2045,7 @@ export const ControlPostView: React.FC = () => {
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.88rem' }}>
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={form.baul_inspeccionado}
|
||||
@@ -2116,7 +2055,7 @@ export const ControlPostView: React.FC = () => {
|
||||
<span style={{ color: '#10B981', fontWeight: 600 }}>✓ Baúl inspeccionado (OK)</span>
|
||||
</label>
|
||||
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.88rem' }}>
|
||||
<label style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', cursor: 'pointer', fontSize: '0.85rem' }}>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={form.cacheo_salida}
|
||||
@@ -2130,11 +2069,11 @@ export const ControlPostView: React.FC = () => {
|
||||
</div>
|
||||
|
||||
{/* Botonera de Control de Hardware en Columna de Acciones (Paridad v1.2.3) */}
|
||||
<div style={{ marginTop: 'auto', paddingTop: '0.85rem', borderTop: '1px solid rgba(255,255,255,0.08)', display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '0.4rem' }}>
|
||||
<div style={{ marginTop: 'auto', paddingTop: '0.6rem', borderTop: '1px solid rgba(255,255,255,0.08)', display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '0.4rem' }}>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-slate"
|
||||
style={{ padding: '0.5rem 0.25rem', fontSize: '0.78rem', whiteSpace: 'nowrap' }}
|
||||
style={{ padding: '0.45rem 0.25rem', fontSize: '0.78rem', whiteSpace: 'nowrap' }}
|
||||
onClick={() => {
|
||||
const modId = isModoSalida ? selectedExitModuleId : selectedEntryModuleId;
|
||||
if (modId) {
|
||||
@@ -2148,7 +2087,7 @@ export const ControlPostView: React.FC = () => {
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-red"
|
||||
style={{ padding: '0.5rem 0.25rem', fontSize: '0.78rem', whiteSpace: 'nowrap' }}
|
||||
style={{ padding: '0.45rem 0.25rem', fontSize: '0.78rem', whiteSpace: 'nowrap' }}
|
||||
onClick={() => {
|
||||
const modId = isModoSalida ? selectedExitModuleId : selectedEntryModuleId;
|
||||
if (modId) {
|
||||
@@ -2163,7 +2102,7 @@ export const ControlPostView: React.FC = () => {
|
||||
</div>
|
||||
|
||||
{/* Groupbox: Historial de Escaneos (DNI) (Paridad pct_view.py:2752) */}
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.45rem' }}>
|
||||
<div className="desktop-groupbox" style={{ display: 'flex', flexDirection: 'column', gap: '0.35rem' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
||||
<span className="desktop-groupbox-title" style={{ position: 'static' }}>
|
||||
Historial de Escaneos ({scanHistory.length})
|
||||
@@ -2189,7 +2128,7 @@ export const ControlPostView: React.FC = () => {
|
||||
|
||||
<div
|
||||
style={{
|
||||
maxHeight: '170px',
|
||||
maxHeight: '110px',
|
||||
overflowY: 'auto',
|
||||
border: '1px solid #334155',
|
||||
borderRadius: '6px',
|
||||
@@ -2198,7 +2137,7 @@ export const ControlPostView: React.FC = () => {
|
||||
}}
|
||||
>
|
||||
{scanHistory.length === 0 ? (
|
||||
<div style={{ textAlign: 'center', padding: '1rem', color: '#64748B', fontStyle: 'italic' }}>
|
||||
<div style={{ textAlign: 'center', padding: '0.75rem', color: '#64748B', fontStyle: 'italic', fontSize: '0.75rem' }}>
|
||||
Sin escaneos recientes en este puesto.
|
||||
</div>
|
||||
) : (
|
||||
@@ -2219,13 +2158,13 @@ export const ControlPostView: React.FC = () => {
|
||||
}}
|
||||
title="Doble clic para cargar en el carril activo"
|
||||
>
|
||||
<td style={{ padding: '0.35rem 0.5rem', fontWeight: 700, color: '#F1F5F9', whiteSpace: 'nowrap' }}>
|
||||
<td style={{ padding: '0.25rem 0.4rem', fontWeight: 700, color: '#F1F5F9', whiteSpace: 'nowrap' }}>
|
||||
{it.documento}
|
||||
<span
|
||||
style={{
|
||||
marginLeft: '0.3rem',
|
||||
fontSize: '0.68rem',
|
||||
padding: '0.1rem 0.25rem',
|
||||
marginLeft: '0.25rem',
|
||||
fontSize: '0.65rem',
|
||||
padding: '0.05rem 0.2rem',
|
||||
borderRadius: '3px',
|
||||
backgroundColor: it.sexo === 'F' ? '#EC4899' : '#3B82F6',
|
||||
color: '#fff',
|
||||
@@ -2234,11 +2173,11 @@ export const ControlPostView: React.FC = () => {
|
||||
{it.sexo}
|
||||
</span>
|
||||
</td>
|
||||
<td style={{ padding: '0.35rem 0.4rem', color: 'var(--text-primary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', maxWidth: '120px' }}>
|
||||
<td style={{ padding: '0.25rem 0.35rem', color: 'var(--text-primary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', maxWidth: '110px' }}>
|
||||
{it.apellido ? `${it.apellido}, ${it.nombre}` : 'Persona'}
|
||||
{it.patente ? <span style={{ color: 'var(--blue-base)', marginLeft: '0.35rem', fontWeight: 700 }}>({it.patente})</span> : null}
|
||||
{it.patente ? <span style={{ color: 'var(--blue-base)', marginLeft: '0.25rem', fontWeight: 700 }}>({it.patente})</span> : null}
|
||||
</td>
|
||||
<td style={{ padding: '0.35rem 0.5rem', color: 'var(--text-muted)', fontSize: '0.75rem', textAlign: 'right', whiteSpace: 'nowrap' }}>
|
||||
<td style={{ padding: '0.25rem 0.4rem', color: 'var(--text-muted)', fontSize: '0.72rem', textAlign: 'right', whiteSpace: 'nowrap' }}>
|
||||
{it.hora}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -2253,7 +2192,7 @@ export const ControlPostView: React.FC = () => {
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-blue"
|
||||
style={{ width: '100%', padding: '0.35rem', fontSize: '0.8rem', marginTop: '0.15rem' }}
|
||||
style={{ width: '100%', padding: '0.3rem', fontSize: '0.75rem', marginTop: '0.1rem' }}
|
||||
onClick={() => {
|
||||
const item = scanHistory.find((it) => it.documento === selectedHistoryDoc);
|
||||
if (item) handleLoadFromHistory(item);
|
||||
@@ -2265,6 +2204,66 @@ export const ControlPostView: React.FC = () => {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Dock inferior fijo visible en Tablets Portrait (@media max-width: 960px) */}
|
||||
<div className="tablet-portrait-dock">
|
||||
{isModoSalida ? (
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-red"
|
||||
style={{ flex: 2, padding: '0.6rem 0.8rem', fontSize: '0.95rem', fontWeight: 800, minHeight: '44px' }}
|
||||
onClick={procesarSalida}
|
||||
disabled={isSubmitting}
|
||||
>
|
||||
<< Generar SALIDA
|
||||
</button>
|
||||
) : (
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-green"
|
||||
style={{ flex: 2, padding: '0.6rem 0.8rem', fontSize: '0.95rem', fontWeight: 800, minHeight: '44px' }}
|
||||
onClick={() => handleRegisterEntry()}
|
||||
disabled={isSubmitting}
|
||||
>
|
||||
>> Generar INGRESO
|
||||
</button>
|
||||
)}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-slate"
|
||||
style={{ flex: 1, padding: '0.6rem 0.5rem', fontSize: '0.85rem', fontWeight: 600, minHeight: '44px' }}
|
||||
onClick={limpiarCampos}
|
||||
>
|
||||
Limpiar
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-slate"
|
||||
style={{ padding: '0.6rem 0.6rem', fontSize: '0.8rem', whiteSpace: 'nowrap', minHeight: '44px' }}
|
||||
onClick={() => {
|
||||
const modId = isModoSalida ? selectedExitModuleId : selectedEntryModuleId;
|
||||
if (modId) handleManualOpen(modId, isModoSalida ? 'Barrera Salida' : 'Barrera Entrada');
|
||||
}}
|
||||
title="Pulso de Apertura"
|
||||
>
|
||||
⚡ Apertura
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-btn-action desktop-btn-red"
|
||||
style={{ padding: '0.6rem 0.6rem', fontSize: '0.8rem', whiteSpace: 'nowrap', minHeight: '44px' }}
|
||||
onClick={() => {
|
||||
const modId = isModoSalida ? selectedExitModuleId : selectedEntryModuleId;
|
||||
if (modId) handleManualClose(modId, isModoSalida ? 'Barrera Salida' : 'Barrera Entrada');
|
||||
}}
|
||||
title="Forzar Cierre"
|
||||
>
|
||||
🛑 Cierre
|
||||
</button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{/* Modal BUSCAR INGRESADOS (Padron de visitas activas en el predio) */}
|
||||
|
||||
Reference in New Issue
Block a user