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