Commit f2fb382aa91e6fcb539618492d4e127c6a29eef2
1 parent
e1f45452b5
Exists in
master
and in
1 other branch
Centrado texto de los input de cuit
Showing
1 changed file
with
7 additions
and
4 deletions
Show diff stats
src/views/foca-busqueda-cliente-modal.html
1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> |
2 | <div class="row w-100"> | 2 | <div class="row w-100"> |
3 | <div class="col-lg-4 col-7"> | 3 | <div class="col-lg-4 col-7"> |
4 | <h5 class="modal-title my-1" ng-hide="ingreso">Búsqueda de Cliente</h5> | 4 | <h5 class="modal-title my-1" ng-hide="ingreso">Búsqueda de Cliente</h5> |
5 | <h5 class="modal-title my-1" ng-show="ingreso">Crear Cliente</h5> | 5 | <h5 class="modal-title my-1" ng-show="ingreso">Crear Cliente</h5> |
6 | </div> | 6 | </div> |
7 | <div ng-show="ingreso" class="col-lg-6 col-5 front-index"> | 7 | <div ng-show="ingreso" class="col-lg-6 col-5 front-index"> |
8 | <div class="custom-control custom-checkbox mt-2"> | 8 | <div class="custom-control custom-checkbox mt-2"> |
9 | <input | 9 | <input |
10 | type="checkbox" | 10 | type="checkbox" |
11 | class="custom-control-input" | 11 | class="custom-control-input" |
12 | id="checkProspecto" | 12 | id="checkProspecto" |
13 | ng-model="cliente.ES_PROS"> | 13 | ng-model="cliente.ES_PROS"> |
14 | <label class="custom-control-label" for="checkProspecto">¿Es prospecto?</label> | 14 | <label class="custom-control-label" for="checkProspecto">¿Es prospecto?</label> |
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | <div class="input-group col-lg-6 offset-lg-2 pr-0 my-2"> | 17 | <div class="input-group col-lg-6 offset-lg-2 pr-0 my-2"> |
18 | <button | 18 | <button |
19 | class="btn btn-outline-debo mr-2" | 19 | class="btn btn-outline-debo mr-2" |
20 | ng-click="ingreso = true" | 20 | ng-click="ingreso = true" |
21 | ng-show="!ingreso" | 21 | ng-show="!ingreso" |
22 | title="Nuevo"> | 22 | title="Nuevo"> |
23 | <i class="fa fa-plus" aria-hidden="true"></i> | 23 | <i class="fa fa-plus" aria-hidden="true"></i> |
24 | </button> | 24 | </button> |
25 | <input | 25 | <input |
26 | ladda="searchLoading" | 26 | ladda="searchLoading" |
27 | type="text" | 27 | type="text" |
28 | class="form-control form-control-sm" | 28 | class="form-control form-control-sm" |
29 | id="search" | 29 | id="search" |
30 | placeholder="Busqueda" | 30 | placeholder="Busqueda" |
31 | ng-model="filters" | 31 | ng-model="filters" |
32 | ng-change="search()" | 32 | ng-change="search()" |
33 | ng-keydown="busquedaDown($event.keyCode)" | 33 | ng-keydown="busquedaDown($event.keyCode)" |
34 | ng-keypress="busquedaPress($event.keyCode)" | 34 | ng-keypress="busquedaPress($event.keyCode)" |
35 | foca-focus="selectedClientes == -1" | 35 | foca-focus="selectedClientes == -1" |
36 | ng-focus="selectedClientes = -1" | 36 | ng-focus="selectedClientes = -1" |
37 | teclado-virtual | 37 | teclado-virtual |
38 | ng-hide="ingreso" | 38 | ng-hide="ingreso" |
39 | > | 39 | > |
40 | <button | 40 | <button |
41 | ng-show="filters.length >= 1" | 41 | ng-show="filters.length >= 1" |
42 | type="button" | 42 | type="button" |
43 | class="clear-input" | 43 | class="clear-input" |
44 | ng-click="filters = ''" | 44 | ng-click="filters = ''" |
45 | > | 45 | > |
46 | <i class="fa fa-times"></i> | 46 | <i class="fa fa-times"></i> |
47 | </button> | 47 | </button> |
48 | <div class="input-group-append" ng-hide="ingreso"> | 48 | <div class="input-group-append" ng-hide="ingreso"> |
49 | <button | 49 | <button |
50 | ladda="searchLoading" | 50 | ladda="searchLoading" |
51 | data-spinner-color="#FF0000" | 51 | data-spinner-color="#FF0000" |
52 | class="btn btn-outline-secondary" | 52 | class="btn btn-outline-secondary" |
53 | type="button" | 53 | type="button" |
54 | ng-click="busquedaPress(13)"> | 54 | ng-click="busquedaPress(13)"> |
55 | <i class="fa fa-search" aria-hidden="true"></i> | 55 | <i class="fa fa-search" aria-hidden="true"></i> |
56 | </button> | 56 | </button> |
57 | </div> | 57 | </div> |
58 | </div> | 58 | </div> |
59 | </div> | 59 | </div> |
60 | </div> | 60 | </div> |
61 | <div class="modal-body" id="modal-body"> | 61 | <div class="modal-body" id="modal-body"> |
62 | 62 | ||
63 | <div ng-show="!primerBusqueda && !ingreso"> | 63 | <div ng-show="!primerBusqueda && !ingreso"> |
64 | Debe realizar una primer búsqueda. | 64 | Debe realizar una primer búsqueda. |
65 | </div> | 65 | </div> |
66 | 66 | ||
67 | <table ng-show="primerBusqueda && !ingreso" class="table table-striped table-sm"> | 67 | <table ng-show="primerBusqueda && !ingreso" class="table table-striped table-sm"> |
68 | <thead> | 68 | <thead> |
69 | <tr> | 69 | <tr> |
70 | <th>Código</th> | 70 | <th>Código</th> |
71 | <th>Nombre</th> | 71 | <th>Nombre</th> |
72 | <th>CUIT</th> | 72 | <th>CUIT</th> |
73 | <th colspan="2"></th> | 73 | <th colspan="2"></th> |
74 | </tr> | 74 | </tr> |
75 | </thead> | 75 | </thead> |
76 | <tbody> | 76 | <tbody> |
77 | <tr ng-show="currentPageClientes.length == 0 && primerBusqueda"> | 77 | <tr ng-show="currentPageClientes.length == 0 && primerBusqueda"> |
78 | <td colspan="4"> | 78 | <td colspan="4"> |
79 | No se encontraron resultados. | 79 | No se encontraron resultados. |
80 | </td> | 80 | </td> |
81 | </tr> | 81 | </tr> |
82 | <tr | 82 | <tr |
83 | class="selectable" | 83 | class="selectable" |
84 | ng-repeat="(key, cliente) in currentPageClientes" | 84 | ng-repeat="(key, cliente) in currentPageClientes" |
85 | ng-click="select(cliente)"> | 85 | ng-click="select(cliente)"> |
86 | <td ng-bind="('00000'+cliente.cod).slice(-5)"></td> | 86 | <td ng-bind="('00000'+cliente.cod).slice(-5)"></td> |
87 | <td ng-bind="cliente.nom"></td> | 87 | <td ng-bind="cliente.nom"></td> |
88 | <td ng-bind="cliente.cuit"></td> | 88 | <td ng-bind="cliente.cuit"></td> |
89 | <td> | 89 | <td> |
90 | <button | 90 | <button |
91 | type="button" | 91 | type="button" |
92 | class="btn btn-xs p-1" | 92 | class="btn btn-xs p-1" |
93 | ng-click="" | 93 | ng-click="" |
94 | ><i class="fa fa-eye"></i> | 94 | ><i class="fa fa-eye"></i> |
95 | </button> | 95 | </button> |
96 | </td> | 96 | </td> |
97 | <td> | 97 | <td> |
98 | <button | 98 | <button |
99 | type="button" | 99 | type="button" |
100 | class="btn btn-xs p-1 float-right" | 100 | class="btn btn-xs p-1 float-right" |
101 | ng-class="{ | 101 | ng-class="{ |
102 | 'btn-secondary': selectedClientes != key, | 102 | 'btn-secondary': selectedClientes != key, |
103 | 'btn-primary': selectedClientes == key | 103 | 'btn-primary': selectedClientes == key |
104 | }" | 104 | }" |
105 | ng-click="select(cliente)" | 105 | ng-click="select(cliente)" |
106 | foca-focus="selectedClientes == {{key}}" | 106 | foca-focus="selectedClientes == {{key}}" |
107 | ng-keydown="itemCliente($event.keyCode)" | 107 | ng-keydown="itemCliente($event.keyCode)" |
108 | > | 108 | > |
109 | <i class="fa fa-circle-thin" aria-hidden="true"></i> | 109 | <i class="fa fa-circle-thin" aria-hidden="true"></i> |
110 | </button> | 110 | </button> |
111 | </td> | 111 | </td> |
112 | </tr> | 112 | </tr> |
113 | </tbody> | 113 | </tbody> |
114 | </table> | 114 | </table> |
115 | 115 | ||
116 | <form name="formCliente"> | 116 | <form name="formCliente"> |
117 | <uib-tabset class="tabs-right" ng-show="ingreso"> | 117 | <uib-tabset class="tabs-right" ng-show="ingreso"> |
118 | <uib-tab heading="Datos cliente"> | 118 | <uib-tab heading="Datos cliente"> |
119 | <div class="row"> | 119 | <div class="row"> |
120 | <div class="col-3 mt-2"> | 120 | <div class="col-3 mt-2"> |
121 | <label>Código</label> | 121 | <label>Código</label> |
122 | <input | 122 | <input |
123 | type="text" | 123 | type="text" |
124 | class="form-control form-control-sm" | 124 | class="form-control form-control-sm" |
125 | ng-model="cliente.codigo" | 125 | ng-model="cliente.codigo" |
126 | readonly | 126 | readonly |
127 | /> | 127 | /> |
128 | </div> | 128 | </div> |
129 | <div class="col-9 mt-2"> | 129 | <div class="col-9 mt-2"> |
130 | <label>Nombre</label> | 130 | <label>Nombre</label> |
131 | <input | 131 | <input |
132 | type="text" | 132 | type="text" |
133 | class="form-control form-control-sm" | 133 | class="form-control form-control-sm" |
134 | ng-model="cliente.NOM" | 134 | ng-model="cliente.NOM" |
135 | teclado-virtual | 135 | teclado-virtual |
136 | placeholder="Ingrese nombre" | 136 | placeholder="Ingrese nombre" |
137 | ng-required="true" | 137 | ng-required="true" |
138 | foca-focus="focused == 1 || ingreso" | 138 | foca-focus="focused == 1 || ingreso" |
139 | ng-focus="focus(1)" | 139 | ng-focus="focus(1)" |
140 | ng-keypress="next($event.keyCode)" | 140 | ng-keypress="next($event.keyCode)" |
141 | /> | 141 | /> |
142 | </div> | 142 | </div> |
143 | </div> | 143 | </div> |
144 | <div class="row"> | 144 | <div class="row"> |
145 | <div class="col-md-9 col-12 mt-2"> | 145 | <div class="col-md-9 col-12 mt-2"> |
146 | <label>Domicilio</label> | 146 | <label>Domicilio</label> |
147 | <input | 147 | <input |
148 | type="text" | 148 | type="text" |
149 | class="form-control form-control-sm" | 149 | class="form-control form-control-sm" |
150 | ng-model="cliente.DOM" | 150 | ng-model="cliente.DOM" |
151 | teclado-virtual | 151 | teclado-virtual |
152 | placeholder="Ingrese domicilio" | 152 | placeholder="Ingrese domicilio" |
153 | ng-required="true" | 153 | ng-required="true" |
154 | ng-focus="focus(2)" | 154 | ng-focus="focus(2)" |
155 | foca-focus="focused == 2" | 155 | foca-focus="focused == 2" |
156 | ng-keypress="next($event.keyCode)" | 156 | ng-keypress="next($event.keyCode)" |
157 | /> | 157 | /> |
158 | </div> | 158 | </div> |
159 | <div class="col-md-3 col-12 mt-2"> | 159 | <div class="col-md-3 col-12 mt-2"> |
160 | <label>Código postal</label> | 160 | <label>Código postal</label> |
161 | <input | 161 | <input |
162 | type="text" | 162 | type="text" |
163 | class="form-control form-control-sm" | 163 | class="form-control form-control-sm" |
164 | ng-model="cliente.CPO" | 164 | ng-model="cliente.CPO" |
165 | placeholder="Ingrese CP" | 165 | placeholder="Ingrese CP" |
166 | ng-required="true" | 166 | ng-required="true" |
167 | ng-focus="focus(3)" | 167 | ng-focus="focus(3)" |
168 | foca-focus="focused == 3" | 168 | foca-focus="focused == 3" |
169 | ng-keypress="next($event.keyCode)" | 169 | ng-keypress="next($event.keyCode)" |
170 | teclado-virtual | 170 | teclado-virtual |
171 | /> | 171 | /> |
172 | </div> | 172 | </div> |
173 | </div> | 173 | </div> |
174 | <div class="row"> | 174 | <div class="row"> |
175 | <div class="col-md-6 col-12 mt-2"> | 175 | <div class="col-md-6 col-12 mt-2"> |
176 | <label>Provincia</label> | 176 | <label>Provincia</label> |
177 | <div class="input-group"> | 177 | <div class="input-group"> |
178 | <input | 178 | <input |
179 | type="text" | 179 | type="text" |
180 | class="form-control form-control-sm" | 180 | class="form-control form-control-sm" |
181 | ng-model="cliente.provincia.NOMBRE" | 181 | ng-model="cliente.provincia.NOMBRE" |
182 | ng-keypress="seleccionarProvincia($event.keyCode)" | 182 | ng-keypress="seleccionarProvincia($event.keyCode)" |
183 | placeholder="Seleccione provincia" | 183 | placeholder="Seleccione provincia" |
184 | ng-required="true" | 184 | ng-required="true" |
185 | ng-focus="focus(4)" | 185 | ng-focus="focus(4)" |
186 | foca-focus="focused == 4" | 186 | foca-focus="focused == 4" |
187 | teclado-virtual | 187 | teclado-virtual |
188 | /> | 188 | /> |
189 | <button | 189 | <button |
190 | ng-show="cliente.provincia.NOMBRE.length >= 1" | 190 | ng-show="cliente.provincia.NOMBRE.length >= 1" |
191 | type="button" | 191 | type="button" |
192 | class="clear-input" | 192 | class="clear-input" |
193 | ng-click="cliente.provincia.NOMBRE = ''" | 193 | ng-click="cliente.provincia.NOMBRE = ''" |
194 | > | 194 | > |
195 | <i class="fa fa-times"></i> | 195 | <i class="fa fa-times"></i> |
196 | </button> | 196 | </button> |
197 | <div class="input-group-append"> | 197 | <div class="input-group-append"> |
198 | <button | 198 | <button |
199 | ladda="searchLoading" | 199 | ladda="searchLoading" |
200 | class="btn btn-outline-secondary" | 200 | class="btn btn-outline-secondary" |
201 | type="button" | 201 | type="button" |
202 | ng-click="seleccionarProvincia(13)" | 202 | ng-click="seleccionarProvincia(13)" |
203 | > | 203 | > |
204 | <i class="fa fa-search" aria-hidden="true"></i> | 204 | <i class="fa fa-search" aria-hidden="true"></i> |
205 | </button> | 205 | </button> |
206 | </div> | 206 | </div> |
207 | </div> | 207 | </div> |
208 | </div> | 208 | </div> |
209 | <div class="col-md-6 col-12 mt-2"> | 209 | <div class="col-md-6 col-12 mt-2"> |
210 | <label>Localidad</label> | 210 | <label>Localidad</label> |
211 | <div class="input-group"> | 211 | <div class="input-group"> |
212 | <input | 212 | <input |
213 | type="text" | 213 | type="text" |
214 | class="form-control form-control-sm" | 214 | class="form-control form-control-sm" |
215 | ng-model="cliente.localidad.NOMBRE" | 215 | ng-model="cliente.localidad.NOMBRE" |
216 | ng-keypress="seleccionarLocalidad($event.keyCode)" | 216 | ng-keypress="seleccionarLocalidad($event.keyCode)" |
217 | placeholder="Seleccione localidad" | 217 | placeholder="Seleccione localidad" |
218 | ng-required="true" | 218 | ng-required="true" |
219 | foca-focus="focused == 5" | 219 | foca-focus="focused == 5" |
220 | ng-focus="focus(5)" | 220 | ng-focus="focus(5)" |
221 | teclado-virtual | 221 | teclado-virtual |
222 | /> | 222 | /> |
223 | <button | 223 | <button |
224 | ng-show="cliente.localidad.NOMBRE.length >= 1" | 224 | ng-show="cliente.localidad.NOMBRE.length >= 1" |
225 | type="button" | 225 | type="button" |
226 | class="clear-input" | 226 | class="clear-input" |
227 | ng-click="cliente.localidad.NOMBRE = ''" | 227 | ng-click="cliente.localidad.NOMBRE = ''" |
228 | > | 228 | > |
229 | <i class="fa fa-times"></i> | 229 | <i class="fa fa-times"></i> |
230 | </button> | 230 | </button> |
231 | <div class="input-group-append"> | 231 | <div class="input-group-append"> |
232 | <button | 232 | <button |
233 | ladda="searchLoading" | 233 | ladda="searchLoading" |
234 | class="btn btn-outline-secondary" | 234 | class="btn btn-outline-secondary" |
235 | type="button" | 235 | type="button" |
236 | ng-click="seleccionarLocalidad(13)" | 236 | ng-click="seleccionarLocalidad(13)" |
237 | > | 237 | > |
238 | <i class="fa fa-search" aria-hidden="true"></i> | 238 | <i class="fa fa-search" aria-hidden="true"></i> |
239 | </button> | 239 | </button> |
240 | </div> | 240 | </div> |
241 | </div> | 241 | </div> |
242 | </div> | 242 | </div> |
243 | </div> | 243 | </div> |
244 | <div class="row"> | 244 | <div class="row"> |
245 | <div class="col-md-6 col-12 mt-2"> | 245 | <div class="col-md-6 col-12 mt-2"> |
246 | <label>Zona</label> | 246 | <label>Zona</label> |
247 | <div class="input-group"> | 247 | <div class="input-group"> |
248 | <input | 248 | <input |
249 | type="text" | 249 | type="text" |
250 | class="form-control form-control-sm" | 250 | class="form-control form-control-sm" |
251 | ng-model="cliente.zona.NOM" | 251 | ng-model="cliente.zona.NOM" |
252 | ng-keypress="seleccionarZona($event.keyCode)" | 252 | ng-keypress="seleccionarZona($event.keyCode)" |
253 | placeholder="Seleccione zona" | 253 | placeholder="Seleccione zona" |
254 | ng-required="true" | 254 | ng-required="true" |
255 | ng-focus="focus(6)" | 255 | ng-focus="focus(6)" |
256 | foca-focus="focused == 6" | 256 | foca-focus="focused == 6" |
257 | teclado-virtual | 257 | teclado-virtual |
258 | /> | 258 | /> |
259 | <button | 259 | <button |
260 | ng-show="cliente.zona.NOM.length >= 1" | 260 | ng-show="cliente.zona.NOM.length >= 1" |
261 | type="button" | 261 | type="button" |
262 | class="clear-input" | 262 | class="clear-input" |
263 | ng-click="cliente.zona.NOM = ''" | 263 | ng-click="cliente.zona.NOM = ''" |
264 | > | 264 | > |
265 | <i class="fa fa-times"></i> | 265 | <i class="fa fa-times"></i> |
266 | </button> | 266 | </button> |
267 | <div class="input-group-append"> | 267 | <div class="input-group-append"> |
268 | <button | 268 | <button |
269 | ladda="searchLoading" | 269 | ladda="searchLoading" |
270 | class="btn btn-outline-secondary" | 270 | class="btn btn-outline-secondary" |
271 | type="button" | 271 | type="button" |
272 | ng-click="seleccionarZona(13)" | 272 | ng-click="seleccionarZona(13)" |
273 | > | 273 | > |
274 | <i class="fa fa-search" aria-hidden="true"></i> | 274 | <i class="fa fa-search" aria-hidden="true"></i> |
275 | </button> | 275 | </button> |
276 | </div> | 276 | </div> |
277 | </div> | 277 | </div> |
278 | </div> | 278 | </div> |
279 | <div class="col-md-6 col-12 mt-2"> | 279 | <div class="col-md-6 col-12 mt-2"> |
280 | <label> Actividad </label> | 280 | <label> Actividad </label> |
281 | <div class="input-group"> | 281 | <div class="input-group"> |
282 | <input | 282 | <input |
283 | type="text" | 283 | type="text" |
284 | class="form-control form-control-sm" | 284 | class="form-control form-control-sm" |
285 | ng-model="cliente.actividad.NOM" | 285 | ng-model="cliente.actividad.NOM" |
286 | ng-keypress="seleccionarActividad($event.keyCode)" | 286 | ng-keypress="seleccionarActividad($event.keyCode)" |
287 | placeholder="Seleccione actividad" | 287 | placeholder="Seleccione actividad" |
288 | ng-required="true" | 288 | ng-required="true" |
289 | ng-focus="focus(7)" | 289 | ng-focus="focus(7)" |
290 | foca-focus="focused == 7" | 290 | foca-focus="focused == 7" |
291 | teclado-virtual | 291 | teclado-virtual |
292 | /> | 292 | /> |
293 | <button | 293 | <button |
294 | ng-show="cliente.actividad.NOM.length >= 1" | 294 | ng-show="cliente.actividad.NOM.length >= 1" |
295 | type="button" | 295 | type="button" |
296 | class="clear-input" | 296 | class="clear-input" |
297 | ng-click="cliente.actividad.NOM = ''" | 297 | ng-click="cliente.actividad.NOM = ''" |
298 | > | 298 | > |
299 | <i class="fa fa-times"></i> | 299 | <i class="fa fa-times"></i> |
300 | </button> | 300 | </button> |
301 | <div class="input-group-append"> | 301 | <div class="input-group-append"> |
302 | <button | 302 | <button |
303 | ladda="searchLoading" | 303 | ladda="searchLoading" |
304 | class="btn btn-outline-secondary" | 304 | class="btn btn-outline-secondary" |
305 | type="button" | 305 | type="button" |
306 | ng-click="seleccionarActividad(13)" | 306 | ng-click="seleccionarActividad(13)" |
307 | > | 307 | > |
308 | <i class="fa fa-search" aria-hidden="true"></i> | 308 | <i class="fa fa-search" aria-hidden="true"></i> |
309 | </button> | 309 | </button> |
310 | </div> | 310 | </div> |
311 | </div> | 311 | </div> |
312 | </div> | 312 | </div> |
313 | </div> | 313 | </div> |
314 | <div class="row"> | 314 | <div class="row"> |
315 | <div class="col-md-6 col-12 mt-2"> | 315 | <div class="col-md-6 col-12 mt-2"> |
316 | <label>Cobrador</label> | 316 | <label>Cobrador</label> |
317 | <div class="input-group"> | 317 | <div class="input-group"> |
318 | <input | 318 | <input |
319 | type="text" | 319 | type="text" |
320 | class="form-control form-control-sm" | 320 | class="form-control form-control-sm" |
321 | ng-model="cliente.cobrador.NOM" | 321 | ng-model="cliente.cobrador.NOM" |
322 | ng-keypress="seleccionarCobrador($event.keyCode)" | 322 | ng-keypress="seleccionarCobrador($event.keyCode)" |
323 | placeholder="Seleccione cobrador" | 323 | placeholder="Seleccione cobrador" |
324 | ng-focus="focus(8)" | 324 | ng-focus="focus(8)" |
325 | foca-focus="focused == 8" | 325 | foca-focus="focused == 8" |
326 | teclado-virtual | 326 | teclado-virtual |
327 | /> | 327 | /> |
328 | <button | 328 | <button |
329 | ng-show="cliente.cobrador.NOM.length >= 1" | 329 | ng-show="cliente.cobrador.NOM.length >= 1" |
330 | type="button" | 330 | type="button" |
331 | class="clear-input" | 331 | class="clear-input" |
332 | ng-click="cliente.cobrador.NOM = ''" | 332 | ng-click="cliente.cobrador.NOM = ''" |
333 | > | 333 | > |
334 | <i class="fa fa-times"></i> | 334 | <i class="fa fa-times"></i> |
335 | </button> | 335 | </button> |
336 | <div class="input-group-append"> | 336 | <div class="input-group-append"> |
337 | <button | 337 | <button |
338 | ladda="searchLoading" | 338 | ladda="searchLoading" |
339 | class="btn btn-outline-secondary" | 339 | class="btn btn-outline-secondary" |
340 | type="button" | 340 | type="button" |
341 | ng-click="seleccionarCobrador(13)" | 341 | ng-click="seleccionarCobrador(13)" |
342 | > | 342 | > |
343 | <i class="fa fa-search" aria-hidden="true"></i> | 343 | <i class="fa fa-search" aria-hidden="true"></i> |
344 | </button> | 344 | </button> |
345 | </div> | 345 | </div> |
346 | </div> | 346 | </div> |
347 | </div> | 347 | </div> |
348 | <div class="col-md-6 col-12 mt-2"> | 348 | <div class="col-md-6 col-12 mt-2"> |
349 | <label>Vendedor</label> | 349 | <label>Vendedor</label> |
350 | <div class="input-group"> | 350 | <div class="input-group"> |
351 | <input | 351 | <input |
352 | type="text" | 352 | type="text" |
353 | class="form-control form-control-sm" | 353 | class="form-control form-control-sm" |
354 | ng-model="vendedor.NOM" | 354 | ng-model="vendedor.NOM" |
355 | ng-keypress="seleccionarVendedor($event.keyCode)" | 355 | ng-keypress="seleccionarVendedor($event.keyCode)" |
356 | placeholder="Seleccione vendedor" | 356 | placeholder="Seleccione vendedor" |
357 | ng-focus="focus(9)" | 357 | ng-focus="focus(9)" |
358 | foca-focus="focused == 9" | 358 | foca-focus="focused == 9" |
359 | teclado-virtual | 359 | teclado-virtual |
360 | /> | 360 | /> |
361 | <button | 361 | <button |
362 | ng-show="vendedor.NOM.length >= 1" | 362 | ng-show="vendedor.NOM.length >= 1" |
363 | type="button" | 363 | type="button" |
364 | class="clear-input" | 364 | class="clear-input" |
365 | ng-click="vendedor.NOM = ''" | 365 | ng-click="vendedor.NOM = ''" |
366 | > | 366 | > |
367 | <i class="fa fa-times"></i> | 367 | <i class="fa fa-times"></i> |
368 | </button> | 368 | </button> |
369 | <div class="input-group-append"> | 369 | <div class="input-group-append"> |
370 | <button | 370 | <button |
371 | ladda="searchLoading" | 371 | ladda="searchLoading" |
372 | class="btn btn-outline-secondary" | 372 | class="btn btn-outline-secondary" |
373 | type="button" | 373 | type="button" |
374 | ng-click="seleccionarVendedor(13)" | 374 | ng-click="seleccionarVendedor(13)" |
375 | > | 375 | > |
376 | <i class="fa fa-search" aria-hidden="true"></i> | 376 | <i class="fa fa-search" aria-hidden="true"></i> |
377 | </button> | 377 | </button> |
378 | </div> | 378 | </div> |
379 | </div> | 379 | </div> |
380 | </div> | 380 | </div> |
381 | <div class="col-md-6 col-12 mt-2"> | 381 | <div class="col-md-6 col-12 mt-2"> |
382 | <label>Email</label> | 382 | <label>Email</label> |
383 | <div class="input-group"> | 383 | <div class="input-group"> |
384 | <input | 384 | <input |
385 | type="text" | 385 | type="text" |
386 | class="form-control form-control-sm" | 386 | class="form-control form-control-sm" |
387 | placeholder="Ingrese Email" | 387 | placeholder="Ingrese Email" |
388 | ng-model="cliente.MAIL" | 388 | ng-model="cliente.MAIL" |
389 | ng-required="true" | 389 | ng-required="true" |
390 | ng-keypress="next($event.keyCode)" | 390 | ng-keypress="next($event.keyCode)" |
391 | ng-focus="focus(10)" | 391 | ng-focus="focus(10)" |
392 | foca-focus="focused == 10" | 392 | foca-focus="focused == 10" |
393 | teclado-virtual> | 393 | teclado-virtual> |
394 | </div> | 394 | </div> |
395 | </div> | 395 | </div> |
396 | <div class="col-md-6 col-12 mt-2"> | 396 | <div class="col-md-6 col-12 mt-2"> |
397 | <label>Telefono</label> | 397 | <label>Telefono</label> |
398 | <div class="input-group"> | 398 | <div class="input-group"> |
399 | <input | 399 | <input |
400 | foca-tipo-input | 400 | foca-tipo-input |
401 | limite-numeros-max="20" | 401 | limite-numeros-max="20" |
402 | class="form-control form-control-sm" | 402 | class="form-control form-control-sm" |
403 | placeholder="Ingrese Telefono" | 403 | placeholder="Ingrese Telefono" |
404 | ng-model="cliente.TEL" | 404 | ng-model="cliente.TEL" |
405 | ng-required="true" | 405 | ng-required="true" |
406 | ng-keypress="next($event.keyCode)" | 406 | ng-keypress="next($event.keyCode)" |
407 | ng-focus="focus(11)" | 407 | ng-focus="focus(11)" |
408 | foca-focus="focused == 11" | 408 | foca-focus="focused == 11" |
409 | teclado-virtual> | 409 | teclado-virtual> |
410 | </div> | 410 | </div> |
411 | </div> | 411 | </div> |
412 | </div> | 412 | </div> |
413 | <div class="row"> | 413 | <div class="row"> |
414 | <div class="col-6 d-flex mt-"> | 414 | <div class="col-6 d-flex mt-3"> |
415 | <div class="custom-control custom-checkbox mt-auto"> | 415 | <div class="custom-control custom-checkbox mt-auto"> |
416 | <input | 416 | <input |
417 | type="checkbox" | 417 | type="checkbox" |
418 | class="custom-control-input" | 418 | class="custom-control-input" |
419 | id="checkDistribuidor" | 419 | id="checkDistribuidor" |
420 | ng-model="cliente.ES_MAY" | 420 | ng-model="cliente.ES_MAY" |
421 | checked | 421 | checked |
422 | disabled="disabled"> | 422 | disabled="disabled"> |
423 | <label class="custom-control-label" for="checkDistribuidor">¿Este cliente es distribuidor?</label> | 423 | <label class="custom-control-label" for="checkDistribuidor">¿Este cliente es distribuidor?</label> |
424 | </div> | 424 | </div> |
425 | </div> | 425 | </div> |
426 | </div> | 426 | </div> |
427 | </uib-tab> | 427 | </uib-tab> |
428 | <uib-tab heading="Datos impositivos"> | 428 | <uib-tab heading="Datos impositivos"> |
429 | <div class="row"> | 429 | <div class="row"> |
430 | <div class="col-md-7 col-12 mt-2"> | 430 | <div class="col-md-7 col-12 mt-2"> |
431 | <label>Responsabilidad ante el IVA</label> | 431 | <label>Responsabilidad ante el IVA</label> |
432 | <div class="input-group"> | 432 | <div class="input-group"> |
433 | <input | 433 | <input |
434 | type="text" | 434 | type="text" |
435 | class="form-control form-control-sm" | 435 | class="form-control form-control-sm" |
436 | placeholder="Seleccione responsabilidad ante el IVA" | 436 | placeholder="Seleccione responsabilidad ante el IVA" |
437 | ng-model="cliente.iva.NOMBRE" | 437 | ng-model="cliente.iva.NOMBRE" |
438 | ng-keypress="seleccionarIva($event.keyCode)" | 438 | ng-keypress="seleccionarIva($event.keyCode)" |
439 | ng-required="true" | 439 | ng-required="true" |
440 | ng-focus="focus(12)" | 440 | ng-focus="focus(12)" |
441 | foca-focus="focused == 12" | 441 | foca-focus="focused == 12" |
442 | teclado-virtual | 442 | teclado-virtual |
443 | /> | 443 | /> |
444 | <button | 444 | <button |
445 | ng-show="cliente.iva.NOMBRE.length >= 1" | 445 | ng-show="cliente.iva.NOMBRE.length >= 1" |
446 | type="button" | 446 | type="button" |
447 | class="clear-input" | 447 | class="clear-input" |
448 | ng-click="cliente.iva.NOMBRE = ''" | 448 | ng-click="cliente.iva.NOMBRE = ''" |
449 | > | 449 | > |
450 | <i class="fa fa-times"></i> | 450 | <i class="fa fa-times"></i> |
451 | </button> | 451 | </button> |
452 | <div class="input-group-append"> | 452 | <div class="input-group-append"> |
453 | <button | 453 | <button |
454 | ladda="searchLoading" | 454 | ladda="searchLoading" |
455 | class="btn btn-outline-secondary" | 455 | class="btn btn-outline-secondary" |
456 | type="button" | 456 | type="button" |
457 | ng-click="seleccionarIva(13)" | 457 | ng-click="seleccionarIva(13)" |
458 | > | 458 | > |
459 | <i class="fa fa-search" aria-hidden="true"></i> | 459 | <i class="fa fa-search" aria-hidden="true"></i> |
460 | </button> | 460 | </button> |
461 | </div> | 461 | </div> |
462 | </div> | 462 | </div> |
463 | </div> | 463 | </div> |
464 | <div class="col-md-5 col-12 mt-2"> | 464 | <div class="col-md-5 col-12 mt-2"> |
465 | <label>Factura que emite</label> | 465 | <label>Factura que emite</label> |
466 | <div class="input-group"> | 466 | <div class="input-group"> |
467 | <input | 467 | <input |
468 | type="text" | 468 | type="text" |
469 | class="form-control form-control-sm" | 469 | class="form-control form-control-sm" |
470 | placeholder="Seleccione factura que emite" | 470 | placeholder="Seleccione factura que emite" |
471 | ng-model="cliente.tipoFactura.NOMBRE" | 471 | ng-model="cliente.tipoFactura.NOMBRE" |
472 | ng-required="true" | 472 | ng-required="true" |
473 | ng-keypress="seleccionarTipoFactura(13)" | 473 | ng-keypress="seleccionarTipoFactura(13)" |
474 | ng-focus="focus(13)" | 474 | ng-focus="focus(13)" |
475 | foca-focus="focused == 13" | 475 | foca-focus="focused == 13" |
476 | teclado-virtual> | 476 | teclado-virtual> |
477 | <button | 477 | <button |
478 | ng-show="cliente.tipoFactura.NOMBRE.length >= 1" | 478 | ng-show="cliente.tipoFactura.NOMBRE.length >= 1" |
479 | type="button" | 479 | type="button" |
480 | class="clear-input" | 480 | class="clear-input" |
481 | ng-click="cliente.tipoFactura.NOMBRE = ''" | 481 | ng-click="cliente.tipoFactura.NOMBRE = ''" |
482 | > | 482 | > |
483 | <i class="fa fa-times"></i> | 483 | <i class="fa fa-times"></i> |
484 | </button> | 484 | </button> |
485 | <div class="input-group-append"> | 485 | <div class="input-group-append"> |
486 | <button | 486 | <button |
487 | ladda="searchLoading" | 487 | ladda="searchLoading" |
488 | class="btn btn-outline-secondary" | 488 | class="btn btn-outline-secondary" |
489 | type="button" | 489 | type="button" |
490 | ng-click="seleccionarTipoFactura(13)" | 490 | ng-click="seleccionarTipoFactura(13)" |
491 | > | 491 | > |
492 | <i class="fa fa-search" aria-hidden="true"></i> | 492 | <i class="fa fa-search" aria-hidden="true"></i> |
493 | </button> | 493 | </button> |
494 | </div> | 494 | </div> |
495 | </div> | 495 | </div> |
496 | </div> | 496 | </div> |
497 | </div> | 497 | </div> |
498 | 498 | ||
499 | <div class="row"> | 499 | <div class="row"> |
500 | <div class= "col-md-4 col-12 mt-2"> | 500 | <div class= "col-md-4 col-12 mt-2"> |
501 | <label>CUIT</label> | 501 | <label>CUIT</label> |
502 | <div class="d-flex"> | 502 | <div class="d-flex"> |
503 | <input | 503 | <input |
504 | type="text" | 504 | type="text" |
505 | class="form-control form-control-sm col-2" | 505 | class="text-center form-control form-control-sm col-2" |
506 | limite-numeros-max="2" | 506 | limite-numeros-max="2" |
507 | ng-model="cliente.cuit1" | 507 | ng-model="cliente.cuit1" |
508 | ng-required="true" | 508 | ng-required="true" |
509 | ng-keypress="pasarCampoCuit(1)" | 509 | ng-keypress="pasarCampoCuit(1)" |
510 | ng-focus="focus(14)" | 510 | ng-focus="focus(14)" |
511 | foca-focus="focused == 14" | 511 | foca-focus="focused == 14" |
512 | teclado-virtual | 512 | teclado-virtual |
513 | foca-tipo-input | ||
513 | > | 514 | > |
514 | <span class="m-1"> - </span> | 515 | <span class="m-1"> - </span> |
515 | <input | 516 | <input |
516 | type="text" | 517 | type="text" |
517 | class="form-control form-control-sm col-5" | 518 | class="text-center form-control form-control-sm col-5" |
518 | maxlength="8" | 519 | maxlength="8" |
519 | limite-numeros-max="8" | 520 | limite-numeros-max="8" |
520 | ng-keypress="pasarCampoCuit(2)" | 521 | ng-keypress="pasarCampoCuit(2)" |
521 | ng-model="cliente.cuit2" | 522 | ng-model="cliente.cuit2" |
522 | ng-required="true" | 523 | ng-required="true" |
523 | ng-focus="focus(15)" | 524 | ng-focus="focus(15)" |
524 | foca-focus="cuitActivo == 2 || focused == 15" | 525 | foca-focus="cuitActivo == 2 || focused == 15" |
525 | teclado-virtual | 526 | teclado-virtual |
527 | foca-tipo-input | ||
526 | > | 528 | > |
527 | <span class="m-1"> - </span> | 529 | <span class="m-1"> - </span> |
528 | <input | 530 | <input |
529 | type="text" | 531 | type="text" |
530 | class="form-control form-control-sm col-2" | 532 | class="text-center form-control form-control-sm col-2" |
531 | maxlength="1" | 533 | maxlength="1" |
532 | limite-numeros-max="1" | 534 | limite-numeros-max="1" |
533 | ng-keypress="pasarCampoCuit(3)" | 535 | ng-keypress="pasarCampoCuit(3)" |
534 | ng-model="cliente.cuit3" | 536 | ng-model="cliente.cuit3" |
535 | ng-required="true" | 537 | ng-required="true" |
536 | ng-focus="focus(16)" | 538 | ng-focus="focus(16)" |
537 | foca-focus="cuitActivo == 3 || focused == 16" | 539 | foca-focus="cuitActivo == 3 || focused == 16" |
538 | teclado-virtual | 540 | teclado-virtual |
541 | foca-tipo-input | ||
539 | > | 542 | > |
540 | </div> | 543 | </div> |
541 | </div> | 544 | </div> |
542 | <div class="col-md-4 col-12 mt-2"> | 545 | <div class="col-md-4 col-12 mt-2"> |
543 | <label>Clase de comprobante</label> | 546 | <label>Clase de comprobante</label> |
544 | <div class="input-group"> | 547 | <div class="input-group"> |
545 | <input | 548 | <input |
546 | type="text" | 549 | type="text" |
547 | class="form-control form-control-sm" | 550 | class="form-control form-control-sm" |
548 | placeholder="Seleccione clase de comprobante" | 551 | placeholder="Seleccione clase de comprobante" |
549 | ng-keypress="seleccionarTipoComprobante($event.keyCode)" | 552 | ng-keypress="seleccionarTipoComprobante($event.keyCode)" |
550 | ng-model="cliente.tipoComprobante.NOMBRE" | 553 | ng-model="cliente.tipoComprobante.NOMBRE" |
551 | ng-required="true" | 554 | ng-required="true" |
552 | ng-focus="focus(17)" | 555 | ng-focus="focus(17)" |
553 | foca-focus="focused == 17" | 556 | foca-focus="focused == 17" |
554 | teclado-virtual> | 557 | teclado-virtual> |
555 | <button | 558 | <button |
556 | ng-show="cliente.tipoComprobante.NOMBRE.length >= 1" | 559 | ng-show="cliente.tipoComprobante.NOMBRE.length >= 1" |
557 | type="button" | 560 | type="button" |
558 | class="clear-input" | 561 | class="clear-input" |
559 | ng-click="cliente.tipoComprobante.NOMBRE = ''" | 562 | ng-click="cliente.tipoComprobante.NOMBRE = ''" |
560 | > | 563 | > |
561 | <i class="fa fa-times"></i> | 564 | <i class="fa fa-times"></i> |
562 | </button> | 565 | </button> |
563 | <div class="input-group-append"> | 566 | <div class="input-group-append"> |
564 | <button | 567 | <button |
565 | ladda="searchLoading" | 568 | ladda="searchLoading" |
566 | class="btn btn-outline-secondary" | 569 | class="btn btn-outline-secondary" |
567 | type="button" | 570 | type="button" |
568 | ng-click="seleccionarTipoComprobante(13)" | 571 | ng-click="seleccionarTipoComprobante(13)" |
569 | > | 572 | > |
570 | <i class="fa fa-search" aria-hidden="true"></i> | 573 | <i class="fa fa-search" aria-hidden="true"></i> |
571 | </button> | 574 | </button> |
572 | </div> | 575 | </div> |
573 | </div> | 576 | </div> |
574 | </div> | 577 | </div> |
575 | <div class="col-md-4 col-12 mt-2"> | 578 | <div class="col-md-4 col-12 mt-2"> |
576 | <label>Forma de pago</label> | 579 | <label>Forma de pago</label> |
577 | <div class="input-group"> | 580 | <div class="input-group"> |
578 | <input | 581 | <input |
579 | type="text" | 582 | type="text" |
580 | class="form-control form-control-sm" | 583 | class="form-control form-control-sm" |
581 | placeholder="Seleccione forma de pago" | 584 | placeholder="Seleccione forma de pago" |
582 | ng-model="cliente.formaPago.NOMBRE" | 585 | ng-model="cliente.formaPago.NOMBRE" |
583 | ng-required="true" | 586 | ng-required="true" |
584 | ng-keypress="seleccionarFormaPago($event.keyCode)" | 587 | ng-keypress="seleccionarFormaPago($event.keyCode)" |
585 | ng-focus="focus(18)" | 588 | ng-focus="focus(18)" |
586 | foca-focus="focused == 18" | 589 | foca-focus="focused == 18" |
587 | teclado-virtual> | 590 | teclado-virtual> |
588 | <button | 591 | <button |
589 | ng-show="cliente.formaPago.NOMBRE.length >= 1" | 592 | ng-show="cliente.formaPago.NOMBRE.length >= 1" |
590 | type="button" | 593 | type="button" |
591 | class="clear-input" | 594 | class="clear-input" |
592 | ng-click="cliente.formaPago.NOMBRE = ''" | 595 | ng-click="cliente.formaPago.NOMBRE = ''" |
593 | > | 596 | > |
594 | <i class="fa fa-times"></i> | 597 | <i class="fa fa-times"></i> |
595 | </button> | 598 | </button> |
596 | <div class="input-group-append"> | 599 | <div class="input-group-append"> |
597 | <button | 600 | <button |
598 | ladda="searchLoading" | 601 | ladda="searchLoading" |
599 | class="btn btn-outline-secondary" | 602 | class="btn btn-outline-secondary" |
600 | type="button" | 603 | type="button" |
601 | ng-click="seleccionarFormaPago(13)" | 604 | ng-click="seleccionarFormaPago(13)" |
602 | > | 605 | > |
603 | <i class="fa fa-search" aria-hidden="true"></i> | 606 | <i class="fa fa-search" aria-hidden="true"></i> |
604 | </button> | 607 | </button> |
605 | </div> | 608 | </div> |
606 | </div> | 609 | </div> |
607 | </div> | 610 | </div> |
608 | </div> | 611 | </div> |
609 | </uib-tab> | 612 | </uib-tab> |
610 | </uib-tabset> | 613 | </uib-tabset> |
611 | </form> | 614 | </form> |
612 | </div> | 615 | </div> |
613 | <div class="modal-footer py-1"> | 616 | <div class="modal-footer py-1"> |
614 | <nav ng-show="currentPageClientes.length > 0 && primerBusqueda && !ingreso" class="mr-auto"> | 617 | <nav ng-show="currentPageClientes.length > 0 && primerBusqueda && !ingreso" class="mr-auto"> |
615 | <ul class="pagination pagination-sm mb-0"> | 618 | <ul class="pagination pagination-sm mb-0"> |
616 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 619 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
617 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)"> | 620 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)"> |
618 | <span aria-hidden="true">«</span> | 621 | <span aria-hidden="true">«</span> |
619 | <span class="sr-only">Anterior</span> | 622 | <span class="sr-only">Anterior</span> |
620 | </a> | 623 | </a> |
621 | </li> | 624 | </li> |
622 | <li | 625 | <li |
623 | class="page-item" | 626 | class="page-item" |
624 | ng-repeat="pagina in paginas" | 627 | ng-repeat="pagina in paginas" |
625 | ng-class="{'active': pagina == currentPage}" | 628 | ng-class="{'active': pagina == currentPage}" |
626 | > | 629 | > |
627 | <a | 630 | <a |
628 | class="page-link" | 631 | class="page-link" |
629 | href="javascript:void()" | 632 | href="javascript:void()" |
630 | ng-click="selectPage(pagina)" | 633 | ng-click="selectPage(pagina)" |
631 | ng-bind="pagina" | 634 | ng-bind="pagina" |
632 | ></a> | 635 | ></a> |
633 | </li> | 636 | </li> |
634 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 637 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
635 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)"> | 638 | <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)"> |
636 | <span aria-hidden="true">»</span> | 639 | <span aria-hidden="true">»</span> |
637 | <span class="sr-only">Siguiente</span> | 640 | <span class="sr-only">Siguiente</span> |
638 | </a> | 641 | </a> |
639 | </li> | 642 | </li> |
640 | </ul> | 643 | </ul> |
641 | </nav> | 644 | </nav> |
642 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 645 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
643 | <button | 646 | <button |
644 | class="btn btn-sm btn-primary" | 647 | class="btn btn-sm btn-primary" |
645 | type="button" | 648 | type="button" |
646 | ng-show="ingreso" | 649 | ng-show="ingreso" |
647 | ng-click="guardar()" | 650 | ng-click="guardar()" |
648 | >Guardar</button> | 651 | >Guardar</button> |
649 | </div> | 652 | </div> |
650 | 653 |