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