Commit 6b9369a8dcd62de300e92cc6b4036abd6487117a
Exists in
master
and in
2 other branches
Merge branch 'master' into 'develop'
Master(mpuebla) See merge request !23
Showing
2 changed files
Show diff stats
src/js/controller.js
| 1 | angular.module('focaHojaRuta') | 1 | angular.module('focaHojaRuta') |
| 2 | .controller('listaHojaRutaCtrl', | 2 | .controller('listaHojaRutaCtrl', |
| 3 | [ | 3 | [ |
| 4 | '$scope', | 4 | '$scope', '$location', '$filter', '$uibModal', 'hojaRutaService', |
| 5 | '$location', | 5 | 'focaLoginService', 'focaModalService', '$rootScope', '$localStorage', |
| 6 | '$filter', | 6 | function ($scope, $location, $filter, $uibModal, hojaRutaService, |
| 7 | '$uibModal', | 7 | focaLoginService, focaModalService, $rootScope, $localStorage) { |
| 8 | 'hojaRutaService', | ||
| 9 | 'focaLoginService', | ||
| 10 | 'focaModalService', | ||
| 11 | '$rootScope', | ||
| 12 | '$localStorage', | ||
| 13 | function ( | ||
| 14 | $scope, | ||
| 15 | $location, | ||
| 16 | $filter, | ||
| 17 | $uibModal, | ||
| 18 | hojaRutaService, | ||
| 19 | focaLoginService, | ||
| 20 | focaModalService, | ||
| 21 | $rootScope, | ||
| 22 | $localStorage | ||
| 23 | ) { | ||
| 24 | 8 | ||
| 25 | var loginData = focaLoginService.getLoginData(); | 9 | var loginData = focaLoginService.getLoginData(); |
| 26 | |||
| 27 | config(); | 10 | config(); |
| 28 | 11 | init(); | |
| 29 | function config() { | 12 | function config() { |
| 30 | |||
| 31 | $scope.cabecera = []; | 13 | $scope.cabecera = []; |
| 32 | $scope.showCabecera = true; | 14 | $scope.showCabecera = true; |
| 33 | $scope.now = new Date(); | 15 | $scope.now = new Date(); |
| 34 | $scope.puntoVenta = '0000'; | 16 | $scope.puntoVenta = '0000'; |
| 35 | $scope.comprobante = '00000000'; | 17 | $scope.comprobante = '00000000'; |
| 36 | } | 18 | } |
| 37 | 19 | function init() { | |
| 38 | hojaRutaService.getHojaRuta(loginData.chofer).then(function (res) { | 20 | hojaRutaService.getHojaRuta(loginData.chofer) |
| 39 | 21 | .then(function (res) { | |
| 40 | if (res.data) { | 22 | if (res.data) { |
| 41 | var hojaRuta = res.data; | 23 | var hojaRuta = res.data; |
| 42 | $scope.hojaRuta = hojaRuta; | 24 | $scope.hojaRuta = hojaRuta; |
| 43 | $scope.puntoVenta = hojaRuta.sucursal; | 25 | $scope.puntoVenta = hojaRuta.sucursal; |
| 44 | $scope.comprobante = hojaRuta.numeroHojaRuta; | 26 | $scope.comprobante = hojaRuta.numeroHojaRuta; |
| 45 | addCabecera('Transportista:', hojaRuta.transportista.NOM); | 27 | addCabecera('Transportista:', hojaRuta.transportista.NOM); |
| 46 | addCabecera('Chofer:', hojaRuta.chofer.nombre); | 28 | addCabecera('Chofer:', hojaRuta.chofer.nombre); |
| 47 | addCabecera('Vehículo:', hojaRuta.vehiculo.tractor); | 29 | addCabecera('Vehículo:', hojaRuta.vehiculo.tractor); |
| 48 | } else { | 30 | } else { |
| 49 | focaModalService.alert('Sin hoja de ruta asignada'); | 31 | focaModalService.alert('Sin hoja de ruta asignada'); |
| 50 | $location.path('/'); | 32 | $location.path('/'); |
| 51 | } | 33 | } |
| 52 | 34 | watch(); | |
| 53 | watch(); | 35 | if (!$scope.estadoRed) { |
| 54 | 36 | getLSHojaRuta(); | |
| 55 | if (!$scope.estadoRed) { | 37 | } |
| 56 | getLSHojaRuta(); | 38 | }); |
| 57 | } | 39 | } |
| 58 | |||
| 59 | |||
| 60 | }); | ||
| 61 | |||
| 62 | function watch() { | 40 | function watch() { |
| 63 | |||
| 64 | $scope.$watch('hojaRuta', function (nuevoValor) { | 41 | $scope.$watch('hojaRuta', function (nuevoValor) { |
| 65 | $localStorage.hojaRuta = JSON.stringify(nuevoValor); | 42 | $localStorage.hojaRuta = JSON.stringify(nuevoValor); |
| 66 | }, true); | 43 | }, true); |
| 67 | } | 44 | } |
| 68 | |||
| 69 | $scope.verDetalle = function (remito) { | 45 | $scope.verDetalle = function (remito) { |
| 70 | var modalInstance = $uibModal.open( | 46 | var modalInstance = $uibModal.open( |
| 71 | { | 47 | { |
| 72 | ariaLabelledBy: 'Detalle hoja ruta', | 48 | ariaLabelledBy: 'Detalle hoja ruta', |
| 73 | templateUrl: 'modal-detalle-hoja-ruta.html', | 49 | templateUrl: 'modal-detalle-hoja-ruta.html', |
| 74 | controller: 'focaModalDetalleHojaRutaController', | 50 | controller: 'focaModalDetalleHojaRutaController', |
| 75 | resolve: { | 51 | resolve: { |
| 76 | parametros: { | 52 | parametros: { |
| 77 | remito: remito, | 53 | remito: remito, |
| 78 | } | 54 | } |
| 79 | }, | 55 | }, |
| 80 | size: 'lg' | 56 | size: 'lg' |
| 81 | } | 57 | } |
| 82 | ); | 58 | ); |
| 83 | modalInstance.result.then(function () { | 59 | modalInstance.result |
| 84 | //funcion se ejecuta cuando se carga pantalla | 60 | .then(function (data) { |
| 85 | }); | 61 | //funcion se ejecuta cuando se carga pantalla |
| 62 | console.log(data); | ||
| 63 | }) | ||
| 64 | .catch(function (e) { console.info(e); }); | ||
| 86 | }; | 65 | }; |
| 87 | |||
| 88 | function addCabecera(label, valor) { | ||
| 89 | var propiedad = $filter('filter')($scope.cabecera, { label: label }, true); | ||
| 90 | if (propiedad.length === 1) { | ||
| 91 | propiedad[0].valor = valor; | ||
| 92 | } else { | ||
| 93 | $scope.cabecera.push({ label: label, valor: valor }); | ||
| 94 | } | ||
| 95 | } | ||
| 96 | |||
| 97 | $scope.rellenar = function (relleno, longitud) { | 66 | $scope.rellenar = function (relleno, longitud) { |
| 98 | relleno = '' + relleno; | 67 | relleno = '' + relleno; |
| 99 | while (relleno.length < longitud) { | 68 | while (relleno.length < longitud) { |
| 100 | relleno = '0' + relleno; | 69 | relleno = '0' + relleno; |
| 101 | } | 70 | } |
| 102 | 71 | ||
| 103 | return relleno; | 72 | return relleno; |
| 104 | }; | 73 | }; |
| 105 | |||
| 106 | $scope.salir = function () { | 74 | $scope.salir = function () { |
| 107 | $location.path('/'); | 75 | $location.path('/'); |
| 108 | }; | 76 | }; |
| 109 | |||
| 110 | $scope.terminarHojaRuta = function () { | 77 | $scope.terminarHojaRuta = function () { |
| 111 | focaModalService | 78 | focaModalService |
| 112 | .confirm('¿Desea terminar la hoja de ruta? No podra realizar ninguna ' + | 79 | .confirm('¿Desea terminar la hoja de ruta? No podra realizar ninguna ' + |
| 113 | 'otra descarga ni modificación') | 80 | 'otra descarga ni modificación') |
| 114 | .then(function () { $scope.datosExtraCierre(terminar); }); | 81 | .then(function () { $scope.datosExtraCierre(terminar); }); |
| 115 | function terminar(datosExtraCierre) { | 82 | function terminar(datosExtraCierre) { |
| 116 | $scope.hojaRuta = angular.extend({}, $scope.hojaRuta, datosExtraCierre); | 83 | $scope.hojaRuta = angular.extend({}, $scope.hojaRuta, datosExtraCierre); |
| 117 | //limpio objeto para guardar | 84 | //limpio objeto para guardar |
| 118 | delete $scope.hojaRuta.chofer; | 85 | delete $scope.hojaRuta.chofer; |
| 119 | delete $scope.hojaRuta.remitos; | 86 | delete $scope.hojaRuta.remitos; |
| 120 | delete $scope.hojaRuta.transportista; | 87 | delete $scope.hojaRuta.transportista; |
| 121 | delete $scope.hojaRuta.vehiculo; | 88 | delete $scope.hojaRuta.vehiculo; |
| 122 | 89 | ||
| 123 | $scope.hojaRuta.fechaCreacion = | 90 | $scope.hojaRuta.fechaCreacion = |
| 124 | $scope.hojaRuta.fechaCreacion.slice(0, 19).replace('T', ' '); | 91 | $scope.hojaRuta.fechaCreacion.slice(0, 19).replace('T', ' '); |
| 125 | $scope.hojaRuta.fechaReparto = | 92 | $scope.hojaRuta.fechaReparto = |
| 126 | $scope.hojaRuta.fechaReparto.slice(0, 19).replace('T', ' '); | 93 | $scope.hojaRuta.fechaReparto.slice(0, 19).replace('T', ' '); |
| 127 | $scope.hojaRuta.estado = 2; | 94 | $scope.hojaRuta.estado = 2; |
| 128 | hojaRutaService.terminarHojaRuta($scope.hojaRuta).then( | 95 | hojaRutaService.terminarHojaRuta($scope.hojaRuta).then( |
| 129 | function () { | 96 | function () { |
| 130 | focaModalService.alert( | 97 | focaModalService.alert( |
| 131 | 'Hoja de ruta ' + | 98 | 'Hoja de ruta ' + |
| 132 | $filter('comprobante')([$scope.puntoVenta, | 99 | $filter('comprobante')([$scope.puntoVenta, |
| 133 | $scope.comprobante]) + ' cerrada con éxito'); | 100 | $scope.comprobante]) + ' cerrada con éxito'); |
| 134 | $location.path('/'); | 101 | $location.path('/'); |
| 135 | } | 102 | } |
| 136 | ); | 103 | ); |
| 137 | } | 104 | } |
| 138 | }; | 105 | }; |
| 139 | |||
| 140 | $scope.datosExtraCierre = function (terminar) { | 106 | $scope.datosExtraCierre = function (terminar) { |
| 141 | var modalInstance = $uibModal.open( | 107 | var modalInstance = $uibModal.open( |
| 142 | { | 108 | { |
| 143 | templateUrl: 'focaDatosExtra.html', | 109 | templateUrl: 'focaDatosExtra.html', |
| 144 | controller: 'focaModalDatosExtraCierre', | 110 | controller: 'focaModalDatosExtraCierre', |
| 145 | } | 111 | } |
| 146 | ); | 112 | ); |
| 147 | modalInstance.result.then(terminar); | 113 | modalInstance.result.then(terminar); |
| 148 | }; | 114 | }; |
| 149 | |||
| 150 | $scope.modalDescargas = function () { | 115 | $scope.modalDescargas = function () { |
| 151 | delete $scope.hojaRuta.remitos[0].cliente; | 116 | delete $scope.hojaRuta.remitos[0].cliente; |
| 152 | var remito = $scope.hojaRuta.remitos[0]; | 117 | var remito = $scope.hojaRuta.remitos[0]; |
| 153 | var msg = ''; | 118 | var msg = ''; |
| 154 | var mostrarMensaje = true; | 119 | var mostrarMensaje = true; |
| 155 | for (var i = 0; i < remito.cisternas.length; i++) { | 120 | for (var i = 0; i < remito.cisternas.length; i++) { |
| 156 | if (remito.cisternas[i].cisternaCarga.cantidad <= 0) | 121 | if (remito.cisternas[i].cisternaCarga.cantidad <= 0) |
| 157 | msg += 'Cisterna ' + remito.cisternas[i].cisternaCarga.articulo.DetArt + | 122 | msg += 'Cisterna ' + remito.cisternas[i].cisternaCarga.articulo.DetArt + |
| 158 | ' esta vacía.\n'; | 123 | ' esta vacía.\n'; |
| 159 | else | 124 | else |
| 160 | mostrarMensaje = false; | 125 | mostrarMensaje = false; |
| 161 | |||
| 162 | } | 126 | } |
| 163 | if (mostrarMensaje === true) { | 127 | if (mostrarMensaje === true) { |
| 164 | focaModalService.alert(msg); | 128 | focaModalService.alert(msg); |
| 165 | return; | 129 | return; |
| 166 | } | 130 | } |
| 167 | var modalInstance = $uibModal.open( | 131 | var modalInstance = $uibModal.open( |
| 168 | { | 132 | { |
| 169 | templateUrl: 'foca-modal-descarga.html', | 133 | templateUrl: 'foca-modal-descarga.html', |
| 170 | controller: 'focaModalDescargaCtrl', | 134 | controller: 'focaModalDescargaCtrl', |
| 171 | resolve: { | 135 | resolve: { |
| 172 | remito: function () { return remito; } | 136 | remito: function () { return remito; } |
| 173 | }, | 137 | }, |
| 174 | } | 138 | } |
| 175 | ); | 139 | ); |
| 176 | |||
| 177 | modalInstance.result.then(function (data) { | 140 | modalInstance.result.then(function (data) { |
| 178 | |||
| 179 | console.log(data); | 141 | console.log(data); |
| 180 | }); | 142 | }); |
| 181 | }; | 143 | }; |
| 182 | 144 | $scope.articulosDescargados = function (articulosRemito) { | |
| 145 | for (var i = 0; i < articulosRemito.length; i++) { | ||
| 146 | if (articulosRemito[i].cantidadDescargada > 0) continue; | ||
| 147 | else return false; | ||
| 148 | } | ||
| 149 | return true; | ||
| 150 | }; | ||
| 151 | $scope.estaPendiente = function () { | ||
| 152 | var pendiente = false; | ||
| 153 | $scope.hojaRuta.remitos.forEach(function (remito) { | ||
| 154 | if (pendiente === false) { | ||
| 155 | var aDescargado = false; | ||
| 156 | for (var i = 0; i < remito.articulosRemito.length; i++) { | ||
| 157 | if (remito.articulosRemito[i].cantidadDescargada > 0) | ||
| 158 | aDescargado = true; |
src/views/lista-hoja-ruta.html
| 1 | <div> | 1 | <div class="row mx-0"> |
| 2 | <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2"> | 2 | <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2"> |
| 3 | <div class="row p-1 panel-informativo"> | 3 | <div class="row p-1 panel-informativo"> |
| 4 | <div class="col-12"> | 4 | <div class="col-12"> |
| 5 | <div class="row"> | 5 | <div class="row"> |
| 6 | <div class="col-12 col-sm-4 nota-pedido"> | 6 | <div class="col-12 col-sm-4 nota-pedido"> |
| 7 | <h5>Hojas de ruta</h5> | 7 | <h5>Hojas de ruta</h5> |
| 8 | </div> | 8 | </div> |
| 9 | <div class="col-5 col-sm-4 numero-pedido"> | 9 | <div class="col-5 col-sm-4 numero-pedido"> |
| 10 | Nº <span ng-bind="[puntoVenta, comprobante] | comprobante"></span> | 10 | Nº <span ng-bind="[puntoVenta, comprobante] | comprobante"></span> |
| 11 | </div> | 11 | </div> |
| 12 | <div class="col-7 col-sm-4 text-right"> | 12 | <div class="col-7 col-sm-4 text-right"> |
| 13 | Fecha: | 13 | Fecha: |
| 14 | <span | 14 | <span |
| 15 | ng-show="!datepickerAbierto" | 15 | ng-show="!datepickerAbierto" |
| 16 | ng-bind="now | date:'dd/MM/yyyy HH:mm'" | 16 | ng-bind="now | date:'dd/MM/yyyy HH:mm'" |
| 17 | ng-click="datepickerAbierto = true" | 17 | ng-click="datepickerAbierto = true" |
| 18 | > | 18 | > |
| 19 | </span> | 19 | </span> |
| 20 | <input | 20 | <input |
| 21 | ng-show="datepickerAbierto" | 21 | ng-show="datepickerAbierto" |
| 22 | type="date" | 22 | type="date" |
| 23 | ng-model="now" | 23 | ng-model="now" |
| 24 | ng-change="datepickerAbierto = false" | 24 | ng-change="datepickerAbierto = false" |
| 25 | ng-blur="datepickerAbierto = false" | 25 | ng-blur="datepickerAbierto = false" |
| 26 | class="form-control form-control-sm col-8 float-right" | 26 | class="form-control form-control-sm col-8 float-right" |
| 27 | foca-focus="datepickerAbierto" | 27 | foca-focus="datepickerAbierto" |
| 28 | hasta-hoy | 28 | hasta-hoy |
| 29 | /> | 29 | /> |
| 30 | </div> | 30 | </div> |
| 31 | </div> | 31 | </div> |
| 32 | <div class="row"> | 32 | <div class="row"> |
| 33 | <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera"> | 33 | <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera"> |
| 34 | <span class="label" ng-bind="cab.label"></span> | 34 | <span class="label" ng-bind="cab.label"></span> |
| 35 | <span class="valor" ng-bind="cab.valor"></span> | 35 | <span class="valor" ng-bind="cab.valor"></span> |
| 36 | </div> | 36 | </div> |
| 37 | </div> | 37 | </div> |
| 38 | </div> | 38 | </div> |
| 39 | </div> | 39 | </div> |
| 40 | <div class="row p-1 botonera-secundaria"> | 40 | <div class="row p-1 botonera-secundaria"> |
| 41 | <div class="col-12"> | 41 | <div class="col-12"> |
| 42 | <div class="row"> | 42 | <div class="row"> |
| 43 | <div class="col-6 col-sm-3 px-0 py-0" ng-repeat="boton in botonera"> | 43 | <div class="col-6 col-sm-3 px-0 py-0" ng-repeat="boton in botonera"> |
| 44 | <button | 44 | <button |
| 45 | type="button" | 45 | type="button" |
| 46 | class="btn btn-default btn-block btn-xs text-left py-2" | 46 | class="btn btn-default btn-block btn-xs text-left py-2" |
| 47 | ng-click="boton.accion()" | 47 | ng-click="boton.accion()" |
| 48 | ng-class="{'d-none d-sm-block': boton.texto == ''}" | 48 | ng-class="{'d-none d-sm-block': boton.texto == ''}" |
| 49 | > | 49 | > |
| 50 | <i | 50 | <i |
| 51 | class="fa fa-arrow-circle-right" | 51 | class="fa fa-arrow-circle-right" |
| 52 | ng-show="boton.texto != ''" | 52 | ng-show="boton.texto != ''" |
| 53 | ></i> | 53 | ></i> |
| 54 | | 54 | |
| 55 | {{boton.texto}} | 55 | {{boton.texto}} |
| 56 | </button> | 56 | </button> |
| 57 | </div> | 57 | </div> |
| 58 | </div> | 58 | </div> |
| 59 | </div> | 59 | </div> |
| 60 | </div> | 60 | </div> |
| 61 | </div> | 61 | </div> |
| 62 | <div class="col-12 col-md-10 col-lg-8 offset-md-1 offset-lg-2"> | 62 | <div class="col-12 col-md-10 col-lg-8 offset-md-1 offset-lg-2 mb-5"> |
| 63 | <div class="row grilla-articulo"> | 63 | <div ng-hide="hojaRuta.abierta" class="row"> |
| 64 | <table ng-hide="hojaRuta.abierta" class="table table-responsive table-striped table-sm table-dark"> | 64 | <div class="col p-0"> |
| 65 | <thead> | 65 | <table class="table table-striped table-sm table-dark"> |
| 66 | <tr> | 66 | <thead> |
| 67 | <th>#</th> | 67 | <tr> |
| 68 | <th>Número</th> | 68 | <th class="align-middle">#</th> |
| 69 | <th>Razon Social</th> | 69 | <th class="align-middle">Número</th> |
| 70 | <th>Domicilio</th> | 70 | <th class="align-middle">Razon Social</th> |
| 71 | <th> </th> | 71 | <th class="align-middle" colspan="2">Domicilio</th> |
| 72 | </tr> | 72 | </tr> |
| 73 | </thead> | 73 | </thead> |
| 74 | <tbody class="tabla-articulo-body"> | 74 | <tbody class="tabla-articulo-body"> |
| 75 | <tr | 75 | <tr |
| 76 | ng-repeat="(key, remito) in hojaRuta.remitos" | 76 | ng-repeat="(key, remito) in hojaRuta.remitos" |
| 77 | > | 77 | > |
| 78 | <td ng-bind="key + 1"></td> | 78 | <td class="align-middle" ng-bind="key + 1"></td> |
| 79 | <td | 79 | <td |
| 80 | ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante" | 80 | class="align-middle" |
| 81 | ></td> | 81 | ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante" |
| 82 | <td ng-bind="remito.nombreCliente"></td> | 82 | ></td> |
| 83 | <td ng-bind="remito.domicilioStamp"></td> | 83 | <td class="align-middle" ng-bind="remito.nombreCliente"></td> |
| 84 | <td> | 84 | <td class="align-middle" ng-bind="remito.domicilioStamp"></td> |
| 85 | <button | 85 | <td class="align-middle"> |
| 86 | class="btn btn-secondary" | 86 | <div class="btn-group-vertical"> |
| 87 | type="button" | 87 | <button |
| 88 | ng-click="verDetalle(remito)" | 88 | class="btn btn-secondary my-1 rounded" |
| 89 | ><i class="fa fa-search" aria-hidden="true"></i> | 89 | type="button" |
| 90 | </button> | 90 | ng-click="verDetalle(remito)"> |
| 91 | </td> | 91 | <i class="fa fa-search" aria-hidden="true"></i> |
| 92 | </tr> | 92 | </button> |
| 93 | </tbody> | 93 | <button |
| 94 | </table> | 94 | ng-show="articulosDescargados(remito.articulosRemito)" |
| 95 | class="btn btn-secondary my-1 rounded" | ||
| 96 | type="button"> | ||
| 97 | <i class="fa fa-check fa-lg foca-text-success" aria-hidden="true"></i> | ||
| 98 | </button> | ||
| 99 | <button | ||
| 100 | ng-show="remito.rechazado" | ||
| 101 | class="btn btn-secondary my-1 rounded" | ||
| 102 | type="button"> | ||
| 103 | <i class="fa fa-remove fa-lg foca-text-danger" aria-hidden="true"></i> | ||
| 104 | </button> | ||
| 105 | </div> | ||
| 106 | </td> | ||
| 107 | </tr> | ||
| 108 | </tbody> | ||
| 109 | </table> | ||
| 110 | </div> | ||
| 95 | </div> | 111 | </div> |
| 96 | <div ng-show="hojaRuta.abierta" class="row grilla-articulo"> | 112 | <div ng-show="hojaRuta.abierta" class="row grilla-articulo"> |
| 97 | <table class="table table-striped table-sm table-dark"> | 113 | <div class="col p-0"> |
| 98 | <thead> | 114 | <table class="table table-striped table-sm table-dark"> |
| 99 | <tr> | 115 | <thead> |
| 100 | <th colspan="3" class="text-center">Remito abierto Nº | 116 | <tr> |
| 101 | {{[hojaRuta.remitos[0].sucursal, hojaRuta.remitos[0].numeroRemito] | comprobante}} | 117 | <th colspan="3" class="text-center">Remito abierto Nº |
| 102 | </th> | 118 | {{[hojaRuta.remitos[0].sucursal, hojaRuta.remitos[0].numeroRemito] | comprobante}} |
| 103 | </tr> | 119 | </th> |
| 104 | <tr> | 120 | </tr> |
| 105 | <th>Cisterna</th> | 121 | <tr> |
| 106 | <th>Producto</th> | 122 | <th>Cisterna</th> |
| 107 | <th>Disponibles</th> | 123 | <th>Producto</th> |
| 108 | </tr> | 124 | <th>Disponibles</th> |
| 109 | </thead> | 125 | </tr> |
| 110 | <tbody> | 126 | </thead> |
| 111 | <tr ng-repeat="cisterna in hojaRuta.remitos[0].cisternas"> | 127 | <tbody> |
| 112 | <td ng-bind="cisterna.codigo"></td> | 128 | <tr ng-repeat="cisterna in hojaRuta.remitos[0].cisternas"> |
| 113 | <td ng-bind="cisterna.cisternaCarga.articulo.DetArt"></td> | 129 | <td ng-bind="cisterna.codigo"></td> |
| 114 | <td ng-bind="cisterna.cisternaCarga.cantidad"></td> | 130 | <td ng-bind="cisterna.cisternaCarga.articulo.DetArt"></td> |
| 115 | </tr> | 131 | <td ng-bind="cisterna.cisternaCarga.cantidad"></td> |
| 116 | </tbody> | 132 | </tr> |
| 117 | </table> | 133 | </tbody> |
| 134 | </table> | ||
| 135 | </div> | ||
| 118 | <table class="table table-striped table-sm table-dark"> | 136 | <table class="table table-striped table-sm table-dark"> |
| 119 | <thead> | 137 | <thead> |
| 120 | <tr> | 138 | <tr> |
| 121 | <th>Descarga en cliente</th> | 139 | <th>Descarga en cliente</th> |
| 122 | <th> | 140 | <th> |
| 123 | <button class="btn btn-outline-debo" ng-click="modalDescargas()"> | 141 | <button class="btn btn-outline-debo" ng-click="modalDescargas()"> |
| 124 | <i class="fa fa-plus"></i> | 142 | <i class="fa fa-plus"></i> |
| 125 | </button> | 143 | </button> |
| 126 | </th> | 144 | </th> |
| 127 | </tr> | 145 | </tr> |
| 128 | <tr></tr> | 146 | <tr></tr> |
| 129 | </thead> | 147 | </thead> |
| 130 | <tbody> | 148 | <tbody> |
| 131 | <tr ng-repeat="remito in remitos"></tr> | 149 | <tr ng-repeat="remito in remitos"></tr> |
| 132 | </tbody> | 150 | </tbody> |
| 133 | </table> | 151 | </table> |
| 134 | </div> | 152 | </div> |
| 135 | </div> | 153 | </div> |
| 136 | <div class="row d-md-none fixed-bottom"> | 154 | <div class="row d-md-none fixed-bottom"> |
| 137 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> | 155 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> |
| 138 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> | 156 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> |
| 139 | <span | 157 | <span |
| 140 | class="mr-3 ml-auto" | 158 | class="mr-3 ml-auto" |
| 141 | ng-click="terminarHojaRuta()" | 159 | ng-click="estaPendiente()" |
| 142 | ladda="saveLoading" | 160 | ladda="saveLoading" |
| 143 | data-style="expand-left" | 161 | data-style="expand-left" |
| 144 | >Terminar</span> | 162 | >Terminar</span> |
| 145 | </div> | 163 | </div> |
| 146 | </div> | 164 | </div> |
| 147 | </div> | 165 | </div> |
| 148 | 166 |