foca-abm-vendedor-cobrador-item.html
10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<div class="row">
<foca-cabecera-facturador
titulo="'Vendedores / Cobradores'"
fecha="now"
class="mb-0 col-lg-12"
></foca-cabecera-facturador>
</div>
<div class="row">
<div class="col-12 col-md-10 p-0 mt-4 border border-white rounded">
<form name="formVendedorCobrador" class="px-3" autocomplete="off">
<div class="row mt-3">
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Código</label>
<div class="col-md-8 pl-0">
<input
class="form-control form-control-sm"
ng-model="vendedorCobrador.NUM"
ng-disabled="edicion"/>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Tipo</label>
<div class="col-md-8 pl-0">
<select
class="form-control form-control-sm"
ng-model="vendedorCobrador.rol"
ng-options="option.value as option.label for option in options"
foca-focus="focused == 0"
ng-focus="focused = 0">
</select>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Nombre</label>
<div class="input-group col-md-8 pl-0">
<input
class="form-control form-control-sm"
type="text"
teclado-virtual
ng-model="vendedorCobrador.NOM"
foca-focus="focused == 1"
ng-focus="focused = 1"
ng-keypress="next($event.keyCode)"
autocomplete="off"
uppercase-only
/>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Domicilio</label>
<div class="input-group col-md-8 pl-0">
<input
class="form-control form-control-sm"
type="text"
teclado-virtual
ng-model="vendedorCobrador.domicilio"
ng-required="true"
foca-focus="focused == 2"
ng-focus="focused = 2"
ng-keypress="next($event.keyCode)"
autocomplete="off"
uppercase-only
/>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Código postal</label>
<div class="input-group col-md-8 pl-0">
<input
class="form-control form-control-sm"
foca-tipo-input
teclado-virtual
ng-model="vendedorCobrador.codigoPostal"
ng-required="true"
foca-focus="focused == 3"
ng-focus="focused = 3"
ng-keypress="next($event.keyCode)"
autocomplete="off"
string-to-number
/>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Provincia</label>
<div class="input-group col-md-8 pl-0">
<input
type="text"
class="form-control form-control-sm"
ng-model="vendedorCobrador.provincia.NOMBRE"
ng-keypress="seleccionarProvincia($event.keyCode)"
ng-required="true"
foca-focus="focused == 4"
ng-focus="focused = 4"
teclado-virtual
/>
<div class="input-group-append">
<button
ladda="searchLoading"
class="btn btn-outline-secondary form-control-sm"
type="button"
ng-click="seleccionarProvincia(13)"
>
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Localidad</label>
<div class="input-group col-md-8 pl-0">
<input
type="text"
class="form-control form-control-sm"
ng-model="vendedorCobrador.localidad.NOMBRE"
ng-keypress="seleccionarLocalidad($event.keyCode)"
ng-required="true"
foca-focus="focused == 5"
ng-focus="focused = 5"
teclado-virtual
autocomplete="off"
/>
<div class="input-group-append">
<button
ladda="searchLoading"
class="btn btn-outline-secondary form-control-sm"
type="button"
ng-click="seleccionarLocalidad(13)"
>
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">Teléfono</label>
<div class="input-group col-md-8 pl-0">
<input
class="form-control form-control-sm"
foca-tipo-input
teclado-virtual
limite-numeros-max="15"
ng-model="vendedorCobrador.telefono"
ng-required="true"
foca-focus="focused == 6"
ng-focus="focused = 6"
ng-keypress="next($event.keyCode)"
autocomplete="off"
string-to-number
/>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6">
<label class="col-form-label col-md-4">DNI</label>
<div class="input-group col-md-8 pl-0">
<input
class="form-control form-control-sm"
foca-tipo-input
teclado-virtual
limite-numeros-max="15"
ng-model="vendedorCobrador.dni"
ng-required="true"
foca-focus="focused == 7"
ng-focus="focused = 7"
ng-keypress="next($event.keyCode)"
autocomplete="off"
string-to-number
/>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6"
ng-show="vendedorCobrador.rol == 1 || vendedorCobrador.rol == 3">
<label class="col-form-label col-md-4">Porcentaje de comisión <span ng-show="vendedorCobrador.rol == 3">vendedor</span></label>
<div class="input-group col-md-8 pl-0">
<input
class="form-control form-control-sm"
foca-tipo-input
teclado-virtual
ng-model="vendedorCobrador.comisionVendedor"
ng-required="true"
foca-focus="focused == 10"
ng-focus="focused = 10"
ng-keypress="next($event.keyCode)"
autocomplete="off"
string-to-number
solo-positivo
/>
</div>
</div>
<div class="form-group d-flex mb-2 col-md-6"
ng-show="vendedorCobrador.rol == 2 || vendedorCobrador.rol == 3">
<label class="col-form-label col-md-4">Porcentaje de comisión <span ng-show="vendedorCobrador.rol == 3">cobrador</span></label>
<div class="input-group col-md-8 pl-0">
<input
class="form-control form-control-sm"
foca-tipo-input
teclado-virtual
ng-model="vendedorCobrador.comisionCobrador"
ng-required="true"
foca-focus="focused == 10"
ng-focus="focused = 10"
ng-keypress="next($event.keyCode)"
autocomplete="off"
string-to-number
solo-positivo
/>
</div>
</div>
<div class="ml-auto w-50">
<button
class="btn btn-primary float-right mr-3"
type="button"
ng-click="cambiarPassword()"
ng-show="edicion"
>Cambiar contraseña</button>
</div>
</div>
</form>
</div>
</div>