diff --git a/src/App.css b/src/App.css index 6f43860..d85ffcd 100644 --- a/src/App.css +++ b/src/App.css @@ -7,12 +7,12 @@ justify-content: center; align-items: center; width: 100vw; - height: 100vh; + height: 93vh; } .Auth-form { - width: 420px; - box-shadow: rgb(0 0 0 / 16%) 1px 1px 10px; + width: 350px; + box-shadow: rgb(0 113 159 / 16%) 1px 1px 10px; padding-top: 30px; padding-bottom: 20px; border-radius: 8px; diff --git a/src/App.tsx b/src/App.tsx index 296ea83..8e36088 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,7 +2,7 @@ import 'bootstrap/dist/css/bootstrap.min.css' import { BrowserRouter, Route, Routes } from 'react-router-dom' import './App.css' import { Login } from './Components/Login/Login' -import { RptViajesPendientes } from './Components/Reportes/RptViajesPendientes' +import { OpViajes } from './Components/Operaciones/OpViajes' import { Home } from './Components/Home/Home' import { useEffect } from 'react' import { useSelector } from 'react-redux' @@ -39,11 +39,8 @@ function App() { }> }> }> - {/* }> - } /> - */} }> - } /> + } /> } /> } /> } /> diff --git a/src/Components/Catalogos/CatClientes.tsx b/src/Components/Catalogos/CatClientes.tsx index b8604a2..78b53db 100644 --- a/src/Components/Catalogos/CatClientes.tsx +++ b/src/Components/Catalogos/CatClientes.tsx @@ -103,10 +103,6 @@ export const CatClientes: FC = (props) => { setShowCatClientesDialog(false) } - const filtraReporte = (e: any) => { - setSearch(e.target.value) - } - return (
@@ -123,7 +119,7 @@ export const CatClientes: FC = (props) => { size='sm' placeholder='Search...' onChange={(e) => { - filtraReporte(e) + setSearch(e.target.value) }} /> diff --git a/src/Components/Catalogos/CatRutas.tsx b/src/Components/Catalogos/CatRutas.tsx index d693ada..4147718 100644 --- a/src/Components/Catalogos/CatRutas.tsx +++ b/src/Components/Catalogos/CatRutas.tsx @@ -27,6 +27,7 @@ export const CatRutas: FC = (props) => { const [IDServicio, setIDServicio] = useState(0) const [Precio, setPrecio] = useState(0) const [Costo, setCosto] = useState(0) + const [Search, setSearch] = useState('') const [CatRutas, setCatRutas] = useState([]) const columnsConcepts = [ { @@ -359,13 +360,23 @@ export const CatRutas: FC = (props) => { - + -   + + {' '} + { + setSearch(e.target.value) + }} + /> + + + + + +
+ ) +} diff --git a/src/Components/Reportes/RptViajesPendientes.tsx b/src/Components/Reportes/RptViajesPendientes.tsx deleted file mode 100644 index 1335fde..0000000 --- a/src/Components/Reportes/RptViajesPendientes.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import { FC } from 'react' - -interface IProps {} - -export const RptViajesPendientes: FC = (props) => { - return
RptViajesPendientes
-} diff --git a/src/DTOs/Operaciones/DTOViajes.ts b/src/DTOs/Operaciones/DTOViajes.ts new file mode 100644 index 0000000..f7cc419 --- /dev/null +++ b/src/DTOs/Operaciones/DTOViajes.ts @@ -0,0 +1,22 @@ +export default interface DTOOpViajes { + id: number, + fAlta: string, + usuario: number, + fCruce: string, + refAgenciaAduanal: string, + cliente: number, + sCliente: string, + proveedor: number, + sProveedor: string, + hazmat: number, + tipoUnidad: number, + sTipoUnidad: string, + noCaja: string, + pickUpNumber: string, + origen: number, + sOrigen: string, + destino: number + sDestino: string, + servicio: number, + sServicio: string +} \ No newline at end of file diff --git a/src/Services/Catalogos/CatClientes.Services.ts b/src/Services/Catalogos/CatClientes.Services.ts index 509a929..8e2ed22 100644 --- a/src/Services/Catalogos/CatClientes.Services.ts +++ b/src/Services/Catalogos/CatClientes.Services.ts @@ -10,7 +10,7 @@ class CatClientesDataService { return http.post(`Catalogos/CatClientes/Append`,data); } Delete(id: number) { - return http.delete(`/Catalogos/CatClientes/Delete/${id}`); + return http.delete(`Catalogos/CatClientes/Delete/${id}`); } } export default new CatClientesDataService(); \ No newline at end of file diff --git a/src/Services/Catalogos/CatProveedores.Services.ts b/src/Services/Catalogos/CatProveedores.Services.ts index 53b0c90..f9d8bec 100644 --- a/src/Services/Catalogos/CatProveedores.Services.ts +++ b/src/Services/Catalogos/CatProveedores.Services.ts @@ -10,7 +10,7 @@ class CatProveedoresDataService { return http.post(`Catalogos/CatProveedores/Append`,data); } Delete(id: number) { - return http.delete(`/Catalogos/CatProveedores/Delete/${id}`); + return http.delete(`Catalogos/CatProveedores/Delete/${id}`); } } export default new CatProveedoresDataService(); \ No newline at end of file diff --git a/src/Services/Catalogos/CatServicios.Service.ts b/src/Services/Catalogos/CatServicios.Service.ts index b1260c8..dcdcd0b 100644 --- a/src/Services/Catalogos/CatServicios.Service.ts +++ b/src/Services/Catalogos/CatServicios.Service.ts @@ -10,7 +10,7 @@ class CatServiciosDataService { return http.post(`Catalogos/CatServicios/Append`,data); } Delete(id: number) { - return http.delete(`/Catalogos/CatServicios/Delete/${id}`); + return http.delete(`Catalogos/CatServicios/Delete/${id}`); } } export default new CatServiciosDataService(); \ No newline at end of file diff --git a/src/Services/Operaciones/OpViajes.Services.ts b/src/Services/Operaciones/OpViajes.Services.ts new file mode 100644 index 0000000..55090c2 --- /dev/null +++ b/src/Services/Operaciones/OpViajes.Services.ts @@ -0,0 +1,16 @@ +import http from "../../Services/Auth/config/http-common"; +import DTOViajes from "../../DTOs/Operaciones/DTOViajes"; +import IRespuesta from "../../Interfaces/Respuestas/IRespuesta"; + +class OpViajesDataService { + Get() { + return http.get("Operaciones/OpViajes/Get"); + } + Append(data: DTOViajes) { + return http.post(`Operaciones/OpViajes/Append`,data); + } + Delete(id: number) { + return http.delete(`Operaciones/OpViajes/Delete/${id}`); + } +} +export default new OpViajesDataService(); \ No newline at end of file diff --git a/src/images/leyend.png b/src/images/leyend.png new file mode 100644 index 0000000..97589b3 Binary files /dev/null and b/src/images/leyend.png differ diff --git a/src/images/logo.png b/src/images/logo.png new file mode 100644 index 0000000..da34187 Binary files /dev/null and b/src/images/logo.png differ diff --git a/src/index.css b/src/index.css index ec2585e..71a3e47 100644 --- a/src/index.css +++ b/src/index.css @@ -5,9 +5,21 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + background-image: linear-gradient(to right, rgba(255, 0, 0, 0), rgb(234, 240, 241)); } code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } + +.dialogLabel { + font-family: Verdana, Geneva, Tahoma, sans-serif +} + +.centerV { + display: flex; + justify-content: center; + align-items: center; + height: 700px; +}