corregido el problema que no cogia la rotativa al mostrar los papeles

This commit is contained in:
2025-01-20 12:58:42 +01:00
parent f4ef65ab78
commit 398cb23f11

View File

@ -253,7 +253,7 @@
url: '<?= route_to('updateMaquinaPapelOnTarifasChange') ?>', url: '<?= route_to('updateMaquinaPapelOnTarifasChange') ?>',
data: { data: {
maquina_id: id, maquina_id: id,
isRotativa: isRotativa.watch, isRotativa: ()=>{ return $('#isRotativa').prop('checked')?1:0},
isInkjet: $('#isTinta').prop('checked'), isInkjet: $('#isTinta').prop('checked'),
<?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v, <?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v,
}, },
@ -435,11 +435,7 @@
yeniden(json.<?= csrf_token() ?>); yeniden(json.<?= csrf_token() ?>);
if(json.error){ if(json.error){
document.getElementById("check_" + json.data.papel_impresion_id).checked = false; document.getElementById("check_" + json.data.papel_impresion_id).checked = false;
Swal.fire({ popErrorAlert(json.error, 'sk-alert-2');
icon: 'error',
title: '<?= lang('Basic.global.sweet.error_tittle') ?>',
text: json.error,
});
} }
}); });
@ -543,7 +539,7 @@
url: '<?= route_to('dataTableOfMaquinasPapelesImpresion') ?>', url: '<?= route_to('dataTableOfMaquinasPapelesImpresion') ?>',
data: function (d) { data: function (d) {
d.maquina_id = id; d.maquina_id = id;
d.isRotativa = isRotativa.watch; d.isRotativa = $('#isRotativa').prop('checked')?1:0;
d.webguard_token = '<?= csrf_hash() ?>'; d.webguard_token = '<?= csrf_hash() ?>';
}, },
method: 'POST', method: 'POST',