Commit 83228af71b1e4754f1639f37d5dce2413dddc250
Exists in
develop
Merge branch 'develop' of git.focasoftware.com:angular/autoservicio-axion into develop
Showing
3 changed files
Show diff stats
src/app/modules/comanda/comanda.component.html
| 1 | <div class="container-fluid d-flex flex-column h-100 fade-in pb-4 pr-2"> | 1 | <div class="container-fluid d-flex flex-column h-100 fade-in pb-4 pr-2"> |
| 2 | <div class="row pt-5 mt-n5"> | 2 | <div class="row pt-5 mt-n5"> |
| 3 | <div class="col-12"> | 3 | <div class="col-12"> |
| 4 | <p class="mb-3 h2 text-center mt-2">Pedidos a elaborar</p> | 4 | <p class="mb-3 h2 text-center mt-2">Pedidos a elaborar</p> |
| 5 | </div> | 5 | </div> |
| 6 | </div> | 6 | </div> |
| 7 | <div class="row flex-fill m-0 overflow-scroll"> | 7 | <div class="row flex-fill m-0 scroll-y"> |
| 8 | <div class="col-12 px-2"> | 8 | <div class="col-12 px-2"> |
| 9 | <div class="card-columns h-100 m-1 fade-in disable-user-select"> | 9 | <div class="card-columns h-100 m-1 fade-in disable-user-select"> |
| 10 | <div | 10 | <div |
| 11 | *ngFor="let comanda of comandas" | 11 | *ngFor="let comanda of comandas" |
| 12 | class="card fade-in rounded-xs shadow-sm mt-2" | 12 | class="card fade-in rounded-xs shadow-sm mt-2" |
| 13 | [ngClass]="{ | 13 | [ngClass]="{ |
| 14 | 'bg-light': comanda.estado === 1, | 14 | 'bg-light': comanda.estado === 1, |
| 15 | 'bg-danger': comanda.estado === 2, | 15 | 'bg-danger': comanda.estado === 2, |
| 16 | 'bg-success swing-out-top-bck': comanda.estado === 3 | 16 | 'bg-success swing-out-top-bck': comanda.estado === 3 |
| 17 | }"> | 17 | }"> |
| 18 | <div class="card-body p-2"> | 18 | <div class="card-body p-2"> |
| 19 | <div class="row justify-content-between"> | 19 | <div class="row justify-content-between"> |
| 20 | <img | 20 | <img |
| 21 | src="../../../assets/img/para-llevar-fondo-sombra.png" | 21 | src="../../../assets/img/para-llevar-fondo-sombra.png" |
| 22 | class="w-25 h-25 float-left ml-0 mt-n3" | 22 | class="w-25 h-25 float-left ml-0 mt-n3" |
| 23 | *ngIf="comanda.paraLlevar == true"> | 23 | *ngIf="comanda.paraLlevar == true"> |
| 24 | <div></div> | 24 | <div></div> |
| 25 | <!-- NUMERO DE PEDIDO --> | 25 | <!-- NUMERO DE PEDIDO --> |
| 26 | <p class="h1 text-right mr-3"> | 26 | <p class="h1 text-right mr-3"> |
| 27 | {{rellenar(comanda.id.toString().slice(0), 3)}} | 27 | {{rellenar(comanda.id.toString().slice(0), 3)}} |
| 28 | </p> | 28 | </p> |
| 29 | </div> | 29 | </div> |
| 30 | <div> | 30 | <div> |
| 31 | <!-- PEDIDO A NOMBRE DE --> | 31 | <!-- PEDIDO A NOMBRE DE --> |
| 32 | <p class="text-center m-0"> | 32 | <p class="text-center m-0"> |
| 33 | {{comanda.pedidoAnombreDe ? comanda.pedidoAnombreDe.toUpperCase() : ''}} | 33 | {{comanda.pedidoAnombreDe ? comanda.pedidoAnombreDe.toUpperCase() : ''}} |
| 34 | </p> | 34 | </p> |
| 35 | <!-- TIMER PEDIDO --> | 35 | <!-- TIMER PEDIDO --> |
| 36 | <div class="d-flex justify-content-between align-items-center mt-2"> | 36 | <div class="d-flex justify-content-between align-items-center mt-2"> |
| 37 | <p><i class="fas fa-user-clock text-info"></i></p> | 37 | <p><i class="fas fa-user-clock text-info"></i></p> |
| 38 | <p class="text-center mb-1"> | 38 | <p class="text-center mb-1"> |
| 39 | {{comanda.hoursPedido}}:{{comanda.minutesPedido}}:{{comanda.secondsPedido}} | 39 | {{comanda.hoursPedido}}:{{comanda.minutesPedido}}:{{comanda.secondsPedido}} |
| 40 | </p> | 40 | </p> |
| 41 | <p><i class="far fa-clock fa-spin text-info"></i></p> | 41 | <p><i class="far fa-clock fa-spin text-info"></i></p> |
| 42 | </div> | 42 | </div> |
| 43 | <div *ngFor="let detalle of comanda.detalles"> | 43 | <div *ngFor="let detalle of comanda.detalles"> |
| 44 | <p | 44 | <p |
| 45 | class="card-text border-top pt-2 mb-2" | 45 | class="card-text border-top pt-2 mb-2" |
| 46 | [ngClass]=" | 46 | [ngClass]=" |
| 47 | { | 47 | { |
| 48 | 'border-secondary': comanda.estado === 1, | 48 | 'border-secondary': comanda.estado === 1, |
| 49 | 'border-light': comanda.estado != 1 | 49 | 'border-light': comanda.estado != 1 |
| 50 | }"> | 50 | }"> |
| 51 | <!-- DETALLE Y CANTIDAD --> | 51 | <!-- DETALLE Y CANTIDAD --> |
| 52 | <small>{{detalle.DetLar}}</small><br> | 52 | <small>{{detalle.DetLar}}</small><br> |
| 53 | <small>CANT.{{detalle.cantidad}}</small> | 53 | <small>CANT.{{detalle.cantidad}}</small> |
| 54 | </p> | 54 | </p> |
| 55 | <blockquote | 55 | <blockquote |
| 56 | *ngIf="detalle.comentario"> | 56 | *ngIf="detalle.comentario"> |
| 57 | <p class="text-muted font-italic px-4" *ngIf="comanda.estado === 1"><small>{{detalle.comentario}}</small></p> | 57 | <p class="text-muted font-italic px-4" *ngIf="comanda.estado === 1"><small>{{detalle.comentario}}</small></p> |
| 58 | <p class="text-white font-italic px-4" *ngIf="comanda.estado !== 1"><small>{{detalle.comentario}}</small></p> | 58 | <p class="text-white font-italic px-4" *ngIf="comanda.estado !== 1"><small>{{detalle.comentario}}</small></p> |
| 59 | </blockquote> | 59 | </blockquote> |
| 60 | </div> | 60 | </div> |
| 61 | <!-- BOTONES --> | 61 | <!-- BOTONES --> |
| 62 | <button | 62 | <button |
| 63 | *ngIf="comanda.estado === 1" | 63 | *ngIf="comanda.estado === 1" |
| 64 | class="btn btn-block btn-primary shadow-sm btn-elaborar" | 64 | class="btn btn-block btn-primary shadow-sm btn-elaborar" |
| 65 | (click)="updateComanda(comanda, 2, 'En elaboracion')"> | 65 | (click)="updateComanda(comanda, 2, 'En elaboracion')"> |
| 66 | <div class="row justify-content-between"> | 66 | <div class="row justify-content-between"> |
| 67 | <div></div> | 67 | <div></div> |
| 68 | <p class="ml-4" style="color: #fff;">Elaborar</p> | 68 | <p class="ml-4" style="color: #fff;">Elaborar</p> |
| 69 | <img | 69 | <img |
| 70 | draggable="false" | 70 | draggable="false" |
| 71 | ondragstart="return false;" | 71 | ondragstart="return false;" |
| 72 | (contextmenu)="false" | 72 | (contextmenu)="false" |
| 73 | class="icon-30 mr-2" | 73 | class="icon-30 mr-2" |
| 74 | src="assets/img/ir.svg"> | 74 | src="assets/img/ir.svg"> |
| 75 | </div> | 75 | </div> |
| 76 | </button> | 76 | </button> |
| 77 | <button | 77 | <button |
| 78 | *ngIf="comanda.estado === 2" | 78 | *ngIf="comanda.estado === 2" |
| 79 | class="btn btn-block shadow-sm btn-terminar" | 79 | class="btn btn-block shadow-sm btn-terminar" |
| 80 | (click)="updateComanda(comanda, 3, 'Terminado')"> | 80 | (click)="updateComanda(comanda, 3, 'Terminado')"> |
| 81 | <div class="row justify-content-between"> | 81 | <div class="row justify-content-between"> |
| 82 | <div></div> | 82 | <div></div> |
| 83 | <p class="ml-4">Terminar</p> | 83 | <p class="ml-4">Terminar</p> |
| 84 | <img | 84 | <img |
| 85 | draggable="false" | 85 | draggable="false" |
| 86 | ondragstart="return false;" | 86 | ondragstart="return false;" |
| 87 | (contextmenu)="false" | 87 | (contextmenu)="false" |
| 88 | class="icon-30 mr-2" | 88 | class="icon-30 mr-2" |
| 89 | src="assets/img/flecha-borde-color.svg"> | 89 | src="assets/img/flecha-borde-color.svg"> |
| 90 | </div> | 90 | </div> |
| 91 | </button> | 91 | </button> |
| 92 | <button | 92 | <button |
| 93 | *ngIf="comanda.estado === 2" | 93 | *ngIf="comanda.estado === 2" |
| 94 | class="btn btn-block btn-deshacer btn-sm shadow-sm p-0" | 94 | class="btn btn-block btn-deshacer btn-sm shadow-sm p-0" |
| 95 | (click)="updateComanda(comanda, 1, 'Pagado')"> | 95 | (click)="updateComanda(comanda, 1, 'Pagado')"> |
| 96 | <div class="row justify-content-between"> | 96 | <div class="row justify-content-between"> |
| 97 | <div></div> | 97 | <div></div> |
| 98 | <span class="h6 ml-4"><small>Deshacer</small></span> | 98 | <span class="h6 ml-4"><small>Deshacer</small></span> |
| 99 | <i class="fas fa-undo-alt text-info mr-4 my-auto"></i> | 99 | <i class="fas fa-undo-alt text-info mr-4 my-auto"></i> |
| 100 | </div> | 100 | </div> |
| 101 | </button> | 101 | </button> |
| 102 | </div> | 102 | </div> |
| 103 | <!-- TIMER DE ELABORACION --> | 103 | <!-- TIMER DE ELABORACION --> |
| 104 | <div *ngIf="comanda.estado === 2" class="d-flex justify-content-between align-items-center mt-2"> | 104 | <div *ngIf="comanda.estado === 2" class="d-flex justify-content-between align-items-center mt-2"> |
| 105 | <div *ngIf="comanda.estado !== 1"> | 105 | <div *ngIf="comanda.estado !== 1"> |
| 106 | <i class="fa fa-utensils text-info" aria-hidden="true"></i> | 106 | <i class="fa fa-utensils text-info" aria-hidden="true"></i> |
| 107 | </div> | 107 | </div> |
| 108 | <span *ngIf="comanda.estado === 1" class="text-dark"> | 108 | <span *ngIf="comanda.estado === 1" class="text-dark"> |
| 109 | {{comanda.hoursElaboracion}}:{{comanda.minutesElaboracion}}:{{comanda.secondsElaboracion}} | 109 | {{comanda.hoursElaboracion}}:{{comanda.minutesElaboracion}}:{{comanda.secondsElaboracion}} |
| 110 | </span> | 110 | </span> |
| 111 | <span *ngIf="comanda.estado !== 1" class="text-white"> | 111 | <span *ngIf="comanda.estado !== 1" class="text-white"> |
| 112 | {{comanda.hoursElaboracion}}:{{comanda.minutesElaboracion}}:{{comanda.secondsElaboracion}} | 112 | {{comanda.hoursElaboracion}}:{{comanda.minutesElaboracion}}:{{comanda.secondsElaboracion}} |
| 113 | </span> | 113 | </span> |
| 114 | <i class="fas fa-clock fa-spin text-info"></i> | 114 | <i class="fas fa-clock fa-spin text-info"></i> |
| 115 | </div> | 115 | </div> |
| 116 | </div> | 116 | </div> |
| 117 | </div> | 117 | </div> |
| 118 | </div> | 118 | </div> |
| 119 | </div> | 119 | </div> |
| 120 | </div> | 120 | </div> |
| 121 | </div> | 121 | </div> |
| 122 | 122 |
src/app/shared/header-publicidad/header-publicidad.component.ts
| 1 | import { Component, OnInit, TemplateRef } from '@angular/core'; | 1 | import { Component, OnInit, TemplateRef } from '@angular/core'; |
| 2 | import { APP_SETTINGS } from 'src/etc/AppSettings'; | 2 | import { APP_SETTINGS } from 'src/etc/AppSettings'; |
| 3 | import { IPublicidad } from 'src/app/interfaces/IPublicidad'; | 3 | import { IPublicidad } from 'src/app/interfaces/IPublicidad'; |
| 4 | import { PublicidadService } from 'src/app/services/publicidad/publicidad.service'; | 4 | import { PublicidadService } from 'src/app/services/publicidad/publicidad.service'; |
| 5 | import { IArticulo } from 'src/app/interfaces/IArticulo'; | 5 | import { IArticulo } from 'src/app/interfaces/IArticulo'; |
| 6 | import { PromocionComponent } from '../promocion/promocion.component'; | 6 | import { PromocionComponent } from '../promocion/promocion.component'; |
| 7 | import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; | 7 | import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; |
| 8 | import { ArticuloService } from 'src/app/services/articulo/articulo.service'; | 8 | import { ArticuloService } from 'src/app/services/articulo/articulo.service'; |
| 9 | import { ConfirmacionComponent } from '../confirmacion/confirmacion.component'; | 9 | import { ConfirmacionComponent } from '../confirmacion/confirmacion.component'; |
| 10 | import { SinonimoService } from 'src/app/services/sinonimo/sinonimo.service'; | 10 | import { SinonimoService } from 'src/app/services/sinonimo/sinonimo.service'; |
| 11 | import { ISinonimo } from 'src/app/interfaces/ISinonimo'; | 11 | import { ISinonimo } from 'src/app/interfaces/ISinonimo'; |
| 12 | import { SinonimoComponent } from '../sinonimo/sinonimo.component'; | 12 | import { SinonimoComponent } from '../sinonimo/sinonimo.component'; |
| 13 | 13 | ||
| 14 | @Component({ | 14 | @Component({ |
| 15 | selector: 'app-header-publicidad', | 15 | selector: 'app-header-publicidad', |
| 16 | templateUrl: './header-publicidad.component.html', | 16 | templateUrl: './header-publicidad.component.html', |
| 17 | styleUrls: ['./header-publicidad.component.scss'] | 17 | styleUrls: ['./header-publicidad.component.scss'] |
| 18 | }) | 18 | }) |
| 19 | export class HeaderPublicidadComponent implements OnInit { | 19 | export class HeaderPublicidadComponent implements OnInit { |
| 20 | urlImagenes = `${APP_SETTINGS.apiDeboSuite}/imagenes/`; | 20 | urlImagenes = `${APP_SETTINGS.apiDeboSuite}/imagenes/`; |
| 21 | publicidades: IPublicidad[] = []; | 21 | publicidades: IPublicidad[] = []; |
| 22 | modalRef: BsModalRef; | 22 | modalRef: BsModalRef; |
| 23 | 23 | ||
| 24 | constructor( | 24 | constructor( |
| 25 | private publicidadService: PublicidadService, | 25 | private publicidadService: PublicidadService, |
| 26 | private articuloService: ArticuloService, | 26 | private articuloService: ArticuloService, |
| 27 | private modalService: BsModalService, | 27 | private modalService: BsModalService, |
| 28 | private sinonimoService: SinonimoService | 28 | private sinonimoService: SinonimoService |
| 29 | ) { } | 29 | ) { } |
| 30 | 30 | ||
| 31 | ngOnInit() { | 31 | ngOnInit() { |
| 32 | this.getPublicidades(); | 32 | this.getPublicidades(); |
| 33 | this.mediaPantalla(); | 33 | this.mediaPantalla(); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | getPublicidades() { | 36 | getPublicidades() { |
| 37 | this.publicidadService.getAll() | 37 | this.publicidadService.getAll() |
| 38 | .subscribe((res: IPublicidad[]) => { | 38 | .subscribe((res: IPublicidad[]) => { |
| 39 | this.publicidades = res; | 39 | this.publicidades = res; |
| 40 | }, err => console.error(err)); | 40 | }, err => console.error(err)); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | elegirArticulo(publicidad: IPublicidad) { | 43 | elegirArticulo(publicidad: IPublicidad) { |
| 44 | if (publicidad.id_articulo) this.getByID(publicidad.id_articulo); | 44 | if (publicidad.id_articulo) this.getByID(publicidad.id_articulo); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | getByID(id: number) { | 47 | getByID(id: number) { |
| 48 | this.articuloService.getById(id) | 48 | this.articuloService.getById(id) |
| 49 | .subscribe((res: IArticulo) => { | 49 | .subscribe((res: IArticulo) => { |
| 50 | if (res.FPP) { | 50 | if (res.FPP) { |
| 51 | this.openModalPromos(res); | 51 | this.openModalPromos(res); |
| 52 | return; | 52 | return; |
| 53 | } else { | 53 | } else { |
| 54 | this.openModalConfirmacion(res); | 54 | this.openModalConfirmacion(res); |
| 55 | return; | 55 | return; |
| 56 | } | 56 | } |
| 57 | }, err => console.error(err)); | 57 | }, err => console.error(err)); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | openModalPromos(articulo: IArticulo) { | 60 | openModalPromos(articulo: IArticulo) { |
| 61 | this.modalRef = this.modalService.show(PromocionComponent, | 61 | this.modalRef = this.modalService.show(PromocionComponent, |
| 62 | { | 62 | { |
| 63 | initialState: { | 63 | initialState: { |
| 64 | idArticulo: articulo.id | 64 | idArticulo: articulo.id |
| 65 | }, | 65 | }, |
| 66 | class: 'modal-promo modal-dialog-centered' | 66 | class: 'modal-promo modal-dialog-centered' |
| 67 | }); | 67 | }); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | openModalConfirmacion(articulo: IArticulo) { | 70 | openModalConfirmacion(articulo: IArticulo) { |
| 71 | this.modalRef = this.modalService.show(ConfirmacionComponent, | 71 | this.modalRef = this.modalService.show(ConfirmacionComponent, |
| 72 | { | 72 | { |
| 73 | initialState: { | 73 | initialState: { |
| 74 | titleMessage: articulo.DET_LAR, | 74 | titleMessage: articulo.DET_LAR, |
| 75 | imagenPath: articulo.imagenes.length ? articulo.imagenes[0].imagen : '', | 75 | imagenPath: articulo.imagenes.length ? articulo.imagenes[0].imagen : 'assets/img/image-not-found.jpg', |
| 76 | footerMessageFirst: `¿DESEA AGREGAR ESTE ARTÍCULO`, | 76 | footerMessageFirst: `¿DESEA AGREGAR ESTE ARTÍCULO`, |
| 77 | footerMessageSecond: `a su carrito?`, | 77 | footerMessageSecond: `a su carrito?`, |
| 78 | footerConfirmation: articulo.PreVen, | 78 | footerConfirmation: articulo.PreVen, |
| 79 | footerClose: `volver` | 79 | footerClose: `volver` |
| 80 | }, | 80 | }, |
| 81 | class: 'modal-promo modal-dialog-centered' | 81 | class: 'modal-promo modal-dialog-centered' |
| 82 | }); | 82 | }); |
| 83 | this.modalRef.content.onClose.subscribe(() => { | 83 | this.modalRef.content.onClose.subscribe(() => { |
| 84 | this.sinonimoService.getSinonimos(articulo.CodSec, articulo.CodArt) | 84 | this.sinonimoService.getSinonimos(articulo.CodSec, articulo.CodArt) |
| 85 | .subscribe((res: ISinonimo[]) => { | 85 | .subscribe((res: ISinonimo[]) => { |
| 86 | if (res.length) { | 86 | if (res.length) { |
| 87 | this.openModalSinonimos(res, articulo); | 87 | this.openModalSinonimos(res, articulo); |
| 88 | } else { | 88 | } else { |
| 89 | articulo.cantidad = 1; | 89 | articulo.cantidad = 1; |
| 90 | this.articuloService.setArticulo(articulo); | 90 | this.articuloService.setArticulo(articulo); |
| 91 | } | 91 | } |
| 92 | }, err => console.error(err)); | 92 | }, err => console.error(err)); |
| 93 | }); | 93 | }); |
| 94 | this.mediaPantalla(); | 94 | this.mediaPantalla(); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | openModalSinonimos(sinonimosData: ISinonimo[], articulo: IArticulo) { | 97 | openModalSinonimos(sinonimosData: ISinonimo[], articulo: IArticulo) { |
| 98 | const modalSinonimo = this.modalService.show(SinonimoComponent, { | 98 | const modalSinonimo = this.modalService.show(SinonimoComponent, { |
| 99 | initialState: { sinonimos: sinonimosData }, | 99 | initialState: { sinonimos: sinonimosData }, |
| 100 | class: 'modal-promo modal-dialog-centered' | 100 | class: 'modal-promo modal-dialog-centered' |
| 101 | }); | 101 | }); |
| 102 | modalSinonimo.content.onClose | 102 | modalSinonimo.content.onClose |
| 103 | .subscribe((res: any) => { | 103 | .subscribe((res: any) => { |
| 104 | for (const a of articulo.productos) { | 104 | for (const a of articulo.productos) { |
| 105 | if (a.idSinonimo === res.ID_SIN) { | 105 | if (a.idSinonimo === res.ID_SIN) { |
| 106 | a.CODA = res.articulo.CodArt; | 106 | a.CODA = res.articulo.CodArt; |
| 107 | a.CodArt = res.articulo.CodArt; | 107 | a.CodArt = res.articulo.CodArt; |
| 108 | a.SECA = res.articulo.CodSec; | 108 | a.SECA = res.articulo.CodSec; |
| 109 | a.CodSec = res.articulo.CodSec; | 109 | a.CodSec = res.articulo.CodSec; |
| 110 | a.PreVen = res.articulo.PreVen; | 110 | a.PreVen = res.articulo.PreVen; |
| 111 | a.id = res.articulo.id; | 111 | a.id = res.articulo.id; |
| 112 | a.DET_LAR = res.articulo.DET_LAR; | 112 | a.DET_LAR = res.articulo.DET_LAR; |
| 113 | a.DetArt = res.articulo.DetArt; | 113 | a.DetArt = res.articulo.DetArt; |
| 114 | } | 114 | } |
| 115 | } | 115 | } |
| 116 | this.articuloService.setArticulo(articulo); | 116 | this.articuloService.setArticulo(articulo); |
| 117 | }); | 117 | }); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | mediaPantalla() { | 120 | mediaPantalla() { |
| 121 | if ($('body').hasClass('media-pantalla')) { | 121 | if ($('body').hasClass('media-pantalla')) { |
| 122 | $('#headerPublicidad,#headerPad').addClass('media-pantalla'); | 122 | $('#headerPublicidad,#headerPad').addClass('media-pantalla'); |
| 123 | } | 123 | } |
| 124 | } | 124 | } |
| 125 | } | 125 | } |
| 126 | 126 |
src/app/shared/sinonimo/sinonimo.component.html
| 1 | <div class="bg-primary rounded text-white"> | 1 | <div class="bg-primary rounded text-white"> |
| 2 | <div class="modal-header"> | 2 | <div class="modal-header"> |
| 3 | <p class="h4">Elige una opción</p> | 3 | <p class="h4">Elige una opción</p> |
| 4 | </div> | 4 | </div> |
| 5 | 5 | ||
| 6 | <div class="modal-body"> | 6 | <div class="modal-body"> |
| 7 | <div | 7 | <div |
| 8 | class="lista-sinonimos scroll-y-visible" | 8 | class="lista-sinonimos scroll-y-visible" |
| 9 | *ngFor="let s of sinonimos"> | 9 | *ngFor="let s of sinonimos"> |
| 10 | <div *ngFor="let articulo of s.productos"> | 10 | <div *ngFor="let articulo of s.productos"> |
| 11 | <div class="custom-control custom-checkbox"> | 11 | <div class="custom-control custom-checkbox"> |
| 12 | <input | 12 | <input |
| 13 | type="checkbox" | 13 | type="checkbox" |
| 14 | class="custom-control-input" | 14 | class="custom-control-input" |
| 15 | [(ngModel)]="articulo.seleccionado" | 15 | [(ngModel)]="articulo.seleccionado" |
| 16 | (click)="selectArticulo(articulo)" | 16 | (click)="selectArticulo(articulo)" |
| 17 | [id]="articulo.id"> | 17 | [id]="articulo.id"> |
| 18 | <label | 18 | <label |
| 19 | class="custom-control-label" | 19 | class="custom-control-label" |
| 20 | [for]="articulo.id"> | 20 | [for]="articulo.id"> |
| 21 | {{articulo.DET_LAR}} | 21 | {{articulo.DET_LAR.toUpperCase()}} |
| 22 | </label> | 22 | </label> |
| 23 | </div> | 23 | </div> |
| 24 | </div> | 24 | </div> |
| 25 | </div> | 25 | </div> |
| 26 | </div> | 26 | </div> |
| 27 | 27 | ||
| 28 | <div class="modal-footer"> | 28 | <div class="modal-footer"> |
| 29 | <div | 29 | <div |
| 30 | [ngClass]="validate()" | 30 | [ngClass]="validate()" |
| 31 | class="d-inline-block py-1 bg-white badge-pill text-primary" | 31 | class="d-inline-block py-1 bg-white badge-pill text-primary" |
| 32 | (click)="continue()"> | 32 | (click)="continue()"> |
| 33 | CONTINUAR | 33 | CONTINUAR |
| 34 | <img | 34 | <img |
| 35 | draggable="false" | 35 | draggable="false" |
| 36 | ondragstart="return false;" | 36 | ondragstart="return false;" |
| 37 | (contextmenu)="false" | 37 | (contextmenu)="false" |
| 38 | class="icon-30" | 38 | class="icon-30" |
| 39 | src="assets/img/ir-color.svg"> | 39 | src="assets/img/ir-color.svg"> |
| 40 | </div> | 40 | </div> |
| 41 | </div> | 41 | </div> |
| 42 | </div> | 42 | </div> |
| 43 | 43 |