From f97a8a00685fe996fa71fc6225cc1e12a5e2ab15 Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Mon, 29 Nov 2021 00:46:18 -0600 Subject: [PATCH] crear servicio listo --- components/TablaServiciosSociales.vue | 1 + components/admin/InformacionServicio.vue | 20 ++++++- components/responsable/NuevoServicio.vue | 27 +++++---- .../responsable/TablaServiciosSociales.vue | 14 ++--- pages/responsable/index.vue | 58 ++++--------------- pages/responsable/nuevo/index.vue | 6 +- 6 files changed, 56 insertions(+), 70 deletions(-) diff --git a/components/TablaServiciosSociales.vue b/components/TablaServiciosSociales.vue index ad86aad..8f7fa18 100644 --- a/components/TablaServiciosSociales.vue +++ b/components/TablaServiciosSociales.vue @@ -22,6 +22,7 @@ centered > {{ fecha(props.row.createdAt) }} +

{{ alumno.Programa.clavePrograma }}

+ + +

+ + {{ alumno.Programa.acatlan ? 'Si' : 'No' }} + +

+
@@ -55,6 +63,14 @@

{{ alumno.correo }}

+ +

{{ alumno.programaInterno }}

+
+ + +

{{ alumno.profesor }}

+
+

{{ fecha(alumno.createdAt) }}

@@ -72,7 +88,7 @@
-
+ Editar información -
+ diff --git a/components/responsable/NuevoServicio.vue b/components/responsable/NuevoServicio.vue index 90bd81d..4eb85d9 100644 --- a/components/responsable/NuevoServicio.vue +++ b/components/responsable/NuevoServicio.vue @@ -31,7 +31,7 @@ - + -
+ Enviar -
+ @@ -149,9 +154,8 @@ export default { } }, methods: { - reset() { + resetar() { this.correo = '' - this.numeroCuenta = '' this.profesor = '' this.programaInterno = '' this.fechaFin = new Date() @@ -162,8 +166,8 @@ export default { }, mostrarBoton() { if ( - !this.correo || !this.alumno.idUsuario || + !this.correo || !this.programa.idPrograma || (this.programa.acatlan && (!this.profesor || !this.programaInterno)) || !this.file.name @@ -179,11 +183,13 @@ export default { this.responsable.token ) .then((res) => { - this.reset() + this.resetar() this.alumno = res.data this.updateIsLoading(false) }) .catch((err) => { + this.numeroCuenta = '' + this.resetar() this.updateIsLoading(false) this.imprimirError(err.response.data) }) @@ -213,7 +219,8 @@ export default { this.responsable.tokenArchivo ) .then((res) => { - this.reset() + this.numeroCuenta = '' + this.resetar() this.updateIsLoading(false) this.imprimirMensaje(res.data.message) }) diff --git a/components/responsable/TablaServiciosSociales.vue b/components/responsable/TablaServiciosSociales.vue index 542a3d0..ce01aba 100644 --- a/components/responsable/TablaServiciosSociales.vue +++ b/components/responsable/TablaServiciosSociales.vue @@ -1,5 +1,5 @@ diff --git a/pages/responsable/index.vue b/pages/responsable/index.vue index 780be3e..7b80eb1 100644 --- a/pages/responsable/index.vue +++ b/pages/responsable/index.vue @@ -1,33 +1,33 @@