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