Commit 0ac52321f6ec0baaef26b8738d5cda94820013b4
1 parent
ae69d092e5
Exists in
master
se cambia rutas de las API's
Showing
21 changed files
with
40 additions
and
44 deletions
Show diff stats
src/app/components/busqueda-productos/busqueda-productos.component.html
... | ... | @@ -77,7 +77,7 @@ |
77 | 77 | class="card-effect bg-white rounded-sm shadow border-0" |
78 | 78 | (click)="elegirProducto(producto)"> |
79 | 79 | <img |
80 | - src="{{apiImagenes}}/imagenes/{{producto.imagenes[0].imagen}}" | |
80 | + src="{{apiDeboSuite}}/imagenes/{{producto.imagenes[0].imagen}}" | |
81 | 81 | class="rounded-sm shadow w-100 m-auto"> |
82 | 82 | <div class="p-2"> |
83 | 83 | <p class="h6 min-h-40 text-left m-0"><small>{{producto.DET_LAR}}</small></p> |
src/app/components/busqueda-productos/busqueda-productos.component.ts
... | ... | @@ -18,7 +18,7 @@ export class BusquedaProductosComponent implements OnInit { |
18 | 18 | private categoriaActive: number = null; |
19 | 19 | private showSpinner: boolean = true; |
20 | 20 | private queMostrar: string = 'todos'; |
21 | - private apiImagenes: string = APP_SETTINGS.apiImagenes; | |
21 | + private apiDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
22 | 22 | private categorias: Categoria[] = []; |
23 | 23 | private blurFocus = new EventEmitter(); |
24 | 24 | private ordenandoByVendidos = true; |
src/app/components/cancelar-compra/cancelar-compra.component.ts
... | ... | @@ -11,7 +11,7 @@ import { ProductoService } from 'src/app/services/producto.service'; |
11 | 11 | }) |
12 | 12 | export class CancelarCompraComponent implements OnInit, OnDestroy { |
13 | 13 | |
14 | - private apiImagenes: string = APP_SETTINGS.apiImagenes; | |
14 | + private apiDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
15 | 15 | private timer: any; |
16 | 16 | |
17 | 17 | constructor( |
src/app/components/confirmacion-carrito/confirmacion-carrito.component.html
... | ... | @@ -52,7 +52,7 @@ |
52 | 52 | <div class="d-flex align-items-end flex-column"> |
53 | 53 | <div class="w-100"> |
54 | 54 | <img |
55 | - src="{{apiImagenes}}/imagenes/{{producto.imagenes[0].imagen}}" | |
55 | + src="{{apiDeboSuite}}/imagenes/{{producto.imagenes[0].imagen}}" | |
56 | 56 | class="shadow rounded-sm w-100 m-auto"> |
57 | 57 | </div> |
58 | 58 | <div class="w-100 pt-2 px-2"> |
src/app/components/confirmacion-carrito/confirmacion-carrito.component.ts
... | ... | @@ -15,7 +15,7 @@ import { PagoConTarjetaComponent } from '../pago-con-tarjeta/pago-con-tarjeta.co |
15 | 15 | }) |
16 | 16 | export class ConfirmacionCarritoComponent implements OnInit, OnDestroy { |
17 | 17 | |
18 | - private apiImagenes: string = APP_SETTINGS.apiImagenes; | |
18 | + private apiDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
19 | 19 | private compraConEfectivofinalizada: boolean = false; |
20 | 20 | private compraConQRfinalizada: boolean = false; |
21 | 21 | private productos: Producto[] = []; |
src/app/components/header/header.component.html
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | (contextmenu)="false" |
7 | 7 | (press)="openConfigurationScreen()" |
8 | 8 | class="w-25 float-left" |
9 | - src="{{apiImagenes}}/imagenes/logoempresa.png"> | |
9 | + src="{{apiDeboSuite}}/imagenes/logoempresa.png"> | |
10 | 10 | </div> |
11 | 11 | <div class="col-6"> |
12 | 12 | <img class="w-25 float-right" src="../../../assets/img/logodebo.png"> |
src/app/components/header/header.component.ts
... | ... | @@ -10,7 +10,7 @@ import { ConfiguracionComponent } from '../configuracion/configuracion.component |
10 | 10 | }) |
11 | 11 | export class HeaderComponent implements OnInit { |
12 | 12 | |
13 | - private apiImagenes : string = APP_SETTINGS.apiImagenes; | |
13 | + private apiDeboSuite : string = APP_SETTINGS.apiDeboSuite; | |
14 | 14 | timer: any; |
15 | 15 | isShowModalConfiguration = false; |
16 | 16 |
src/app/components/home/home.component.html
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | <!-- HEADER --> |
10 | 10 | <div class="vh-15 row m-0 flex-row w-100 bg-primary-gradient-horizontal"> |
11 | 11 | <div class="h-100 w-50 bg-white rounded-bottom-right"> |
12 | - <img class="h-100 p-2 m-auto d-block" src="{{apiImagenes}}/imagenes/logoempresa.png"> | |
12 | + <img class="h-100 p-2 m-auto d-block" src="{{apiDeboSuite}}/imagenes/logoempresa.png"> | |
13 | 13 | </div> |
14 | 14 | </div> |
15 | 15 |
src/app/components/home/home.component.ts
... | ... | @@ -9,7 +9,7 @@ import { APP_SETTINGS } from 'src/etc/AppSettings'; |
9 | 9 | }) |
10 | 10 | export class HomeComponent implements OnInit { |
11 | 11 | |
12 | - private apiImagenes: string = APP_SETTINGS.apiImagenes; | |
12 | + private apiDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
13 | 13 | |
14 | 14 | constructor() { } |
15 | 15 |
src/app/components/inicio/inicio.component.html
... | ... | @@ -21,7 +21,7 @@ |
21 | 21 | <p class="m-0 h3 card-title">Promociones</p> |
22 | 22 | </div> |
23 | 23 | <div class="col-auto p-0"> |
24 | - <img src="{{apiImagenes}}/imagenes/primario.promociones.png" class="w-15 m-0"> | |
24 | + <img src="{{apiDeboSuite}}/imagenes/primario.promociones.png" class="w-15 m-0"> | |
25 | 25 | </div> |
26 | 26 | </div> |
27 | 27 | <p class="h5 card-text text-muted font-weight-light">Conozca las ofertas del momento.</p> |
... | ... | @@ -30,22 +30,22 @@ |
30 | 30 | <carousel [showIndicators]="false" [interval]="1500"> |
31 | 31 | <slide class="h-100"> |
32 | 32 | <img |
33 | - src="{{apiImagenes}}/imagenes/beldent.jpg" | |
33 | + src="{{apiDeboSuite}}/imagenes/beldent.jpg" | |
34 | 34 | class="fade-in d-block w-75 m-auto rounded"> |
35 | 35 | </slide> |
36 | 36 | <slide class="h-100"> |
37 | 37 | <img |
38 | - src="{{apiImagenes}}/imagenes/cafe con leche y medialunas.jpg" | |
38 | + src="{{apiDeboSuite}}/imagenes/cafe con leche y medialunas.jpg" | |
39 | 39 | class="fade-in d-block w-75 m-auto rounded"> |
40 | 40 | </slide> |
41 | 41 | <slide class="h-100"> |
42 | 42 | <img |
43 | - src="{{apiImagenes}}/imagenes/Surtido bagley.jpg" | |
43 | + src="{{apiDeboSuite}}/imagenes/Surtido bagley.jpg" | |
44 | 44 | class="fade-in d-block w-75 m-auto rounded"> |
45 | 45 | </slide> |
46 | 46 | <slide class="h-100"> |
47 | 47 | <img |
48 | - src="{{apiImagenes}}/imagenes/yogurisimo.jpg" | |
48 | + src="{{apiDeboSuite}}/imagenes/yogurisimo.jpg" | |
49 | 49 | class="fade-in d-block w-75 m-auto rounded"> |
50 | 50 | </slide> |
51 | 51 | </carousel> |
... | ... | @@ -60,14 +60,14 @@ |
60 | 60 | <p class="m-0 h3 card-title">Ordenar Pedido</p> |
61 | 61 | </div> |
62 | 62 | <div class="col-auto p-0"> |
63 | - <img src="{{apiImagenes}}/imagenes/primario.ordenar.png" class="w-15"> | |
63 | + <img src="{{apiDeboSuite}}/imagenes/primario.ordenar.png" class="w-15"> | |
64 | 64 | </div> |
65 | 65 | </div> |
66 | 66 | <p class="h5 card-text text-muted font-weight-light">Arme su pedido y solo pase a retirar.</p> |
67 | 67 | </div> |
68 | 68 | <img |
69 | 69 | class="card-img-bottom d-block w-100 mx-auto rounded" |
70 | - src="{{apiImagenes}}/imagenes/cafe.jpg"> | |
70 | + src="{{apiDeboSuite}}/imagenes/cafe.jpg"> | |
71 | 71 | </div> |
72 | 72 | </div> |
73 | 73 | |
... | ... | @@ -123,7 +123,7 @@ |
123 | 123 | <div class="fade-in m-0" *ngIf="productoAcargar && !promoAcargar"> |
124 | 124 | <img |
125 | 125 | class="card-img-top d-block w-75 shadow mx-auto rounded-sm" |
126 | - src="{{apiImagenes}}/imagenes/{{productoAcargar.imagenes[0].imagen}}"> | |
126 | + src="{{apiDeboSuite}}/imagenes/{{productoAcargar.imagenes[0].imagen}}"> | |
127 | 127 | |
128 | 128 | <div class="row justify-content-between m-3"> |
129 | 129 | <div class="col-12 text-left px-1"> |
... | ... | @@ -139,7 +139,7 @@ |
139 | 139 | <div class="fade-in m-0" *ngIf="promoAcargar"> |
140 | 140 | <img |
141 | 141 | class="card-img-top d-block w-100 mx-auto rounded-sm" |
142 | - src="{{apiImagenes}}/imagenes/{{promoAcargar.imagenes[0].imagen}}"> | |
142 | + src="{{apiDeboSuite}}/imagenes/{{promoAcargar.imagenes[0].imagen}}"> | |
143 | 143 | |
144 | 144 | <div class="row justify-content-between m-3"> |
145 | 145 | <div class="col-12 text-left px-1"> |
src/app/components/inicio/inicio.component.ts
... | ... | @@ -21,7 +21,7 @@ export class InicioComponent implements OnInit, AfterViewInit { |
21 | 21 | private productos: Producto[] = []; |
22 | 22 | private promociones: Producto[] = []; |
23 | 23 | private sinonimos: Sinonimo[] = []; |
24 | - private apiImagenes: string = APP_SETTINGS.apiImagenes; | |
24 | + private apiDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
25 | 25 | private mostrarPantalla : boolean = false; |
26 | 26 | |
27 | 27 | @ViewChild('pop', { static: false }) popoverDirective: PopoverDirective; |
src/app/components/mensaje-final/mensaje-final.component.html
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | <!-- HEADER --> |
8 | 8 | <div class="row m-0 w-100 bg-primary-gradient-horizontal"> |
9 | 9 | <div class="col-6 bg-white p-3 rounded-bottom-right"> |
10 | - <img class="w-25 mx-auto d-block" src="{{apiImagenes}}/imagenes/logoempresa.png"> | |
10 | + <img class="w-25 mx-auto d-block" src="{{apiDeboSuite}}/imagenes/logoempresa.png"> | |
11 | 11 | </div> |
12 | 12 | </div> |
13 | 13 |
src/app/components/mensaje-final/mensaje-final.component.ts
... | ... | @@ -10,7 +10,7 @@ import { Router } from '@angular/router'; |
10 | 10 | }) |
11 | 11 | export class MensajeFinalComponent implements OnInit { |
12 | 12 | |
13 | - private apiImagenes: string = APP_SETTINGS.apiImagenes; | |
13 | + private apiDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
14 | 14 | private timer: any; |
15 | 15 | |
16 | 16 | constructor( |
src/app/components/sidebar/sidebar.component.html
... | ... | @@ -16,7 +16,7 @@ |
16 | 16 | <div class="col-6 pl-1 pr-0 my-auto"> |
17 | 17 | <img |
18 | 18 | class="w-100 float-left rounded-sm shadow" |
19 | - src="{{apiImagenes}}/imagenes/{{producto.imagenes[0].imagen}}"> | |
19 | + src="{{apiDeboSuite}}/imagenes/{{producto.imagenes[0].imagen}}"> | |
20 | 20 | </div> |
21 | 21 | <div class="col-6 px-1"> |
22 | 22 | <!-- BOTONES --> |
src/app/components/sidebar/sidebar.component.ts
... | ... | @@ -28,7 +28,7 @@ export class SidebarComponent implements OnInit { |
28 | 28 | private cantMin: number = 1; |
29 | 29 | private cantMax: number = 50; |
30 | 30 | private total: number = 0; |
31 | - private apiImagenes: string = APP_SETTINGS.apiImagenes; | |
31 | + private apiDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
32 | 32 | |
33 | 33 | public productosCarrito: Producto[] = []; |
34 | 34 |
src/app/services/cliente.service.ts
... | ... | @@ -7,11 +7,11 @@ import { APP_SETTINGS } from "src/etc/AppSettings"; |
7 | 7 | }) |
8 | 8 | export class ClienteService { |
9 | 9 | |
10 | - private urlCliente = APP_SETTINGS.apiClientes; | |
10 | + private urlCliente = APP_SETTINGS.apiDeboSuite; | |
11 | 11 | |
12 | 12 | constructor(private http: HttpClient) { } |
13 | 13 | |
14 | 14 | getClienteById(id: number) { |
15 | - return this.http.get(`${this.urlCliente}/get/${id}`); | |
15 | + return this.http.get(`${this.urlCliente}/clientes/get/${id}`); | |
16 | 16 | } |
17 | 17 | } |
src/app/services/comanda.service.ts
... | ... | @@ -7,22 +7,22 @@ import { Observable } from "rxjs"; |
7 | 7 | providedIn: "root" |
8 | 8 | }) |
9 | 9 | export class ComandaService { |
10 | - private urlAutoservicio: string = APP_SETTINGS.apiAutoservicio; | |
10 | + private urlDeboSuite: string = APP_SETTINGS.apiDeboSuite; | |
11 | 11 | |
12 | 12 | constructor(private http: HttpClient) { } |
13 | 13 | |
14 | 14 | getAll(): Observable<any> { |
15 | 15 | |
16 | - return this.http.get(`${this.urlAutoservicio}/comandas`); | |
16 | + return this.http.get(`${this.urlDeboSuite}/comandas`); | |
17 | 17 | } |
18 | 18 | |
19 | 19 | updateComanda(id: number, estado: number, observacion: string): Observable<any> { |
20 | 20 | |
21 | - return this.http.get(`${this.urlAutoservicio}/comandas/update/${id}/${estado}/${observacion}`); | |
21 | + return this.http.get(`${this.urlDeboSuite}/comandas/update/${id}/${estado}/${observacion}`); | |
22 | 22 | } |
23 | 23 | |
24 | 24 | getPendientesEntrega() { |
25 | 25 | |
26 | - return this.http.get(`${this.urlAutoservicio}/comandas/pendientes-entrega`); | |
26 | + return this.http.get(`${this.urlDeboSuite}/comandas/pendientes-entrega`); | |
27 | 27 | } |
28 | 28 | } |
src/app/services/producto.service.ts
... | ... | @@ -20,17 +20,17 @@ export class ProductoService { |
20 | 20 | |
21 | 21 | getProductoById(id): Observable<any> { |
22 | 22 | |
23 | - return this.http.get(`${APP_SETTINGS.apiAutoservicio}/articulos/${id}`); | |
23 | + return this.http.get(`${APP_SETTINGS.apiDeboSuite}/articulos/${id}`); | |
24 | 24 | } |
25 | 25 | |
26 | 26 | getAll(): Observable<any> { |
27 | 27 | |
28 | - return this.http.get(`${APP_SETTINGS.apiAutoservicio}/articulos/`); | |
28 | + return this.http.get(`${APP_SETTINGS.apiDeboSuite}/articulos/`); | |
29 | 29 | } |
30 | 30 | |
31 | 31 | getAllWithPaginator(page: number = 1): Observable<any> { |
32 | 32 | |
33 | - return this.http.get(`${APP_SETTINGS.apiAutoservicio}/articulos/${page}`); | |
33 | + return this.http.get(`${APP_SETTINGS.apiDeboSuite}/articulos/${page}`); | |
34 | 34 | } |
35 | 35 | |
36 | 36 | setProductos(producto: Producto) { |
... | ... | @@ -57,28 +57,28 @@ export class ProductoService { |
57 | 57 | |
58 | 58 | getPromocionByCodigos(sector, codigo): Observable<any> { |
59 | 59 | |
60 | - var url = `${APP_SETTINGS.apiAutoservicio}/promociones/by-codigos/${sector}/${codigo}`; | |
60 | + var url = `${APP_SETTINGS.apiDeboSuite}/promociones/by-codigos/${sector}/${codigo}`; | |
61 | 61 | // var url = `${appSettings.apiUrl}/promociones/by-codigos/${2}/${7}`; |
62 | 62 | return this.http.get(url); |
63 | 63 | } |
64 | 64 | |
65 | 65 | getPromociones(sector, codigo): Observable<any> { |
66 | 66 | |
67 | - var url = `${APP_SETTINGS.apiAutoservicio}/promociones/incluir-articulo/${sector}/${codigo}`; | |
67 | + var url = `${APP_SETTINGS.apiDeboSuite}/promociones/incluir-articulo/${sector}/${codigo}`; | |
68 | 68 | // var url = `${appSettings.apiUrl}/promociones/incluir-articulo/${2}/${1306}`; |
69 | 69 | return this.http.get(url); |
70 | 70 | } |
71 | 71 | |
72 | 72 | getPromocionSinonimos(sector, codigo): Observable<any> { |
73 | 73 | |
74 | - var url = `${APP_SETTINGS.apiAutoservicio}/sinonimos/promo/${sector}/${codigo}`; | |
74 | + var url = `${APP_SETTINGS.apiDeboSuite}/sinonimos/promo/${sector}/${codigo}`; | |
75 | 75 | // var url = `${appSettings.apiUrl}/sinonimos/promo/${2}/${7}`; |
76 | 76 | return this.http.get(url); |
77 | 77 | } |
78 | 78 | |
79 | 79 | getCategorias() { |
80 | 80 | |
81 | - return this.http.get(`${APP_SETTINGS.apiAutoservicio}/categorias`); | |
81 | + return this.http.get(`${APP_SETTINGS.apiDeboSuite}/categorias`); | |
82 | 82 | } |
83 | 83 | |
84 | 84 | pagar(dataPago: any) { |
... | ... | @@ -88,7 +88,7 @@ export class ProductoService { |
88 | 88 | this.clienteService.getClienteById(-1).subscribe(cliente => { |
89 | 89 | |
90 | 90 | let puntoVenta = parseInt(localStorage.getItem('impresoraPVE')); |
91 | - this.http.post(`${APP_SETTINGS.apiAutoservicio}/comprobante/guardar/${dataPago.medioPago}`, { | |
91 | + this.http.post(`${APP_SETTINGS.apiDeboSuite}/comprobante/guardar/${dataPago.medioPago}`, { | |
92 | 92 | productos: this.productos, |
93 | 93 | cliente: cliente, |
94 | 94 | origen: 'autoservicio', |
src/app/services/punto-venta.service.ts
... | ... | @@ -8,7 +8,6 @@ import { HttpClient } from '@angular/common/http'; |
8 | 8 | }) |
9 | 9 | export class PuntoVentaService { |
10 | 10 | |
11 | - private apiAutoservico = APP_SETTINGS.apiAutoservicio; | |
12 | 11 | private apiDeboSuite = APP_SETTINGS.apiDeboSuite; |
13 | 12 | |
14 | 13 | constructor( |
... | ... | @@ -17,12 +16,12 @@ export class PuntoVentaService { |
17 | 16 | |
18 | 17 | getAll(): Observable<any> { |
19 | 18 | |
20 | - return this.http.get(`${this.apiAutoservico}/get/puntos-venta`); | |
19 | + return this.http.get(`${this.apiDeboSuite}/get/puntos-venta`); | |
21 | 20 | } |
22 | 21 | |
23 | 22 | getByID(id: number): Observable<any> { |
24 | 23 | |
25 | - return this.http.get(`${this.apiAutoservico}/get/punto-venta/${id}`); | |
24 | + return this.http.get(`${this.apiDeboSuite}/get/punto-venta/${id}`); | |
26 | 25 | } |
27 | 26 | |
28 | 27 | getVendedor(filter: any = {}): Observable<any> { |
src/app/services/tarjetas.service.ts
src/etc/AppSettings ejemplo.ts