Commit 039ca2889b7ea7bf63197f1b0e3d3de6974e343d
1 parent
672dac20d8
Exists in
develop
Fix
Ocultar sinonimo sin stock
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
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 | <img | 3 | <img |
| 4 | draggable="false" | 4 | draggable="false" |
| 5 | ondragstart="return false;" | 5 | ondragstart="return false;" |
| 6 | (contextmenu)="false" | 6 | (contextmenu)="false" |
| 7 | (click)="close()" | 7 | (click)="close()" |
| 8 | class="btn-effect icon-30 mt-2 mr-2 position-absolute right-0 top-0 z-index" | 8 | class="btn-effect icon-30 mt-2 mr-2 position-absolute right-0 top-0 z-index" |
| 9 | src="assets/img/icono-cancelar-blanco.svg"> | 9 | src="assets/img/icono-cancelar-blanco.svg"> |
| 10 | <p class="col-12 h4 px-0 align-self-center">{{ articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase() }}</p> | 10 | <p class="col-12 h4 px-0 align-self-center">{{ articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase() }}</p> |
| 11 | </div> | 11 | </div> |
| 12 | 12 | ||
| 13 | <div class="modal-body my-2"> | 13 | <div class="modal-body my-2"> |
| 14 | <p class="mb-2 h4">Opcion {{currentIndex+1}}</p> | 14 | <p class="mb-2 h4">Opcion {{currentIndex+1}}</p> |
| 15 | <p class="mb-2 h5">Cantidad restante {{sinonimos[currentIndex].cantidadRestante}}</p> | 15 | <p class="mb-2 h5">Cantidad restante {{sinonimos[currentIndex].cantidadRestante}}</p> |
| 16 | <div class="lista-sinonimos scroll-y-visible"> | 16 | <div class="lista-sinonimos scroll-y-visible"> |
| 17 | <div | 17 | <div |
| 18 | class="row mx-0 mb-2 fade-in-left" | 18 | class="row mx-0 mb-2 fade-in-left" |
| 19 | *ngFor="let articulo of sinonimos[currentIndex].productos"> | 19 | *ngFor="let articulo of sinonimos[currentIndex].productos" |
| 20 | [hidden]="articulo.ExiVta <= 0"> | ||
| 20 | <div class="col-8 p-0 my-auto h6 text-right"> | 21 | <div class="col-8 p-0 my-auto h6 text-right"> |
| 21 | <p class="m-0 font-weight-normal"> | 22 | <p class="m-0 font-weight-normal"> |
| 22 | {{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}} | 23 | {{articulo.MKT_DESC ? articulo.MKT_DESC.toUpperCase() : articulo.DetArt.toUpperCase()}} |
| 23 | </p> | 24 | </p> |
| 24 | </div> | 25 | </div> |
| 25 | <div class="col-4"> | 26 | <div class="col-4"> |
| 26 | <div class="row mx-0 justify-content-between border border-white badge-pill"> | 27 | <div class="row mx-0 justify-content-between border border-white badge-pill"> |
| 27 | <!-- BOTON MENOS --> | 28 | <!-- BOTON MENOS --> |
| 28 | <div class="col-auto px-0 my-auto"> | 29 | <div class="col-auto px-0 my-auto"> |
| 29 | <img | 30 | <img |
| 30 | draggable="false" | 31 | draggable="false" |
| 31 | ondragstart="return false;" | 32 | ondragstart="return false;" |
| 32 | (contextmenu)="false" | 33 | (contextmenu)="false" |
| 33 | class="d-block ml-auto py-2 icon-30 btn-effect" | 34 | class="d-block ml-auto py-2 icon-30 btn-effect" |
| 34 | src="assets/img/menos-blanco.svg" | 35 | src="assets/img/menos-blanco.svg" |
| 35 | (click)="restarCantidadSinonimo(articulo, currentIndex)"> | 36 | (click)="restarCantidadSinonimo(articulo, currentIndex)"> |
| 36 | </div> | 37 | </div> |
| 37 | <!-- CANTIDAD --> | 38 | <!-- CANTIDAD --> |
| 38 | <div class="col px-0 my-auto text-white text-center"> | 39 | <div class="col px-0 my-auto text-white text-center"> |
| 39 | <p>{{articulo.cantidad}}</p> | 40 | <p>{{articulo.cantidad}}</p> |
| 40 | </div> | 41 | </div> |
| 41 | <!-- BOTON MAS --> | 42 | <!-- BOTON MAS --> |
| 42 | <div class="col-auto px-0 my-auto"> | 43 | <div class="col-auto px-0 my-auto"> |
| 43 | <img | 44 | <img |
| 44 | draggable="false" | 45 | draggable="false" |
| 45 | ondragstart="return false;" | 46 | ondragstart="return false;" |
| 46 | (contextmenu)="false" | 47 | (contextmenu)="false" |
| 47 | class="d-block ml-auto py-2 icon-30 btn-effect" | 48 | class="d-block ml-auto py-2 icon-30 btn-effect" |
| 48 | src="assets/img/mas-blanco.svg" | 49 | src="assets/img/mas-blanco.svg" |
| 49 | (click)="sumarCantidadSinonimo(articulo, currentIndex)"> | 50 | (click)="sumarCantidadSinonimo(articulo, currentIndex)"> |
| 50 | </div> | 51 | </div> |
| 51 | </div> | 52 | </div> |
| 52 | </div> | 53 | </div> |
| 53 | </div> | 54 | </div> |
| 54 | </div> | 55 | </div> |
| 55 | 56 | ||
| 56 | </div> | 57 | </div> |
| 57 | 58 | ||
| 58 | <div class="modal-footer"> | 59 | <div class="modal-footer"> |
| 59 | <div | 60 | <div |
| 60 | *ngIf="currentIndex != 0 && sinonimos.length > 1" | 61 | *ngIf="currentIndex != 0 && sinonimos.length > 1" |
| 61 | class="d-inline-block py-1 bg-white badge-pill text-primary btn-effect mr-auto fade-in-right" | 62 | class="d-inline-block py-1 bg-white badge-pill text-primary btn-effect mr-auto fade-in-right" |
| 62 | (click)="currentIndex = currentIndex-1"> | 63 | (click)="currentIndex = currentIndex-1"> |
| 63 | <img | 64 | <img |
| 64 | draggable="false" | 65 | draggable="false" |
| 65 | ondragstart="return false;" | 66 | ondragstart="return false;" |
| 66 | (contextmenu)="false" | 67 | (contextmenu)="false" |
| 67 | class="icon-30 flip" | 68 | class="icon-30 flip" |
| 68 | src="assets/img/ir-color.svg"> | 69 | src="assets/img/ir-color.svg"> |
| 69 | VOLVER | 70 | VOLVER |
| 70 | </div> | 71 | </div> |
| 71 | <div | 72 | <div |
| 72 | [ngClass]="validateNext()" | 73 | [ngClass]="validateNext()" |
| 73 | *ngIf="currentIndex != sinonimos.length-1" | 74 | *ngIf="currentIndex != sinonimos.length-1" |
| 74 | class="d-inline-block py-1 bg-white badge-pill text-primary ml-auto fade-in-left" | 75 | class="d-inline-block py-1 bg-white badge-pill text-primary ml-auto fade-in-left" |
| 75 | (click)="goNext()"> | 76 | (click)="goNext()"> |
| 76 | SIGUIENTE | 77 | SIGUIENTE |
| 77 | <img | 78 | <img |
| 78 | draggable="false" | 79 | draggable="false" |
| 79 | ondragstart="return false;" | 80 | ondragstart="return false;" |
| 80 | (contextmenu)="false" | 81 | (contextmenu)="false" |
| 81 | class="icon-30" | 82 | class="icon-30" |
| 82 | src="assets/img/ir-color.svg"> | 83 | src="assets/img/ir-color.svg"> |
| 83 | </div> | 84 | </div> |
| 84 | <div | 85 | <div |
| 85 | [ngClass]="validate()" | 86 | [ngClass]="validate()" |
| 86 | *ngIf="currentIndex == sinonimos.length-1" | 87 | *ngIf="currentIndex == sinonimos.length-1" |
| 87 | class="d-inline-block py-1 bg-white badge-pill text-primary ml-auto fade-in-left" | 88 | class="d-inline-block py-1 bg-white badge-pill text-primary ml-auto fade-in-left" |
| 88 | (click)="continue()"> | 89 | (click)="continue()"> |
| 89 | CONTINUAR | 90 | CONTINUAR |
| 90 | <img | 91 | <img |
| 91 | draggable="false" | 92 | draggable="false" |
| 92 | ondragstart="return false;" | 93 | ondragstart="return false;" |
| 93 | (contextmenu)="false" | 94 | (contextmenu)="false" |
| 94 | class="icon-30" | 95 | class="icon-30" |
| 95 | src="assets/img/ir-color.svg"> | 96 | src="assets/img/ir-color.svg"> |
| 96 | </div> | 97 | </div> |
| 97 | </div> | 98 | </div> |
| 98 | </div> | 99 | </div> |
| 99 | 100 |