mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'feat/presupuestos' of https://git.imnavajas.es/jjimenez/safekat into feat/presupuestos
This commit is contained in:
@ -482,9 +482,6 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
|||||||
// En este caso contiene el nombre del papel generico
|
// En este caso contiene el nombre del papel generico
|
||||||
$model = new PapelGenericoModel();
|
$model = new PapelGenericoModel();
|
||||||
$menu = $model->getGramajeComparador($datos, $searchStr);
|
$menu = $model->getGramajeComparador($datos, $searchStr);
|
||||||
$nonItem = new \stdClass;
|
|
||||||
$nonItem->text = '- ' . lang('Basic.global.None') . ' -';
|
|
||||||
array_unshift($menu, $nonItem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -61,8 +61,6 @@ return [
|
|||||||
'cubierta' => 'Cover',
|
'cubierta' => 'Cover',
|
||||||
'sobrecubierta' => 'Dust jacket',
|
'sobrecubierta' => 'Dust jacket',
|
||||||
'encuadernacion' => 'Binding',
|
'encuadernacion' => 'Binding',
|
||||||
'solapas' => 'Book cover',
|
|
||||||
'solapas_ancho' => 'Book cover width',
|
|
||||||
|
|
||||||
/* '4x0' => '4x0',
|
/* '4x0' => '4x0',
|
||||||
'4x4' => '4x4',
|
'4x4' => '4x4',
|
||||||
|
|||||||
@ -81,8 +81,6 @@ return [
|
|||||||
'cubierta' => 'Cubierta',
|
'cubierta' => 'Cubierta',
|
||||||
'sobrecubierta' => 'Sobrecubierta',
|
'sobrecubierta' => 'Sobrecubierta',
|
||||||
'encuadernacion' => 'Encuadernación',
|
'encuadernacion' => 'Encuadernación',
|
||||||
'solapas' => 'Solapa cubierta',
|
|
||||||
'solapas_ancho' => 'Ancho solapa cubierta',
|
|
||||||
|
|
||||||
/* '4x0' => '4x0',
|
/* '4x0' => '4x0',
|
||||||
'4x4' => '4x4',
|
'4x4' => '4x4',
|
||||||
|
|||||||
@ -83,7 +83,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 col-lg-2 px-4">
|
<div class="col-md-12 col-lg-2 px-4">
|
||||||
<select id="compGramajeNegro" name="comp_gramaje_negro" class="form-control select2bs2" style="width: 100%;">
|
<select id="compGramajeNegro" name="comp_gramaje_negro" class="form-control select2bs2" disabled style="width: 100%;">
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -181,7 +181,14 @@
|
|||||||
<p><?= lang('PapelImpresion.cubierta') ?></p>
|
<p><?= lang('PapelImpresion.cubierta') ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 col-lg-2 px-4">
|
<div class="col-md-12 col-lg-2 px-4">
|
||||||
<input type="number" id="compPaginasCubierta" name="comp_paginas_cubierta" placeholder="0" maxLength="5" class="form-control" value="<?= isset($presupuestoEntity->comparador_json_data->cubierta) ? (old(0, $presupuestoEntity->comparador_json_data->cubierta->paginas)) : '0' ?>">
|
<select id="compPaginasCubierta" name="comp_paginas_cubierta" class="form-control select2bs2" style="width: 100%;">
|
||||||
|
<option value="1" >
|
||||||
|
<p><?= lang('Presupuestos.1cara') ?></p>
|
||||||
|
</option>
|
||||||
|
<option value="2" >
|
||||||
|
<p><?= lang('Presupuestos.2caras') ?></p>
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-12 col-lg-6 px-4">
|
<div class="col-md-12 col-lg-6 px-4">
|
||||||
<select id="compPapelCubierta" name="comp_papel_cubierta" class="form-control select2bs2" style="width: 100%;">
|
<select id="compPapelCubierta" name="comp_papel_cubierta" class="form-control select2bs2" style="width: 100%;">
|
||||||
@ -346,7 +353,7 @@
|
|||||||
<div class="card accordion-item active">
|
<div class="card accordion-item active">
|
||||||
<h2 class="accordion-header" id="headingThree">
|
<h2 class="accordion-header" id="headingThree">
|
||||||
<button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionCompCubiertaSobrecubiertaTip" aria-expanded="false" aria-controls="accordionCompCubiertaSobrecubiertaTip">
|
<button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionCompCubiertaSobrecubiertaTip" aria-expanded="false" aria-controls="accordionCompCubiertaSobrecubiertaTip">
|
||||||
<h6><?= lang("Presupuestos.compCubiertaSobrecubierta") ?></h4>
|
<h6><?= lang("Presupuestos.cubierta") ?></h4>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@ -388,41 +395,7 @@
|
|||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table id="tableCompSobrecubierta" class="comparator-table table dt-responsive dataTable">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.tipo') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.paginas') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.papel') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.gramaje') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.marca') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.maquina') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.numeroPliegos') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.pliegosPedido') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPliego') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.libro') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalPapelPedido') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.lomo') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.peso') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.click') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalClicks') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagNegro') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.precioPagColor') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalTinta') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.totalCorte') ?></th>
|
|
||||||
<th style="padding-right: 0.75em;"><?= lang('Presupuestos.total') ?></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
</tbody>
|
|
||||||
<tfoot>
|
|
||||||
<tr>
|
|
||||||
<td class="dt-result dt-result-text" colspan="18"><?= lang('Presupuestos.total') ?> <?= lang('Presupuestos.sobrecubierta') ?>:</td>
|
|
||||||
<td class="dt-result dt-result-value" colspan="2">0.00</td>
|
|
||||||
</tr>
|
|
||||||
</tfoot>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -83,9 +83,17 @@
|
|||||||
allowClear: false,
|
allowClear: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#compGramajeNegro').select2({
|
||||||
|
allowClear: false,
|
||||||
|
});
|
||||||
|
|
||||||
$('#compPapelNegrohq').select2({
|
$('#compPapelNegrohq').select2({
|
||||||
allowClear: false,
|
allowClear: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#compGramajeNegrohq').select2({
|
||||||
|
allowClear: false,
|
||||||
|
});
|
||||||
|
|
||||||
$('#compPapelColor').select2({
|
$('#compPapelColor').select2({
|
||||||
allowClear: false,
|
allowClear: false,
|
||||||
@ -99,14 +107,6 @@
|
|||||||
allowClear: false,
|
allowClear: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#compPapelBicolor').select2({
|
|
||||||
allowClear: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#compGramajeBicolor').select2({
|
|
||||||
allowClear: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#compPapelCubierta').select2({
|
$('#compPapelCubierta').select2({
|
||||||
allowClear: false,
|
allowClear: false,
|
||||||
});
|
});
|
||||||
@ -115,15 +115,16 @@
|
|||||||
allowClear: false,
|
allowClear: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#compPapelSobrecubierta').select2({
|
$('#encuadernacion').select2({
|
||||||
allowClear: false,
|
allowClear: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#compGramajeSobrecubierta').select2({
|
$('#compPaginasCubierta').select2({
|
||||||
allowClear: false,
|
allowClear: false,
|
||||||
|
minimumResultsForSearch: Infinity,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
@ -211,10 +212,14 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('#compPapelNegro').on('change', function (e){
|
|
||||||
|
|
||||||
|
$('#compPapelNegro').on('select2:select', function (e){
|
||||||
|
|
||||||
|
$('#compGramajeNegro').val(null).trigger('change');
|
||||||
|
$('#compGramajeNegro').prop('disabled', false);
|
||||||
|
$('#compPapelNegro').find('option[value="0"]').remove();
|
||||||
$('#compGramajeNegro').select2({
|
$('#compGramajeNegro').select2({
|
||||||
allowClear: false,
|
allowClear: true,
|
||||||
minimumResultsForSearch: Infinity,
|
minimumResultsForSearch: Infinity,
|
||||||
ajax: {
|
ajax: {
|
||||||
url: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
url: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
||||||
@ -241,11 +246,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$('#compPapelNegrohq').on('change', function (e){
|
$('#compPapelNegrohq').on('select2:select', function (e){
|
||||||
|
|
||||||
|
$('#compGramajeNegrohq').val(null).trigger('change');
|
||||||
$('#compGramajeNegrohq').prop('disabled', false);
|
$('#compGramajeNegrohq').prop('disabled', false);
|
||||||
|
$('#compPapelNegrohq').find('option[value="0"]').remove();
|
||||||
$('#compGramajeNegrohq').select2({
|
$('#compGramajeNegrohq').select2({
|
||||||
allowClear: false,
|
allowClear: true,
|
||||||
minimumResultsForSearch: Infinity,
|
minimumResultsForSearch: Infinity,
|
||||||
ajax: {
|
ajax: {
|
||||||
url: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
url: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
||||||
@ -270,6 +277,106 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#compPapelColor').on('select2:select', function (e){
|
||||||
|
|
||||||
|
$('#compGramajeColor').val(null).trigger('change');
|
||||||
|
$('#compGramajeColor').prop('disabled', false);
|
||||||
|
$('#compPapelColor').find('option[value="0"]').remove();
|
||||||
|
$('#compGramajeColor').select2({
|
||||||
|
allowClear: true,
|
||||||
|
minimumResultsForSearch: Infinity,
|
||||||
|
ajax: {
|
||||||
|
url: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
||||||
|
type: 'post',
|
||||||
|
dataType: 'json',
|
||||||
|
|
||||||
|
data: function (params) {
|
||||||
|
return {
|
||||||
|
tipo: 'gramaje',
|
||||||
|
datos: $('#compPapelColor').select2('data')[0].text.trim() ,
|
||||||
|
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||||
|
};
|
||||||
|
},
|
||||||
|
delay: 60,
|
||||||
|
processResults: function (response) {
|
||||||
|
yeniden(response.<?= csrf_token() ?>);
|
||||||
|
return {
|
||||||
|
results: response.menu
|
||||||
|
};
|
||||||
|
},
|
||||||
|
cache: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#compPapelColorhq').on('select2:select', function (e){
|
||||||
|
|
||||||
|
$('#compGramajeColorhq').val(null).trigger('change');
|
||||||
|
$('#compGramajeColorhq').prop('disabled', false);
|
||||||
|
$('#compPapelColorhq').find('option[value="0"]').remove();
|
||||||
|
$('#compGramajeColorhq').select2({
|
||||||
|
allowClear: true,
|
||||||
|
minimumResultsForSearch: Infinity,
|
||||||
|
ajax: {
|
||||||
|
url: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
||||||
|
type: 'post',
|
||||||
|
dataType: 'json',
|
||||||
|
|
||||||
|
data: function (params) {
|
||||||
|
return {
|
||||||
|
tipo: 'gramaje',
|
||||||
|
datos: $('#compPapelColorhq').select2('data')[0].text.trim() ,
|
||||||
|
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||||
|
};
|
||||||
|
},
|
||||||
|
delay: 60,
|
||||||
|
processResults: function (response) {
|
||||||
|
yeniden(response.<?= csrf_token() ?>);
|
||||||
|
return {
|
||||||
|
results: response.menu
|
||||||
|
};
|
||||||
|
},
|
||||||
|
cache: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#compPapelCubierta').on('select2:select', function (e){
|
||||||
|
|
||||||
|
$('#compGramajeCubierta').val(null).trigger('change');
|
||||||
|
$('#compGramajeCubierta').prop('disabled', false);
|
||||||
|
$('#compPapelCubierta').find('option[value="0"]').remove();
|
||||||
|
$('#compGramajeCubierta').select2({
|
||||||
|
allowClear: true,
|
||||||
|
minimumResultsForSearch: Infinity,
|
||||||
|
ajax: {
|
||||||
|
url: '<?= route_to("menuItemsOfCosidotapablanda") ?>',
|
||||||
|
type: 'post',
|
||||||
|
dataType: 'json',
|
||||||
|
|
||||||
|
data: function (params) {
|
||||||
|
return {
|
||||||
|
tipo: 'gramaje',
|
||||||
|
datos: $('#compPapelCubierta').select2('data')[0].text.trim() ,
|
||||||
|
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||||
|
};
|
||||||
|
},
|
||||||
|
delay: 60,
|
||||||
|
processResults: function (response) {
|
||||||
|
yeniden(response.<?= csrf_token() ?>);
|
||||||
|
return {
|
||||||
|
results: response.menu
|
||||||
|
};
|
||||||
|
},
|
||||||
|
cache: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user