mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-03 17:48:49 +00:00
Compare commits
7 Commits
c43f3f098d
...
dbd3687b34
| Author | SHA1 | Date | |
|---|---|---|---|
| dbd3687b34 | |||
| af41410880 | |||
| 8d53ac8957 | |||
| d0c3bdc5a6 | |||
| b2e5dcac9b | |||
| 4e96514029 | |||
| 5b31eb4f32 |
@ -52,8 +52,8 @@ import {normalizeNumericFilter} from '../../utils.js';
|
|||||||
{ data: 'id', name: 'id', orderable: true },
|
{ data: 'id', name: 'id', orderable: true },
|
||||||
{ data: 'importeMin', name: 'importeMin', orderable: true },
|
{ data: 'importeMin', name: 'importeMin', orderable: true },
|
||||||
{ data: 'importeMax', name: 'importeMax', orderable: true },
|
{ data: 'importeMax', name: 'importeMax', orderable: true },
|
||||||
{ data: 'margenMax', name: 'margenMax', orderable: true },
|
|
||||||
{ data: 'margenMin', name: 'margenMin', orderable: true },
|
{ data: 'margenMin', name: 'margenMin', orderable: true },
|
||||||
|
{ data: 'margenMax', name: 'margenMax', orderable: true },
|
||||||
{ data: 'actions', name: 'actions' }
|
{ data: 'actions', name: 'actions' }
|
||||||
],
|
],
|
||||||
columnDefs: [{ targets: -1, orderable: false, searchable: false }]
|
columnDefs: [{ targets: -1, orderable: false, searchable: false }]
|
||||||
|
|||||||
@ -3,7 +3,9 @@ import PresupuestoWizard from './wizard.js';
|
|||||||
const app = new PresupuestoWizard({
|
const app = new PresupuestoWizard({
|
||||||
mode: 'public',
|
mode: 'public',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
|
presupuestoId: $('#presupuesto_id').val(),
|
||||||
canSave: false,
|
canSave: false,
|
||||||
useSessionCache: true,
|
useSessionCache: true,
|
||||||
|
loadData: true
|
||||||
});
|
});
|
||||||
app.init();
|
app.init();
|
||||||
@ -12,7 +12,8 @@ export default class PresupuestoWizard {
|
|||||||
presupuestoId: null,
|
presupuestoId: null,
|
||||||
readonly: false,
|
readonly: false,
|
||||||
canSave: false,
|
canSave: false,
|
||||||
useSessionCache: true
|
useSessionCache: true,
|
||||||
|
loadData: false
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
this.DEBUG = true; // Activar o desactivar el modo de depuración
|
this.DEBUG = true; // Activar o desactivar el modo de depuración
|
||||||
@ -210,7 +211,7 @@ export default class PresupuestoWizard {
|
|||||||
|
|
||||||
this.#initDatosGenerales();
|
this.#initDatosGenerales();
|
||||||
|
|
||||||
if (presupuestoId && mode !== 'public') {
|
if ((presupuestoId && mode !== 'public') || (presupuestoId && this.opts.loadData)) {
|
||||||
|
|
||||||
await fetch(`/presupuesto/api/get?id=${encodeURIComponent(presupuestoId)}`, {
|
await fetch(`/presupuesto/api/get?id=${encodeURIComponent(presupuestoId)}`, {
|
||||||
headers: {
|
headers: {
|
||||||
@ -835,7 +836,7 @@ export default class PresupuestoWizard {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).on('change', 'input[name="papelInterior"]', (e) => {
|
$(document).on('change', 'input[name="papel-interior"]', (e) => {
|
||||||
|
|
||||||
if (!$(e.target).is(':checked'))
|
if (!$(e.target).is(':checked'))
|
||||||
return;
|
return;
|
||||||
@ -1015,7 +1016,7 @@ export default class PresupuestoWizard {
|
|||||||
for (let i = 0; i < opciones_papel_interior.length; i++) {
|
for (let i = 0; i < opciones_papel_interior.length; i++) {
|
||||||
const opcion = opciones_papel_interior[i];
|
const opcion = opciones_papel_interior[i];
|
||||||
const item = new imagen_presupuesto(opcion);
|
const item = new imagen_presupuesto(opcion);
|
||||||
item.group = 'papelInterior';
|
item.group = 'papel-interior';
|
||||||
item.extraClass = 'interior-data papel-interior';
|
item.extraClass = 'interior-data papel-interior';
|
||||||
if (this.formData.interior.papelInteriorId == '' && i === 0 ||
|
if (this.formData.interior.papelInteriorId == '' && i === 0 ||
|
||||||
this.formData.interior.papelInteriorId == opcion.extra_data["sk-id"]) {
|
this.formData.interior.papelInteriorId == opcion.extra_data["sk-id"]) {
|
||||||
|
|||||||
@ -47,8 +47,8 @@
|
|||||||
<th scope="col" th:text="#{margenes-presupuesto.tabla.id}">ID</th>
|
<th scope="col" th:text="#{margenes-presupuesto.tabla.id}">ID</th>
|
||||||
<th scope="col" th:text="#{margenes-presupuesto.tabla.importe_minimo}">Importe Mín.</th>
|
<th scope="col" th:text="#{margenes-presupuesto.tabla.importe_minimo}">Importe Mín.</th>
|
||||||
<th scope="col" th:text="#{margenes-presupuesto.tabla.importe_maximo}">Importe Máx.</th>
|
<th scope="col" th:text="#{margenes-presupuesto.tabla.importe_maximo}">Importe Máx.</th>
|
||||||
<th scope="col" th:text="#{margenes-presupuesto.tabla.margen_maximo}">Margen Máx.</th>
|
|
||||||
<th scope="col" th:text="#{margenes-presupuesto.tabla.margen_minimo}">Margen Mín.</th>
|
<th scope="col" th:text="#{margenes-presupuesto.tabla.margen_minimo}">Margen Mín.</th>
|
||||||
|
<th scope="col" th:text="#{margenes-presupuesto.tabla.margen_maximo}">Margen Máx.</th>
|
||||||
<th scope="col" th:text="#{margenes-presupuesto.tabla.acciones}">Acciones</th>
|
<th scope="col" th:text="#{margenes-presupuesto.tabla.acciones}">Acciones</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -64,11 +64,11 @@
|
|||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<input type="text" class="form-control form-control-sm margenes-presupuesto-filter"
|
<input type="text" class="form-control form-control-sm margenes-presupuesto-filter"
|
||||||
data-col="margenMax" />
|
data-col="margenMin" />
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<input type="text" class="form-control form-control-sm margenes-presupuesto-filter"
|
<input type="text" class="form-control form-control-sm margenes-presupuesto-filter"
|
||||||
data-col="margenMin" />
|
data-col="margenMax" />
|
||||||
</th>
|
</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user