Commit 687a0d4b31ddee3b2a47642a4e71bc1eddb749e8

Authored by Eric Fernandez
1 parent 64ca5b4147
Exists in master

cambio de lugar vendedor y cliente

Showing 1 changed file with 17 additions and 13 deletions   Show diff stats
src/views/nota-pedido.html
... ... @@ -14,6 +14,7 @@
14 14 current-text="Hoy"
15 15 clear-text="Borrar"
16 16 alt-input-formats="altInputFormats"
  17 + ng-required="true"
17 18 />
18 19 <span class="input-group-append">
19 20 <button type="button" class="btn btn-default" ng-click="popup1.opened = true">
... ... @@ -21,18 +22,19 @@
21 22 </button>
22 23 </span>
23 24 </div>
24   - </div>
  25 + </div>
25 26 <div class="form-group col-12 col-sm-6 col-md-4">
26 27 <div class="input-group">
27 28 <input
28   - class="form-control"
  29 + class="form-control selectable"
29 30 type="text"
30   - ng-model="notaPedido.vendedor.nombre"
31   - placeholder="Seleccione Vendedor"
  31 + ng-model="notaPedido.cliente.nombre"
  32 + placeholder="Seleccione Cliente"
32 33 readonly="true"
  34 + ng-click="seleccionarCliente()"
33 35 >
34 36 <span class="input-group-append">
35   - <button type="button" class="btn btn-default" ng-click="seleccionarVendedor()">
  37 + <button type="button" class="btn btn-default" ng-click="seleccionarCliente()">
36 38 <i class="fa fa-search"></i>
37 39 </button>
38 40 </span>
... ... @@ -41,15 +43,14 @@
41 43 <div class="form-group col-12 col-sm-6 col-md-4">
42 44 <div class="input-group">
43 45 <input
44   - class="form-control selectable"
  46 + class="form-control"
45 47 type="text"
46   - ng-model="notaPedido.cliente.nombre"
47   - placeholder="Seleccione Cliente"
  48 + ng-model="notaPedido.vendedor.nombre"
  49 + placeholder="Seleccione Vendedor"
48 50 readonly="true"
49   - ng-click="seleccionarCliente()"
50 51 >
51 52 <span class="input-group-append">
52   - <button type="button" class="btn btn-default" ng-click="seleccionarCliente()">
  53 + <button type="button" class="btn btn-default" ng-click="seleccionarVendedor()">
53 54 <i class="fa fa-search"></i>
54 55 </button>
55 56 </span>
... ... @@ -59,7 +60,7 @@
59 60 <input
60 61 class="form-control selectable"
61 62 type="text"
62   - ng-model="domicilio"
  63 + ng-model="notaPedido.domicilio"
63 64 placeholder="Seleccione Domicilio"
64 65 typeahead-min-length="0"
65 66 uib-typeahead="domi as domi.dom for domi in domiciliosCliente"
... ... @@ -211,7 +212,8 @@
211 212 placeholder="Seleccione Articulo"
212 213 class="form-control"
213 214 readonly
214   - ng-click="seleccionarArticulo()"></td>
  215 + ng-click="seleccionarArticulo()"
  216 + foca-focus="cargando"></td>
215 217 <td></td>
216 218 <td></td>
217 219 <td></td>
... ... @@ -265,7 +267,9 @@
265 267 type="number"
266 268 min="1"
267 269 foca-focus="articulo.edit"
268   - ng-keypress="editarArticulo($event.keyCode, articulo)">
  270 + ng-keypress="editarArticulo($event.keyCode, articulo)"
  271 + ng-focus="selectFocus($event)"
  272 + >
269 273 <i
270 274 class="selectable"
271 275 ng-click="cambioEdit(articulo)"