Commit c91f08190733f00f9725dc6919ee92780d3df607
1 parent
d04d334558
Exists in
master
info
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
src/views/foca-modal-cerrar-vehiculo.html
1 | <div class="modal-header"> | 1 | <div class="modal-header"> |
2 | <h4>Confirmar distribución vehículo</h4> | 2 | <h4>Confirmar distribución vehículo</h4> |
3 | <div class="row"> | 3 | <div class="row"> |
4 | <div class="col-6 row"> | 4 | <div class="col-6 row"> |
5 | <label class="col-3 mt-2">Fecha:</label> | 5 | <label class="col-3 mt-2">Fecha:</label> |
6 | <input | 6 | <input |
7 | type="text" | 7 | type="text" |
8 | readonly | 8 | readonly |
9 | ng-model="now" | 9 | ng-model="now" |
10 | uib-datepicker-popup="dd/MM/yyyy" | 10 | uib-datepicker-popup="dd/MM/yyyy" |
11 | show-button-bar="false" | 11 | show-button-bar="false" |
12 | is-open="datepickerOpen" | 12 | is-open="datepickerOpen" |
13 | on-open-focus="false" | 13 | on-open-focus="false" |
14 | class="form-control col-8"/> | 14 | class="form-control col-8"/> |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | </div> | 17 | </div> |
18 | <div class="modal-body"> | 18 | <div class="modal-body"> |
19 | <form class="row" name="formHojaRuta"> | 19 | <form class="row" name="formHojaRuta"> |
20 | 20 | ||
21 | <div class="col-2"> | 21 | <div class="col-2"> |
22 | <label>Transportista</label> | 22 | <label>Transportista</label> |
23 | </div> | 23 | </div> |
24 | <div class="col-4"> | 24 | <div class="col-4"> |
25 | <input | 25 | <input |
26 | class="form-control" | 26 | class="form-control" |
27 | readonly | 27 | readonly |
28 | ng-value="vehiculo.transportista.COD + ' ' + vehiculo.transportista.NOM" | 28 | ng-value="vehiculo.transportista.COD + ' ' + vehiculo.transportista.NOM" |
29 | > | 29 | > |
30 | </div> | 30 | </div> |
31 | <div class="col-2 form-group"> | 31 | <div class="col-2 form-group"> |
32 | <label>Unidad</label> | 32 | <label>Unidad</label> |
33 | </div> | 33 | </div> |
34 | <div class="col-4"> | 34 | <div class="col-4"> |
35 | <input | 35 | <input |
36 | class="form-control" | 36 | class="form-control" |
37 | readonly | 37 | readonly |
38 | ng-model="vehiculo.tractor" | 38 | ng-model="vehiculo.tractor" |
39 | > | 39 | > |
40 | </div> | 40 | </div> |
41 | </form> | 41 | </form> |
42 | <strong>Remitos:</strong> | 42 | <strong>Remitos:</strong> |
43 | <table class="table"> | 43 | <table class="table"> |
44 | <thead> | 44 | <thead> |
45 | <tr> | 45 | <tr> |
46 | <th>Remito Nº</th> | 46 | <th>Remito Nº</th> |
47 | <th>Cliente</th> | 47 | <th>Cliente</th> |
48 | <th>Domicilio de entrega</th> | 48 | <th>Domicilio de entrega</th> |
49 | <th>Eliminar</th> | 49 | <th>Eliminar |
50 | <i | ||
51 | class="fa fa-info" | ||
52 | uib-tooltip="Los remitos que no se pueden eliminar tienen asignada una hoja de ruta"> | ||
53 | </i> | ||
54 | </th> | ||
50 | </tr> | 55 | </tr> |
51 | </thead> | 56 | </thead> |
52 | <tbody> | 57 | <tbody> |
53 | <tr ng-show="!remitos.length"> | 58 | <tr ng-show="!remitos.length"> |
54 | <td colspan="3"> | 59 | <td colspan="3"> |
55 | No se han encontrado remitos. | 60 | No se han encontrado remitos. |
56 | </td> | 61 | </td> |
57 | </tr> | 62 | </tr> |
58 | <tr ng-repeat="remito in remitos"> | 63 | <tr ng-repeat="remito in remitos"> |
59 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td> | 64 | <td ng-bind="[remito.sucursal, remito.numeroRemito] | comprobante"></td> |
60 | <td ng-bind="remito.nombreCliente"></td> | 65 | <td ng-bind="remito.nombreCliente"></td> |
61 | <td ng-bind="remito.domicilioStamp"></td> | 66 | <td ng-bind="remito.domicilioStamp"></td> |
62 | <td> | 67 | <td> |
63 | <div class="custom-control custom-checkbox"> | 68 | <div class="custom-control custom-checkbox"> |
64 | <input | 69 | <input |
65 | type="checkbox" | 70 | type="checkbox" |
66 | ng-model="remito.checked" | 71 | ng-model="remito.checked" |
67 | class="custom-control-input" | 72 | class="custom-control-input" |
68 | id="{{remito.id}}" | 73 | id="{{remito.id}}" |
69 | ng-disabled="remito.idHojaRuta"> | 74 | ng-disabled="remito.idHojaRuta"> |
70 | <label class="custom-control-label" for="{{remito.id}}"></label> | 75 | <label class="custom-control-label" for="{{remito.id}}"></label> |
71 | </div> | 76 | </div> |
72 | </td> | 77 | </td> |
73 | </tr> | 78 | </tr> |
74 | </tbody> | 79 | </tbody> |
75 | </table> | 80 | </table> |
76 | </div> | 81 | </div> |
77 | <div class="modal-footer py-1"> | 82 | <div class="modal-footer py-1"> |
78 | <button | 83 | <button |
79 | class="btn btn-sm btn-danger" | 84 | class="btn btn-sm btn-danger" |
80 | type="button" | 85 | type="button" |
81 | ng-click="eliminarRemitos()" | 86 | ng-click="eliminarRemitos()" |
82 | ng-disabled="minimoUnoChecked()">Eliminar</button> | 87 | ng-disabled="minimoUnoChecked()">Eliminar</button> |
83 | <button | 88 | <button |
84 | class="btn btn-sm btn-secondary" | 89 | class="btn btn-sm btn-secondary" |
85 | ladda="cargando" | 90 | ladda="cargando" |
86 | type="button" | 91 | type="button" |
87 | ng-click="cancelar()">Cancelar</button> | 92 | ng-click="cancelar()">Cancelar</button> |
88 | <button | 93 | <button |
89 | class="btn btn-sm btn-primary" | 94 | class="btn btn-sm btn-primary" |
90 | ladda="cargando" | 95 | ladda="cargando" |
91 | type="button" | 96 | type="button" |
92 | ng-disabled="!formHojaRuta.$valid || !remitos.length" | 97 | ng-disabled="!formHojaRuta.$valid || !remitos.length" |
93 | ng-click="aceptar()">Cerrar distribución</button> | 98 | ng-click="aceptar()">Cerrar distribución</button> |
94 | </div> | 99 | </div> |
95 | 100 |