Commit 7530f73686a74adf6be6d4ea42847e088f01579f
1 parent
94d7eca486
Exists in
master
and in
1 other branch
checkbox, boton eliminar
Showing
1 changed file
with
16 additions
and
1 deletions
Show diff stats
src/views/foca-modal-crear-hoja-ruta.html
| 1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
| 2 | <h4>-en desarrollo</h4> | 2 | <h4>-en desarrollo</h4> |
| 3 | <h4>Confeccionar hoja de ruta</h4> | 3 | <h4>Confeccionar hoja de ruta</h4> |
| 4 | Hoja de ruta Nº <strong ng-bind="[sucursal, numero] | comprobante"></strong> | 4 | Hoja de ruta Nº <strong ng-bind="[sucursal, numero] | comprobante"></strong> |
| 5 | Fecha: | 5 | Fecha: |
| 6 | <input | 6 | <input |
| 7 | type="date" | 7 | type="date" |
| 8 | ng-model="now" | 8 | ng-model="now" |
| 9 | class="form-control form-control-sm col-3 float-right" | 9 | class="form-control form-control-sm col-3 float-right" |
| 10 | /> | 10 | /> |
| 11 | <br> | 11 | <br> |
| 12 | </div> | 12 | </div> |
| 13 | <div class="modal-body"> | 13 | <div class="modal-body"> |
| 14 | <form class="row" name="formHojaRuta"> | 14 | <form class="row" name="formHojaRuta"> |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | <div class="col-2 form-group"> | 17 | <div class="col-2 form-group"> |
| 18 | <label>Vehículo</label> | 18 | <label>Vehículo</label> |
| 19 | </div> | 19 | </div> |
| 20 | <div class="col-4"> | 20 | <div class="col-4"> |
| 21 | <input | 21 | <input |
| 22 | class="form-control" | 22 | class="form-control" |
| 23 | readonly | 23 | readonly |
| 24 | ng-model="vehiculo.tractor" | 24 | ng-model="vehiculo.tractor" |
| 25 | > | 25 | > |
| 26 | </div> | 26 | </div> |
| 27 | <div class="col-2"> | 27 | <div class="col-2"> |
| 28 | <label>Transportista</label> | 28 | <label>Transportista</label> |
| 29 | </div> | 29 | </div> |
| 30 | <div class="col-4"> | 30 | <div class="col-4"> |
| 31 | <input | 31 | <input |
| 32 | class="form-control" | 32 | class="form-control" |
| 33 | readonly | 33 | readonly |
| 34 | ng-model="vehiculo.transportista.NOM" | 34 | ng-model="vehiculo.transportista.NOM" |
| 35 | > | 35 | > |
| 36 | </div> | 36 | </div> |
| 37 | <div class="col-2 form-group"> | 37 | <div class="col-2 form-group"> |
| 38 | <label>Chofer</label> | 38 | <label>Chofer</label> |
| 39 | </div> | 39 | </div> |
| 40 | <div class="col-4 input-group"> | 40 | <div class="col-4 input-group"> |
| 41 | <input | 41 | <input |
| 42 | class="form-control" | 42 | class="form-control" |
| 43 | ng-model="chofer.nombre" | 43 | ng-model="chofer.nombre" |
| 44 | ng-click="seleccionarChofer()" | 44 | ng-click="seleccionarChofer()" |
| 45 | ng-required="true" | 45 | ng-required="true" |
| 46 | > | 46 | > |
| 47 | <div class="input-group-append"> | 47 | <div class="input-group-append"> |
| 48 | <button | 48 | <button |
| 49 | class="brn btn-outline-secondary form-control" | 49 | class="brn btn-outline-secondary form-control" |
| 50 | ng-click="seleccionarChofer()" | 50 | ng-click="seleccionarChofer()" |
| 51 | ><i class="fa fa-search"></i> | 51 | ><i class="fa fa-search"></i> |
| 52 | </button> | 52 | </button> |
| 53 | </div> | 53 | </div> |
| 54 | </div> | 54 | </div> |
| 55 | <div class="col-2"> | 55 | <div class="col-2"> |
| 56 | <label>Tarifa</label> | 56 | <label>Tarifa</label> |
| 57 | </div> | 57 | </div> |
| 58 | <div class="col-4"> | 58 | <div class="col-4"> |
| 59 | <input | 59 | <input |
| 60 | class="form-control" | 60 | class="form-control" |
| 61 | ng-model="tarifaFlete" | 61 | ng-model="tarifaFlete" |
| 62 | ng-required="true" | 62 | ng-required="true" |
| 63 | foca-teclado | 63 | foca-teclado |
| 64 | foca-tipo-input | 64 | foca-tipo-input |
| 65 | > | 65 | > |
| 66 | </div> | 66 | </div> |
| 67 | </form> | 67 | </form> |
| 68 | <strong>Remitos:</strong> | 68 | <strong>Remitos:</strong> |
| 69 | <table class="table"> | 69 | <table class="table"> |
| 70 | <thead> | 70 | <thead> |
| 71 | <tr> | 71 | <tr> |
| 72 | <th>Remito Nº</th> | 72 | <th>Remito Nº</th> |
| 73 | <th>Cliente</th> | 73 | <th>Cliente</th> |
| 74 | <th>Domicilio</th> | 74 | <th>Domicilio</th> |
| 75 | </tr> | 75 | </tr> |
| 76 | </thead> | 76 | </thead> |
| 77 | <tbody> | 77 | <tbody> |
| 78 | <tr ng-show="!remitos.length"> | 78 | <tr ng-show="!remitos.length"> |
| 79 | <td colspan="3"> | 79 | <td colspan="3"> |
| 80 | No se han encontrado remitos. | 80 | No se han encontrado remitos. |
| 81 | </td> | 81 | </td> |
| 82 | </tr> | 82 | </tr> |
| 83 | <tr ng-repeat="remito in remitos"> | 83 | <tr ng-repeat="remito in remitos"> |
| 84 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td> | 84 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td> |
| 85 | <td ng-bind="remito.nombreCliente"></td> | 85 | <td ng-bind="remito.nombreCliente"></td> |
| 86 | <td ng-bind="remito.domicilioStamp"></td> | 86 | <td ng-bind="remito.domicilioStamp"></td> |
| 87 | </tr> | 87 | <td> |
| 88 | <div class="custom-control custom-checkbox"> | ||
| 89 | <input | ||
| 90 | type="checkbox" | ||
| 91 | ng-model="remito.checked" | ||
| 92 | class="custom-control-input" | ||
| 93 | id="{{remito.id}}"> | ||
| 94 | <label class="custom-control-label" for="{{remito.id}}"></label> | ||
| 95 | </div> | ||
| 96 | </td> | ||
| 97 | </tr> | ||
| 88 | </tbody> | 98 | </tbody> |
| 89 | </table> | 99 | </table> |
| 90 | </div> | 100 | </div> |
| 91 | <div class="modal-footer py-1"> | 101 | <div class="modal-footer py-1"> |
| 92 | <button | 102 | <button |
| 103 | class="btn btn-sm btn-danger" | ||
| 104 | type="button" | ||
| 105 | ng-click="eliminarRemitos()" | ||
| 106 | ng-disabled="minimoUnoChecked()">Eliminar</button> | ||
| 107 | <button | ||
| 93 | class="btn btn-sm btn-secondary" | 108 | class="btn btn-sm btn-secondary" |
| 94 | ladda="cargando" | 109 | ladda="cargando" |
| 95 | type="button" | 110 | type="button" |
| 96 | ng-click="cancelar()">Cancelar</button> | 111 | ng-click="cancelar()">Cancelar</button> |
| 97 | <button | 112 | <button |
| 98 | class="btn btn-sm btn-primary" | 113 | class="btn btn-sm btn-primary" |
| 99 | ladda="cargando" | 114 | ladda="cargando" |
| 100 | type="button" | 115 | type="button" |
| 101 | ng-disabled="!formHojaRuta.$valid || !remitos.length" | 116 | ng-disabled="!formHojaRuta.$valid || !remitos.length" |
| 102 | ng-click="aceptar()">Crear hoja ruta</button> | 117 | ng-click="aceptar()">Crear hoja ruta</button> |
| 103 | </div> | 118 | </div> |
| 104 | 119 |