diff --git a/components/admin/servicio/datosPersonales.vue b/components/admin/servicio/datosPersonales.vue new file mode 100644 index 0000000..af8d8b3 --- /dev/null +++ b/components/admin/servicio/datosPersonales.vue @@ -0,0 +1,51 @@ + + + diff --git a/components/admin/servicio/datosPrograma.vue b/components/admin/servicio/datosPrograma.vue new file mode 100644 index 0000000..750f9a5 --- /dev/null +++ b/components/admin/servicio/datosPrograma.vue @@ -0,0 +1,29 @@ + + + mb-4 \ No newline at end of file diff --git a/components/admin/servicio/modificar/form.vue b/components/admin/servicio/modificar/form.vue index f458d4f..5cd99ae 100644 --- a/components/admin/servicio/modificar/form.vue +++ b/components/admin/servicio/modificar/form.vue @@ -58,7 +58,7 @@

Carta de aceptación


- +

Carta de término


- +

Informe global


- + +
+

+ Pre Registro +

+

+ Pre Registro Válidado +

+

+ Registro +

+

+ Pre Término +

+

+ Término +

+

+ Liberación +

+
+ + + diff --git a/components/admin/servicio/tituloStatus.vue b/components/admin/servicio/tituloStatus.vue new file mode 100644 index 0000000..8e4c9c9 --- /dev/null +++ b/components/admin/servicio/tituloStatus.vue @@ -0,0 +1,21 @@ + + + diff --git a/components/admin/servicio/vistaServicio.vue b/components/admin/servicio/vistaServicio.vue index 84f9237..939a6b4 100644 --- a/components/admin/servicio/vistaServicio.vue +++ b/components/admin/servicio/vistaServicio.vue @@ -5,78 +5,17 @@ Regresar -
-

- Pre Registro -

-

- Pre Registro Válidado -

-

- Registro -

-

- Pre Término -

-

- Término -

-

- Liberación -

-
-
-
-

Datos del programa

-
-

- Programa: {{ alumno.Programa.programa }} -

-

- Clave del programa: {{ alumno.Programa.clavePrograma }} -

-

- Dependecia: {{ alumno.Programa.dependencia }} -

-

- Institución: {{ alumno.Programa.institucion }} -

-
-
-
-

Datos personales

-

- Nombre: {{ alumno.Usuario.nombre }} -

-

- Número de cuenta: {{ alumno.Usuario.usuario }} -

-

- Correo: {{ alumno.Carrera.carrera }} -

-

- Correo: {{ alumno.correo }} -

-

- Créditos: {{ alumno.creditos }} -

-

- Fecha de inicio: {{ fecha(alumno.fechaInicio) }} -

-

- Fecha de fin: {{ fecha(alumno.fechaFin) }} -

-

- Teléfono: {{ alumno.telefono }} -

-

- Dirección: {{ alumno.direccion }} -

-

- Fecha de nacimiento: {{ fecha(alumno.fechaNacimiento) }} -

-
+ + + + + + +


-

- Confirmar el pre-registro del alumno -

-

Término

-

- Validar el término del alumno -

+
Ver carta de aceptación @@ -226,32 +159,30 @@ Confirmar
-
- - Regresar - - - Cancelar - -

- - - - - Cancelar servicio - - - Cancelar servicio - -
+ + Regresar + + + Cancelar + +

+ + + + + Cancelar servicio + + + Cancelar servicio + import axios from "axios"; -import moment from "moment"; +import tituloServicio from "./tituloServicio"; +import tituloStatus from "./tituloStatus"; +import datosPrograma from "./datosPrograma"; +import datosPersonales from "./datosPersonales"; + export default { + components: { + tituloServicio, + datosPrograma, + datosPersonales, + tituloStatus, + }, data() { return { alumno: { @@ -317,6 +258,7 @@ export default { .then((res) => { this.isLoading = false; this.alumno = res.data; + this.alumno.creditos = Number(res.data.creditos); if (this.alumno.cartaAceptacion) { this.linkCartaAceptacion = `https://drive.google.com/file/d/${this.alumno.cartaAceptacion}/view?usp=sharing`; } @@ -463,10 +405,6 @@ export default { console.log(err); }); }, - fecha(date) { - const fecha = moment(date.substr(0, 10)); - return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`; - }, confirmarRegistro() { this.isLoading = true; const data = { @@ -527,7 +465,7 @@ export default { }, async created() { await this.obtenerRegistro(); - } + }, }; diff --git a/components/responsable/cartaAceptacion.vue b/components/responsable/cartaAceptacion.vue index 5846a78..a4831dc 100644 --- a/components/responsable/cartaAceptacion.vue +++ b/components/responsable/cartaAceptacion.vue @@ -1,5 +1,5 @@