Commit edb0848d9eceb32b5047107ec59a87bd89fc2e28
1 parent
e6fb13f4c8
Exists in
master
and in
1 other branch
Arreglo de ng-show puesto dos veces.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/views/remito.html
1 | <div class="crear-nota-remito foca-crear row"> | 1 | <div class="crear-nota-remito foca-crear row"> |
2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador |
3 | titulo="'Remito'" | 3 | titulo="'Remito'" |
4 | numero="puntoVenta + '-' + comprobante" | 4 | numero="puntoVenta + '-' + comprobante" |
5 | fecha="now" | 5 | fecha="now" |
6 | class="mb-0 col-lg-12" | 6 | class="mb-0 col-lg-12" |
7 | busqueda="seleccionarRemito" | 7 | busqueda="seleccionarRemito" |
8 | ></foca-cabecera-facturador> | 8 | ></foca-cabecera-facturador> |
9 | <marquee | 9 | <marquee |
10 | bgcolor="#FF9900" | 10 | bgcolor="#FF9900" |
11 | behavior="scroll" | 11 | behavior="scroll" |
12 | direction="left" | 12 | direction="left" |
13 | ng-bind="remito.observaciones" | 13 | ng-bind="remito.observaciones" |
14 | ></marquee> | 14 | ></marquee> |
15 | <div class="col-lg-12"> | 15 | <div class="col-lg-12"> |
16 | <div class="row mt-4"> | 16 | <div class="row mt-4"> |
17 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> | 17 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> |
18 | <div class="row p-1 botonera-secundaria px-5 py-2"> | 18 | <div class="row p-1 botonera-secundaria px-5 py-2"> |
19 | <div class="col-12"> | 19 | <div class="col-12"> |
20 | <foca-botonera-facturador botones="botonera" extra="4" class="row"></foca-botonera-facturador> | 20 | <foca-botonera-facturador botones="botonera" extra="4" class="row"></foca-botonera-facturador> |
21 | </div> | 21 | </div> |
22 | </div> | 22 | </div> |
23 | <!-- PC --> | 23 | <!-- PC --> |
24 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> | 24 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> |
25 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> | 25 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> |
26 | <thead> | 26 | <thead> |
27 | <tr class="d-flex"> | 27 | <tr class="d-flex"> |
28 | <th class="">#</th> | 28 | <th class="">#</th> |
29 | <th class="col">Código</th> | 29 | <th class="col">Código</th> |
30 | <th class="col-4">Descripción</th> | 30 | <th class="col-4">Descripción</th> |
31 | <th class="col text-right">Cantidad</th> | 31 | <th class="col text-right">Cantidad</th> |
32 | <th class="col text-right">Precio Unitario</th> | 32 | <th class="col text-right">Precio Unitario</th> |
33 | <th class="col text-right">SubTotal</th> | 33 | <th class="col text-right">SubTotal</th> |
34 | <th class="text-right"> | 34 | <th class="text-right"> |
35 | <button | 35 | <button |
36 | class="btn btn-outline-light selectable" | 36 | class="btn btn-outline-light selectable" |
37 | ng-click="show = !show; masMenos()" | 37 | ng-click="show = !show; masMenos()" |
38 | > | 38 | > |
39 | <i | 39 | <i |
40 | class="fa fa-chevron-down" | 40 | class="fa fa-chevron-down" |
41 | ng-show="show" | 41 | ng-show="show" |
42 | aria-hidden="true" | 42 | aria-hidden="true" |
43 | > | 43 | > |
44 | </i> | 44 | </i> |
45 | <i | 45 | <i |
46 | class="fa fa-chevron-up" | 46 | class="fa fa-chevron-up" |
47 | ng-hide="show" | 47 | ng-hide="show" |
48 | aria-hidden="true"> | 48 | aria-hidden="true"> |
49 | </i> | 49 | </i> |
50 | </button> | 50 | </button> |
51 | </th> | 51 | </th> |
52 | </tr> | 52 | </tr> |
53 | </thead> | 53 | </thead> |
54 | <tbody class="tabla-articulo-body"> | 54 | <tbody class="tabla-articulo-body"> |
55 | <tr | 55 | <tr |
56 | ng-repeat="(key, articulo) in articulosFiltro()" | 56 | ng-repeat="(key, articulo) in articulosFiltro()" |
57 | ng-show="show || key == (articulosFiltro().length - 1)" | 57 | ng-show="show || key == (articulosFiltro().length - 1)" |
58 | class="d-flex" | 58 | class="d-flex" |
59 | > | 59 | > |
60 | <td ng-bind="key + 1"></td> | 60 | <td ng-bind="key + 1"></td> |
61 | <td | 61 | <td |
62 | class="col" | 62 | class="col" |
63 | ng-bind="articulo.sector + '-' + articulo.codigo" | 63 | ng-bind="articulo.sector + '-' + articulo.codigo" |
64 | ></td> | 64 | ></td> |
65 | <td | 65 | <td |
66 | class="col-4" | 66 | class="col-4" |
67 | ng-bind="articulo.descripcion" | 67 | ng-bind="articulo.descripcion" |
68 | ></td> | 68 | ></td> |
69 | <td class="col text-right"> | 69 | <td class="col text-right"> |
70 | <input | 70 | <input |
71 | ng-show="articulo.editCantidad && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | 71 | ng-show="articulo.editCantidad && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" |
72 | ng-model="tmpCantidad" | 72 | ng-model="tmpCantidad" |
73 | class="form-control" | 73 | class="form-control" |
74 | foca-tipo-input | 74 | foca-tipo-input |
75 | min="1" | 75 | min="1" |
76 | foca-focus="articulo.editCantidad" | 76 | foca-focus="articulo.editCantidad" |
77 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" | 77 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" |
78 | esc-key="cancelarEditar(articulo)" | 78 | esc-key="cancelarEditar(articulo)" |
79 | ng-focus="selectFocus($event); tmpCantidad = articulo.cantidad; tmpPrecio = articulo.precio" | 79 | ng-focus="selectFocus($event); tmpCantidad = articulo.cantidad; tmpPrecio = articulo.precio" |
80 | teclado-virtual | 80 | teclado-virtual |
81 | > | 81 | > |
82 | <i | 82 | <i |
83 | class="selectable" | 83 | class="selectable" |
84 | ng-click="cambioEdit(articulo, 'cantidad')" | 84 | ng-click="cambioEdit(articulo, 'cantidad')" |
85 | ng-hide="articulo.editCantidad && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | 85 | ng-hide="articulo.editCantidad && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" |
86 | ng-bind="articulo.cantidad"> | 86 | ng-bind="articulo.cantidad"> |
87 | </i> | 87 | </i> |
88 | </td> | 88 | </td> |
89 | <td class="col text-right"> | 89 | <td class="col text-right"> |
90 | <input | 90 | <input |
91 | ng-show="articulo.editPrecio && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | 91 | ng-show="articulo.editPrecio && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" |
92 | ng-model="tmpPrecio" | 92 | ng-model="tmpPrecio" |
93 | class="form-control" | 93 | class="form-control" |
94 | foca-tipo-input | 94 | foca-tipo-input |
95 | min="1" | 95 | min="1" |
96 | step="0.0001" | 96 | step="0.0001" |
97 | foca-focus="articulo.editPrecio" | 97 | foca-focus="articulo.editPrecio" |
98 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" | 98 | ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" |
99 | esc-key="cancelarEditar(articulo)" | 99 | esc-key="cancelarEditar(articulo)" |
100 | ng-focus="selectFocus($event); | 100 | ng-focus="selectFocus($event); |
101 | tmpCantidad = articulo.cantidad; | 101 | tmpCantidad = articulo.cantidad; |
102 | tmpPrecio = articulo.precio" | 102 | tmpPrecio = articulo.precio" |
103 | teclado-virtual | 103 | teclado-virtual |
104 | > | 104 | > |
105 | <i | 105 | <i |
106 | class="selectable" | 106 | class="selectable" |
107 | ng-click="cambioEdit(articulo, 'precio')" | 107 | ng-click="cambioEdit(articulo, 'precio')" |
108 | ng-hide="articulo.editPrecio && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | 108 | ng-hide="articulo.editPrecio && remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" |
109 | ng-bind="articulo.precio | number: 4"> | 109 | ng-bind="articulo.precio | number: 4"> |
110 | </i> | 110 | </i> |
111 | </td> | 111 | </td> |
112 | <td | 112 | <td |
113 | class="col text-right" | 113 | class="col text-right" |
114 | ng-bind="(articulo.precio * articulo.cantidad) | number: 2"> | 114 | ng-bind="(articulo.precio * articulo.cantidad) | number: 2"> |
115 | </td> | 115 | </td> |
116 | <td class="text-center"> | 116 | <td class="text-center"> |
117 | <button | 117 | <button |
118 | ng-show="remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | 118 | ng-show="remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" |
119 | class="btn btn-outline-light" | 119 | class="btn btn-outline-light" |
120 | ng-click="quitarArticulo(articulo)" | 120 | ng-click="quitarArticulo(articulo)" |
121 | > | 121 | > |
122 | <i class="fa fa-trash"></i> | 122 | <i class="fa fa-trash"></i> |
123 | </button> | 123 | </button> |
124 | <button | 124 | <button |
125 | ng-show="remito.estado !== 5 && remito.hojaRuta.abierta !== '1'" | 125 | ng-show="(articulo.editCantidad || articulo.editPrecio) && |
126 | (remito.estado !== 5 && remito.hojaRuta.abierta !== '1')" | ||
126 | class="btn btn-outline-light" | 127 | class="btn btn-outline-light" |
127 | ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio);" | 128 | ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio);" |
128 | ng-show="articulo.editCantidad || articulo.editPrecio" | ||
129 | > | 129 | > |
130 | <i class="fa fa-save"></i> | 130 | <i class="fa fa-save"></i> |
131 | </button> | 131 | </button> |
132 | </td> | 132 | </td> |
133 | </tr> | 133 | </tr> |
134 | </tbody> | 134 | </tbody> |
135 | <tfoot> | 135 | <tfoot> |
136 | <tr ng-show="!cargando" class="d-flex"> | 136 | <tr ng-show="!cargando" class="d-flex"> |
137 | <td | 137 | <td |
138 | class="align-middle" | 138 | class="align-middle" |
139 | ng-bind="articulosFiltro().length + 1" | 139 | ng-bind="articulosFiltro().length + 1" |
140 | ></td> | 140 | ></td> |
141 | <td class="col"> | 141 | <td class="col"> |
142 | <input | 142 | <input |
143 | class="form-control" | 143 | class="form-control" |
144 | ng-model="articuloACargar.sectorCodigo" | 144 | ng-model="articuloACargar.sectorCodigo" |
145 | readonly | 145 | readonly |
146 | > | 146 | > |
147 | </td> | 147 | </td> |
148 | <td class="col-4 tabla-articulo-descripcion"> | 148 | <td class="col-4 tabla-articulo-descripcion"> |
149 | <input | 149 | <input |
150 | class="form-control" | 150 | class="form-control" |
151 | ng-model="articuloACargar.descripcion" | 151 | ng-model="articuloACargar.descripcion" |
152 | readonly | 152 | readonly |
153 | > | 153 | > |
154 | </td> | 154 | </td> |
155 | <td class="col text-right"> | 155 | <td class="col text-right"> |
156 | <input | 156 | <input |
157 | class="form-control" | 157 | class="form-control" |
158 | foca-tipo-input | 158 | foca-tipo-input |
159 | min="1" | 159 | min="1" |
160 | ng-model="articuloACargar.cantidad" | 160 | ng-model="articuloACargar.cantidad" |
161 | foca-focus="!cargando" | 161 | foca-focus="!cargando" |
162 | esc-key="resetFilter()" | 162 | esc-key="resetFilter()" |
163 | ng-keypress="agregarATabla($event.keyCode)" | 163 | ng-keypress="agregarATabla($event.keyCode)" |
164 | teclado-virtual | 164 | teclado-virtual |
165 | > | 165 | > |
166 | </td> | 166 | </td> |
167 | <td class="col text-right"> | 167 | <td class="col text-right"> |
168 | <input | 168 | <input |
169 | class="form-control" | 169 | class="form-control" |
170 | ng-model="articuloACargar.precio" | 170 | ng-model="articuloACargar.precio" |
171 | ng-show="idLista != -1" | 171 | ng-show="idLista != -1" |
172 | ng-keypress="agregarATabla($event.keyCode)" | 172 | ng-keypress="agregarATabla($event.keyCode)" |
173 | > | 173 | > |
174 | <input | 174 | <input |
175 | class="form-control" | 175 | class="form-control" |
176 | foca-tipo-input | 176 | foca-tipo-input |
177 | step="0.0001" | 177 | step="0.0001" |
178 | ng-model="articuloACargar.precio" | 178 | ng-model="articuloACargar.precio" |
179 | esc-key="resetFilter()" | 179 | esc-key="resetFilter()" |
180 | ng-keypress="agregarATabla($event.keyCode)" | 180 | ng-keypress="agregarATabla($event.keyCode)" |
181 | ng-show="idLista == -1" | 181 | ng-show="idLista == -1" |
182 | teclado-virtual | 182 | teclado-virtual |
183 | > | 183 | > |
184 | </td> | 184 | </td> |
185 | <td class="col text-right"> | 185 | <td class="col text-right"> |
186 | <input | 186 | <input |
187 | class="form-control" | 187 | class="form-control" |
188 | ng-value="getSubTotal() | number: 2" | 188 | ng-value="getSubTotal() | number: 2" |
189 | readonly | 189 | readonly |
190 | ></td> | 190 | ></td> |
191 | <td class="text-center align-middle"> | 191 | <td class="text-center align-middle"> |
192 | <button | 192 | <button |
193 | class="btn btn-outline-light" | 193 | class="btn btn-outline-light" |
194 | ng-click="agregarATabla(13)" | 194 | ng-click="agregarATabla(13)" |
195 | > | 195 | > |
196 | <i class="fa fa-save"></i> | 196 | <i class="fa fa-save"></i> |
197 | </button> | 197 | </button> |
198 | </td> | 198 | </td> |
199 | </tr> | 199 | </tr> |
200 | 200 | ||
201 | <tr class="d-flex"> | 201 | <tr class="d-flex"> |
202 | <td colspan="4" class="no-border-top"> | 202 | <td colspan="4" class="no-border-top"> |
203 | <strong>Items:</strong> | 203 | <strong>Items:</strong> |
204 | <a ng-bind="articulosFiltro().length"></a> | 204 | <a ng-bind="articulosFiltro().length"></a> |
205 | </td> | 205 | </td> |
206 | <td class="text-right ml-auto table-celda-total no-border-top"> | 206 | <td class="text-right ml-auto table-celda-total no-border-top"> |
207 | <h3>Total:</h3> | 207 | <h3>Total:</h3> |
208 | </td> | 208 | </td> |
209 | <td class="table-celda-total text-right no-border-top" colspan="1"> | 209 | <td class="table-celda-total text-right no-border-top" colspan="1"> |
210 | <h3>{{getTotal() | currency: remito.cotizacion.moneda.SIMBOLO}}</h3> | 210 | <h3>{{getTotal() | currency: remito.cotizacion.moneda.SIMBOLO}}</h3> |
211 | </td> | 211 | </td> |
212 | <td class="text-right text-dark no-border-top"> | 212 | <td class="text-right text-dark no-border-top"> |
213 | <span>Totales</span> | 213 | <span>Totales</span> |
214 | </td> | 214 | </td> |
215 | </tr> | 215 | </tr> |
216 | </tfoot> | 216 | </tfoot> |
217 | </table> | 217 | </table> |
218 | </div> | 218 | </div> |
219 | </div> | 219 | </div> |
220 | </div> | 220 | </div> |
221 | </div> | 221 | </div> |
222 | <div class="row d-md-none fixed-bottom"> | 222 | <div class="row d-md-none fixed-bottom"> |
223 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> | 223 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> |
224 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> | 224 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> |
225 | <span | 225 | <span |
226 | class="mr-3 ml-auto" | 226 | class="mr-3 ml-auto" |
227 | ng-class="saveLoading ? 'text-muted' : ''" | 227 | ng-class="saveLoading ? 'text-muted' : ''" |
228 | ng-click="crearRemito()" | 228 | ng-click="crearRemito()" |
229 | ladda="saveLoading" | 229 | ladda="saveLoading" |
230 | data-style="expand-left" | 230 | data-style="expand-left" |
231 | >Guardar</span> | 231 | >Guardar</span> |
232 | </div> | 232 | </div> |
233 | </div> | 233 | </div> |
234 | </div> | 234 | </div> |