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