Commit f6de94983d9e8708e7501dbdc8e7ca697e1d5763
Exists in
master
Merge branch 'master' into 'master'
Agrego buscador See merge request !4
Showing
2 changed files
Show diff stats
src/js/controller.js
... | ... | @@ -5,7 +5,6 @@ angular.module('focaAbmPreciosCondiciones') |
5 | 5 | function($scope, focaAbmPreciosCondicionesService, $location, |
6 | 6 | focaModalService, focaBotoneraLateralService, $timeout) { |
7 | 7 | focaAbmPreciosCondicionesService.obtenerPreciosCondiciones().then(function(datos) { |
8 | - console.log(datos.data); | |
9 | 8 | $scope.preciosCondiciones = datos.data; |
10 | 9 | $scope.preciosCondiciones.forEach(function(precioCondicion) { |
11 | 10 | precioCondicion.plazoPago.sort(function(a, b) { |
src/views/foca-abm-precios-condiciones-listado.html
... | ... | @@ -7,6 +7,27 @@ |
7 | 7 | </div> |
8 | 8 | <div class="row"> |
9 | 9 | <div class="col-12 col-md-10 p-0 mt-4 border border-white rounded"> |
10 | + <div class="form-group input-group mt-3 px-5"> | |
11 | + <input | |
12 | + type="text" | |
13 | + class="form-control form-control-sm" | |
14 | + id="search" | |
15 | + placeholder="Búsqueda" | |
16 | + teclado-virtual | |
17 | + ng-keypress="busquedaPress($event.keyCode)" | |
18 | + ng-model="filters" | |
19 | + /> | |
20 | + <div class="input-group-append"> | |
21 | + <button | |
22 | + ladda="searchLoading" | |
23 | + class="btn btn-outline-secondary" | |
24 | + type="button" | |
25 | + ng-click="busquedaPress(13)" | |
26 | + > | |
27 | + <i class="fa fa-search" aria-hidden="true"></i> | |
28 | + </button> | |
29 | + </div> | |
30 | + </div> | |
10 | 31 | <table class="table table-default table-hover table-sm table-abm table-striped mb-0"> |
11 | 32 | <thead> |
12 | 33 | <tr> |
... | ... | @@ -24,7 +45,7 @@ |
24 | 45 | </tr> |
25 | 46 | </thead> |
26 | 47 | <tbody> |
27 | - <tr ng-repeat="precioCondicion in preciosCondiciones"> | |
48 | + <tr ng-repeat="precioCondicion in preciosCondiciones | filter: filters"> | |
28 | 49 | <td ng-bind="precioCondicion.nombre"></td> |
29 | 50 | <td ng-bind="precioCondicion.listaPrecio.ID + ' - ' + precioCondicion.listaPrecio.DES + ' - ' + precioCondicion.listaPrecio.moneda.DETALLE"></td> |
30 | 51 | <td><span |