Commit 9e6f3c0c1c13cc7b18be155f8177e14f698a4612
1 parent
9ff0854bf4
Exists in
master
quito modal vendedores
Showing
3 changed files
with
21 additions
and
33 deletions
Show diff stats
gulpfile.js
... | ... | @@ -43,11 +43,6 @@ gulp.task('uglify', ['templates'], function() { |
43 | 43 | gulp.dest(paths.tmp), |
44 | 44 | rename('foca-crear-remito.min.js'), |
45 | 45 | uglify(), |
46 | - replace('"ngRoute","ui.bootstrap","focaModalVendedores","focaBusquedaProductos",'+ | |
47 | - '"focaModalProveedor","focaBusquedaCliente","focaModalPrecioCondicion",'+ | |
48 | - '"focaModalFlete","focaDirectivas","focaModal","focaModalDomicilio",'+ | |
49 | - '"focaModalMoneda","focaModalCotizacion","focaConfiguracion","angular-ladda",'+ | |
50 | - '"focaModalNotaPedido","focaBotoneraLateral"', ''), | |
51 | 46 | gulp.dest(paths.dist) |
52 | 47 | ] |
53 | 48 | ); |
src/js/app.js
1 | -angular.module('focaCrearRemito', [ | |
2 | - 'ngRoute', | |
3 | - 'ui.bootstrap', | |
4 | - 'focaModalVendedores', | |
5 | - 'focaBusquedaProductos', | |
6 | - 'focaModalProveedor', | |
7 | - 'focaBusquedaCliente', | |
8 | - 'focaModalPrecioCondicion', | |
9 | - 'focaModalFlete', | |
10 | - 'focaDirectivas', | |
11 | - 'focaModal', | |
12 | - 'focaModalDomicilio', | |
13 | - 'focaModalMoneda', | |
14 | - 'focaModalCotizacion', | |
15 | - 'focaConfiguracion', | |
16 | - 'angular-ladda', | |
17 | - 'focaModalNotaPedido', | |
18 | - 'focaBotoneraLateral' | |
19 | -]); | |
1 | +angular.module('focaCrearRemito', []); |
src/js/controller.js
... | ... | @@ -478,15 +478,26 @@ angular.module('focaCrearRemito') .controller('remitoController', |
478 | 478 | |
479 | 479 | $scope.seleccionarVendedor = function() { |
480 | 480 | if(varlidarRemitoFacturado()) { |
481 | - var modalInstance = $uibModal.open( | |
482 | - { | |
483 | - ariaLabelledBy: 'Busqueda de Vendedores', | |
484 | - templateUrl: 'modal-vendedores.html', | |
485 | - controller: 'modalVendedoresCtrl', | |
486 | - size: 'lg' | |
487 | - } | |
488 | - ); | |
489 | - modalInstance.result.then( | |
481 | + var parametrosModal = { | |
482 | + titulo: 'Búsqueda vendedores', | |
483 | + query: '/vendedor', | |
484 | + columnas: [ | |
485 | + { | |
486 | + propiedad: 'CodVen', | |
487 | + nombre: 'Código', | |
488 | + filtro: { | |
489 | + nombre: 'rellenarDigitos', | |
490 | + parametro: 3 | |
491 | + } | |
492 | + }, | |
493 | + { | |
494 | + propiedad: 'NomVen', | |
495 | + nombre: 'Nombre' | |
496 | + } | |
497 | + ], | |
498 | + size: 'md' | |
499 | + }; | |
500 | + focaModalService.modal(parametrosModal).then( | |
490 | 501 | function(vendedor) { |
491 | 502 | $scope.$broadcast('addCabecera',{ |
492 | 503 | label: 'Vendedor:', |