Commit 5493a16be840dfd06e52647c30dd7d706b402245
1 parent
0897f38421
Exists in
master
ok title
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/views/foca-abm-precios-condiciones-item.html
1 | <div class="row"> | 1 | <div class="row"> |
2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador |
3 | titulo="'Precios y condiciones'" | 3 | titulo="'Precios y condiciones'" |
4 | fecha="now" | 4 | fecha="now" |
5 | class="mb-0 col-lg-12" | 5 | class="mb-0 col-lg-12" |
6 | ></foca-cabecera-facturador> | 6 | ></foca-cabecera-facturador> |
7 | </div> | 7 | </div> |
8 | <div class="row"> | 8 | <div class="row"> |
9 | <form class="col-md-10"> | 9 | <form class="col-md-10"> |
10 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> | 10 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> |
11 | <div class="row mb-3"> | 11 | <div class="row mb-3"> |
12 | <label class="col-sm-2 col-form-label">Código</label> | 12 | <label class="col-sm-2 col-form-label">Código</label> |
13 | <input | 13 | <input |
14 | class="form-control col-sm-4" | 14 | class="form-control col-sm-4" |
15 | type="text" | 15 | type="text" |
16 | name="codigo" | 16 | name="codigo" |
17 | ng-value="precioCondicion.id | rellenarDigitos: 4: 0" | 17 | ng-value="precioCondicion.id | rellenarDigitos: 4: 0" |
18 | autocomplete="off" | 18 | autocomplete="off" |
19 | readonly | 19 | readonly |
20 | /> | 20 | /> |
21 | <label class="col-sm-2 col-form-label">Nombre</label> | 21 | <label class="col-sm-2 col-form-label">Nombre</label> |
22 | <input | 22 | <input |
23 | class="form-control col-sm-4" | 23 | class="form-control col-sm-4" |
24 | type="text" | 24 | type="text" |
25 | name="nombre" | 25 | name="nombre" |
26 | ng-model="precioCondicion.nombre" | 26 | ng-model="precioCondicion.nombre" |
27 | autocomplete="off" | 27 | autocomplete="off" |
28 | foca-focus="focused == 1" | 28 | foca-focus="focused == 1" |
29 | ng-focus="focused = 1" | 29 | ng-focus="focused = 1" |
30 | ng-keypress="next($event.keyCode)" | 30 | ng-keypress="next($event.keyCode)" |
31 | teclado-virtual | 31 | teclado-virtual |
32 | /> | 32 | /> |
33 | </div> | 33 | </div> |
34 | <div class="form-group row"> | 34 | <div class="form-group row"> |
35 | <label class="col-sm-2 col-form-label">Descripción</label> | 35 | <label class="col-sm-2 col-form-label">Descripción</label> |
36 | <input | 36 | <input |
37 | class="form-control col-sm-10" | 37 | class="form-control col-sm-10" |
38 | type="text" | 38 | type="text" |
39 | name="nombre" | 39 | name="nombre" |
40 | ng-model="precioCondicion.descripcion" | 40 | ng-model="precioCondicion.descripcion" |
41 | autocomplete="off" | 41 | autocomplete="off" |
42 | foca-focus="focused == 2" | 42 | foca-focus="focused == 2" |
43 | ng-focus="focused = 2" | 43 | ng-focus="focused = 2" |
44 | ng-keypress="next($event.keyCode)" | 44 | ng-keypress="next($event.keyCode)" |
45 | teclado-virtual | 45 | teclado-virtual |
46 | /> | 46 | /> |
47 | </div> | 47 | </div> |
48 | <div class="row"> | 48 | <div class="row"> |
49 | <label class="col-sm-2 col-form-label">Lista de precios</label> | 49 | <label class="col-sm-2 col-form-label">Lista de precios</label> |
50 | <div class="col-sm-4 input-group p-0"> | 50 | <div class="col-sm-4 input-group p-0"> |
51 | <input | 51 | <input |
52 | ng-model="listaPrecioLabel" | 52 | ng-model="listaPrecioLabel" |
53 | class="form-control" | 53 | class="form-control" |
54 | foca-focus="focused == 3" | 54 | foca-focus="focused == 3" |
55 | ng-focus="focused = 3" | 55 | ng-focus="focused = 3" |
56 | ng-keypress="seleccionarListaPrecio($event.keyCode)" | 56 | ng-keypress="seleccionarListaPrecio($event.keyCode)" |
57 | readonly | 57 | readonly |
58 | /> | 58 | /> |
59 | <div class="input-group-append"> | 59 | <div class="input-group-append"> |
60 | <button | 60 | <button |
61 | class="btn btn-outline-secondary form-control" | 61 | class="btn btn-outline-secondary form-control" |
62 | title="Buscar" | 62 | title="Ver productos" |
63 | type="button" | 63 | type="button" |
64 | ng-click="verProductosListaPrecio()" | 64 | ng-click="verProductosListaPrecio()" |
65 | ng-show="precioCondicion.listaPrecio" | 65 | ng-show="precioCondicion.listaPrecio" |
66 | > | 66 | > |
67 | <i class="fa fa-eye" aria-hidden="true"></i> | 67 | <i class="fa fa-eye" aria-hidden="true"></i> |
68 | </button> | 68 | </button> |
69 | <button | 69 | <button |
70 | ladda="searchLoading" | 70 | ladda="searchLoading" |
71 | class="btn btn-outline-secondary form-control" | 71 | class="btn btn-outline-secondary form-control" |
72 | title="Buscar" | 72 | title="Buscar" |
73 | type="button" | 73 | type="button" |
74 | ng-click="seleccionarListaPrecio(13)" | 74 | ng-click="seleccionarListaPrecio(13)" |
75 | > | 75 | > |
76 | <i class="fa fa-search" aria-hidden="true"></i> | 76 | <i class="fa fa-search" aria-hidden="true"></i> |
77 | </button> | 77 | </button> |
78 | </div> | 78 | </div> |
79 | </div> | 79 | </div> |
80 | <label class="col-sm-2 col-form-label" ng-show="mostrarPlazos">Plazos</label> | 80 | <label class="col-sm-2 col-form-label" ng-show="mostrarPlazos">Plazos</label> |
81 | <div class="col-sm-4 p-0" ng-show="mostrarPlazos"> | 81 | <div class="col-sm-4 p-0" ng-show="mostrarPlazos"> |
82 | <div class="input-group p-0"> | 82 | <div class="input-group p-0"> |
83 | <input | 83 | <input |
84 | type="number" | 84 | type="number" |
85 | class="form-control text-right" | 85 | class="form-control text-right" |
86 | min="0" | 86 | min="0" |
87 | ng-model="plazoACargar.dias" | 87 | ng-model="plazoACargar.dias" |
88 | ng-keypress="agregarPlazo($event.keyCode)" | 88 | ng-keypress="agregarPlazo($event.keyCode)" |
89 | foca-focus="focused == 4" | 89 | foca-focus="focused == 4" |
90 | ng-focus="focused = 4" | 90 | ng-focus="focused = 4" |
91 | placeholder="Días" | 91 | placeholder="Días" |
92 | /> | 92 | /> |
93 | <div class="input-group-append"> | 93 | <div class="input-group-append"> |
94 | <button | 94 | <button |
95 | class="btn btn-outline-secondary form-control" | 95 | class="btn btn-outline-secondary form-control" |
96 | title="Agregar" | 96 | title="Agregar" |
97 | type="button" | 97 | type="button" |
98 | ng-click="agregarPlazo(13)" | 98 | ng-click="agregarPlazo(13)" |
99 | > | 99 | > |
100 | <i class="fa fa-save" aria-hidden="true"></i> | 100 | <i class="fa fa-save" aria-hidden="true"></i> |
101 | </button> | 101 | </button> |
102 | </div> | 102 | </div> |
103 | </div> | 103 | </div> |
104 | <table class="table table-striped table-sm"> | 104 | <table class="table table-striped table-sm"> |
105 | <tbody> | 105 | <tbody> |
106 | <tr ng-repeat="(key, plazo) in precioCondicion.plazos"> | 106 | <tr ng-repeat="(key, plazo) in precioCondicion.plazos"> |
107 | <td class="text-right" > | 107 | <td class="text-right" > |
108 | <span ng-bind="plazo.dias + ' días'"></span> | 108 | <span ng-bind="plazo.dias + ' días'"></span> |
109 | <button | 109 | <button |
110 | type="button" | 110 | type="button" |
111 | title="Eliminar" | 111 | title="Eliminar" |
112 | class="btn btn-outline-secondary ml-1" | 112 | class="btn btn-outline-secondary ml-1" |
113 | ng-click="quitarPlazo(key)" | 113 | ng-click="quitarPlazo(key)" |
114 | > | 114 | > |
115 | <i class="fa fa-trash"></i> | 115 | <i class="fa fa-trash"></i> |
116 | </button> | 116 | </button> |
117 | </td> | 117 | </td> |
118 | </tr> | 118 | </tr> |
119 | </tbody> | 119 | </tbody> |
120 | </table> | 120 | </table> |
121 | </div> | 121 | </div> |
122 | </div> | 122 | </div> |
123 | </form> | 123 | </form> |
124 | </div> | 124 | </div> |
125 | 125 |