Commit bee50b2665dfe677442d25b7092775dd9e9c2190
1 parent
49d940c8a7
Exists in
master
quito modal vendedores
Showing
1 changed file
with
20 additions
and
9 deletions
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: 'Busqueda testing', | |
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:', |