Commit 96efd4d94a0db33d320cde3243d8fafb42f98d7c
1 parent
666a338368
Exists in
master
and in
1 other branch
- Modificaciones a la grilla.
Showing
1 changed file
with
20 additions
and
8 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="mostrarFichaCliente()" | 49 | ng-click="mostrarFichaCliente()" |
| 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 | readonly="true" | 62 | readonly="true" |
| 63 | ng-bind="vendedor.nombre" | 63 | ng-bind="vendedor.nombre" |
| 64 | ng-click="abrirModalDomicilio()" | 64 | ng-click="abrirModalDomicilio()" |
| 65 | placeholder="Seleccione Domicilio" | 65 | placeholder="Seleccione Domicilio" |
| 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-bind="notaPedido.precioCondicion" | 73 | ng-bind="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> | 78 | </div> |
| 79 | </div> | 79 | </div> |
| 80 | </div> | 80 | </div> |
| 81 | <div class="row"> | 81 | <div class="row"> |
| 82 | <div class="col-md-10 col-lg-8 offset-md-1 offset-lg-2"> | 82 | <div class="col-md-10 col-lg-8 offset-md-1 offset-lg-2"> |
| 83 | <div class="row"> | 83 | <div class="row"> |
| 84 | </div> | 84 | </div> |
| 85 | <div class="row"> | 85 | <div class="row"> |
| 86 | <table class="table table-striped table-sm"> | 86 | <table class="table table-striped table-sm"> |
| 87 | <thead> | 87 | <thead> |
| 88 | <tr> | 88 | <tr> |
| 89 | <th>Sector</th> | 89 | <th>Sector</th> |
| 90 | <th>Código</th> | 90 | <th>Código</th> |
| 91 | <th>Descripción</th> | 91 | <th>Descripción</th> |
| 92 | <th>Cantidad</th> | 92 | <th>Cantidad</th> |
| 93 | <th>Precio Unitario</th> | 93 | <th>Precio Unitario</th> |
| 94 | <th>SubTotal</th> | 94 | <th>SubTotal</th> |
| 95 | <th></th> | 95 | <th></th> |
| 96 | <th></th> | 96 | <th> |
| 97 | <button class="btn btn-outline-secondary selectable" style="float: right;" ng-click="show = !show"> | ||
| 98 | <i class="fa fa-chevron-down" ng-hide="show" aria-hidden="true"></i> | ||
| 99 | <i class="fa fa-chevron-up" ng-show="show" aria-hidden="true"></i> | ||
| 100 | </button> | ||
| 101 | </th> | ||
| 97 | </tr> | 102 | </tr> |
| 98 | </thead> | 103 | </thead> |
| 99 | <tbody> | 104 | <tbody> |
| 100 | <tr> | 105 | <tr> |
| 101 | <td colspan="2"><input class="form-control" readonly ng-click="seleccionarArticulo()"></td> | 106 | <td colspan="2"><input class="form-control" readonly ng-click="seleccionarArticulo()"></td> |
| 102 | <td></td> | 107 | <td></td> |
| 103 | <td></td> | 108 | <td></td> |
| 104 | <td></td> | 109 | <td></td> |
| 105 | <td></td> | 110 | <td></td> |
| 106 | <td></td> | 111 | <td></td> |
| 107 | <td></td> | 112 | <td></td> |
| 108 | </tr> | 113 | </tr> |
| 109 | <tr style="cursor: pointer;" ng-click="show = !show"> | 114 | <tr> |
| 110 | <td>1</td> | 115 | <td>1</td> |
| 111 | <td>1</td> | 116 | <td>1</td> |
| 112 | <td>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...</td> | 117 | <td>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit...</td> |
| 113 | <td>{{10000 | number: 2}}</td> | 118 | <td>{{10000 | number: 2}}</td> |
| 114 | <td>{{1000000000 | currency:'$'}}</td> | 119 | <td>{{1000000000 | currency:'$'}}</td> |
| 115 | <td>{{1000000000 | currency:'$'}}</td> | 120 | <td>{{1000000000 | currency:'$'}}</td> |
| 116 | <td></td> | 121 | <td></td> |
| 117 | <td> | 122 | <td class="text-center"> |
| 118 | <button class="btn btn-outline-secondary" style="float: right;"> | 123 | <button class="btn btn-outline-secondary btn-sm" ng-click="quitarArticulo()"> |
| 119 | <i class="fa fa-chevron-down" ng-hide="show" aria-hidden="true"></i> | 124 | <i class="fa fa-trash"></i> |
| 120 | <i class="fa fa-chevron-up" ng-show="show" aria-hidden="true"></i> | ||
| 121 | </button> | 125 | </button> |
| 122 | </td> | 126 | </td> |
| 123 | </tr> | 127 | </tr> |
| 124 | <tr ng-show="show"> | 128 | <tr ng-show="show"> |
| 125 | <td>1</td> | 129 | <td>1</td> |
| 126 | <td>2</td> | 130 | <td>2</td> |
| 127 | <td>Lorem Ipsum</td> | 131 | <td>Lorem Ipsum</td> |
| 128 | <td>1</td> | 132 | <td>1</td> |
| 129 | <td>{{1000000000 | currency:'U$D'}}</td> | 133 | <td>{{1000000000 | currency:'U$D'}}</td> |
| 130 | <td>{{10 | currency:'$'}}</td> | 134 | <td>{{10 | currency:'$'}}</td> |
| 131 | <td></td> | 135 | <td></td> |
| 132 | <td></td> | 136 | <td class="text-center"> |
| 137 | <button class="btn btn-outline-secondary btn-sm" ng-click="quitarArticulo()"> | ||
| 138 | <i class="fa fa-trash"></i> | ||
| 139 | </button> | ||
| 140 | </td> | ||
| 133 | </tr> | 141 | </tr> |
| 134 | <tr ng-show="show"> | 142 | <tr ng-show="show"> |
| 135 | <td>1</td> | 143 | <td>1</td> |
| 136 | <td>2</td> | 144 | <td>2</td> |
| 137 | <td>Lorem Ipsum</td> | 145 | <td>Lorem Ipsum</td> |
| 138 | <td>1</td> | 146 | <td>1</td> |
| 139 | <td>{{10 | currency:'$'}}</td> | 147 | <td>{{10 | currency:'$'}}</td> |
| 140 | <td>{{10 | currency:'$'}}</td> | 148 | <td>{{10 | currency:'$'}}</td> |
| 141 | <td></td> | 149 | <td></td> |
| 142 | <td></td> | 150 | <td class="text-center"> |
| 151 | <button class="btn btn-outline-secondary btn-sm" ng-click="quitarArticulo()"> | ||
| 152 | <i class="fa fa-trash"></i> | ||
| 153 | </button> | ||
| 154 | </td> | ||
| 143 | </tr> | 155 | </tr> |
| 144 | </tbody> | 156 | </tbody> |
| 145 | <tfoot> | 157 | <tfoot> |
| 146 | <tr class="table-secondary"> | 158 | <tr class="table-secondary"> |
| 147 | <td colspan="5"><b>Cantidad Items:</b> 3</td> | 159 | <td colspan="5"><b>Cantidad Items:</b> 3</td> |
| 148 | <td colspan="3">{{30 | currency:'$'}}</td> | 160 | <td colspan="3">{{30 | currency:'$'}}</td> |
| 149 | </tr> | 161 | </tr> |
| 150 | </tfoot> | 162 | </tfoot> |
| 151 | </table> | 163 | </table> |
| 152 | </div> | 164 | </div> |
| 153 | </div> | 165 | </div> |
| 154 | </div> | 166 | </div> |
| 155 | 167 | ||
| 156 | <!-- | 168 | <!-- |
| 157 | <form name="formCrearNota"> | 169 | <form name="formCrearNota"> |
| 158 | <uib-tabset active="active"> | 170 | <uib-tabset active="active"> |
| 159 | <uib-tab index="0" heading="General"> | 171 | <uib-tab index="0" heading="General"> |
| 160 | <input type="hidden" name="id" ng-model="notaPedido.id" /> | 172 | <input type="hidden" name="id" ng-model="notaPedido.id" /> |
| 161 | <div> | 173 | <div> |
| 162 | <div class="col-auto my-2"> | 174 | <div class="col-auto my-2"> |
| 163 | <button type="submit" title="Siguiente" class="btn btn-primary float-right">Siguiente</button> | 175 | <button type="submit" title="Siguiente" class="btn btn-primary float-right">Siguiente</button> |
| 164 | </div> | 176 | </div> |
| 165 | </div> | 177 | </div> |
| 166 | <br> | 178 | <br> |
| 167 | <br> | 179 | <br> |
| 168 | <div class="row"> | 180 | <div class="row"> |
| 169 | <div class="col-md-2"> | 181 | <div class="col-md-2"> |
| 170 | <div class="col-auto"> | 182 | <div class="col-auto"> |
| 171 | <label>Fecha de carga</label> | 183 | <label>Fecha de carga</label> |
| 172 | </div> | 184 | </div> |
| 173 | </div> | 185 | </div> |
| 174 | <div class="col-md-3"> | 186 | <div class="col-md-3"> |
| 175 | <div class="col-auto"> | 187 | <div class="col-auto"> |
| 176 | <input type="date" class="form-control" ng-model="notaPedido.fechaCarga" ng-required="true"> | 188 | <input type="date" class="form-control" ng-model="notaPedido.fechaCarga" ng-required="true"> |
| 177 | </div> | 189 | </div> |
| 178 | </div> | 190 | </div> |
| 179 | <div class="col-md-2"> | 191 | <div class="col-md-2"> |
| 180 | <div class="col-auto"> | 192 | <div class="col-auto"> |
| 181 | <label>Kilómetros</label> | 193 | <label>Kilómetros</label> |
| 182 | </div> | 194 | </div> |
| 183 | </div> | 195 | </div> |
| 184 | <div class="col-md-3"> | 196 | <div class="col-md-3"> |
| 185 | <div class="col-auto"> | 197 | <div class="col-auto"> |
| 186 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Kilómetros recorridos para la entrega en el cliente" | 198 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Kilómetros recorridos para la entrega en el cliente" |
| 187 | ng-model="notaPedido.kilometros" ng-required="true"> | 199 | ng-model="notaPedido.kilometros" ng-required="true"> |
| 188 | </div> | 200 | </div> |
| 189 | </div> | 201 | </div> |
| 190 | </div> | 202 | </div> |
| 191 | <div class="row my-3"> | 203 | <div class="row my-3"> |
| 192 | <div class="col-md-2"> | 204 | <div class="col-md-2"> |
| 193 | <div class="col-auto"> | 205 | <div class="col-auto"> |
| 194 | <label>Jurisdicción de IIBB</label> | 206 | <label>Jurisdicción de IIBB</label> |
| 195 | </div> | 207 | </div> |
| 196 | </div> | 208 | </div> |
| 197 | <div class="col-md-3"> | 209 | <div class="col-md-3"> |
| 198 | <div class="col-auto"> | 210 | <div class="col-auto"> |
| 199 | <input type="text" class="form-control" placeholder="Jurisdicción de IIBB donde se realiza la entrega" | 211 | <input type="text" class="form-control" placeholder="Jurisdicción de IIBB donde se realiza la entrega" |
| 200 | ng-model="notaPedido.jurisdiccionIIBB" ng-required="true"> | 212 | ng-model="notaPedido.jurisdiccionIIBB" ng-required="true"> |
| 201 | </div> | 213 | </div> |
| 202 | </div> | 214 | </div> |
| 203 | <div class="col-md-2"> | 215 | <div class="col-md-2"> |
| 204 | <div class="col-auto"> | 216 | <div class="col-auto"> |
| 205 | <label>Costo de financiación</label> | 217 | <label>Costo de financiación</label> |
| 206 | </div> | 218 | </div> |
| 207 | </div> | 219 | </div> |
| 208 | <div class="col-md-3"> | 220 | <div class="col-md-3"> |
| 209 | <div class="col-auto"> | 221 | <div class="col-auto"> |
| 210 | <div class="input-group mb-2"> | 222 | <div class="input-group mb-2"> |
| 211 | <div class="input-group-prepend"> | 223 | <div class="input-group-prepend"> |
| 212 | <div class="input-group-text">$</div> | 224 | <div class="input-group-text">$</div> |
| 213 | </div> | 225 | </div> |
| 214 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Costo de financiación" | 226 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Costo de financiación" |
| 215 | ng-model="notaPedido.costoFinanciacion"> | 227 | ng-model="notaPedido.costoFinanciacion"> |
| 216 | </div> | 228 | </div> |
| 217 | </div> | 229 | </div> |
| 218 | </div> | 230 | </div> |
| 219 | </div> | 231 | </div> |
| 220 | <div class="row"> | 232 | <div class="row"> |
| 221 | <div class="col-md-2"> | 233 | <div class="col-md-2"> |
| 222 | <div class="col-auto"> | 234 | <div class="col-auto"> |
| 223 | <label>Bomba</label> | 235 | <label>Bomba</label> |
| 224 | </div> | 236 | </div> |
| 225 | </div> | 237 | </div> |
| 226 | <div class="col-md-1"> | 238 | <div class="col-md-1"> |
| 227 | <div class="col-auto"> | 239 | <div class="col-auto"> |
| 228 | <div class="form-check custom-radio custom-control-inline"> | 240 | <div class="form-check custom-radio custom-control-inline"> |
| 229 | <input class="form-check-input" type="radio" name="radioBomba" value="1" ng-model="notaPedido.bomba"> | 241 | <input class="form-check-input" type="radio" name="radioBomba" value="1" ng-model="notaPedido.bomba"> |
| 230 | <label class="form-check-label"> | 242 | <label class="form-check-label"> |
| 231 | Si | 243 | Si |
| 232 | </label> | 244 | </label> |
| 233 | </div> | 245 | </div> |
| 234 | <div class="form-check custom-radio custom-control-inline"> | 246 | <div class="form-check custom-radio custom-control-inline"> |
| 235 | <input class="form-check-input" type="radio" name="radioBomba" value="0" ng-model="notaPedido.bomba"> | 247 | <input class="form-check-input" type="radio" name="radioBomba" value="0" ng-model="notaPedido.bomba"> |
| 236 | <label class="form-check-label"> | 248 | <label class="form-check-label"> |
| 237 | No | 249 | No |
| 238 | </label> | 250 | </label> |
| 239 | </div> | 251 | </div> |
| 240 | </div> | 252 | </div> |
| 241 | </div> | 253 | </div> |
| 242 | <div class="col-md-1"> | 254 | <div class="col-md-1"> |
| 243 | <div class="col-auto"> | 255 | <div class="col-auto"> |
| 244 | <label>Flete</label> | 256 | <label>Flete</label> |
| 245 | </div> | 257 | </div> |
| 246 | </div> | 258 | </div> |
| 247 | <div class="col-md-1"> | 259 | <div class="col-md-1"> |
| 248 | <div class="col-auto"> | 260 | <div class="col-auto"> |
| 249 | <div class="form-check custom-radio custom-control-inline"> | 261 | <div class="form-check custom-radio custom-control-inline"> |
| 250 | <input class="form-check-input" type="radio" name="radioFlete" value="1" ng-model="notaPedido.flete"> | 262 | <input class="form-check-input" type="radio" name="radioFlete" value="1" ng-model="notaPedido.flete"> |
| 251 | <label class="form-check-label"> | 263 | <label class="form-check-label"> |
| 252 | Si | 264 | Si |
| 253 | </label> | 265 | </label> |
| 254 | </div> | 266 | </div> |
| 255 | <div class="form-check custom-radio custom-control-inline"> | 267 | <div class="form-check custom-radio custom-control-inline"> |
| 256 | <input class="form-check-input" type="radio" name="radioFlete" value="0" ng-model="notaPedido.flete"> | 268 | <input class="form-check-input" type="radio" name="radioFlete" value="0" ng-model="notaPedido.flete"> |
| 257 | <label class="form-check-label"> | 269 | <label class="form-check-label"> |
| 258 | FOB | 270 | FOB |
| 259 | </label> | 271 | </label> |
| 260 | </div> | 272 | </div> |
| 261 | </div> | 273 | </div> |
| 262 | </div> | 274 | </div> |
| 263 | <div class="col-md-2"> | 275 | <div class="col-md-2"> |
| 264 | <div class="col-auto"> | 276 | <div class="col-auto"> |
| 265 | <label>Costo unitario kilometro flete</label> | 277 | <label>Costo unitario kilometro flete</label> |
| 266 | </div> | 278 | </div> |
| 267 | </div> | 279 | </div> |
| 268 | <div class="col-md-3"> | 280 | <div class="col-md-3"> |
| 269 | <div class="col-auto"> | 281 | <div class="col-auto"> |
| 270 | <div class="input-group mb-2"> | 282 | <div class="input-group mb-2"> |
| 271 | <div class="input-group-prepend"> | 283 | <div class="input-group-prepend"> |
| 272 | <div class="input-group-text">$</div> | 284 | <div class="input-group-text">$</div> |
| 273 | </div> | 285 | </div> |
| 274 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Costo unitario del kilometro del flete" | 286 | <input type="number" min="0" step="0.01" class="form-control" placeholder="Costo unitario del kilometro del flete" |
| 275 | ng-model="notaPedido.costoUnitarioKmFlete" ng-required="true"> | 287 | ng-model="notaPedido.costoUnitarioKmFlete" ng-required="true"> |
| 276 | </div> | 288 | </div> |
| 277 | </div> | 289 | </div> |
| 278 | </div> | 290 | </div> |
| 279 | </div> | 291 | </div> |
| 280 | <div class="row my-3"> | 292 | <div class="row my-3"> |
| 281 | <div class="col-md-2"> | 293 | <div class="col-md-2"> |
| 282 | <div class="col-auto"> | 294 | <div class="col-auto"> |
| 283 | <label>Vendedor</label> | 295 | <label>Vendedor</label> |
| 284 | </div> | 296 | </div> |
| 285 | </div> | 297 | </div> |
| 286 | <div class="col-md-3"> | 298 | <div class="col-md-3"> |
| 287 | <div class="col-auto"> | 299 | <div class="col-auto"> |
| 288 | <input type="text" class="form-control" placeholder="Seleccione vendedor" ng-model="notaPedido.vendedor" | 300 | <input type="text" class="form-control" placeholder="Seleccione vendedor" ng-model="notaPedido.vendedor" |
| 289 | ng-click="seleccionarVendedor()" readonly> | 301 | ng-click="seleccionarVendedor()" readonly> |
| 290 | </div> | 302 | </div> |
| 291 | </div> | 303 | </div> |
| 292 | <div class="col-md-2"> | 304 | <div class="col-md-2"> |
| 293 | <div class="col-auto"> | 305 | <div class="col-auto"> |
| 294 | <label>Petrolera</label> | 306 | <label>Petrolera</label> |
| 295 | </div> | 307 | </div> |
| 296 | </div> | 308 | </div> |
| 297 | <div class="col-md-3"> | 309 | <div class="col-md-3"> |
| 298 | <div class="col-auto"> | 310 | <div class="col-auto"> |
| 299 | <input type="text" class="form-control" placeholder="Seleccione petrolera" ng-model="notaPedido.petrolera" | 311 | <input type="text" class="form-control" placeholder="Seleccione petrolera" ng-model="notaPedido.petrolera" |
| 300 | ng-click="seleccionarPetrolera()" readonly> | 312 | ng-click="seleccionarPetrolera()" readonly> |
| 301 | </div> | 313 | </div> |
| 302 | </div> | 314 | </div> |
| 303 | </div> | 315 | </div> |
| 304 | </div> | 316 | </div> |
| 305 | <div class="row"> | 317 | <div class="row"> |
| 306 | <div class="col-md-2"> | 318 | <div class="col-md-2"> |
| 307 | <div class="col-auto"> | 319 | <div class="col-auto"> |
| 308 | <label>Cliente</label> | 320 | <label>Cliente</label> |
| 309 | </div> | 321 | </div> |
| 310 | </div> | 322 | </div> |
| 311 | <div class="col-md-3"> | 323 | <div class="col-md-3"> |
| 312 | <div class="col-auto"> | 324 | <div class="col-auto"> |
| 313 | <input type="text" class="form-control" placeholder="Seleccione cliente" ng-model="notaPedido.cliente" | 325 | <input type="text" class="form-control" placeholder="Seleccione cliente" ng-model="notaPedido.cliente" |
| 314 | ng-click="seleccionarCliente()" ng-change="obtenerDomicilios()" readonly> | 326 | ng-click="seleccionarCliente()" ng-change="obtenerDomicilios()" readonly> |
| 315 | </div> | 327 | </div> |
| 316 | </div> | 328 | </div> |
| 317 | <div class="col-md-2"> | 329 | <div class="col-md-2"> |
| 318 | <div class="col-auto"> | 330 | <div class="col-auto"> |
| 319 | <label>Domicilio</label> | 331 | <label>Domicilio</label> |
| 320 | </div> | 332 | </div> |
| 321 | </div> | 333 | </div> |
| 322 | <div class="col-md-4"> | 334 | <div class="col-md-4"> |
| 323 | <div class="col-md-12 row" ng-repeat="domicilio in notaPedido.domicilio"> | 335 | <div class="col-md-12 row" ng-repeat="domicilio in notaPedido.domicilio"> |
| 324 | <div class="col-auto"> | 336 | <div class="col-auto"> |
| 325 | <input type="text" ng-model="domicilio.dom" placeholder="Domicilio" uib-typeahead=" | 337 | <input type="text" ng-model="domicilio.dom" placeholder="Domicilio" uib-typeahead=" |
| 326 | domi.dom | 338 | domi.dom |
| 327 | for domi | 339 | for domi |
| 328 | in domiciliosCliente | 340 | in domiciliosCliente |
| 329 | " | 341 | " |
| 330 | typeahead-no-results="sinResultados" typeahead-min-length="0" typeahead-on-select="seleccionar($item)" | 342 | typeahead-no-results="sinResultados" typeahead-min-length="0" typeahead-on-select="seleccionar($item)" |
| 331 | class="form-control mb-2" ng-disabled="domicilio.id > 0" ng-required="true"> | 343 | class="form-control mb-2" ng-disabled="domicilio.id > 0" ng-required="true"> |
| 332 | <i ng-show="cargandoClientes" class="fas fa-sync"></i> | 344 | <i ng-show="cargandoClientes" class="fas fa-sync"></i> |
| 333 | <div ng-show="sinResultados"> | 345 | <div ng-show="sinResultados"> |
| 334 | No se encontraron resultados. | 346 | No se encontraron resultados. |
| 335 | </div> | 347 | </div> |
| 336 | </div> | 348 | </div> |
| 337 | <a class="btn" ng-click="removeNewChoice(domicilio)" ng-if="domicilio.id==0">-</a> | 349 | <a class="btn" ng-click="removeNewChoice(domicilio)" ng-if="domicilio.id==0">-</a> |
| 338 | <a class="btn" ng-click="addNewDom()">+</a> | 350 | <a class="btn" ng-click="addNewDom()">+</a> |
| 339 | </div> | 351 | </div> |
| 340 | </div> | 352 | </div> |
| 341 | </div> | 353 | </div> |
| 342 | </uib-tab> | 354 | </uib-tab> |
| 343 | <uib-tab index="1" heading="Producto" disable="formCrearNota.$invalid"> | 355 | <uib-tab index="1" heading="Producto" disable="formCrearNota.$invalid"> |
| 344 | <div> | 356 | <div> |
| 345 | <div class="col-auto my-2"> | 357 | <div class="col-auto my-2"> |
| 346 | <button ng-click="crearNotaPedido()" type="button" title="Crear nota pedido" class="btn btn-primary float-right">Crear</button> | 358 | <button ng-click="crearNotaPedido()" type="button" title="Crear nota pedido" class="btn btn-primary float-right">Crear</button> |
| 347 | </div> | 359 | </div> |
| 348 | </div> | 360 | </div> |
| 349 | <br> | 361 | <br> |
| 350 | <br> | 362 | <br> |
| 351 | <div class="row"> | 363 | <div class="row"> |
| 352 | <div class="col-md-2"> | 364 | <div class="col-md-2"> |
| 353 | <div class="col-auto"> | 365 | <div class="col-auto"> |
| 354 | <label>Precios y condiciones</label> | 366 | <label>Precios y condiciones</label> |
| 355 | </div> | 367 | </div> |
| 356 | </div> | 368 | </div> |
| 357 | <div class="col-md-4"> | 369 | <div class="col-md-4"> |
| 358 | <div class="col-auto"> | 370 | <div class="col-auto"> |
| 359 | <select class="form-control" ng-change="cargarArticulos()" ng-model="notaPedido.precioCondicion" ng-options="preCond.id as preCond.nombre for preCond in precioCondiciones"> | 371 | <select class="form-control" ng-change="cargarArticulos()" ng-model="notaPedido.precioCondicion" ng-options="preCond.id as preCond.nombre for preCond in precioCondiciones"> |
| 360 | </select> | 372 | </select> |
| 361 | </div> | 373 | </div> |
| 362 | </div> | 374 | </div> |
| 363 | <div class="col-md-2"> | 375 | <div class="col-md-2"> |
| 364 | <div class="col-auto"> | 376 | <div class="col-auto"> |
| 365 | <label>Producto</label> | 377 | <label>Producto</label> |
| 366 | </div> | 378 | </div> |
| 367 | </div> | 379 | </div> |
| 368 | <div class="col-md-4"> | 380 | <div class="col-md-4"> |
| 369 | <div class="col-auto"> | 381 | <div class="col-auto"> |
| 370 | <input type="text" class="form-control" placeholder="Seleccione producto" ng-model="notaPedido.producto" | 382 | <input type="text" class="form-control" placeholder="Seleccione producto" ng-model="notaPedido.producto" |
| 371 | ng-click="seleccionarArticulo()" readonly> | 383 | ng-click="seleccionarArticulo()" readonly> |
| 372 | </div> | 384 | </div> |
| 373 | </div> | 385 | </div> |
| 374 | </div> | 386 | </div> |
| 375 | <div class="col-md-12"> | 387 | <div class="col-md-12"> |
| 376 | <table class="table my-3 table-hover table-nonfluid"> | 388 | <table class="table my-3 table-hover table-nonfluid"> |
| 377 | <thead> | 389 | <thead> |
| 378 | <tr> | 390 | <tr> |
| 379 | <th>Código</th> | 391 | <th>Código</th> |
| 380 | <th>Nombre</th> | 392 | <th>Nombre</th> |
| 381 | <th>Precio unitario</th> | 393 | <th>Precio unitario</th> |
| 382 | <th>Costo unitario bruto</th> | 394 | <th>Costo unitario bruto</th> |
| 383 | <th>Cantidad</th> | 395 | <th>Cantidad</th> |
| 384 | <th>Subtotal</th> | 396 | <th>Subtotal</th> |
| 385 | </tr> | 397 | </tr> |
| 386 | </thead> | 398 | </thead> |
| 387 | <tbody> | 399 | <tbody> |
| 388 | <tr ng-repeat="articulo in articulosTabla"> | 400 | <tr ng-repeat="articulo in articulosTabla"> |
| 389 | <td ng-bind="articulo.codigo"></td> | 401 | <td ng-bind="articulo.codigo"></td> |
| 390 | <td ng-bind="articulo.nombre"></td> | 402 | <td ng-bind="articulo.nombre"></td> |
| 391 | <td ng-bind="articulo.precio"></td> | 403 | <td ng-bind="articulo.precio"></td> |
| 392 | <td ng-bind="articulo.costoUnitario"></td> | 404 | <td ng-bind="articulo.costoUnitario"></td> |
| 393 | <td><input ng-model="articulo.cantidad" class="form-control" type="number" min="0" value="1"></td> | 405 | <td><input ng-model="articulo.cantidad" class="form-control" type="number" min="0" value="1"></td> |
| 394 | <td ng-bind="getSubTotal(articulo.item)"></td> | 406 | <td ng-bind="getSubTotal(articulo.item)"></td> |
| 395 | </tr> | 407 | </tr> |
| 396 | </tbody> | 408 | </tbody> |
| 397 | </table> | 409 | </table> |
| 398 | </div> | 410 | </div> |
| 399 | </uib-tab> | 411 | </uib-tab> |
| 400 | </uib-tabset> | 412 | </uib-tabset> |