Commit 2cd0550b9b36bab9bd051cd77653d6388c6449e6
1 parent
dabb86c137
Exists in
master
and in
1 other branch
nombres
Showing
4 changed files
with
7 additions
and
18 deletions
Show diff stats
src/js/controller.js
1 | angular.module('focaAbmVehiculo') | 1 | angular.module('focaAbmVehiculo') |
2 | .controller('focaAbmVehiculosController', [ | 2 | .controller('focaAbmVehiculosController', [ |
3 | '$scope', 'focaAbmVehiculoService', '$location', 'focaModalService', '$uibModal', | 3 | '$scope', 'focaAbmVehiculoService', '$location', 'focaModalService', '$uibModal', |
4 | function($scope, focaAbmVehiculoService, $location, focaModalService, $uibModal) { | 4 | function($scope, focaAbmVehiculoService, $location, focaModalService, $uibModal) { |
5 | $scope.buscar = function(idTransportista) { | 5 | $scope.buscar = function(idTransportista) { |
6 | focaAbmVehiculoService | 6 | focaAbmVehiculoService |
7 | .getVehiculosPorTransportista(idTransportista) | 7 | .getVehiculosPorTransportista(idTransportista) |
8 | .then(function(datos) { | 8 | .then(function(datos) { |
9 | $scope.vehiculos = datos.data; | 9 | $scope.vehiculos = datos.data; |
10 | }); | 10 | }); |
11 | }; | 11 | }; |
12 | $scope.editar = function(id) { | 12 | $scope.editar = function(id) { |
13 | $location.path('/vehiculo/' + id + '/' + $scope.idTransportista); | 13 | $location.path('/vehiculo/' + id + '/' + $scope.idTransportista); |
14 | }; | 14 | }; |
15 | $scope.solicitarConfirmacion = function(vehiculo) { | 15 | $scope.solicitarConfirmacion = function(vehiculo) { |
16 | focaModalService.confirm('¿Está seguro que desea borrar el vehiculo ' + | 16 | focaModalService.confirm('¿Está seguro que desea borrar el vehiculo ' + |
17 | vehiculo.id + ' ' + vehiculo.tractor + ' ?').then( | 17 | vehiculo.id + ' ' + vehiculo.tractor + ' ?').then( |
18 | function(data) { | 18 | function(data) { |
19 | if(data) { | 19 | if(data) { |
20 | focaAbmVehiculoService.deleteVehiculo(vehiculo.id); | 20 | focaAbmVehiculoService.deleteVehiculo(vehiculo.id); |
21 | $scope.vehiculos.splice($scope.vehiculos.indexOf(vehiculo), 1); | 21 | $scope.vehiculos.splice($scope.vehiculos.indexOf(vehiculo), 1); |
22 | } | 22 | } |
23 | } | 23 | } |
24 | ); | 24 | ); |
25 | }; | 25 | }; |
26 | $scope.seleccionarTransportista = function() { | 26 | $scope.seleccionarTransportista = function() { |
27 | var modalInstance = $uibModal.open( | 27 | var modalInstance = $uibModal.open( |
28 | { | 28 | { |
29 | ariaLabelledBy: 'Busqueda de Transportista', | 29 | ariaLabelledBy: 'Busqueda de Transportista', |
30 | templateUrl: 'modal-proveedor.html', | 30 | templateUrl: 'modal-proveedor.html', |
31 | controller: 'focaModalProveedorCtrl', | 31 | controller: 'focaModalProveedorCtrl', |
32 | size: 'lg', | 32 | size: 'lg', |
33 | resolve: { | 33 | resolve: { |
34 | transportista: function() { | 34 | transportista: function() { |
35 | return true; | 35 | return true; |
36 | } | 36 | } |
37 | } | 37 | } |
38 | } | 38 | } |
39 | ); | 39 | ); |
40 | modalInstance.result.then( | 40 | modalInstance.result.then( |
41 | function(transprotista) { | 41 | function(transprotista) { |
42 | $scope.idTransportista = transprotista.COD; | 42 | $scope.idTransportista = transprotista.COD; |
43 | $scope.filtros = transprotista.NOM.trim(); | 43 | $scope.filtros = transprotista.NOM.trim(); |
44 | $scope.buscar(transprotista.COD); | 44 | $scope.buscar(transprotista.COD); |
45 | }, function() { | 45 | }, function() { |
46 | 46 | ||
47 | } | 47 | } |
48 | ); | 48 | ); |
49 | }; | 49 | }; |
50 | } | 50 | } |
51 | ]) | 51 | ]) |
52 | .controller('focaAbmVehiculoController', [ | 52 | .controller('focaAbmVehiculoController', [ |
53 | '$scope', 'focaAbmVehiculoService', '$routeParams', '$location', '$uibModal', | 53 | '$scope', 'focaAbmVehiculoService', '$routeParams', '$location', '$uibModal', |
54 | 'focaModalService', | 54 | 'focaModalService', |
55 | function($scope, focaAbmVehiculoService, $routeParams, $location, $uibModal, | 55 | function($scope, focaAbmVehiculoService, $routeParams, $location, $uibModal, |
56 | focaModalService) { | 56 | focaModalService) { |
57 | $scope.nuevo = $routeParams.idVehiculo == 0 ? true : false; | 57 | $scope.nuevo = $routeParams.idVehiculo == 0 ? true : false; |
58 | if($scope.nuevo) { | 58 | if($scope.nuevo) { |
59 | focaAbmVehiculoService | 59 | focaAbmVehiculoService |
60 | .getTransportistaPorId($routeParams.idTransportista) | 60 | .getTransportistaPorId($routeParams.idTransportista) |
61 | .then(function(res) { | 61 | .then(function(res) { |
62 | $scope.vehiculo.idTransportista = res.data.COD; | 62 | $scope.vehiculo.idTransportista = res.data.COD; |
63 | $scope.vehiculo.transportista = res.data; | 63 | $scope.vehiculo.transportista = res.data; |
64 | }) | 64 | }); |
65 | } | 65 | } |
66 | $scope.vehiculo = {}; | 66 | $scope.vehiculo = {}; |
67 | focaAbmVehiculoService.getVehiculo($routeParams.idVehiculo).then(function(res) { | 67 | focaAbmVehiculoService.getVehiculo($routeParams.idVehiculo).then(function(res) { |
68 | if(res.data) $scope.vehiculo = res.data; | 68 | if(res.data) $scope.vehiculo = res.data; |
69 | }); | 69 | }); |
70 | focaAbmVehiculoService.getCisternadoPorVehiculo($routeParams.idVehiculo) | 70 | focaAbmVehiculoService.getCisternadoPorVehiculo($routeParams.idVehiculo) |
71 | .then(function(res) { | 71 | .then(function(res) { |
72 | $scope.cisternas = res.data; | 72 | $scope.cisternas = res.data; |
73 | }); | 73 | }); |
74 | $scope.cancelar = function() { | 74 | $scope.cancelar = function() { |
75 | $location.path('/vehiculo'); | 75 | $location.path('/vehiculo'); |
76 | }; | 76 | }; |
77 | $scope.editar = function(id) { | 77 | $scope.editar = function(id) { |
78 | $location.path('/vehiculo/' + $routeParams.idVehiculo + '/cisterna/' + id); | 78 | $location.path('/vehiculo/' + $routeParams.idVehiculo + '/cisterna/' + id); |
79 | }; | 79 | }; |
80 | $scope.guardar = function() { | 80 | $scope.guardar = function() { |
81 | if(!$scope.vehiculo.transportista) { | 81 | if(!$scope.vehiculo.transportista) { |
82 | focaModalService.alert('Elija Transportista'); | 82 | focaModalService.alert('Elija Transportista'); |
83 | return; | 83 | return; |
84 | } | 84 | } |
85 | delete $scope.vehiculo.transportista; | 85 | delete $scope.vehiculo.transportista; |
86 | focaAbmVehiculoService.guerdarVehiculo($scope.vehiculo).then(function(res) { | 86 | focaAbmVehiculoService.guerdarVehiculo($scope.vehiculo).then(function(res) { |
87 | console.log(res.data); | 87 | console.log(res.data); |
88 | $location.path('/vehiculo/' + res.data.id + '/' + res.data.idTransportista); | 88 | $location.path('/vehiculo/' + res.data.id + '/' + res.data.idTransportista); |
89 | }); | 89 | }); |
90 | }; | 90 | }; |
91 | $scope.solicitarConfirmacionCisterna = function(cisterna) { | 91 | $scope.solicitarConfirmacionCisterna = function(cisterna) { |
92 | focaModalService.confirm('¿Está seguro que desea borrar la cisterna ' + | 92 | focaModalService.confirm('¿Está seguro que desea borrar la cisterna ' + |
93 | cisterna.id + ' ' + cisterna.codigo + ' ?').then( | 93 | cisterna.id + ' ' + cisterna.codigo + ' ?').then( |
94 | function(data) { | 94 | function(data) { |
95 | if(data) { | 95 | if(data) { |
96 | focaAbmVehiculoService.deleteCisterna(cisterna.id); | 96 | focaAbmVehiculoService.deleteCisterna(cisterna.id); |
97 | $scope.cisternas.splice($scope.cisternas.indexOf(cisterna), 1); | 97 | $scope.cisternas.splice($scope.cisternas.indexOf(cisterna), 1); |
98 | } | 98 | } |
99 | } | 99 | } |
100 | ); | 100 | ); |
101 | }; | 101 | }; |
102 | $scope.seleccionarTransportista = function() { | 102 | $scope.seleccionarTransportista = function() { |
103 | var modalInstance = $uibModal.open( | 103 | var modalInstance = $uibModal.open( |
104 | { | 104 | { |
105 | ariaLabelledBy: 'Busqueda de Transportista', | 105 | ariaLabelledBy: 'Busqueda de Transportista', |
106 | templateUrl: 'modal-proveedor.html', | 106 | templateUrl: 'modal-proveedor.html', |
107 | controller: 'focaModalProveedorCtrl', | 107 | controller: 'focaModalProveedorCtrl', |
108 | size: 'lg', | 108 | size: 'lg', |
109 | resolve: { | 109 | resolve: { |
110 | transportista: function() { | 110 | transportista: function() { |
111 | return true; | 111 | return true; |
112 | } | 112 | } |
113 | } | 113 | } |
114 | } | 114 | } |
115 | ); | 115 | ); |
116 | modalInstance.result.then( | 116 | modalInstance.result.then( |
117 | function(transprotista) { | 117 | function(transprotista) { |
118 | $scope.vehiculo.idTransportista = transprotista.COD; | 118 | $scope.vehiculo.idTransportista = transprotista.COD; |
119 | $scope.vehiculo.transportista = transprotista; | 119 | $scope.vehiculo.transportista = transprotista; |
120 | }, function() { | 120 | }, function() { |
121 | 121 | ||
122 | } | 122 | } |
123 | ); | 123 | ); |
124 | }; | 124 | }; |
125 | } | 125 | } |
126 | ]); | 126 | ]); |
127 | 127 |
src/views/foca-abm-cisterna-item.html
1 | <h4>Cisterna</h4> | 1 | <h4>Cisterna</h4> |
2 | <form name="formCisterna"> | 2 | <form name="formCisterna"> |
3 | <div class="form-group row"> | 3 | <div class="form-group row"> |
4 | <label class="offset-sm-1 col-sm-2 col-form-label">Código</label> | 4 | <label class="offset-sm-1 col-sm-2 col-form-label">Unidad</label> |
5 | <div class="col-sm-4"> | 5 | <div class="col-sm-4"> |
6 | <input | 6 | <input |
7 | class="form-control" | 7 | class="form-control" |
8 | type="text" | 8 | type="text" |
9 | teclado-virtual | 9 | teclado-virtual |
10 | ng-required="true" | 10 | ng-required="true" |
11 | ng-model="cisterna.codigo" | 11 | ng-model="cisterna.codigo" |
12 | /> | 12 | /> |
13 | </div> | 13 | </div> |
14 | </div> | 14 | </div> |
15 | <div class="form-group row"> | 15 | <div class="form-group row"> |
16 | <label class="offset-sm-1 col-sm-2 col-form-label">Capacidad</label> | 16 | <label class="offset-sm-1 col-sm-2 col-form-label">Capacidad</label> |
17 | <div class="col-sm-4"> | 17 | <div class="col-sm-4"> |
18 | <input | 18 | <input |
19 | class="form-control" | 19 | class="form-control" |
20 | type="text" | 20 | type="text" |
21 | teclado-virtual | 21 | teclado-virtual |
22 | foca-tipo-input | 22 | foca-tipo-input |
23 | ng-model="cisterna.capacidad" | 23 | ng-model="cisterna.capacidad" |
24 | ng-required="true" | 24 | ng-required="true" |
25 | /> | 25 | /> |
26 | </div> | 26 | </div> |
27 | </div> | 27 | </div> |
28 | <div class="form-group row"> | 28 | <div class="form-group row"> |
29 | <label class="offset-sm-1 col-sm-2 col-form-label">Unidad de medida</label> | 29 | <label class="offset-sm-1 col-sm-2 col-form-label">Unidad de medida</label> |
30 | <div class="col-sm-4 input-group"> | 30 | <div class="col-sm-4 input-group"> |
31 | <input | 31 | <input |
32 | ng-model="cisterna.unidadMedida.NOM" | 32 | ng-model="cisterna.unidadMedida.NOM" |
33 | class="form-control" | 33 | class="form-control" |
34 | readonly | 34 | readonly |
35 | /> | 35 | /> |
36 | <div class="input-group-append"> | 36 | <div class="input-group-append"> |
37 | <button | 37 | <button |
38 | ladda="searchLoading" | 38 | ladda="searchLoading" |
39 | class="btn btn-outline-secondary form-control" | 39 | class="btn btn-outline-secondary form-control" |
40 | type="button" | 40 | type="button" |
41 | ng-click="seleccionarUnidadMedida()" | 41 | ng-click="seleccionarUnidadMedida()" |
42 | ng-disabled="editar" | 42 | ng-disabled="editar" |
43 | > | 43 | > |
44 | <i class="fa fa-search" aria-hidden="true"></i> | 44 | <i class="fa fa-search" aria-hidden="true"></i> |
45 | </button> | 45 | </button> |
46 | </div> | 46 | </div> |
47 | </div> | 47 | </div> |
48 | </div> | 48 | </div> |
49 | <div class="form-group row"> | 49 | <div class="form-group row"> |
50 | <label class="offset-sm-1 col-sm-2 col-form-label">Carga</label> | 50 | <label class="offset-sm-1 col-sm-2 col-form-label">Carga</label> |
51 | <div class="col-sm-4"> | 51 | <div class="col-sm-4"> |
52 | <input | 52 | <input |
53 | class="form-control" | 53 | class="form-control" |
54 | foca-tipo-input | 54 | foca-tipo-input |
55 | teclado-virtual | 55 | teclado-virtual |
56 | ng-model="cisterna.cisternaCarga.cantidad" | 56 | ng-model="cisterna.cisternaCarga.cantidad" |
57 | readonly | 57 | readonly |
58 | /> | 58 | /> |
59 | </div> | 59 | </div> |
60 | </div> | 60 | </div> |
61 | <div class="form-group row"> | 61 | <div class="form-group row"> |
62 | <label class="offset-sm-1 col-sm-2 col-form-label">Producto</label> | 62 | <label class="offset-sm-1 col-sm-2 col-form-label">Producto</label> |
63 | <div class="col-sm-4 input-group"> | 63 | <div class="col-sm-4 input-group"> |
64 | <input | 64 | <input |
65 | ng-model="cisterna.cisternaCarga.articulo.DetArt" | 65 | ng-model="cisterna.cisternaCarga.articulo.DetArt" |
66 | class="form-control" | 66 | class="form-control" |
67 | readonly | 67 | readonly |
68 | /> | 68 | /> |
69 | <!-- <div class="input-group-append"> | 69 | <!-- <div class="input-group-append"> |
70 | <button | 70 | <button |
71 | ladda="searchLoading" | 71 | ladda="searchLoading" |
72 | class="btn btn-outline-secondary form-control" | 72 | class="btn btn-outline-secondary form-control" |
73 | type="button" | 73 | type="button" |
74 | ng-click="seleccionarArticulo(13)" | 74 | ng-click="seleccionarArticulo(13)" |
75 | ng-disabled="editar" | 75 | ng-disabled="editar" |
76 | > | 76 | > |
77 | <i class="fa fa-search" aria-hidden="true"></i> | 77 | <i class="fa fa-search" aria-hidden="true"></i> |
78 | </button> | 78 | </button> |
79 | </div> --> | 79 | </div> --> |
80 | </div> | 80 | </div> |
81 | </div> | 81 | </div> |
82 | <div class="form-group row"> | 82 | <div class="form-group row"> |
83 | <div class="col-sm-7 text-right"> | 83 | <div class="col-sm-7 text-right"> |
84 | <button | 84 | <button |
85 | class="btn btn-primary" | 85 | class="btn btn-primary" |
86 | ng-click="guardar()" | 86 | ng-click="guardar()" |
87 | ng-disabled="!formCisterna.$valid" | 87 | ng-disabled="!formCisterna.$valid" |
88 | >Guardar</button> | 88 | >Guardar</button> |
89 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> | 89 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> |
90 | </div> | 90 | </div> |
91 | </div> | 91 | </div> |
92 | </form> | 92 | </form> |
93 | 93 |
src/views/foca-abm-vehiculos-item.html
1 | <h4>Vehiculo</h4> | 1 | <h4>Vehiculo</h4> |
2 | <form name="formVehiculo"> | 2 | <form name="formVehiculo"> |
3 | <input type="hidden" name="id" ng-model="sector.id" /> | 3 | <input type="hidden" name="id" ng-model="sector.id" /> |
4 | <div class="form-group row"> | 4 | <div class="form-group row"> |
5 | <label class="offset-sm-1 col-sm-2 col-form-label">Transportista</label> | 5 | <label class="offset-sm-1 col-sm-2 col-form-label">Transportista</label> |
6 | <div class="col-sm-4 input-group"> | 6 | <div class="col-sm-4 input-group"> |
7 | <input | 7 | <input |
8 | class="form-control" | 8 | class="form-control" |
9 | type="text" | 9 | type="text" |
10 | ng-model="vehiculo.transportista.NOM" | 10 | ng-model="vehiculo.transportista.NOM" |
11 | readonly | 11 | readonly |
12 | /> | 12 | /> |
13 | <!-- <div class="input-group-append"> | 13 | <!-- <div class="input-group-append"> |
14 | <button | 14 | <button |
15 | class="btn btn-outline-secondary form-control" | 15 | class="btn btn-outline-secondary form-control" |
16 | type="button" | 16 | type="button" |
17 | ng-click="seleccionarTransportista()"> | 17 | ng-click="seleccionarTransportista()"> |
18 | <i class="fa fa-search" aria-hidden="true"></i> | 18 | <i class="fa fa-search" aria-hidden="true"></i> |
19 | </button> | 19 | </button> |
20 | </div> --> | 20 | </div> --> |
21 | </div> | 21 | </div> |
22 | </div> | 22 | </div> |
23 | <div class="form-group row"> | 23 | <div class="form-group row"> |
24 | <label class="offset-sm-1 col-sm-2 col-form-label">Código</label> | 24 | <label class="offset-sm-1 col-sm-2 col-form-label">Unidad</label> |
25 | <div class="col-sm-4"> | 25 | <div class="col-sm-4"> |
26 | <input | 26 | <input |
27 | class="form-control" | 27 | class="form-control" |
28 | type="text" | 28 | type="text" |
29 | teclado-virtual | 29 | teclado-virtual |
30 | ng-model="vehiculo.codigo" | 30 | ng-model="vehiculo.codigo" |
31 | /> | 31 | /> |
32 | </div> | 32 | </div> |
33 | </div> | 33 | </div> |
34 | <div class="form-group row"> | 34 | <div class="form-group row"> |
35 | <label class="offset-sm-1 col-sm-2 col-form-label">Dominio tractor</label> | 35 | <label class="offset-sm-1 col-sm-2 col-form-label">Dominio tractor</label> |
36 | <div class="col-sm-4"> | 36 | <div class="col-sm-4"> |
37 | <input | 37 | <input |
38 | class="form-control" | 38 | class="form-control" |
39 | type="text" | 39 | type="text" |
40 | teclado-virtual | 40 | teclado-virtual |
41 | ng-model="vehiculo.tractor" | 41 | ng-model="vehiculo.tractor" |
42 | ng-required="true" | 42 | ng-required="true" |
43 | /> | 43 | /> |
44 | </div> | 44 | </div> |
45 | </div> | 45 | </div> |
46 | <div class="form-group row"> | 46 | <div class="form-group row"> |
47 | <label class="offset-sm-1 col-sm-2 col-form-label">Dominio semi</label> | 47 | <label class="offset-sm-1 col-sm-2 col-form-label">Dominio semi</label> |
48 | <div class="col-sm-4"> | 48 | <div class="col-sm-4"> |
49 | <input | 49 | <input |
50 | class="form-control" | 50 | class="form-control" |
51 | type="text" | 51 | type="text" |
52 | teclado-virtual | 52 | teclado-virtual |
53 | ng-model="vehiculo.semi" | 53 | ng-model="vehiculo.semi" |
54 | ng-required="true" | 54 | ng-required="true" |
55 | /> | 55 | /> |
56 | </div> | 56 | </div> |
57 | </div> | 57 | </div> |
58 | <div class="form-group row"> | ||
59 | <label class="offset-sm-1 col-sm-2 col-form-label">Capacidad</label> | ||
60 | <div class="col-sm-4"> | ||
61 | <input | ||
62 | class="form-control" | ||
63 | type="text" | ||
64 | teclado-virtual | ||
65 | ng-model="vehiculo.capacidad" | ||
66 | ng-required="true" | ||
67 | /> | ||
68 | </div> | ||
69 | </div> | 58 | </div> |
70 | <div class="form-group row"> | 59 | <div class="form-group row"> |
71 | <div class="col-sm-7 text-right"> | 60 | <div class="col-sm-7 text-right"> |
72 | <button | 61 | <button |
73 | class="btn btn-primary" | 62 | class="btn btn-primary" |
74 | ng-click="guardar()" | 63 | ng-click="guardar()" |
75 | ng-disabled="!formVehiculo.$valid" | 64 | ng-disabled="!formVehiculo.$valid" |
76 | >Guardar</button> | 65 | >Guardar</button> |
77 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> | 66 | <button class="btn btn-default" ng-click="cancelar()">Cancelar</button> |
78 | </div> | 67 | </div> |
79 | </div> | 68 | </div> |
80 | </form> | 69 | </form> |
81 | <div class="col-12" ng-show="!nuevo"> | 70 | <div class="col-12" ng-show="!nuevo"> |
82 | <h4>Cisternas</h4> | 71 | <h4>Cisternas</h4> |
83 | <table class="table table-sm table-striped table-dark"> | 72 | <table class="table table-sm table-striped table-dark"> |
84 | <thead> | 73 | <thead> |
85 | <tr> | 74 | <tr> |
86 | <th>Código</th> | 75 | <th>Unidad</th> |
87 | <th>Unidad de Medida</th> | 76 | <th>Unidad de Medida</th> |
88 | <th>Capacidad</th> | 77 | <th>Capacidad</th> |
89 | <th>Carga</th> | 78 | <th>Carga</th> |
90 | <th class="text-center"> | 79 | <th class="text-center"> |
91 | <button class="btn btn-default boton-accion" ng-click="editar(0)"> | 80 | <button class="btn btn-default boton-accion" ng-click="editar(0)"> |
92 | <i class="fa fa-plus"></i> | 81 | <i class="fa fa-plus"></i> |
93 | </button> | 82 | </button> |
94 | </th> | 83 | </th> |
95 | </tr> | 84 | </tr> |
96 | </thead> | 85 | </thead> |
97 | <tbody> | 86 | <tbody> |
98 | <tr ng-repeat="cisterna in cisternas | filter:filtros"> | 87 | <tr ng-repeat="cisterna in cisternas | filter:filtros"> |
99 | <td ng-bind="cisterna.id"></td> | 88 | <td ng-bind="cisterna.id"></td> |
100 | <td ng-bind="cisterna.unidadMedida.NOM"></td> | 89 | <td ng-bind="cisterna.unidadMedida.NOM"></td> |
101 | <td ng-bind="cisterna.capacidad"></td> | 90 | <td ng-bind="cisterna.capacidad"></td> |
102 | <td ng-bind="cisterna.cisternaCarga.cantidad || 0"></td> | 91 | <td ng-bind="cisterna.cisternaCarga.cantidad || 0"></td> |
103 | <td class="text-center"> | 92 | <td class="text-center"> |
104 | <button | 93 | <button |
105 | class="btn btn-default boton-accion" | 94 | class="btn btn-default boton-accion" |
106 | ng-click="editar(cisterna.id)" | 95 | ng-click="editar(cisterna.id)" |
107 | > | 96 | > |
108 | <i class="fa fa-pencil"></i> | 97 | <i class="fa fa-pencil"></i> |
109 | </button> | 98 | </button> |
110 | <button | 99 | <button |
111 | class="btn btn-default boton-accion" | 100 | class="btn btn-default boton-accion" |
112 | ng-click="solicitarConfirmacionCisterna(cisterna)" | 101 | ng-click="solicitarConfirmacionCisterna(cisterna)" |
113 | > | 102 | > |
114 | <i class="fa fa-trash"></i> | 103 | <i class="fa fa-trash"></i> |
115 | </button> | 104 | </button> |
116 | </td> | 105 | </td> |
117 | </tr> | 106 | </tr> |
118 | </body> | 107 | </body> |
119 | </table> | 108 | </table> |
120 | </div> | 109 | </div> |
121 | 110 |
src/views/foca-abm-vehiculos-listado.html
1 | <div class="col-12"> | 1 | <div class="col-12"> |
2 | <h4>Vehiculos</h4> | 2 | <h4>Vehiculos</h4> |
3 | <div class="col-4 form-group input-group"> | 3 | <div class="col-4 form-group input-group"> |
4 | <input | 4 | <input |
5 | class="form-control form-control-sm" | 5 | class="form-control form-control-sm" |
6 | ng-model="filtros" | 6 | ng-model="filtros" |
7 | placeholder="Transportista" | 7 | placeholder="Transportista" |
8 | /> | 8 | /> |
9 | <div class="input-group-append"> | 9 | <div class="input-group-append"> |
10 | <button | 10 | <button |
11 | class="btn btn-outline-secondary form-control-sm" | 11 | class="btn btn-outline-secondary form-control-sm" |
12 | ng-click="seleccionarTransportista()" | 12 | ng-click="seleccionarTransportista()" |
13 | ><i class="fa fa-search" aria-hidden="true"></i></button> | 13 | ><i class="fa fa-search" aria-hidden="true"></i></button> |
14 | </div> | 14 | </div> |
15 | </div> | 15 | </div> |
16 | <!-- <div class="col-6 form-group"> | 16 | <!-- <div class="col-6 form-group"> |
17 | <input | 17 | <input |
18 | type="text" | 18 | type="text" |
19 | teclado-virtual | 19 | teclado-virtual |
20 | class="form-control form-control-sm" | 20 | class="form-control form-control-sm" |
21 | placeholder="Búsqueda" | 21 | placeholder="Búsqueda" |
22 | ng-model="filtros" | 22 | ng-model="filtros" |
23 | /> | 23 | /> |
24 | </div> --> | 24 | </div> --> |
25 | <table class="table table-sm table-striped table-dark"> | 25 | <table class="table table-sm table-striped table-dark"> |
26 | <thead> | 26 | <thead> |
27 | <tr> | 27 | <tr> |
28 | <th>Código</th> | 28 | <th>Unidad</th> |
29 | <th>Tractor</th> | 29 | <th>Tractor</th> |
30 | <th>Semi</th> | 30 | <th>Semi</th> |
31 | <th>Capacidad</th> | 31 | <th>Capacidad</th> |
32 | <th>Cisternado</th> | 32 | <th>Cisternado</th> |
33 | <th class="text-center"> | 33 | <th class="text-center"> |
34 | <button | 34 | <button |
35 | ng-disabled="!idTransportista" | 35 | ng-disabled="!idTransportista" |
36 | class="btn btn-default boton-accion" | 36 | class="btn btn-default boton-accion" |
37 | ng-click="editar(0)" | 37 | ng-click="editar(0)" |
38 | ><i class="fa fa-plus"></i> | 38 | ><i class="fa fa-plus"></i> |
39 | </button> | 39 | </button> |
40 | </th> | 40 | </th> |
41 | </tr> | 41 | </tr> |
42 | </thead> | 42 | </thead> |
43 | <tbody> | 43 | <tbody> |
44 | <tr ng-repeat="vehiculo in vehiculos | filter:filtros"> | 44 | <tr ng-repeat="vehiculo in vehiculos | filter:filtros"> |
45 | <td ng-bind="vehiculo.id"></td> | 45 | <td ng-bind="vehiculo.codigo"></td> |
46 | <td ng-bind="vehiculo.tractor"></td> | 46 | <td ng-bind="vehiculo.tractor"></td> |
47 | <td ng-bind="vehiculo.semi"></td> | 47 | <td ng-bind="vehiculo.semi"></td> |
48 | <td ng-bind="vehiculo.capacidad"></td> | 48 | <td ng-bind="vehiculo.capacidad"></td> |
49 | <td ng-bind="vehiculo.cisternado"></td> | 49 | <td ng-bind="vehiculo.cisternado"></td> |
50 | <td class="text-center"> | 50 | <td class="text-center"> |
51 | <button | 51 | <button |
52 | class="btn btn-default boton-accion" | 52 | class="btn btn-default boton-accion" |
53 | ng-click="editar(vehiculo.id)" | 53 | ng-click="editar(vehiculo.id)" |
54 | > | 54 | > |
55 | <i class="fa fa-pencil"></i> | 55 | <i class="fa fa-pencil"></i> |
56 | </button> | 56 | </button> |
57 | <button | 57 | <button |
58 | class="btn btn-default boton-accion" | 58 | class="btn btn-default boton-accion" |
59 | ng-click="solicitarConfirmacion(vehiculo)" | 59 | ng-click="solicitarConfirmacion(vehiculo)" |
60 | > | 60 | > |
61 | <i class="fa fa-trash"></i> | 61 | <i class="fa fa-trash"></i> |
62 | </button> | 62 | </button> |
63 | </td> | 63 | </td> |
64 | </tr> | 64 | </tr> |
65 | </body> | 65 | </body> |
66 | </table> | 66 | </table> |
67 | <a href="#!/" title="Salir" | 67 | <a href="#!/" title="Salir" |
68 | class="btn btn-secondary btn-block float-right col-md-2" | 68 | class="btn btn-secondary btn-block float-right col-md-2" |
69 | > | 69 | > |
70 | Salir | 70 | Salir |
71 | </a> | 71 | </a> |
72 | </div> | 72 | </div> |
73 | 73 |