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