Commit da8c0c2716724cb49aa0d1f46c4c47981437c21d
1 parent
f425e3f999
Exists in
master
columnas correctas, sucursal, numero hoja de ruta
Showing
2 changed files
with
12 additions
and
4 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -5,6 +5,8 @@ angular.module('focaListaHojaRuta') |
5 | 5 | function($scope, $filter, $uibModal, hojaRutaService) { |
6 | 6 | hojaRutaService.getHojasRuta().then(function(res) { |
7 | 7 | $scope.hojasRuta = res.data; |
8 | + $scope.puntoVenta = rellenar(res.data[0].sucursal, 4); | |
9 | + $scope.comprobante = rellenar(res.data[0].numeroHojaRuta, 8); | |
8 | 10 | }); |
9 | 11 | $scope.cabecera = []; |
10 | 12 | $scope.showCabecera = true; |
... | ... | @@ -14,7 +16,6 @@ angular.module('focaListaHojaRuta') |
14 | 16 | $scope.now = new Date(); |
15 | 17 | $scope.puntoVenta = '0000'; |
16 | 18 | $scope.comprobante = '00000000'; |
17 | - | |
18 | 19 | $scope.verDetalle = function(hojaRuta) { |
19 | 20 | var modalInstance = $uibModal.open( |
20 | 21 | { |
src/views/lista-hoja-ruta.html
... | ... | @@ -82,8 +82,11 @@ |
82 | 82 | <thead> |
83 | 83 | <tr class="d-flex"> |
84 | 84 | <th>#</th> |
85 | - <th>Sucursal</th> | |
86 | - <th>#HojaRuta</th> | |
85 | + <th>Fecha creacion</th> | |
86 | + <th>sucursal</th> | |
87 | + <th>idTransportista</th> | |
88 | + <th>idChofer</th> | |
89 | + <th>idVeh?culo</th> | |
87 | 90 | <th></th> |
88 | 91 | </tr> |
89 | 92 | </thead> |
... | ... | @@ -93,7 +96,11 @@ |
93 | 96 | > |
94 | 97 | <td ng-bind="key + 1"></td> |
95 | 98 | <td ng-bind="hojaRuta.sucursal"></td> |
96 | - <td ng-bind="hojaRuta.numeroHojaRuta"></td> | |
99 | + <td ng-bind="hojaRuta.fechaCreacion"></td> | |
100 | + <td ng-bind="hojaRuta.sucursal"></td> | |
101 | + <td ng-bind="hojaRuta.transportista[0].nombre"></td> | |
102 | + <td ng-bind="hojaRuta.chofer[0].nombre"></td> | |
103 | + <td ng-bind="hojaRuta.vehiculo[0].tractor"></td> | |
97 | 104 | <td> |
98 | 105 | <button |
99 | 106 | class="btn btn-secondary" |