Commit 13e8cc956499633bc148244bb9d8d46463abc585
1 parent
ef52b1ccdc
Exists in
master
and in
1 other branch
elimininado codigo basura
Showing
1 changed file
with
0 additions
and
246 deletions
Show diff stats
src/views/nota-pedido.html
| 1 | <div class="crear-nota-pedido"> | 1 | <div class="crear-nota-pedido"> |
| 2 | <form name="formCrearNota" ng-submit="crearNotaPedido()"> | 2 | <form name="formCrearNota" ng-submit="crearNotaPedido()"> |
| 3 | <div class="row"> | 3 | <div class="row"> |
| 4 | <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2"> | 4 | <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2"> |
| 5 | <div class="row p-1 panel-informativo"> | 5 | <div class="row p-1 panel-informativo"> |
| 6 | <div class="col-12"> | 6 | <div class="col-12"> |
| 7 | <div class="row"> | 7 | <div class="row"> |
| 8 | <div class="col-5"> | 8 | <div class="col-5"> |
| 9 | <div class="h6">NOTA DE PEDIDO</div> | 9 | <div class="h6">NOTA DE PEDIDO</div> |
| 10 | </div> | 10 | </div> |
| 11 | <div class="col-3">Nº {{puntoVenta}}-{{comprobante}}</div> | 11 | <div class="col-3">Nº {{puntoVenta}}-{{comprobante}}</div> |
| 12 | <div class="col-4 text-right"> | 12 | <div class="col-4 text-right"> |
| 13 | Fecha: {{ now | date:'dd/MM/yyyy HH:mm'}} | 13 | Fecha: {{ now | date:'dd/MM/yyyy HH:mm'}} |
| 14 | </div> | 14 | </div> |
| 15 | </div> | 15 | </div> |
| 16 | <div class="row"> | 16 | <div class="row"> |
| 17 | <div class="col-auto" ng-repeat="cab in cabecera"> | 17 | <div class="col-auto" ng-repeat="cab in cabecera"> |
| 18 | <span class="label" ng-bind="cab.label"></span> | 18 | <span class="label" ng-bind="cab.label"></span> |
| 19 | <span class="valor" ng-bind="cab.valor"></span> | 19 | <span class="valor" ng-bind="cab.valor"></span> |
| 20 | </div> | 20 | </div> |
| 21 | </div> | 21 | </div> |
| 22 | </div> | 22 | </div> |
| 23 | </div> | 23 | </div> |
| 24 | <div class="row p-1 botonera-secundaria"> | 24 | <div class="row p-1 botonera-secundaria"> |
| 25 | <div class="col-12"> | 25 | <div class="col-12"> |
| 26 | <div class="row"> | 26 | <div class="row"> |
| 27 | <div class="col-3 px-0 py-0" ng-repeat="boton in botonera"> | 27 | <div class="col-3 px-0 py-0" ng-repeat="boton in botonera"> |
| 28 | <button | 28 | <button |
| 29 | type="button" | 29 | type="button" |
| 30 | class="btn btn-default btn-block btn-xs text-left py-2" | 30 | class="btn btn-default btn-block btn-xs text-left py-2" |
| 31 | ng-click="boton.accion()" | 31 | ng-click="boton.accion()" |
| 32 | > | 32 | > |
| 33 | <i | 33 | <i |
| 34 | class="fa fa-arrow-circle-right" | 34 | class="fa fa-arrow-circle-right" |
| 35 | ng-show="boton.texto != ''" | 35 | ng-show="boton.texto != ''" |
| 36 | ></i> | 36 | ></i> |
| 37 | | 37 | |
| 38 | {{boton.texto}} | 38 | {{boton.texto}} |
| 39 | </button> | 39 | </button> |
| 40 | </div> | 40 | </div> |
| 41 | </div> | 41 | </div> |
| 42 | </div> | 42 | </div> |
| 43 | </div> | 43 | </div> |
| 44 | </div> | 44 | </div> |
| 45 | </div> | 45 | </div> |
| 46 | </form> | 46 | </form> |
| 47 | <div class="row"> | 47 | <div class="row"> |
| 48 | <div class="col-md-10 col-lg-8 offset-md-1 offset-lg-2"> | 48 | <div class="col-md-10 col-lg-8 offset-md-1 offset-lg-2"> |
| 49 | <div class="row grilla-articulo align-items-end"> | 49 | <div class="row grilla-articulo align-items-end"> |
| 50 | <table class="table table-striped table-sm table-dark tabla-articulo"> | 50 | <table class="table table-striped table-sm table-dark tabla-articulo"> |
| 51 | <thead> | 51 | <thead> |
| 52 | <tr> | 52 | <tr> |
| 53 | <th class="tabla-articulo-numero">#</th> | 53 | <th class="tabla-articulo-numero">#</th> |
| 54 | <th class="tabla-articulo-codigo">Código</th> | 54 | <th class="tabla-articulo-codigo">Código</th> |
| 55 | <th class="tabla-articulo-descripcion">Descripción</th> | 55 | <th class="tabla-articulo-descripcion">Descripción</th> |
| 56 | <th class="tabla-articulo-cantidad text-right">Cantidad</th> | 56 | <th class="tabla-articulo-cantidad text-right">Cantidad</th> |
| 57 | <th class="tabla-articulo-precio text-right">Precio Unitario</th> | 57 | <th class="tabla-articulo-precio text-right">Precio Unitario</th> |
| 58 | <th class="tabla-articulo-subtotal text-right">SubTotal</th> | 58 | <th class="tabla-articulo-subtotal text-right">SubTotal</th> |
| 59 | <th class="tabla-articulo-boton text-right"> | 59 | <th class="tabla-articulo-boton text-right"> |
| 60 | <button | 60 | <button |
| 61 | class="btn btn-outline-secondary selectable" | 61 | class="btn btn-outline-secondary selectable" |
| 62 | ng-click="show = !show; masMenos()" | 62 | ng-click="show = !show; masMenos()" |
| 63 | > | 63 | > |
| 64 | <i | 64 | <i |
| 65 | class="fa fa-chevron-down" | 65 | class="fa fa-chevron-down" |
| 66 | ng-show="show" | 66 | ng-show="show" |
| 67 | aria-hidden="true" | 67 | aria-hidden="true" |
| 68 | > | 68 | > |
| 69 | </i> | 69 | </i> |
| 70 | <i | 70 | <i |
| 71 | class="fa fa-chevron-up" | 71 | class="fa fa-chevron-up" |
| 72 | ng-hide="show" | 72 | ng-hide="show" |
| 73 | aria-hidden="true"> | 73 | aria-hidden="true"> |
| 74 | </i> | 74 | </i> |
| 75 | </button> | 75 | </button> |
| 76 | </th> | 76 | </th> |
| 77 | </tr> | 77 | </tr> |
| 78 | </thead> | 78 | </thead> |
| 79 | <tbody class="tabla-articulos-body"> | 79 | <tbody class="tabla-articulos-body"> |
| 80 | <tr | 80 | <tr |
| 81 | ng-repeat="(key, articulo) in articulosTabla" | 81 | ng-repeat="(key, articulo) in articulosTabla" |
| 82 | ng-show="show || key == (articulosTabla.length - 1)" | 82 | ng-show="show || key == (articulosTabla.length - 1)" |
| 83 | > | 83 | > |
| 84 | <td class="tabla-articulo-numero" ng-bind="key + 1"></td> | 84 | <td class="tabla-articulo-numero" ng-bind="key + 1"></td> |
| 85 | <td | 85 | <td |
| 86 | class="tabla-articulo-codigo" | 86 | class="tabla-articulo-codigo" |
| 87 | ng-bind="articulo.sector + '-' + articulo.codigo" | 87 | ng-bind="articulo.sector + '-' + articulo.codigo" |
| 88 | ></td> | 88 | ></td> |
| 89 | <td | 89 | <td |
| 90 | class="tabla-articulo-descripcion" | 90 | class="tabla-articulo-descripcion" |
| 91 | ng-bind="articulo.descripcion" | 91 | ng-bind="articulo.descripcion" |
| 92 | ></td> | 92 | ></td> |
| 93 | <td class="tabla-articulo-cantidad text-right"> | 93 | <td class="tabla-articulo-cantidad text-right"> |
| 94 | <input | 94 | <input |
| 95 | ng-show="articulo.edit" | 95 | ng-show="articulo.edit" |
| 96 | ng-model="articulo.cantidad" | 96 | ng-model="articulo.cantidad" |
| 97 | class="form-control" | 97 | class="form-control" |
| 98 | type="number" | 98 | type="number" |
| 99 | min="1" | 99 | min="1" |
| 100 | foca-focus="articulo.edit" | 100 | foca-focus="articulo.edit" |
| 101 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 101 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
| 102 | ng-focus="selectFocus($event)" | 102 | ng-focus="selectFocus($event)" |
| 103 | > | 103 | > |
| 104 | <i | 104 | <i |
| 105 | class="selectable" | 105 | class="selectable" |
| 106 | ng-click="cambioEdit(articulo)" | 106 | ng-click="cambioEdit(articulo)" |
| 107 | ng-hide="articulo.edit" | 107 | ng-hide="articulo.edit" |
| 108 | ng-bind="articulo.cantidad"> | 108 | ng-bind="articulo.cantidad"> |
| 109 | </i> | 109 | </i> |
| 110 | </td> | 110 | </td> |
| 111 | <td | 111 | <td |
| 112 | class="tabla-articulo-precio text-right" | 112 | class="tabla-articulo-precio text-right" |
| 113 | ng-bind="articulo.precio | currency: '$'" | 113 | ng-bind="articulo.precio | currency: '$'" |
| 114 | ></td> | 114 | ></td> |
| 115 | <td | 115 | <td |
| 116 | class="tabla-articulo-subtotal text-right" | 116 | class="tabla-articulo-subtotal text-right" |
| 117 | ng-bind="(articulo.precio * articulo.cantidad) | currency: '$'"> | 117 | ng-bind="(articulo.precio * articulo.cantidad) | currency: '$'"> |
| 118 | </td> | 118 | </td> |
| 119 | <td class="tabla-articulo-boton text-right"> | 119 | <td class="tabla-articulo-boton text-right"> |
| 120 | <button | 120 | <button |
| 121 | class="btn btn-outline-secondary btn-sm" | 121 | class="btn btn-outline-secondary btn-sm" |
| 122 | ng-click="quitarArticulo(key)" | 122 | ng-click="quitarArticulo(key)" |
| 123 | > | 123 | > |
| 124 | <i class="fa fa-trash"></i> | 124 | <i class="fa fa-trash"></i> |
| 125 | </button> | 125 | </button> |
| 126 | </td> | 126 | </td> |
| 127 | </tr> | 127 | </tr> |
| 128 | </tbody> | 128 | </tbody> |
| 129 | <tfoot> | 129 | <tfoot> |
| 130 | <tr ng-show="!cargando"> | 130 | <tr ng-show="!cargando"> |
| 131 | <td | 131 | <td |
| 132 | class="tabla-articulo-numero align-middle" | 132 | class="tabla-articulo-numero align-middle" |
| 133 | ng-bind="articulosTabla.length + 1" | 133 | ng-bind="articulosTabla.length + 1" |
| 134 | ></td> | 134 | ></td> |
| 135 | <td class="tabla-articulo-codigo"> | 135 | <td class="tabla-articulo-codigo"> |
| 136 | <input | 136 | <input |
| 137 | class="form-control" | 137 | class="form-control" |
| 138 | ng-model="articuloACargar.sectorCodigo" | 138 | ng-model="articuloACargar.sectorCodigo" |
| 139 | readonly | 139 | readonly |
| 140 | > | 140 | > |
| 141 | </td> | 141 | </td> |
| 142 | <td class="tabla-articulo-descripcion"> | 142 | <td class="tabla-articulo-descripcion"> |
| 143 | <input | 143 | <input |
| 144 | class="form-control" | 144 | class="form-control" |
| 145 | ng-model="articuloACargar.descripcion" | 145 | ng-model="articuloACargar.descripcion" |
| 146 | readonly | 146 | readonly |
| 147 | > | 147 | > |
| 148 | </td> | 148 | </td> |
| 149 | <td class="tabla-articulo-cantidad text-right"> | 149 | <td class="tabla-articulo-cantidad text-right"> |
| 150 | <input | 150 | <input |
| 151 | class="form-control" | 151 | class="form-control" |
| 152 | type="number" | 152 | type="number" |
| 153 | min="1" | 153 | min="1" |
| 154 | ng-model="articuloACargar.cantidad" | 154 | ng-model="articuloACargar.cantidad" |
| 155 | foca-focus="!cargando" | 155 | foca-focus="!cargando" |
| 156 | esc-key="resetFilter()" | 156 | esc-key="resetFilter()" |
| 157 | ng-keypress="agregarATabla($event.keyCode)" | 157 | ng-keypress="agregarATabla($event.keyCode)" |
| 158 | > | 158 | > |
| 159 | </td> | 159 | </td> |
| 160 | <td class="tabla-articulo-precio text-right"> | 160 | <td class="tabla-articulo-precio text-right"> |
| 161 | <input | 161 | <input |
| 162 | class="form-control" | 162 | class="form-control" |
| 163 | ng-value="articuloACargar.precio | currency: '$'" | 163 | ng-value="articuloACargar.precio | currency: '$'" |
| 164 | readonly | 164 | readonly |
| 165 | > | 165 | > |
| 166 | </td> | 166 | </td> |
| 167 | <td class="tabla-articulo-subtotal text-right"> | 167 | <td class="tabla-articulo-subtotal text-right"> |
| 168 | <input | 168 | <input |
| 169 | class="form-control" | 169 | class="form-control" |
| 170 | ng-value="getSubTotal() | currency: '$'" | 170 | ng-value="getSubTotal() | currency: '$'" |
| 171 | readonly | 171 | readonly |
| 172 | ></td> | 172 | ></td> |
| 173 | <td class="tabla-articulo-boton text-right"> | 173 | <td class="tabla-articulo-boton text-right"> |
| 174 | <button | 174 | <button |
| 175 | class="btn btn-outline-secondary btn-sm" | 175 | class="btn btn-outline-secondary btn-sm" |
| 176 | ng-click="agregarATabla(13)" | 176 | ng-click="agregarATabla(13)" |
| 177 | > | 177 | > |
| 178 | <i class="fa fa-save"></i> | 178 | <i class="fa fa-save"></i> |
| 179 | </button> | 179 | </button> |
| 180 | </td> | 180 | </td> |
| 181 | </tr> | 181 | </tr> |
| 182 | <tr ng-show="cargando"> | 182 | <tr ng-show="cargando"> |
| 183 | <td colspan="6"> | 183 | <td colspan="6"> |
| 184 | <input | 184 | <input |
| 185 | placeholder="Seleccione Articulo" | 185 | placeholder="Seleccione Articulo" |
| 186 | class="form-control form-control-sm" | 186 | class="form-control form-control-sm" |
| 187 | readonly | 187 | readonly |
| 188 | ng-click="seleccionarArticulo()" | 188 | ng-click="seleccionarArticulo()" |
| 189 | /> | 189 | /> |
| 190 | </td> | 190 | </td> |
| 191 | </tr> | 191 | </tr> |
| 192 | <tr class=""> | 192 | <tr class=""> |
| 193 | <td colspan="3"> | 193 | <td colspan="3"> |
| 194 | <strong>Cantidad Items:</strong> | 194 | <strong>Cantidad Items:</strong> |
| 195 | <a ng-bind="articulosTabla.length"></a> | 195 | <a ng-bind="articulosTabla.length"></a> |
| 196 | </td> | 196 | </td> |
| 197 | <td class="text-right table-celda-total"><h3>Total:</h3></td> | 197 | <td class="text-right table-celda-total"><h3>Total:</h3></td> |
| 198 | <td class="table-celda-total text-right" colspan="1"> | 198 | <td class="table-celda-total text-right" colspan="1"> |
| 199 | <h3>{{getTotal() | currency: '$'}}</h3> | 199 | <h3>{{getTotal() | currency: '$'}}</h3> |
| 200 | </td> | 200 | </td> |
| 201 | <td colspan="2" class="text-right"> | 201 | <td colspan="2" class="text-right"> |
| 202 | <button | 202 | <button |
| 203 | type="button" | 203 | type="button" |
| 204 | class="btn btn-default btn-sm" | 204 | class="btn btn-default btn-sm" |
| 205 | > | 205 | > |
| 206 | Totales | 206 | Totales |
| 207 | </button> | 207 | </button> |
| 208 | </td> | 208 | </td> |
| 209 | </tr> | 209 | </tr> |
| 210 | </tfoot> | 210 | </tfoot> |
| 211 | </table> | 211 | </table> |
| 212 | </div> | 212 | </div> |
| 213 | </div> | 213 | </div> |
| 214 | <div class="col-auto my-2 col-lg-2 botonera-lateral"> | 214 | <div class="col-auto my-2 col-lg-2 botonera-lateral"> |
| 215 | <div class="row align-items-end"> | 215 | <div class="row align-items-end"> |
| 216 | <div class="col-12"> | 216 | <div class="col-12"> |
| 217 | <button | 217 | <button |
| 218 | ng-click="crearNotaPedido()" | 218 | ng-click="crearNotaPedido()" |
| 219 | type="submit" | 219 | type="submit" |
| 220 | title="Crear nota pedido" | 220 | title="Crear nota pedido" |
| 221 | class="btn btn-default btn-block mb-2"> | 221 | class="btn btn-default btn-block mb-2"> |
| 222 | Guardar | 222 | Guardar |
| 223 | </button> | 223 | </button> |
| 224 | <button | 224 | <button |
| 225 | ng-click="salir()" | 225 | ng-click="salir()" |
| 226 | type="button" | 226 | type="button" |
| 227 | title="Salir" | 227 | title="Salir" |
| 228 | class="btn btn-default btn-block"> | 228 | class="btn btn-default btn-block"> |
| 229 | Salir | 229 | Salir |
| 230 | </button> | 230 | </button> |
| 231 | </div> | 231 | </div> |
| 232 | </div> | 232 | </div> |
| 233 | </div> | 233 | </div> |
| 234 | </div> | 234 | </div> |
| 235 | </div> | 235 | </div> |
| 236 | <!-- | ||
| 237 | <form name="formCrearNota"> | ||
| 238 | <uib-tabset active="active"> | ||
| 239 | <uib-tab index="0" heading="General"> | ||
| 240 | <input type="hidden" name="id" ng-model="notaPedido.id" /> | ||
| 241 | <div> | ||
| 242 | <div class="col-auto my-2"> | ||
| 243 | <button type="submit" title="Siguiente" class="btn btn-primary float-right">Siguiente</button> | ||
| 244 | </div> | ||
| 245 | </div> | ||
| 246 | <br> | ||
| 247 | <br> | ||
| 248 | <div class="row"> | ||
| 249 | <div class="col-md-2"> | ||
| 250 | <div class="col-auto"> | ||
| 251 | <label>Fecha de carga</label> | ||
| 252 | </div> | ||
| 253 | </div> | ||
| 254 | <div class="col-md-3"> | ||
| 255 | <div class="col-auto"> | ||
| 256 | <input type="date" class="form-control" ng-model="notaPedido.fechaCarga" ng-required="true"> | ||
| 257 | </div> | ||
| 258 | </div> | ||
| 259 | <div class="col-md-2"> | ||
| 260 | <div class="col-auto"> | ||
| 261 | <label>Kilómetros</label> | ||
| 262 | </div> | ||
| 263 | </div> | ||
| 264 | <div class="col-md-3"> | ||
| 265 | <div class="col-auto"> | ||
| 266 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Kilómetros recorridos para la entrega en el cliente" | ||
| 267 | ng-model="notaPedido.kilometros" ng-required="true"> | ||
| 268 | </div> | ||
| 269 | </div> | ||
| 270 | </div> | ||
| 271 | <div class="row my-3"> | ||
| 272 | <div class="col-md-2"> | ||
| 273 | <div class="col-auto"> | ||
| 274 | <label>Jurisdicción de IIBB</label> | ||
| 275 | </div> | ||
| 276 | </div> | ||
| 277 | <div class="col-md-3"> | ||
| 278 | <div class="col-auto"> | ||
| 279 | <input type="text" class="form-control" placeholder="Jurisdicción de IIBB donde se realiza la entrega" | ||
| 280 | ng-model="notaPedido.jurisdiccionIIBB" ng-required="true"> | ||
| 281 | </div> | ||
| 282 | </div> | ||
| 283 | <div class="col-md-2"> | ||
| 284 | <div class="col-auto"> | ||
| 285 | <label>Costo de financiación</label> | ||
| 286 | </div> | ||
| 287 | </div> | ||
| 288 | <div class="col-md-3"> | ||
| 289 | <div class="col-auto"> | ||
| 290 | <div class="input-group mb-2"> | ||
| 291 | <div class="input-group-prepend"> | ||
| 292 | <div class="input-group-text">$</div> | ||
| 293 | </div> | ||
| 294 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Costo de financiación" | ||
| 295 | ng-model="notaPedido.costoFinanciacion"> | ||
| 296 | </div> | ||
| 297 | </div> | ||
| 298 | </div> | ||
| 299 | </div> | ||
| 300 | <div class="row"> | ||
| 301 | <div class="col-md-2"> | ||
| 302 | <div class="col-auto"> | ||
| 303 | <label>Bomba</label> | ||
| 304 | </div> | ||
| 305 | </div> | ||
| 306 | <div class="col-md-1"> | ||
| 307 | <div class="col-auto"> | ||
| 308 | <div class="form-check custom-radio custom-control-inline"> | ||
| 309 | <input class="form-check-input" type="radio" name="radioBomba" value="1" ng-model="notaPedido.bomba"> | ||
| 310 | <label class="form-check-label"> | ||
| 311 | Si | ||
| 312 | </label> | ||
| 313 | </div> | ||
| 314 | <div class="form-check custom-radio custom-control-inline"> | ||
| 315 | <input class="form-check-input" type="radio" name="radioBomba" value="0" ng-model="notaPedido.bomba"> | ||
| 316 | <label class="form-check-label"> | ||
| 317 | No | ||
| 318 | </label> | ||
| 319 | </div> | ||
| 320 | </div> | ||
| 321 | </div> | ||
| 322 | <div class="col-md-1"> | ||
| 323 | <div class="col-auto"> | ||
| 324 | <label>Flete</label> | ||
| 325 | </div> | ||
| 326 | </div> | ||
| 327 | <div class="col-md-1"> | ||
| 328 | <div class="col-auto"> | ||
| 329 | <div class="form-check custom-radio custom-control-inline"> | ||
| 330 | <input class="form-check-input" type="radio" name="radioFlete" value="1" ng-model="notaPedido.flete"> | ||
| 331 | <label class="form-check-label"> | ||
| 332 | Si | ||
| 333 | </label> | ||
| 334 | </div> | ||
| 335 | <div class="form-check custom-radio custom-control-inline"> | ||
| 336 | <input class="form-check-input" type="radio" name="radioFlete" value="0" ng-model="notaPedido.flete"> | ||
| 337 | <label class="form-check-label"> | ||
| 338 | FOB | ||
| 339 | </label> | ||
| 340 | </div> | ||
| 341 | </div> | ||
| 342 | </div> | ||
| 343 | <div class="col-md-2"> | ||
| 344 | <div class="col-auto"> | ||
| 345 | <label>Costo unitario kilometro flete</label> | ||
| 346 | </div> | ||
| 347 | </div> | ||
| 348 | <div class="col-md-3"> | ||
| 349 | <div class="col-auto"> | ||
| 350 | <div class="input-group mb-2"> | ||
| 351 | <div class="input-group-prepend"> | ||
| 352 | <div class="input-group-text">$</div> | ||
| 353 | </div> | ||
| 354 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Costo unitario del kilometro del flete" | ||
| 355 | ng-model="notaPedido.costoUnitarioKmFlete" ng-required="true"> | ||
| 356 | </div> | ||
| 357 | </div> | ||
| 358 | </div> | ||
| 359 | </div> | ||
| 360 | <div class="row my-3"> | ||
| 361 | <div class="col-md-2"> | ||
| 362 | <div class="col-auto"> | ||
| 363 | <label>Vendedor</label> | ||
| 364 | </div> | ||
| 365 | </div> | ||
| 366 | <div class="col-md-3"> | ||
| 367 | <div class="col-auto"> | ||
| 368 | <input type="text" class="form-control" placeholder="Seleccione vendedor" ng-model="notaPedido.vendedor" | ||
| 369 | ng-click="seleccionarVendedor()" readonly> | ||
| 370 | </div> | ||
| 371 | </div> | ||
| 372 | <div class="col-md-2"> | ||
| 373 | <div class="col-auto"> | ||
| 374 | <label>Petrolera</label> | ||
| 375 | </div> | ||
| 376 | </div> | ||
| 377 | <div class="col-md-3"> | ||
| 378 | <div class="col-auto"> | ||
| 379 | <input type="text" class="form-control" placeholder="Seleccione petrolera" ng-model="notaPedido.petrolera" | ||
| 380 | ng-click="seleccionarPetrolera()" readonly> | ||
| 381 | </div> | ||
| 382 | </div> | ||
| 383 | </div> | ||
| 384 | </div> | ||
| 385 | <div class="row"> | ||
| 386 | <div class="col-md-2"> | ||
| 387 | <div class="col-auto"> | ||
| 388 | <label>Cliente</label> | ||
| 389 | </div> | ||
| 390 | </div> | ||
| 391 | <div class="col-md-3"> | ||
| 392 | <div class="col-auto"> | ||
| 393 | <input type="text" class="form-control" placeholder="Seleccione cliente" ng-model="notaPedido.cliente" | ||
| 394 | ng-click="seleccionarCliente()" ng-change="obtenerDomicilios()" readonly> | ||
| 395 | </div> | ||
| 396 | </div> | ||
| 397 | <div class="col-md-2"> | ||
| 398 | <div class="col-auto"> | ||
| 399 | <label>Domicilio</label> | ||
| 400 | </div> | ||
| 401 | </div> | ||
| 402 | <div class="col-md-4"> | ||
| 403 | <div class="col-md-12 row" ng-repeat="domicilio in notaPedido.domicilio"> | ||
| 404 | <div class="col-auto"> | ||
| 405 | <input type="text" ng-model="domicilio.dom" placeholder="Domicilio" uib-typeahead=" | ||
| 406 | domi.dom | ||
| 407 | for domi | ||
| 408 | in domiciliosCliente | ||
| 409 | " | ||
| 410 | typeahead-no-results="sinResultados" typeahead-min-length="0" typeahead-on-select="seleccionar($item)" | ||
| 411 | class="form-control mb-2" ng-disabled="domicilio.id > 0" ng-required="true"> | ||
| 412 | <i ng-show="cargandoClientes" class="fas fa-sync"></i> | ||
| 413 | <div ng-show="sinResultados"> | ||
| 414 | No se encontraron resultados. | ||
| 415 | </div> | ||
| 416 | </div> | ||
| 417 | <a class="btn" ng-click="removeNewChoice(domicilio)" ng-if="domicilio.id==0">-</a> | ||
| 418 | <a class="btn" ng-click="addNewDom()">+</a> | ||
| 419 | </div> | ||
| 420 | </div> | ||
| 421 | </div> | ||
| 422 | </uib-tab> | ||
| 423 | <uib-tab index="1" heading="Producto" disable="formCrearNota.$invalid"> | ||
| 424 | <div> | ||
| 425 | <div class="col-auto my-2"> | ||
| 426 | <button ng-click="crearNotaPedido()" type="button" title="Crear nota pedido" class="btn btn-primary float-right">Crear</button> | ||
| 427 | </div> | ||
| 428 | </div> | ||
| 429 | <br> | ||
| 430 | <br> | ||
| 431 | <div class="row"> | ||
| 432 | <div class="col-md-2"> | ||
| 433 | <div class="col-auto"> | ||
| 434 | <label>Precios y condiciones</label> | ||
| 435 | </div> | ||
| 436 | </div> | ||
| 437 | <div class="col-md-4"> | ||
| 438 | <div class="col-auto"> | ||
| 439 | <select class="form-control" ng-change="cargarArticulos()" ng-model="notaPedido.precioCondicion" ng-options="preCond.id as preCond.nombre for preCond in precioCondiciones"> | ||
| 440 | </select> | ||
| 441 | </div> | ||
| 442 | </div> | ||
| 443 | <div class="col-md-2"> | ||
| 444 | <div class="col-auto"> | ||
| 445 | <label>Producto</label> | ||
| 446 | </div> | ||
| 447 | </div> | ||
| 448 | <div class="col-md-4"> | ||
| 449 | <div class="col-auto"> | ||
| 450 | <input type="text" class="form-control" placeholder="Seleccione producto" ng-model="notaPedido.producto" | ||
| 451 | ng-click="seleccionarArticulo()" readonly> | ||
| 452 | </div> | ||
| 453 | </div> | ||
| 454 | </div> | ||
| 455 | <div class="col-md-12"> | ||
| 456 | <table class="table my-3 table-hover table-nonfluid"> | ||
| 457 | <thead> | ||
| 458 | <tr> | ||
| 459 | <th>Código</th> | ||
| 460 | <th>Nombre</th> | ||
| 461 | <th>Precio unitario</th> | ||
| 462 | <th>Costo unitario bruto</th> | ||
| 463 | <th>Cantidad</th> | ||
| 464 | <th>Subtotal</th> | ||
| 465 | </tr> | ||
| 466 | </thead> | ||
| 467 | <tbody> | ||
| 468 | <tr ng-repeat="articulo in articulosTabla"> | ||
| 469 | <td ng-bind="articulo.codigo"></td> | ||
| 470 | <td ng-bind="articulo.nombre"></td> | ||
| 471 | <td ng-bind="articulo.precio"></td> | ||
| 472 | <td ng-bind="articulo.costoUnitario"></td> | ||
| 473 | <td><input ng-model="articulo.cantidad" class="form-control" type="number" min="0" value="1"></td> | ||
| 474 | <td ng-bind="getSubTotal(articulo.item)"></td> | ||
| 475 | </tr> | ||
| 476 | </tbody> | ||
| 477 | </table> | ||
| 478 | </div> | ||
| 479 | </uib-tab> | ||
| 480 | </uib-tabset> | ||
| 481 | </form>--> |