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 @@ - + - - Carta de aceptación (en formato .PDF. No se aceptan fotos). - + - - - - - - - - - {{ file.name || 'Arrastra aquí tu archivo o da click para buscar' }} - - - Tamaño máximo para el archivo: 20MB - - - - - - Enviar - - - - - + + - +
- -
- {{ file.name || 'Arrastra aquí tu archivo o da click para buscar' }} -
Tamaño máximo para el archivo: 20MB