foca-abm-precios-condiciones-item.html
5.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<div class="row">
<foca-cabecera-facturador
titulo="'Precios y condiciones'"
fecha="now"
class="mb-0 col-lg-12"
></foca-cabecera-facturador>
</div>
<div class="row">
<form class= "col-md-10" name="formPrecioCondicion">
<input type="hidden" name="id" ng-model="precioCondicion.id" />
<div class="row mb-3">
<label class="col-sm-2 col-form-label">Código</label>
<input
class="form-control col-sm-4"
type="text"
name="codigo"
ng-value="precioCondicion.id | rellenarDigitos: 4: 0"
autocomplete="off"
readonly
/>
<label class="col-sm-2 col-form-label">Nombre</label>
<input
class="form-control col-sm-4"
type="text"
name="nombre"
ng-model="precioCondicion.nombre"
autocomplete="off"
foca-focus="focused == 1"
ng-focus="focused = 1"
ng-keypress="next($event.keyCode)"
teclado-virtual
/>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">Descripción</label>
<input
class="form-control col-sm-10"
type="text"
name="nombre"
ng-model="precioCondicion.descripcion"
autocomplete="off"
foca-focus="focused == 2"
ng-focus="focused = 2"
ng-keypress="next($event.keyCode)"
teclado-virtual
/>
</div>
<div class="row">
<label class="col-sm-2 col-form-label">Lista de precios</label>
<div class="col-sm-4 input-group p-0">
<input
ng-model="listaPrecioLabel"
class="form-control"
foca-focus="focused == 3"
ng-focus="focused = 3"
ng-keypress="seleccionarListaPrecio($event.keyCode)"
readonly
/>
<div class="input-group-append">
<button
class="btn btn-outline-secondary form-control"
title="Ver productos"
type="button"
ng-click="verProductosListaPrecio()"
ng-show="precioCondicion.listaPrecio"
>
<i class="fa fa-eye" aria-hidden="true"></i>
</button>
<button
ladda="searchLoading"
class="btn btn-outline-secondary form-control"
title="Buscar"
type="button"
ng-click="seleccionarListaPrecio(13)"
>
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</div>
</div>
<label class="col-sm-2 col-form-label" ng-show="mostrarPlazos">Plazos</label>
<div class="col-sm-4 p-0" ng-show="mostrarPlazos">
<div class="input-group p-0">
<input
type="number"
class="form-control text-right"
min="0"
ng-model="plazoACargar.dias"
ng-keypress="agregarPlazo($event.keyCode)"
foca-focus="focused == 4"
ng-focus="focused = 4"
placeholder="Días"
teclado-virtual
/>
<div class="input-group-append">
<button
class="btn btn-outline-secondary form-control"
title="Agregar"
type="button"
ng-click="agregarPlazo(13)"
>
<i class="fa fa-save" aria-hidden="true"></i>
</button>
</div>
</div>
<table class="table table-striped table-sm">
<tbody>
<tr ng-repeat="(key, plazo) in precioCondicion.plazos">
<td class="text-right" >
<span ng-bind="plazo.dias + ' días'"></span>
<button
type="button"
title="Eliminar"
class="btn btn-outline-secondary ml-1"
ng-click="quitarPlazo(key)"
>
<i class="fa fa-trash"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
</div>