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