Agregar campos faltantes al componente ControlledInput

feature/Reporte_Relacion_Facturas_Alen
Felix Morales 9 months ago
parent df552e5e75
commit 6510e6a876
  1. 59
      src/Components/Corresponsales/ProveedorFactura/ControlledInput/ControlledInput.tsx

@ -30,6 +30,12 @@ export const ControlledInput: FC<IProps> = (props) => {
const [show, setShowMsg] = useState(false); const [show, setShowMsg] = useState(false);
const [msg, setMsg] = useState(''); const [msg, setMsg] = useState('');
const [ClasificacionProveedor, setClasificacionProveedor] = useState(2); const [ClasificacionProveedor, setClasificacionProveedor] = useState(2);
const [Uuid, setUuid] = useState(props.record.uuid);
const [FechaFactura, setFechaFactura] = useState(props.record.fechaFactura);
const [Cove, setCove] = useState(props.record.cove);
const [Entrega, setEntrega] = useState(props.record.entrega);
const [Transporte, setTransporte] = useState(props.record.transporte);
const [IdContenedor, setIdContenedor] = useState(props.record.idContenedor);
const onChangeFac = (event: any) => { const onChangeFac = (event: any) => {
setValue(event.target.value); setValue(event.target.value);
@ -63,12 +69,12 @@ export const ControlledInput: FC<IProps> = (props) => {
pedido: Pedido, pedido: Pedido,
code: 0, code: 0,
folioGEMCO: '', folioGEMCO: '',
uuid: '', uuid: Uuid,
fechaFactura: '', fechaFactura: FechaFactura,
cove: '', cove: Cove,
entrega: '', entrega: Entrega,
transporte: '', transporte: Transporte,
idContenedor: 0, idContenedor: IdContenedor,
}; };
CorFacDataService.Append(data) CorFacDataService.Append(data)
.then((response) => { .then((response) => {
@ -140,6 +146,47 @@ export const ControlledInput: FC<IProps> = (props) => {
}) })
: null} : null}
</Form.Control> </Form.Control>
<input
value={Uuid}
onChange={(e) => setUuid(e.target.value)}
disabled={false}
onKeyDown={(e) => handleKeyDown(e, 2)}
style={{ width: '20%', textAlign: 'right' }}
/>
&nbsp; &nbsp; &nbsp;
<Form.Control
type='date'
id='FechaFactura'
size='sm'
value={FechaFactura}
placeholder='Fecha de la Factura'
onChange={(e) => setFechaFactura(e.target.value)}
/>
&nbsp; &nbsp; &nbsp;
<input
value={Cove}
onChange={(e) => setCove(e.target.value)}
disabled={false}
onKeyDown={(e) => handleKeyDown(e, 2)}
style={{ width: '20%', textAlign: 'right' }}
/>
&nbsp; &nbsp; &nbsp;
<input
value={Entrega}
onChange={(e) => setEntrega(e.target.value)}
disabled={false}
onKeyDown={(e) => handleKeyDown(e, 2)}
style={{ width: '20%', textAlign: 'right' }}
/>
&nbsp; &nbsp; &nbsp;
<input
value={Transporte}
onChange={(e) => setTransporte(e.target.value)}
disabled={false}
onKeyDown={(e) => handleKeyDown(e, 2)}
style={{ width: '20%', textAlign: 'right' }}
/>
&nbsp; &nbsp; &nbsp;
<MsgInformativo <MsgInformativo
show={show} show={show}
msg={msg} msg={msg}

Loading…
Cancel
Save