|
|
@ -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' }} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Control |
|
|
|
|
|
|
|
type='date' |
|
|
|
|
|
|
|
id='FechaFactura' |
|
|
|
|
|
|
|
size='sm' |
|
|
|
|
|
|
|
value={FechaFactura} |
|
|
|
|
|
|
|
placeholder='Fecha de la Factura' |
|
|
|
|
|
|
|
onChange={(e) => setFechaFactura(e.target.value)} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input |
|
|
|
|
|
|
|
value={Cove} |
|
|
|
|
|
|
|
onChange={(e) => setCove(e.target.value)} |
|
|
|
|
|
|
|
disabled={false} |
|
|
|
|
|
|
|
onKeyDown={(e) => handleKeyDown(e, 2)} |
|
|
|
|
|
|
|
style={{ width: '20%', textAlign: 'right' }} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input |
|
|
|
|
|
|
|
value={Entrega} |
|
|
|
|
|
|
|
onChange={(e) => setEntrega(e.target.value)} |
|
|
|
|
|
|
|
disabled={false} |
|
|
|
|
|
|
|
onKeyDown={(e) => handleKeyDown(e, 2)} |
|
|
|
|
|
|
|
style={{ width: '20%', textAlign: 'right' }} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input |
|
|
|
|
|
|
|
value={Transporte} |
|
|
|
|
|
|
|
onChange={(e) => setTransporte(e.target.value)} |
|
|
|
|
|
|
|
disabled={false} |
|
|
|
|
|
|
|
onKeyDown={(e) => handleKeyDown(e, 2)} |
|
|
|
|
|
|
|
style={{ width: '20%', textAlign: 'right' }} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<MsgInformativo |
|
|
|
<MsgInformativo |
|
|
|
show={show} |
|
|
|
show={show} |
|
|
|
msg={msg} |
|
|
|
msg={msg} |
|
|
|