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