From de98b7a1b3fd7650bc452619a1cc75efb162b085 Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Sat, 27 Nov 2021 12:55:07 -0600 Subject: [PATCH] =?UTF-8?q?carta=20aceptaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/TablaServiciosSociales.vue | 15 +- pages/responsable/carta_aceptacion/index.vue | 262 ++++++------------- 2 files changed, 81 insertions(+), 196 deletions(-) diff --git a/components/TablaServiciosSociales.vue b/components/TablaServiciosSociales.vue index 81625e2..00ee91b 100644 --- a/components/TablaServiciosSociales.vue +++ b/components/TablaServiciosSociales.vue @@ -204,13 +204,9 @@ export default { }, methods: { fecha(date) { - if (date) { - const fecha = moment(date) + const fecha = moment(date) - return `${fecha.date() < 10 ? '0' + fecha.date() : fecha.date()}/${ - fecha.month() < 9 ? '0' + (fecha.month() + 1) : fecha.month() + 1 - }/${fecha.year()}` - } + if (date) return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}` return '' }, types(idStatus) { @@ -255,8 +251,7 @@ export default { return style }, addPointer() { - if (this.idTipoUsuario === 1) return 'pointer' - return '' + return this.idTipoUsuario === 1 ? 'pointer' : '' }, responsableUpdate(servicio, path) { /*pendiente*/ @@ -272,9 +267,9 @@ export default { watch: { servicioSelected() { if (this.idTipoUsuario === 1) { - if (this.path === '/admin/servicio') + if (this.servicioSelected.idServicio) localStorage.setItem('idServicio', this.servicioSelected.idServicio) - if (this.path === '/admin/casos_especiales/caso_especial') + if (this.servicioSelected.idCasoEspecial) localStorage.setItem( 'idCasoEspecial', this.servicioSelected.idCasoEspecial diff --git a/pages/responsable/carta_aceptacion/index.vue b/pages/responsable/carta_aceptacion/index.vue index 0d700ef..eccd4a2 100644 --- a/pages/responsable/carta_aceptacion/index.vue +++ b/pages/responsable/carta_aceptacion/index.vue @@ -1,231 +1,121 @@ - +