Commit a576b0a68d02b5a7f590d2ec107aaaa385417674
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master(efernandez) See merge request !37
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -442,15 +442,26 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
442 | 442 | |
443 | 443 | $scope.seleccionarVendedor = function() { |
444 | 444 | if(validarNotaRemitada()) { |
445 | - var modalInstance = $uibModal.open( | |
446 | - { | |
447 | - ariaLabelledBy: 'Busqueda de Vendedores', | |
448 | - templateUrl: 'modal-vendedores.html', | |
449 | - controller: 'modalVendedoresCtrl', | |
450 | - size: 'lg' | |
451 | - } | |
452 | - ); | |
453 | - modalInstance.result.then( | |
445 | + var parametrosModal = { | |
446 | + titulo: 'Búsqueda vendedores', | |
447 | + query: '/vendedor', | |
448 | + columnas: [ | |
449 | + { | |
450 | + propiedad: 'CodVen', | |
451 | + nombre: 'Código', | |
452 | + filtro: { | |
453 | + nombre: 'rellenarDigitos', | |
454 | + parametro: 3 | |
455 | + } | |
456 | + }, | |
457 | + { | |
458 | + propiedad: 'NomVen', | |
459 | + nombre: 'Nombre' | |
460 | + } | |
461 | + ], | |
462 | + size: 'md' | |
463 | + }; | |
464 | + focaModalService.modal(parametrosModal).then( | |
454 | 465 | function(vendedor) { |
455 | 466 | $scope.$broadcast('addCabecera', { |
456 | 467 | label: 'Vendedor:', |