mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'add/mensaje_acabados_cliente' into 'main'
añadido mensaje para avisar de la cubierta sin acabado See merge request jjimenez/safekat!528
This commit is contained in:
@ -337,6 +337,10 @@ return [
|
|||||||
|
|
||||||
'actualizacionSolapasCubierta' => 'El tamaño de las solapas de la cubierta se ha actualizado debido a que supera el máximo permitido (este valor depende del ancho del libro y del número de páginas).',
|
'actualizacionSolapasCubierta' => 'El tamaño de las solapas de la cubierta se ha actualizado debido a que supera el máximo permitido (este valor depende del ancho del libro y del número de páginas).',
|
||||||
'actualizacionSolapasSobrecubierta' => 'El tamaño de las solapas de la sobrecubierta se ha actualizado debido a que supera el máximo permitido (este valor depende del ancho del libro y del número de páginas).',
|
'actualizacionSolapasSobrecubierta' => 'El tamaño de las solapas de la sobrecubierta se ha actualizado debido a que supera el máximo permitido (este valor depende del ancho del libro y del número de páginas).',
|
||||||
|
|
||||||
|
'cubiertaSinAcabado' => 'Cubierta sin acabado',
|
||||||
|
'cubiertaSinAcabadoText' => 'La falta de plastificado en la cubierta puede comprometer su calidad, ya que aumenta el riesgo de agrietamiento en los pliegues o hendidos, afectando su apariencia y resistencia',
|
||||||
|
|
||||||
'files' => 'Ficheros',
|
'files' => 'Ficheros',
|
||||||
'titulos' => [
|
'titulos' => [
|
||||||
'libroFresadoTapaDura' => 'Rústica Fresado tapa dura',
|
'libroFresadoTapaDura' => 'Rústica Fresado tapa dura',
|
||||||
|
|||||||
@ -191,19 +191,23 @@
|
|||||||
Ferro</li>
|
Ferro</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="list-group list-group-timeline">
|
<ul class="list-group list-group-timeline">
|
||||||
<li id="rl_ferroDigital" class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
<li id="rl_ferroDigital"
|
||||||
|
class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
||||||
Ferro digital</li>
|
Ferro digital</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="list-group list-group-timeline">
|
<ul class="list-group list-group-timeline">
|
||||||
<li id="rl_marcapaginas" class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
<li id="rl_marcapaginas"
|
||||||
|
class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
||||||
Marcapáginas</li>
|
Marcapáginas</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="list-group list-group-timeline">
|
<ul class="list-group list-group-timeline">
|
||||||
<li id="rl_retractilado" class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
<li id="rl_retractilado"
|
||||||
|
class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
||||||
Retractilado</li>
|
Retractilado</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="list-group list-group-timeline">
|
<ul class="list-group list-group-timeline">
|
||||||
<li id="rl_retractilado5" class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
<li id="rl_retractilado5"
|
||||||
|
class="list-group-item list-group-timeline-primary texto-resumen-lateral d-none">
|
||||||
Retractilado de 5</li>
|
Retractilado de 5</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -290,6 +294,9 @@
|
|||||||
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/dropzone/dropzone.css') ?>" />
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/dropzone/dropzone.css') ?>" />
|
||||||
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/pages/app-chat.css') ?>">
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/css/pages/app-chat.css') ?>">
|
||||||
<link rel="stylesheet" href="<?= site_url('themes/vuexy/css/presupuestoCliente.css') ?>">
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/css/presupuestoCliente.css') ?>">
|
||||||
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/animate-css/animate.css') ?>">
|
||||||
|
<link rel="stylesheet" href="<?= site_url('themes/vuexy/vendor/libs/sweetalert2/sweetalert2.css') ?>">
|
||||||
|
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
@ -302,6 +309,7 @@
|
|||||||
<script src="<?= site_url('themes/vuexy/vendor/libs/autosize/autosize.js') ?>"></script>
|
<script src="<?= site_url('themes/vuexy/vendor/libs/autosize/autosize.js') ?>"></script>
|
||||||
<script src="<?= site_url('themes/vuexy/vendor/libs/two/two.js') ?>"></script>
|
<script src="<?= site_url('themes/vuexy/vendor/libs/two/two.js') ?>"></script>
|
||||||
<script src="<?= site_url('themes/vuexy/vendor/libs/perfect-scrollbar/perfect-scrollbar.js') ?>"></script>
|
<script src="<?= site_url('themes/vuexy/vendor/libs/perfect-scrollbar/perfect-scrollbar.js') ?>"></script>
|
||||||
|
<script src="<?= site_url('themes/vuexy/vendor/libs/sweetalert2/sweetalert2.js') ?>"></script>
|
||||||
|
|
||||||
<script type="module"
|
<script type="module"
|
||||||
src="<?= site_url('assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js') ?>"></script>
|
src="<?= site_url('assets/js/safekat/pages/presupuestoCliente/presupuestoCliente.js') ?>"></script>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
export const alertConfirmationDelete = (title,type="primary") => {
|
export const alertConfirmationDelete = (title,type="primary") => {
|
||||||
return Swal.fire({
|
return Swal.fire({
|
||||||
title: '¿Estás seguro?',
|
title: '¿Está seguro?',
|
||||||
text: "Esta acción es irreversible.",
|
text: "Esta acción es irreversible.",
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
@ -29,3 +29,15 @@ export const alertSuccessMessage = (title,type="primary") => {
|
|||||||
timer : 2000
|
timer : 2000
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const alertWarningMessage = (title,message,type="primary") => {
|
||||||
|
return Swal.fire({
|
||||||
|
title: title,
|
||||||
|
text: message,
|
||||||
|
icon: "warning",
|
||||||
|
customClass: {
|
||||||
|
confirmButton: 'btn btn-primary'
|
||||||
|
},
|
||||||
|
buttonsStyling: false
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -4,6 +4,7 @@ import DisenioCubierta from './disenioCubierta.js';
|
|||||||
import Direcciones from './direcciones.js';
|
import Direcciones from './direcciones.js';
|
||||||
import Resumen from './resumen.js';
|
import Resumen from './resumen.js';
|
||||||
import Ajax from '../../components/ajax.js';
|
import Ajax from '../../components/ajax.js';
|
||||||
|
import { alertWarningMessage } from '../../components/alerts/sweetAlert.js';
|
||||||
|
|
||||||
|
|
||||||
import tarjetaTiradasPrecio from './tarjetaTiradasPrecio.js';
|
import tarjetaTiradasPrecio from './tarjetaTiradasPrecio.js';
|
||||||
@ -290,6 +291,10 @@ class PresupuestoCliente {
|
|||||||
|
|
||||||
if (currentElement !== 'resumen-libro') {
|
if (currentElement !== 'resumen-libro') {
|
||||||
this.#validateCurrentForm(currentElement, nextElement);
|
this.#validateCurrentForm(currentElement, nextElement);
|
||||||
|
if (currentElement === 'cubierta-libro' && this.disenioCubierta.acabadoCubierta.getVal() == 0) {
|
||||||
|
alertWarningMessage(window.translations.cubiertaSinAcabado, window.translations.cubiertaSinAcabadoText);
|
||||||
|
}
|
||||||
|
this.#goToForm(nextElement);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.#goToForm(nextElement);
|
this.#goToForm(nextElement);
|
||||||
@ -487,7 +492,7 @@ class PresupuestoCliente {
|
|||||||
// check if response object has a property named 'id'
|
// check if response object has a property named 'id'
|
||||||
if (response.id) {
|
if (response.id) {
|
||||||
|
|
||||||
const new_location = window.location.href.replace(id, response.id);
|
const new_location = window.location.href.replace(id, response.id);
|
||||||
window.location.href = new_location;
|
window.location.href = new_location;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -496,7 +501,7 @@ class PresupuestoCliente {
|
|||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
console.error('Error al duplicar el presupuesto:', error);
|
console.error('Error al duplicar el presupuesto:', error);
|
||||||
}
|
}
|
||||||
).post();
|
).post();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -650,6 +655,9 @@ class PresupuestoCliente {
|
|||||||
|
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
if (this.disenioCubierta.acabadoCubierta.getVal() == 0) {
|
||||||
|
alertWarningMessage(window.translations.cubiertaSinAcabado, window.translations.cubiertaSinAcabadoText);
|
||||||
|
}
|
||||||
this.disenioCubierta.formValidation.validate();
|
this.disenioCubierta.formValidation.validate();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -666,6 +674,11 @@ class PresupuestoCliente {
|
|||||||
|
|
||||||
#prevtStep() {
|
#prevtStep() {
|
||||||
if (this.validationStepper._currentIndex >= 1 && this.validationStepper._currentIndex <= 4) {
|
if (this.validationStepper._currentIndex >= 1 && this.validationStepper._currentIndex <= 4) {
|
||||||
|
if(this.validationStepper._currentIndex == 2){
|
||||||
|
if (this.disenioCubierta.acabadoCubierta.getVal() == 0) {
|
||||||
|
alertWarningMessage(window.translations.cubiertaSinAcabado, window.translations.cubiertaSinAcabadoText);
|
||||||
|
}
|
||||||
|
}
|
||||||
this.validationStepper.previous();
|
this.validationStepper.previous();
|
||||||
}
|
}
|
||||||
$('html, body').animate({ scrollTop: 0 }, 'slow');
|
$('html, body').animate({ scrollTop: 0 }, 'slow');
|
||||||
|
|||||||
Reference in New Issue
Block a user