Commit 617b728c by Billy Larru

[EDIT registro_periodo_cierre, quitando boton confirmar, mostrando descripcion…

[EDIT registro_periodo_cierre, quitando boton confirmar, mostrando descripcion detallada de la sede a abrir/cerrar periodo]
parent d93f000d
......@@ -196,6 +196,7 @@ const mostrarModalVerDetalle = (data) => {
title: '<strong>Detalle</strong>',
html: response.data,
showCloseButton: true,
showConfirmButton: false,
focusConfirm: false,
confirmButtonText: '<i class="icon-checkmark2"></i> OK',
width: '30%',
......@@ -240,7 +241,7 @@ const mostrarModalVerDetalle = (data) => {
data: null,
className: 'text-center',
render: (data) => {
let abrirPeriodo = "", cerrarPeriodo
let abrirPeriodo = "", cerrarPeriodo = ""
let acciones
if (data.estado === 1) {
cerrarPeriodo = `<span style="cursor: pointer"><i class="cierre-periodo-sede icon-lock2 text-danger-700"></i>&nbsp;&nbsp;</span>`;
......@@ -292,12 +293,12 @@ const mostrarModalCierrePeriodoSede = (data, jsonPrimerDatatable) => {
if (estado) {
titulo = `Cerrar el periodo «${data.mescierre_descripcion}»?`;
titulo = `Cerrar el periodo «${data.mescierre_descripcion}» a la sede «${data.sede_descripcion}»?`;
textoConfirmacion = 'Sí!';
tituloOperacion = '¡Periodo cerrado exitosamente!';
estado = 0;
} else {
titulo = `Abrir el periodo «${data.mescierre_descripcion}»?`;
titulo = `Abrir el periodo «${data.mescierre_descripcion}» a la sede «${data.sede_descripcion}»?`;
textoConfirmacion = 'Sí!';
tituloOperacion = '¡Periodo abierto exitosamente!';
estado = 1;
......@@ -321,7 +322,6 @@ const mostrarModalCierrePeriodoSede = (data, jsonPrimerDatatable) => {
showConfirmButton: false,
timer: 1500
});
// listarPeriodosCierre()
}
debugger
mostrarModalVerDetalle(jsonPrimerDatatable)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment