Commit 84dc7e09009dd187b9359a8634e8e9c10ad81419
1 parent
5034496622
Exists in
master
color spinner
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/views/remito.html
1 | <div class="crear-nota-remito"> | 1 | <div class="crear-nota-remito"> |
2 | <form name="formCrearNota" ng-submit="crearRemito()" class="mb-0"> | 2 | <form name="formCrearNota" ng-submit="crearRemito()" class="mb-0"> |
3 | <div class="row"> | 3 | <div class="row"> |
4 | <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2"> | 4 | <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2"> |
5 | <div class="row p-1 panel-informativo"> | 5 | <div class="row p-1 panel-informativo"> |
6 | <div class="col-12"> | 6 | <div class="col-12"> |
7 | <div class="row"> | 7 | <div class="row"> |
8 | <div class="col-12 col-sm-4 nota-remito"> | 8 | <div class="col-12 col-sm-4 nota-remito"> |
9 | <h5>REMITO</h5> | 9 | <h5>REMITO</h5> |
10 | </div> | 10 | </div> |
11 | <div class="col-5 col-sm-4 numero-remito" | 11 | <div class="col-5 col-sm-4 numero-remito" |
12 | > | 12 | > |
13 | Nº {{puntoVenta}}-{{comprobante}} | 13 | Nº {{puntoVenta}}-{{comprobante}} |
14 | <button | 14 | <button |
15 | class="btn btn-xs btn-outline-dark" | 15 | class="btn btn-xs btn-outline-dark" |
16 | type="button" | 16 | type="button" |
17 | ng-click="seleccionarRemito()" | 17 | ng-click="seleccionarRemito()" |
18 | > | 18 | > |
19 | <i class="fa fa-search"></i> | 19 | <i class="fa fa-search"></i> |
20 | </button> | 20 | </button> |
21 | </div> | 21 | </div> |
22 | <div class="col-7 col-sm-4 text-right"> | 22 | <div class="col-7 col-sm-4 text-right"> |
23 | Fecha: | 23 | Fecha: |
24 | <span | 24 | <span |
25 | ng-show="!datepickerAbierto" | 25 | ng-show="!datepickerAbierto" |
26 | ng-bind="now | date:'dd/MM/yyyy HH:mm'" | 26 | ng-bind="now | date:'dd/MM/yyyy HH:mm'" |
27 | ng-click="datepickerAbierto = true" | 27 | ng-click="datepickerAbierto = true" |
28 | > | 28 | > |
29 | </span> | 29 | </span> |
30 | <input | 30 | <input |
31 | ng-show="datepickerAbierto" | 31 | ng-show="datepickerAbierto" |
32 | type="date" | 32 | type="date" |
33 | ng-model="now" | 33 | ng-model="now" |
34 | ng-change="datepickerAbierto = false" | 34 | ng-change="datepickerAbierto = false" |
35 | ng-blur="datepickerAbierto = false" | 35 | ng-blur="datepickerAbierto = false" |
36 | class="form-control form-control-sm col-8 float-right" | 36 | class="form-control form-control-sm col-8 float-right" |
37 | foca-focus="datepickerAbierto" | 37 | foca-focus="datepickerAbierto" |
38 | hasta-hoy | 38 | hasta-hoy |
39 | /> | 39 | /> |
40 | </div> | 40 | </div> |
41 | </div> | 41 | </div> |
42 | <div class="row"> | 42 | <div class="row"> |
43 | <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera"> | 43 | <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera"> |
44 | <span class="label" ng-bind="cab.label"></span> | 44 | <span class="label" ng-bind="cab.label"></span> |
45 | <span class="valor" ng-bind="cab.valor" ng-if="!isNumber(cab.valor)"></span> | 45 | <span class="valor" ng-bind="cab.valor" ng-if="!isNumber(cab.valor)"></span> |
46 | <span class="valor" ng-bind="cab.valor | number:2" ng-if="isNumber(cab.valor)"></span> | 46 | <span class="valor" ng-bind="cab.valor | number:2" ng-if="isNumber(cab.valor)"></span> |
47 | </div> | 47 | </div> |
48 | <a | 48 | <a |
49 | class="btn col-12 btn-secondary d-sm-none" | 49 | class="btn col-12 btn-secondary d-sm-none" |
50 | ng-show="cabecera.length > 0" | 50 | ng-show="cabecera.length > 0" |
51 | ng-click="showCabecera = !showCabecera" | 51 | ng-click="showCabecera = !showCabecera" |
52 | > | 52 | > |
53 | <i | 53 | <i |
54 | class="fa fa-chevron-down" | 54 | class="fa fa-chevron-down" |
55 | ng-hide="showCabecera" | 55 | ng-hide="showCabecera" |
56 | aria-hidden="true" | 56 | aria-hidden="true" |
57 | > | 57 | > |
58 | </i> | 58 | </i> |
59 | <i | 59 | <i |
60 | class="fa fa-chevron-up" | 60 | class="fa fa-chevron-up" |
61 | ng-show="showCabecera" | 61 | ng-show="showCabecera" |
62 | aria-hidden="true"> | 62 | aria-hidden="true"> |
63 | </i> | 63 | </i> |
64 | </a> | 64 | </a> |
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | <div class="row p-1 botonera-secundaria"> | 68 | <div class="row p-1 botonera-secundaria"> |
69 | <div class="col-12"> | 69 | <div class="col-12"> |
70 | <div class="row"> | 70 | <div class="row"> |
71 | <div class="col-6 col-sm-3 px-0 py-0" ng-repeat="boton in botonera"> | 71 | <div class="col-6 col-sm-3 px-0 py-0" ng-repeat="boton in botonera"> |
72 | <button | 72 | <button |
73 | type="button" | 73 | type="button" |
74 | class="btn btn-default btn-block btn-xs text-left py-2" | 74 | class="btn btn-default btn-block btn-xs text-left py-2" |
75 | ng-click="boton.accion()" | 75 | ng-click="boton.accion()" |
76 | ng-class="{'d-none d-sm-block': boton.texto == ''}" | 76 | ng-class="{'d-none d-sm-block': boton.texto == ''}" |
77 | > | 77 | > |
78 | <i | 78 | <i |
79 | class="fa fa-arrow-circle-right" | 79 | class="fa fa-arrow-circle-right" |
80 | ng-show="boton.texto != ''" | 80 | ng-show="boton.texto != ''" |
81 | ></i> | 81 | ></i> |
82 | | 82 | |
83 | {{boton.texto}} | 83 | {{boton.texto}} |
84 | </button> | 84 | </button> |
85 | </div> | 85 | </div> |
86 | </div> | 86 | </div> |
87 | </div> | 87 | </div> |
88 | </div> | 88 | </div> |
89 | </div> | 89 | </div> |
90 | </div> | 90 | </div> |
91 | </form> | 91 | </form> |
92 | <div class="row"> | 92 | <div class="row"> |
93 | <div class="col-12 col-md-10 col-lg-8 offset-md-1 offset-lg-2"> | 93 | <div class="col-12 col-md-10 col-lg-8 offset-md-1 offset-lg-2"> |
94 | <!-- PC --> | 94 | <!-- PC --> |
95 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> | 95 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> |
96 | <table class="table tabla-articulo table-striped table-sm table-dark"> | 96 | <table class="table tabla-articulo table-striped table-sm table-dark"> |
97 | <thead> | 97 | <thead> |
98 | <tr class="d-flex"> | 98 | <tr class="d-flex"> |
99 | <th class="">#</th> | 99 | <th class="">#</th> |
100 | <th class="col">Código</th> | 100 | <th class="col">Código</th> |
101 | <th class="col-4">Descripción</th> | 101 | <th class="col-4">Descripción</th> |
102 | <th class="col text-right">Cantidad</th> | 102 | <th class="col text-right">Cantidad</th> |
103 | <th class="col text-right">Precio Unitario</th> | 103 | <th class="col text-right">Precio Unitario</th> |
104 | <th class="col text-right">SubTotal</th> | 104 | <th class="col text-right">SubTotal</th> |
105 | <th class="text-right"> | 105 | <th class="text-right"> |
106 | <button | 106 | <button |
107 | class="btn btn-outline-secondary selectable" | 107 | class="btn btn-outline-secondary selectable" |
108 | ng-click="show = !show; masMenos()" | 108 | ng-click="show = !show; masMenos()" |
109 | > | 109 | > |
110 | <i | 110 | <i |
111 | class="fa fa-chevron-down" | 111 | class="fa fa-chevron-down" |
112 | ng-show="show" | 112 | ng-show="show" |
113 | aria-hidden="true" | 113 | aria-hidden="true" |
114 | > | 114 | > |
115 | </i> | 115 | </i> |
116 | <i | 116 | <i |
117 | class="fa fa-chevron-up" | 117 | class="fa fa-chevron-up" |
118 | ng-hide="show" | 118 | ng-hide="show" |
119 | aria-hidden="true"> | 119 | aria-hidden="true"> |
120 | </i> | 120 | </i> |
121 | </button> | 121 | </button> |
122 | </th> | 122 | </th> |
123 | </tr> | 123 | </tr> |
124 | </thead> | 124 | </thead> |
125 | <tbody class="tabla-articulo-body"> | 125 | <tbody class="tabla-articulo-body"> |
126 | <tr | 126 | <tr |
127 | ng-repeat="(key, articulo) in articulosTabla" | 127 | ng-repeat="(key, articulo) in articulosTabla" |
128 | ng-show="show || key == (articulosTabla.length - 1)" | 128 | ng-show="show || key == (articulosTabla.length - 1)" |
129 | class="d-flex" | 129 | class="d-flex" |
130 | > | 130 | > |
131 | <td ng-bind="key + 1"></td> | 131 | <td ng-bind="key + 1"></td> |
132 | <td | 132 | <td |
133 | class="col" | 133 | class="col" |
134 | ng-bind="articulo.sector + '-' + articulo.codigo" | 134 | ng-bind="articulo.sector + '-' + articulo.codigo" |
135 | ></td> | 135 | ></td> |
136 | <td | 136 | <td |
137 | class="col-4" | 137 | class="col-4" |
138 | ng-bind="articulo.descripcion" | 138 | ng-bind="articulo.descripcion" |
139 | ></td> | 139 | ></td> |
140 | <td class="col text-right"> | 140 | <td class="col text-right"> |
141 | <input | 141 | <input |
142 | ng-show="articulo.editCantidad" | 142 | ng-show="articulo.editCantidad" |
143 | ng-model="articulo.cantidad" | 143 | ng-model="articulo.cantidad" |
144 | class="form-control" | 144 | class="form-control" |
145 | foca-tipo-input | 145 | foca-tipo-input |
146 | min="1" | 146 | min="1" |
147 | foca-focus="articulo.editCantidad" | 147 | foca-focus="articulo.editCantidad" |
148 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 148 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
149 | ng-focus="selectFocus($event)" | 149 | ng-focus="selectFocus($event)" |
150 | teclado-virtual | 150 | teclado-virtual |
151 | > | 151 | > |
152 | <i | 152 | <i |
153 | class="selectable" | 153 | class="selectable" |
154 | ng-click="cambioEdit(articulo, 'cantidad')" | 154 | ng-click="cambioEdit(articulo, 'cantidad')" |
155 | ng-hide="articulo.editCantidad" | 155 | ng-hide="articulo.editCantidad" |
156 | ng-bind="articulo.cantidad"> | 156 | ng-bind="articulo.cantidad"> |
157 | </i> | 157 | </i> |
158 | </td> | 158 | </td> |
159 | <td class="col text-right"> | 159 | <td class="col text-right"> |
160 | <input | 160 | <input |
161 | ng-show="articulo.editPrecio" | 161 | ng-show="articulo.editPrecio" |
162 | ng-model="articulo.precio" | 162 | ng-model="articulo.precio" |
163 | class="form-control" | 163 | class="form-control" |
164 | foca-tipo-input | 164 | foca-tipo-input |
165 | min="1" | 165 | min="1" |
166 | step="0.0001" | 166 | step="0.0001" |
167 | foca-focus="articulo.editPrecio" | 167 | foca-focus="articulo.editPrecio" |
168 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 168 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
169 | ng-focus="selectFocus($event)" | 169 | ng-focus="selectFocus($event)" |
170 | teclado-virtual | 170 | teclado-virtual |
171 | > | 171 | > |
172 | <i | 172 | <i |
173 | class="selectable" | 173 | class="selectable" |
174 | ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" | 174 | ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" |
175 | ng-hide="articulo.editPrecio" | 175 | ng-hide="articulo.editPrecio" |
176 | ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"> | 176 | ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"> |
177 | </i> | 177 | </i> |
178 | </td> | 178 | </td> |
179 | <td | 179 | <td |
180 | class="col text-right" | 180 | class="col text-right" |
181 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO"> | 181 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO"> |
182 | </td> | 182 | </td> |
183 | <td class="text-center"> | 183 | <td class="text-center"> |
184 | <button | 184 | <button |
185 | class="btn btn-outline-secondary" | 185 | class="btn btn-outline-secondary" |
186 | ng-click="quitarArticulo(key)" | 186 | ng-click="quitarArticulo(key)" |
187 | > | 187 | > |
188 | <i class="fa fa-trash"></i> | 188 | <i class="fa fa-trash"></i> |
189 | </button> | 189 | </button> |
190 | </td> | 190 | </td> |
191 | </tr> | 191 | </tr> |
192 | </tbody> | 192 | </tbody> |
193 | <tfoot> | 193 | <tfoot> |
194 | <tr ng-show="!cargando" class="d-flex"> | 194 | <tr ng-show="!cargando" class="d-flex"> |
195 | <td | 195 | <td |
196 | class="align-middle" | 196 | class="align-middle" |
197 | ng-bind="articulosTabla.length + 1" | 197 | ng-bind="articulosTabla.length + 1" |
198 | ></td> | 198 | ></td> |
199 | <td class="col"> | 199 | <td class="col"> |
200 | <input | 200 | <input |
201 | class="form-control" | 201 | class="form-control" |
202 | ng-model="articuloACargar.sectorCodigo" | 202 | ng-model="articuloACargar.sectorCodigo" |
203 | readonly | 203 | readonly |
204 | > | 204 | > |
205 | </td> | 205 | </td> |
206 | <td class="col-4 tabla-articulo-descripcion"> | 206 | <td class="col-4 tabla-articulo-descripcion"> |
207 | <input | 207 | <input |
208 | class="form-control" | 208 | class="form-control" |
209 | ng-model="articuloACargar.descripcion" | 209 | ng-model="articuloACargar.descripcion" |
210 | readonly | 210 | readonly |
211 | > | 211 | > |
212 | </td> | 212 | </td> |
213 | <td class="col text-right"> | 213 | <td class="col text-right"> |
214 | <input | 214 | <input |
215 | class="form-control" | 215 | class="form-control" |
216 | foca-tipo-input | 216 | foca-tipo-input |
217 | min="1" | 217 | min="1" |
218 | ng-model="articuloACargar.cantidad" | 218 | ng-model="articuloACargar.cantidad" |
219 | foca-focus="!cargando" | 219 | foca-focus="!cargando" |
220 | esc-key="resetFilter()" | 220 | esc-key="resetFilter()" |
221 | ng-keypress="agregarATabla($event.keyCode)" | 221 | ng-keypress="agregarATabla($event.keyCode)" |
222 | teclado-virtual | 222 | teclado-virtual |
223 | > | 223 | > |
224 | </td> | 224 | </td> |
225 | <td class="col text-right"> | 225 | <td class="col text-right"> |
226 | <input | 226 | <input |
227 | class="form-control" | 227 | class="form-control" |
228 | ng-value="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4" | 228 | ng-value="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4" |
229 | ng-show="idLista != -1" | 229 | ng-show="idLista != -1" |
230 | readonly | 230 | readonly |
231 | > | 231 | > |
232 | <input | 232 | <input |
233 | class="form-control" | 233 | class="form-control" |
234 | foca-tipo-input | 234 | foca-tipo-input |
235 | step="0.0001" | 235 | step="0.0001" |
236 | ng-model="articuloACargar.precio" | 236 | ng-model="articuloACargar.precio" |
237 | esc-key="resetFilter()" | 237 | esc-key="resetFilter()" |
238 | ng-keypress="agregarATabla($event.keyCode)" | 238 | ng-keypress="agregarATabla($event.keyCode)" |
239 | ng-show="idLista == -1" | 239 | ng-show="idLista == -1" |
240 | teclado-virtual | 240 | teclado-virtual |
241 | > | 241 | > |
242 | </td> | 242 | </td> |
243 | <td class="col text-right"> | 243 | <td class="col text-right"> |
244 | <input | 244 | <input |
245 | class="form-control" | 245 | class="form-control" |
246 | ng-value="getSubTotal() | currency: remito.moneda.SIMBOLO" | 246 | ng-value="getSubTotal() | currency: remito.moneda.SIMBOLO" |
247 | readonly | 247 | readonly |
248 | ></td> | 248 | ></td> |
249 | <td class="text-center align-middle"> | 249 | <td class="text-center align-middle"> |
250 | <button | 250 | <button |
251 | class="btn btn-outline-secondary" | 251 | class="btn btn-outline-secondary" |
252 | ng-click="agregarATabla(13)" | 252 | ng-click="agregarATabla(13)" |
253 | > | 253 | > |
254 | <i class="fa fa-save"></i> | 254 | <i class="fa fa-save"></i> |
255 | </button> | 255 | </button> |
256 | </td> | 256 | </td> |
257 | </tr> | 257 | </tr> |
258 | <tr ng-show="cargando" class="d-flex"> | 258 | <tr ng-show="cargando" class="d-flex"> |
259 | <td colspan="7" class="col-12"> | 259 | <td colspan="7" class="col-12"> |
260 | <input | 260 | <input |
261 | placeholder="Seleccione Articulo" | 261 | placeholder="Seleccione Articulo" |
262 | class="form-control form-control-sm" | 262 | class="form-control form-control-sm" |
263 | readonly | 263 | readonly |
264 | ng-click="seleccionarArticulo()" | 264 | ng-click="seleccionarArticulo()" |
265 | /> | 265 | /> |
266 | </td> | 266 | </td> |
267 | </tr> | 267 | </tr> |
268 | <tr class="d-flex"> | 268 | <tr class="d-flex"> |
269 | <td colspan="4" class="no-border-top"> | 269 | <td colspan="4" class="no-border-top"> |
270 | <strong>Items:</strong> | 270 | <strong>Items:</strong> |
271 | <a ng-bind="articulosTabla.length"></a> | 271 | <a ng-bind="articulosTabla.length"></a> |
272 | </td> | 272 | </td> |
273 | <td class="text-right ml-auto table-celda-total no-border-top"> | 273 | <td class="text-right ml-auto table-celda-total no-border-top"> |
274 | <h3>Total:</h3> | 274 | <h3>Total:</h3> |
275 | </td> | 275 | </td> |
276 | <td class="table-celda-total text-right no-border-top" colspan="1"> | 276 | <td class="table-celda-total text-right no-border-top" colspan="1"> |
277 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> | 277 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> |
278 | </td> | 278 | </td> |
279 | <td class="text-right no-border-top"> | 279 | <td class="text-right no-border-top"> |
280 | <button | 280 | <button |
281 | type="button" | 281 | type="button" |
282 | class="btn btn-default btn-sm" | 282 | class="btn btn-default btn-sm" |
283 | > | 283 | > |
284 | Totales | 284 | Totales |
285 | </button> | 285 | </button> |
286 | </td> | 286 | </td> |
287 | </tr> | 287 | </tr> |
288 | </tfoot> | 288 | </tfoot> |
289 | </table> | 289 | </table> |
290 | </div> | 290 | </div> |
291 | 291 | ||
292 | <!-- MOBILE --> | 292 | <!-- MOBILE --> |
293 | <div class="row d-sm-none"> | 293 | <div class="row d-sm-none"> |
294 | <table class="table table-sm table-striped table-dark margin-bottom-mobile"> | 294 | <table class="table table-sm table-striped table-dark margin-bottom-mobile"> |
295 | <thead> | 295 | <thead> |
296 | <tr class="d-flex"> | 296 | <tr class="d-flex"> |
297 | <th class="">#</th> | 297 | <th class="">#</th> |
298 | <th class="col px-0"> | 298 | <th class="col px-0"> |
299 | <div class="d-flex"> | 299 | <div class="d-flex"> |
300 | <div class="col-4 px-1">Código</div> | 300 | <div class="col-4 px-1">Código</div> |
301 | <div class="col-8 px-1">Descripción</div> | 301 | <div class="col-8 px-1">Descripción</div> |
302 | </div> | 302 | </div> |
303 | <div class="d-flex"> | 303 | <div class="d-flex"> |
304 | <div class="col-3 px-1">Cantidad</div> | 304 | <div class="col-3 px-1">Cantidad</div> |
305 | <div class="col px-1 text-right">P. Uni.</div> | 305 | <div class="col px-1 text-right">P. Uni.</div> |
306 | <div class="col px-1 text-right">Subtotal</div> | 306 | <div class="col px-1 text-right">Subtotal</div> |
307 | </div> | 307 | </div> |
308 | </th> | 308 | </th> |
309 | <th class="text-center tamaño-boton"> | 309 | <th class="text-center tamaño-boton"> |
310 | | 310 | |
311 | </th> | 311 | </th> |
312 | </tr> | 312 | </tr> |
313 | </thead> | 313 | </thead> |
314 | <tbody> | 314 | <tbody> |
315 | <tr | 315 | <tr |
316 | ng-repeat="(key, articulo) in articulosTabla" | 316 | ng-repeat="(key, articulo) in articulosTabla" |
317 | ng-show="show || key == articulosTabla.length - 1" | 317 | ng-show="show || key == articulosTabla.length - 1" |
318 | > | 318 | > |
319 | <td class="w-100 align-middle d-flex p-0"> | 319 | <td class="w-100 align-middle d-flex p-0"> |
320 | <div class="align-middle p-1"> | 320 | <div class="align-middle p-1"> |
321 | <span ng-bind="key+1" class="align-middle"></span> | 321 | <span ng-bind="key+1" class="align-middle"></span> |
322 | </div> | 322 | </div> |
323 | <div class="col px-0"> | 323 | <div class="col px-0"> |
324 | <div class="d-flex"> | 324 | <div class="d-flex"> |
325 | <div class="col-4 px-1"> | 325 | <div class="col-4 px-1"> |
326 | <span | 326 | <span |
327 | ng-bind="articulo.sector + '-' + articulo.codigo" | 327 | ng-bind="articulo.sector + '-' + articulo.codigo" |
328 | ></span> | 328 | ></span> |
329 | </div> | 329 | </div> |
330 | <div class="col-8 px-1"> | 330 | <div class="col-8 px-1"> |
331 | <span | 331 | <span |
332 | ng-bind="'x' + articulo.cantidad" | 332 | ng-bind="'x' + articulo.cantidad" |
333 | ng-hide="articulo.editCantidad" | 333 | ng-hide="articulo.editCantidad" |
334 | ></span> | 334 | ></span> |
335 | <i | 335 | <i |
336 | class="fa fa-pencil text-white-50" | 336 | class="fa fa-pencil text-white-50" |
337 | aria-hidden="true" | 337 | aria-hidden="true" |
338 | ng-hide="articulo.editCantidad" | 338 | ng-hide="articulo.editCantidad" |
339 | ng-click="articulo.editCantidad = true" | 339 | ng-click="articulo.editCantidad = true" |
340 | ></i> | 340 | ></i> |
341 | <input | 341 | <input |
342 | ng-show="articulo.editCantidad" | 342 | ng-show="articulo.editCantidad" |
343 | ng-model="articulo.cantidad" | 343 | ng-model="articulo.cantidad" |
344 | class="form-control" | 344 | class="form-control" |
345 | foca-tipo-input | 345 | foca-tipo-input |
346 | min="1" | 346 | min="1" |
347 | step="0.001" | 347 | step="0.001" |
348 | foca-focus="articulo.editCantidad" | 348 | foca-focus="articulo.editCantidad" |
349 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 349 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
350 | ng-focus="selectFocus($event)" | 350 | ng-focus="selectFocus($event)" |
351 | > | 351 | > |
352 | </div> | 352 | </div> |
353 | </div> | 353 | </div> |
354 | <div class="d-flex"> | 354 | <div class="d-flex"> |
355 | <div class="col-3 px-1"> | 355 | <div class="col-3 px-1"> |
356 | <span ng-bind="'x' + articulo.cantidad"></span> | 356 | <span ng-bind="'x' + articulo.cantidad"></span> |
357 | </div> | 357 | </div> |
358 | <div class="col px-1 text-right"> | 358 | <div class="col px-1 text-right"> |
359 | <span ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"></span> | 359 | <span ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"></span> |
360 | </div> | 360 | </div> |
361 | <div class="col px-1 text-right"> | 361 | <div class="col px-1 text-right"> |
362 | <span | 362 | <span |
363 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO" | 363 | ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO" |
364 | > | 364 | > |
365 | </span> | 365 | </span> |
366 | </div> | 366 | </div> |
367 | </div> | 367 | </div> |
368 | </div> | 368 | </div> |
369 | <div class="align-middle p-1"> | 369 | <div class="align-middle p-1"> |
370 | <button | 370 | <button |
371 | class="btn btn-outline-secondary" | 371 | class="btn btn-outline-secondary" |
372 | ng-click="quitarArticulo(key)" | 372 | ng-click="quitarArticulo(key)" |
373 | > | 373 | > |
374 | <i class="fa fa-trash"></i> | 374 | <i class="fa fa-trash"></i> |
375 | </button> | 375 | </button> |
376 | </div> | 376 | </div> |
377 | </td> | 377 | </td> |
378 | </tr> | 378 | </tr> |
379 | </tbody> | 379 | </tbody> |
380 | <tfoot> | 380 | <tfoot> |
381 | <!-- CARGANDO ITEM --> | 381 | <!-- CARGANDO ITEM --> |
382 | <tr ng-show="!cargando" class="d-flex"> | 382 | <tr ng-show="!cargando" class="d-flex"> |
383 | <td | 383 | <td |
384 | class="align-middle p-1" | 384 | class="align-middle p-1" |
385 | ng-bind="articulosTabla.length + 1" | 385 | ng-bind="articulosTabla.length + 1" |
386 | ></td> | 386 | ></td> |
387 | <td class="col p-0"> | 387 | <td class="col p-0"> |
388 | <div class="d-flex"> | 388 | <div class="d-flex"> |
389 | <div class="col-4 px-1"> | 389 | <div class="col-4 px-1"> |
390 | <span | 390 | <span |
391 | ng-bind="articuloACargar.sectorCodigo" | 391 | ng-bind="articuloACargar.sectorCodigo" |
392 | ></span> | 392 | ></span> |
393 | </div> | 393 | </div> |
394 | <div class="col-8 px-1"> | 394 | <div class="col-8 px-1"> |
395 | <span ng-bind="articuloACargar.descripcion"></span> | 395 | <span ng-bind="articuloACargar.descripcion"></span> |
396 | </div> | 396 | </div> |
397 | </div> | 397 | </div> |
398 | <div class="d-flex"> | 398 | <div class="d-flex"> |
399 | <div class="col-3 px-1 m-1"> | 399 | <div class="col-3 px-1 m-1"> |
400 | <input | 400 | <input |
401 | class="form-control p-1" | 401 | class="form-control p-1" |
402 | foca-tipo-input | 402 | foca-tipo-input |
403 | min="1" | 403 | min="1" |
404 | ng-model="articuloACargar.cantidad" | 404 | ng-model="articuloACargar.cantidad" |
405 | foca-focus="!cargando" | 405 | foca-focus="!cargando" |
406 | ng-keypress="agregarATabla($event.keyCode)" | 406 | ng-keypress="agregarATabla($event.keyCode)" |
407 | style="height: auto; line-height: 1.1em" | 407 | style="height: auto; line-height: 1.1em" |
408 | > | 408 | > |
409 | </div> | 409 | </div> |
410 | <div class="col px-1 text-right"> | 410 | <div class="col px-1 text-right"> |
411 | <span ng-bind="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4"></span> | 411 | <span ng-bind="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4"></span> |
412 | </div> | 412 | </div> |
413 | <div class="col px-1 text-right"> | 413 | <div class="col px-1 text-right"> |
414 | <span | 414 | <span |
415 | ng-bind="getSubTotal() | currency: remito.moneda.SIMBOLO" | 415 | ng-bind="getSubTotal() | currency: remito.moneda.SIMBOLO" |
416 | > | 416 | > |
417 | </span> | 417 | </span> |
418 | </div> | 418 | </div> |
419 | </div> | 419 | </div> |
420 | </td> | 420 | </td> |
421 | <td class="text-center align-middle"> | 421 | <td class="text-center align-middle"> |
422 | <button | 422 | <button |
423 | class="btn btn-outline-secondary" | 423 | class="btn btn-outline-secondary" |
424 | ng-click="agregarATabla(13)" | 424 | ng-click="agregarATabla(13)" |
425 | > | 425 | > |
426 | <i class="fa fa-save"></i> | 426 | <i class="fa fa-save"></i> |
427 | </button> | 427 | </button> |
428 | </td> | 428 | </td> |
429 | </tr> | 429 | </tr> |
430 | <!-- SELECCIONAR PRODUCTO --> | 430 | <!-- SELECCIONAR PRODUCTO --> |
431 | <tr ng-show="cargando" class="d-flex"> | 431 | <tr ng-show="cargando" class="d-flex"> |
432 | <td class="col-12"> | 432 | <td class="col-12"> |
433 | <input | 433 | <input |
434 | placeholder="Seleccione Articulo" | 434 | placeholder="Seleccione Articulo" |
435 | class="form-control form-control-sm" | 435 | class="form-control form-control-sm" |
436 | readonly | 436 | readonly |
437 | ng-click="seleccionarArticulo()" | 437 | ng-click="seleccionarArticulo()" |
438 | /> | 438 | /> |
439 | </td> | 439 | </td> |
440 | </tr> | 440 | </tr> |
441 | <!-- TOOGLE EXPANDIR --> | 441 | <!-- TOOGLE EXPANDIR --> |
442 | <tr> | 442 | <tr> |
443 | <td class="col"> | 443 | <td class="col"> |
444 | <button | 444 | <button |
445 | class="btn btn-outline-secondary selectable w-100" | 445 | class="btn btn-outline-secondary selectable w-100" |
446 | ng-click="show = !show; masMenos()" | 446 | ng-click="show = !show; masMenos()" |
447 | ng-show="articulosTabla.length > 0" | 447 | ng-show="articulosTabla.length > 0" |
448 | > | 448 | > |
449 | <i | 449 | <i |
450 | class="fa fa-chevron-down" | 450 | class="fa fa-chevron-down" |
451 | ng-hide="show" | 451 | ng-hide="show" |
452 | aria-hidden="true" | 452 | aria-hidden="true" |
453 | > | 453 | > |
454 | </i> | 454 | </i> |
455 | <i | 455 | <i |
456 | class="fa fa-chevron-up" | 456 | class="fa fa-chevron-up" |
457 | ng-show="show" | 457 | ng-show="show" |
458 | aria-hidden="true"> | 458 | aria-hidden="true"> |
459 | </i> | 459 | </i> |
460 | </button> | 460 | </button> |
461 | </td> | 461 | </td> |
462 | </tr> | 462 | </tr> |
463 | <!-- FOOTER --> | 463 | <!-- FOOTER --> |
464 | <tr class="d-flex"> | 464 | <tr class="d-flex"> |
465 | <td class="align-middle no-border-top" colspan="2"> | 465 | <td class="align-middle no-border-top" colspan="2"> |
466 | <strong>Cantidad Items:</strong> | 466 | <strong>Cantidad Items:</strong> |
467 | <a ng-bind="articulosTabla.length"></a> | 467 | <a ng-bind="articulosTabla.length"></a> |
468 | </td> | 468 | </td> |
469 | <td class="text-right ml-auto table-celda-total no-border-top"> | 469 | <td class="text-right ml-auto table-celda-total no-border-top"> |
470 | <h3>Total:</h3> | 470 | <h3>Total:</h3> |
471 | </td> | 471 | </td> |
472 | <td class="table-celda-total text-right no-border-top"> | 472 | <td class="table-celda-total text-right no-border-top"> |
473 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> | 473 | <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> |
474 | </td> | 474 | </td> |
475 | </tr> | 475 | </tr> |
476 | </tfoot> | 476 | </tfoot> |
477 | </table> | 477 | </table> |
478 | </div> | 478 | </div> |
479 | </div> | 479 | </div> |
480 | <div class="col-auto my-2 col-lg-2 botonera-lateral d-none d-md-block"> | 480 | <div class="col-auto my-2 col-lg-2 botonera-lateral d-none d-md-block"> |
481 | <div class="row align-items-end"> | 481 | <div class="row align-items-end"> |
482 | <div class="col-12"> | 482 | <div class="col-12"> |
483 | <button | 483 | <button |
484 | ladda="saveLoading" | 484 | ladda="saveLoading" |
485 | data-spinner-color="#FF0000" | ||
485 | ng-click="crearRemito()" | 486 | ng-click="crearRemito()" |
486 | type="submit" | 487 | type="submit" |
487 | title="Crear nota remito" | 488 | title="Crear nota remito" |
488 | class="btn btn-default btn-block mb-2" | 489 | class="btn btn-default btn-block mb-2" |
489 | ng-disabled="remito.estado === 5" | 490 | ng-disabled="remito.estado === 5" |
490 | >Guardar | 491 | >Guardar |
491 | </button> | 492 | </button> |
492 | <button | 493 | <button |
493 | ng-click="salir()" | 494 | ng-click="salir()" |
494 | type="button" | 495 | type="button" |
495 | title="Salir" | 496 | title="Salir" |
496 | class="btn btn-default btn-block"> | 497 | class="btn btn-default btn-block"> |
497 | Salir | 498 | Salir |
498 | </button> | 499 | </button> |
499 | </div> | 500 | </div> |
500 | </div> | 501 | </div> |
501 | </div> | 502 | </div> |
502 | </div> | 503 | </div> |
503 | <div class="row d-md-none fixed-bottom"> | 504 | <div class="row d-md-none fixed-bottom"> |
504 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> | 505 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> |
505 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> | 506 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> |
506 | <span | 507 | <span |
507 | class="mr-3 ml-auto" | 508 | class="mr-3 ml-auto" |
508 | ng-class="saveLoading ? 'text-muted' : ''" | 509 | ng-class="saveLoading ? 'text-muted' : ''" |
509 | ng-click="crearRemito()" | 510 | ng-click="crearRemito()" |
510 | ladda="saveLoading" | 511 | ladda="saveLoading" |
511 | data-style="expand-left" | 512 | data-style="expand-left" |
512 | >Guardar</span> | 513 | >Guardar</span> |
513 | </div> | 514 | </div> |
514 | </div> | 515 | </div> |
515 | </div> | 516 | </div> |
516 | 517 |