Commit f087deba62f2c57eda0c3304960ff4eda8cd69af

Authored by Marcelo Puebla
1 parent 5b4cda9fcf
Exists in master and in 1 other branch develop

Cambiado color de botón crear precio - condiciones

Showing 1 changed file with 7 additions and 13 deletions   Show diff stats
src/views/modal-precio-condicion.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-6"> 3 <div class="col-lg-6">
4 <h5 ng-show="!ingreso" class="modal-title my-1">Búsqueda de Precio-Condición</h5> 4 <h5 ng-show="!ingreso" class="modal-title my-1">Búsqueda de Precio-Condición</h5>
5 <h5 ng-show="ingreso" class="modal-title my-1">Nuevos Plazos</h5> 5 <h5 ng-show="ingreso" class="modal-title my-1">Nuevos Plazos</h5>
6 </div> 6 </div>
7 <div class="input-group col-lg-6 pr-0 my-2" ng-show="!ingreso"> 7 <div class="input-group col-lg-6 pr-0 my-2" ng-show="!ingreso">
8 <button
9 class="btn btn-outline-debo mr-2"
10 ng-click="ingreso = true"
11 ng-show="!ingreso"
12 title="Nuevo">
13 <i class="fa fa-plus" aria-hidden="true"></i>
14 </button>
8 <input 15 <input
9 type="text" 16 type="text"
10 class="form-control form-control-sm" 17 class="form-control form-control-sm"
11 id="search" 18 id="search"
12 placeholder="Busqueda" 19 placeholder="Busqueda"
13 ng-model="filters" 20 ng-model="filters"
14 ng-change="search()" 21 ng-change="search()"
15 ng-keydown="busquedaDown($event.keyCode)" 22 ng-keydown="busquedaDown($event.keyCode)"
16 ng-keypress="busquedaPress($event.keyCode)" 23 ng-keypress="busquedaPress($event.keyCode)"
17 foca-focus="selectedPrecioCondicion == -1" 24 foca-focus="selectedPrecioCondicion == -1"
18 ng-focus="selectedPrecioCondicion = -1" 25 ng-focus="selectedPrecioCondicion = -1"
19 teclado-virtual 26 teclado-virtual
20 > 27 >
21 <div class="input-group-append"> 28 <div class="input-group-append">
22 <button 29 <button
23 class="btn btn-outline-secondary" 30 class="btn btn-outline-secondary"
24 type="button" 31 type="button"
25 title="Buscar" 32 title="Buscar"
26 ng-click="busquedaPress(13)"> 33 ng-click="busquedaPress(13)">
27 <i class="fa fa-search" aria-hidden="true"></i> 34 <i class="fa fa-search" aria-hidden="true"></i>
28 </button> 35 </button>
29 </div> 36 </div>
30 </div> 37 </div>
31 </div> 38 </div>
32 </div> 39 </div>
33 <div class="modal-body" id="modal-body"> 40 <div class="modal-body" id="modal-body">
34 41
35 42
36 <table ng-show="!ingreso" class="table table-striped table-sm"> 43 <table ng-show="!ingreso" class="table table-striped table-sm">
37 <thead> 44 <thead>
38 <tr> 45 <tr>
39 <th>Código</th> 46 <th>Código</th>
40 <th>Nombre</th> 47 <th>Nombre</th>
41 <th>Lista Precio</th> 48 <th>Lista Precio</th>
42 <th>Plazos</th> 49 <th>Plazos</th>
43 <th></th> 50 <th></th>
44 </tr> 51 </tr>
45 </thead> 52 </thead>
46 <tbody> 53 <tbody>
47 <tr ng-show="currentPagePrecioCondicion.length == 0"> 54 <tr ng-show="currentPagePrecioCondicion.length == 0">
48 <td colspan="6"> 55 <td colspan="6">
49 No se encontraron resultados. 56 No se encontraron resultados.
50 </td> 57 </td>
51 </tr> 58 </tr>
52 <tr>
53 <td colspan="12" ng-show="!ingreso">
54 <button
55 class="form-control form-control-sm btn-rounded"
56 type="text"
57 readonly
58 ng-click="ingreso = !ingreso"
59 >
60 <i class="fa fa-plus left" aria-hidden="true"></i>
61 Crear Precio-Condición de forma manual
62 </button>
63 </td>
64 </tr>
65 <tr class="selectable" 59 <tr class="selectable"
66 ng-repeat="(key, precioCondicion) in currentPagePrecioCondicion"> 60 ng-repeat="(key, precioCondicion) in currentPagePrecioCondicion">
67 <td ng-bind="precioCondicion.id | rellenarDigitos: 4: 0" 61 <td ng-bind="precioCondicion.id | rellenarDigitos: 4: 0"
68 ng-click="select(precioCondicion)"></td> 62 ng-click="select(precioCondicion)"></td>
69 <td ng-bind="precioCondicion.nombre" 63 <td ng-bind="precioCondicion.nombre"
70 ng-click="select(precioCondicion)"></td> 64 ng-click="select(precioCondicion)"></td>
71 <td ng-bind="precioCondicion.idListaPrecio" 65 <td ng-bind="precioCondicion.idListaPrecio"
72 ng-click="select(precioCondicion)"></td> 66 ng-click="select(precioCondicion)"></td>
73 <td ng-bind="precioCondicion.plazos" 67 <td ng-bind="precioCondicion.plazos"
74 ng-click="select(precioCondicion)"></td> 68 ng-click="select(precioCondicion)"></td>
75 <td> 69 <td>
76 <button 70 <button
77 type="button" 71 type="button"
78 class="btn btn-sm p-1 float-right" 72 class="btn btn-sm p-1 float-right"
79 title="Seleccionar" 73 title="Seleccionar"
80 ng-class="{ 74 ng-class="{
81 'btn-secondary': selectedPrecioCondicion != key + 1, 75 'btn-secondary': selectedPrecioCondicion != key + 1,
82 'btn-primary': selectedPrecioCondicion == key + 1 76 'btn-primary': selectedPrecioCondicion == key + 1
83 }" 77 }"
84 foca-focus="selectedPrecioCondicion == {{key + 1}}" 78 foca-focus="selectedPrecioCondicion == {{key + 1}}"
85 ng-keydown="itemProducto($event.keyCode)" 79 ng-keydown="itemProducto($event.keyCode)"
86 ng-click="select(precioCondicion)" 80 ng-click="select(precioCondicion)"
87 > 81 >
88 <i class="fa fa-circle-thin" aria-hidden="true"></i> 82 <i class="fa fa-circle-thin" aria-hidden="true"></i>
89 </button> 83 </button>
90 <button 84 <button
91 type="button" 85 type="button"
92 class="btn btn-sm p-1 float-right btn-secondary mr-2" 86 class="btn btn-sm p-1 float-right btn-secondary mr-2"
93 title="Ver lista precio" 87 title="Ver lista precio"
94 ng-click="verListaPrecio(precioCondicion.idListaPrecio)" 88 ng-click="verListaPrecio(precioCondicion.idListaPrecio)"
95 > 89 >
96 <i class="fa fa-eye" aria-hidden="true"></i> 90 <i class="fa fa-eye" aria-hidden="true"></i>
97 </button> 91 </button>
98 </td> 92 </td>
99 </tr> 93 </tr>
100 </tbody> 94 </tbody>
101 </table> 95 </table>
102 96
103 <table class="table table-striped table-sm" ng-show="ingreso"> 97 <table class="table table-striped table-sm" ng-show="ingreso">
104 <thead> 98 <thead>
105 <tr> 99 <tr>
106 <th>Item</th> 100 <th>Item</th>
107 <th>Días</th> 101 <th>Días</th>
108 <th></th> 102 <th></th>
109 </tr> 103 </tr>
110 </thead> 104 </thead>
111 <tbody> 105 <tbody>
112 <tr> 106 <tr>
113 <td> 107 <td>
114 <input 108 <input
115 type="number" 109 type="number"
116 class="form-control text-right" 110 class="form-control text-right"
117 ng-model="plazoACargar.item" 111 ng-model="plazoACargar.item"
118 readonly 112 readonly
119 /> 113 />
120 </td> 114 </td>
121 <td> 115 <td>
122 <input 116 <input
123 type="number" 117 type="number"
124 class="form-control text-right" 118 class="form-control text-right"
125 min="0" 119 min="0"
126 ng-model="plazoACargar.dias" 120 ng-model="plazoACargar.dias"
127 ng-keypress="agregarPlazo($event.keyCode)" 121 ng-keypress="agregarPlazo($event.keyCode)"
128 foca-focus="ingreso" 122 foca-focus="ingreso"
129 /> 123 />
130 </td> 124 </td>
131 <td class="text-center"> 125 <td class="text-center">
132 <button 126 <button
133 class="btn btn-outline-secondary" 127 class="btn btn-outline-secondary"
134 title="Agregar" 128 title="Agregar"
135 ng-click="agregarPlazo(13)" 129 ng-click="agregarPlazo(13)"
136 > 130 >
137 <i class="fa fa-save"></i> 131 <i class="fa fa-save"></i>
138 </button> 132 </button>
139 </td> 133 </td>
140 </tr> 134 </tr>
141 <tr ng-repeat="(key, plazo) in plazosNuevos"> 135 <tr ng-repeat="(key, plazo) in plazosNuevos">
142 <td class="text-right" ng-bind="key + 1"></td> 136 <td class="text-right" ng-bind="key + 1"></td>
143 <td class="text-right" ng-bind="plazo.dias"></td> 137 <td class="text-right" ng-bind="plazo.dias"></td>
144 <td class="text-center"> 138 <td class="text-center">
145 <button 139 <button
146 class="btn btn-outline-secondary" 140 class="btn btn-outline-secondary"
147 title="Eliminar" 141 title="Eliminar"
148 ng-click="quitarPlazo(key)" 142 ng-click="quitarPlazo(key)"
149 > 143 >
150 <i class="fa fa-trash"></i> 144 <i class="fa fa-trash"></i>
151 </button> 145 </button>
152 </td> 146 </td>
153 </tr> 147 </tr>
154 </tbody> 148 </tbody>
155 </table> 149 </table>
156 </div> 150 </div>
157 <div class="modal-footer py-1"> 151 <div class="modal-footer py-1">
158 <nav ng-show="currentPagePrecioCondicion.length > 0 && !ingreso" class="mr-auto"> 152 <nav ng-show="currentPagePrecioCondicion.length > 0 && !ingreso" class="mr-auto">
159 <ul class="pagination pagination-sm mb-0"> 153 <ul class="pagination pagination-sm mb-0">
160 <li class="page-item" ng-class="{'disabled': currentPage == 1}"> 154 <li class="page-item" ng-class="{'disabled': currentPage == 1}">
161 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> 155 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)">
162 <span aria-hidden="true">&laquo;</span> 156 <span aria-hidden="true">&laquo;</span>
163 <span class="sr-only">Anterior</span> 157 <span class="sr-only">Anterior</span>
164 </a> 158 </a>
165 </li> 159 </li>
166 <li 160 <li
167 class="page-item" 161 class="page-item"
168 ng-repeat="pagina in paginas" 162 ng-repeat="pagina in paginas"
169 ng-class="{'active': pagina == currentPage}" 163 ng-class="{'active': pagina == currentPage}"
170 > 164 >
171 <a 165 <a
172 class="page-link" 166 class="page-link"
173 href="javascript:void();" 167 href="javascript:void();"
174 ng-click="selectPage(pagina)" 168 ng-click="selectPage(pagina)"
175 ng-bind="pagina" 169 ng-bind="pagina"
176 ></a> 170 ></a>
177 </li> 171 </li>
178 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> 172 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}">
179 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> 173 <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)">
180 <span aria-hidden="true">&raquo;</span> 174 <span aria-hidden="true">&raquo;</span>
181 <span class="sr-only">Siguiente</span> 175 <span class="sr-only">Siguiente</span>
182 </a> 176 </a>
183 </li> 177 </li>
184 </ul> 178 </ul>
185 </nav> 179 </nav>
186 <button 180 <button
187 ng-show="!ingreso" 181 ng-show="!ingreso"
188 class="btn btn-sm btn-secondary" 182 class="btn btn-sm btn-secondary"
189 type="button" 183 type="button"
190 ng-click="cancel()" 184 ng-click="cancel()"
191 >Cancelar 185 >Cancelar
192 </button> 186 </button>
193 <button 187 <button
194 ng-show="ingreso" 188 ng-show="ingreso"
195 ng-disabled="plazosNuevos.length === 0" 189 ng-disabled="plazosNuevos.length === 0"
196 class="btn btn-sm btn-primary" 190 class="btn btn-sm btn-primary"
197 type="button" 191 type="button"
198 ng-click="select(plazosNuevos)" 192 ng-click="select(plazosNuevos)"
199 >Aceptar 193 >Aceptar
200 </button> 194 </button>
201 <button 195 <button
202 ng-show="ingreso" 196 ng-show="ingreso"