Commit 82f9afe39174b72ab19d77ac173e5351f5188ade

Authored by Eric
1 parent aa7f9a9e49
Exists in master

ng bind2

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