Commit da15a2d28156407578525e99b114e67fd566dc70
1 parent
5d63fe04fd
Exists in
master
and in
1 other branch
input de domicilios
Showing
1 changed file
with
13 additions
and
19 deletions
Show diff stats
src/views/nota-pedido.html
| ... | ... | @@ -59,15 +59,10 @@ |
| 59 | 59 | <input |
| 60 | 60 | class="form-control selectable" |
| 61 | 61 | type="text" |
| 62 | - ng-model="domicilio.dom" | |
| 63 | - ng-click="abrirModalDomicilio()" | |
| 62 | + ng-model="domicilio" | |
| 64 | 63 | placeholder="Seleccione Domicilio" |
| 65 | - uib-typeahead=" | |
| 66 | - domi.dom | |
| 67 | - for domi | |
| 68 | - in domiciliosCliente | |
| 69 | - " | |
| 70 | 64 | typeahead-min-length="0" |
| 65 | + uib-typeahead="domi as domi.dom for domi in domiciliosCliente" | |
| 71 | 66 | > |
| 72 | 67 | </div> |
| 73 | 68 | <div class="form-group col-12 col-sm-6 col-md-4"> |
| ... | ... | @@ -141,7 +136,7 @@ |
| 141 | 136 | ng-show="notaPedido.flete == 1" |
| 142 | 137 | ng-model="notaPedido.chofer" |
| 143 | 138 | placeholder="Seleccione Chofer" |
| 144 | - uib-typeahead="chofer.nombre for chofer in choferes" | |
| 139 | + uib-typeahead="chofer as chofer.nombre for chofer in choferes" | |
| 145 | 140 | typeahead-min-length="0" |
| 146 | 141 | > |
| 147 | 142 | </div> |
| ... | ... | @@ -152,7 +147,7 @@ |
| 152 | 147 | ng-show="notaPedido.flete == 1" |
| 153 | 148 | ng-model="notaPedido.vehiculo" |
| 154 | 149 | placeholder="Seleccione Vehículo" |
| 155 | - uib-typeahead="vehiculo.tractor for vehiculo in vehiculos" | |
| 150 | + uib-typeahead="vehiculo as vehiculo.tractor for vehiculo in vehiculos" | |
| 156 | 151 | typeahead-min-length="0" |
| 157 | 152 | > |
| 158 | 153 | </div> |
| ... | ... | @@ -179,7 +174,7 @@ |
| 179 | 174 | </div> |
| 180 | 175 | </div> |
| 181 | 176 | <div class="col-auto my-2"> |
| 182 | - <button ng-click="crearPedidoDemo()" type="button" title="Crear nota pedido" class="btn btn-primary float-right">Crear</button> | |
| 177 | + <button ng-click="crearNotaPedido()" type="button" title="Crear nota pedido" class="btn btn-primary float-right">Guardar</button> | |
| 183 | 178 | </div> |
| 184 | 179 | </div> |
| 185 | 180 | <div class="row"> |
| ... | ... | @@ -205,7 +200,7 @@ |
| 205 | 200 | </tr> |
| 206 | 201 | </thead> |
| 207 | 202 | <tbody> |
| 208 | - <tr ng-show="!articuloACargar"> | |
| 203 | + <tr ng-show="cargando"> | |
| 209 | 204 | <td colspan="2"><input placeholder="Seleccione Articulo" class="form-control" readonly ng-click="seleccionarArticulo()"></td> |
| 210 | 205 | <td></td> |
| 211 | 206 | <td></td> |
| ... | ... | @@ -213,7 +208,7 @@ |
| 213 | 208 | <td></td> |
| 214 | 209 | <td></td> |
| 215 | 210 | </tr> |
| 216 | - <tr ng-show="articuloACargar"> | |
| 211 | + <tr ng-show="!cargando"> | |
| 217 | 212 | <td><input |
| 218 | 213 | class="form-control" |
| 219 | 214 | ng-model="articuloACargar.sector" |
| ... | ... | @@ -234,9 +229,9 @@ |
| 234 | 229 | class="form-control" |
| 235 | 230 | type="number" |
| 236 | 231 | min="1" |
| 237 | - value="1" | |
| 238 | 232 | ng-model="articuloACargar.cantidad" |
| 239 | - foca-focus="articuloACargar.cantidad == 1" | |
| 233 | + foca-focus="!cargando" | |
| 234 | + esc-key="resetFilter()" | |
| 240 | 235 | ng-keypress="agregarATabla($event.keyCode)"></td> |
| 241 | 236 | <td><input |
| 242 | 237 | class="form-control" |
| ... | ... | @@ -254,15 +249,14 @@ |
| 254 | 249 | <td ng-bind="articulo.descripcion"></td> |
| 255 | 250 | <td ng-bind="articulo.precio | currency:'$'"></td> |
| 256 | 251 | <td><input |
| 257 | - ng-show="edit" | |
| 252 | + ng-show="articulo.edit" | |
| 258 | 253 | ng-model="articulo.cantidad" |
| 259 | 254 | class="form-control" |
| 260 | 255 | type="number" |
| 261 | 256 | min="1" |
| 262 | - value="1" | |
| 263 | - foca-focus="edit" | |
| 264 | - ng-keypress="editarArticulo($event.keyCode)"> | |
| 265 | - <i class="selectable" ng-click="cambioEdit()" ng-hide="edit" ng-bind="articulo.cantidad"></i> | |
| 257 | + foca-focus="articulo.edit" | |
| 258 | + ng-keypress="editarArticulo($event.keyCode, articulo)"> | |
| 259 | + <i class="selectable" ng-click="cambioEdit(articulo)" ng-hide="articulo.edit" ng-bind="articulo.cantidad"></i> | |
| 266 | 260 | </td> |
| 267 | 261 | <td ng-bind="(articulo.precio * articulo.cantidad) | currency: '$'"></td> |
| 268 | 262 | <td class="text-center"> |