diff --git a/components/admin/servicio/modificar/form.vue b/components/admin/servicio/modificar/form.vue
index 4bbd800..3622604 100644
--- a/components/admin/servicio/modificar/form.vue
+++ b/components/admin/servicio/modificar/form.vue
@@ -9,12 +9,12 @@
+ :placeholder="viejo.correo">
@@ -23,7 +23,7 @@
@@ -31,20 +31,20 @@
-
+
-
+
-
+
Carta de aceptación
@@ -90,8 +90,9 @@
Regresar
- Actualizar Datos
+ Actualizar Datos
Actualizar Datos
+
@@ -127,7 +128,8 @@ export default {
fechaNacimiento: [],
fechaInicio: [],
fechaFin: [],
- minDate1: new Date('2020-01-01')
+ minDate1: new Date('2020-01-01'),
+ isLoading: false
}
},
methods: {
@@ -183,6 +185,23 @@ export default {
regresar () {
localStorage.removeItem('idRegistro')
this.$router.push('/admin/servicio')
+ },
+ actualizar () {
+ this.isLoading = true
+ // const data = {
+ // a: 1
+ // }
+ },
+ actualizarDialog () {
+ this.$buefy.dialog.confirm({
+ title: 'Actualizar datos',
+ message: '¿Seguro(a) que quiere actualizar estos datos?',
+ confirmText: 'Confirmar',
+ cancelText: 'Cancelar',
+ type: 'is-success',
+ hasIcon: true,
+ onConfirm: () => this.actualizar()
+ })
}
},
computed: {
diff --git a/components/admin/servicio/vistaServicio.vue b/components/admin/servicio/vistaServicio.vue
index 59bd244..bf802d5 100644
--- a/components/admin/servicio/vistaServicio.vue
+++ b/components/admin/servicio/vistaServicio.vue
@@ -31,10 +31,10 @@
Datos del programa
-
Programa: {{alumno.Programa.programa}}
-
Clave del programa: {{alumno.Programa.clavePrograma}}
-
Dependecia: {{alumno.Programa.dependencia}}
-
Institución: {{alumno.Programa.institucion}}
+
Programa: {{alumno.Programa.programa}}
+
Clave del programa: {{alumno.Programa.clavePrograma}}
+
Dependecia: {{alumno.Programa.dependencia}}
+
Institución: {{alumno.Programa.institucion}}
@@ -54,45 +54,84 @@
+
+
+
+
+ Cancelar servicio
+
+
+ Cancelar servicio
+
Confirmar el pre-registro del alumno
Termino
Validar el término del alumno
+
+
+
+
+ Cancelar servicio
+
+
+ Cancelar servicio
+
+
+
+
+
+ Cancelar servicio
+
+
+ Cancelar servicio
+
+
+ Visto bueno Acatlán
+
Cuenta con cuestionario de programa resuelto.
Cuenta con cuestionario de alumno resuelto.
-
+
+ Regresar
+
+
Confirmar
Cancelar
-
- Regresar
-
+
-
+
Cancelar servicio
-
+
+ Cancelar servicio
+
+
@@ -109,7 +148,7 @@ export default {
Carrera: {},
Status: {}
},
- idRegistro: 1,
+ idServicio: 1,
token: {
headers: {
token: localStorage.getItem('token')
@@ -123,8 +162,12 @@ export default {
mensaje: '',
mensajeCancel: '',
isLoading: false,
- vistoBueno: false,
- acatlan: false
+ mensajeRech1: '',
+ mensajeRech2: '',
+ mensajeRech3: '',
+ mensajeRechBoolean1: false,
+ mensajeRechBoolean2: false,
+ mensajeRechBoolean3: false
}
},
methods: {
@@ -139,7 +182,7 @@ export default {
obtenerRegistro () {
return axios
.get(
- `${process.env.api}/servicio/admin?idServicio=${this.idRegistro}`//,
+ `${process.env.api}/servicio/admin?idServicio=${this.idServicio}`//,
// this.token
)
.then(res => {
@@ -153,28 +196,159 @@ export default {
console.log(err.response)
})
},
+ cancelarDialog () {
+ this.$buefy.dialog.confirm({
+ title: 'Cancelar sevicio',
+ message: '¿Seguro(a) que quiere cancelar este servicio?',
+ confirmText: 'Cancelar servicio',
+ cancelText: 'No',
+ type: 'is-danger',
+ hasIcon: true,
+ onConfirm: () => this.cancelar()
+ })
+ },
+ confirmarDialog () {
+ this.$buefy.dialog.confirm({
+ title: 'Confimar servicio',
+ message: '¿Seguro(a) que quiere confirmar este servicio?',
+ confirmText: 'Confirmar',
+ cancelText: 'Cancelar',
+ type: 'is-success',
+ hasIcon: true,
+ onConfirm: () => this.confirmar()
+ })
+ },
+ rechazarDialog (num) {
+ const doc = num
+ this.$buefy.dialog.confirm({
+ title: 'Confimar servicio',
+ message: '¿Seguro(a) que quiere rechazar este documento?',
+ confirmText: 'Confirmar',
+ cancelText: 'Cancelar',
+ type: 'is-dnager',
+ hasIcon: true,
+ onConfirm: () => {
+ switch (doc) {
+ case 1: this.rechazarCartaAceptacion()
+ break
+ case 2: this.rechazarCartaTermino()
+ break
+ case 3: this.rechazarInformeGlobal()
+ }
+ }
+ })
+ },
+ rechazarCartaAceptacion () {
+ this.isLoading = true
+ const data = {
+ mensaje: this.mensajeRech1,
+ idRegistro: this.idRegistro
+ }
+ axios
+ .put(`${process.env.api}/servicio/rechazar_aceptacion`, data)
+ .then(res => {
+ this.isLoading = false
+ this.$buefy.dialog.alert('Se ha rechazado el documento')
+ })
+ .catch(err => {
+ this.isLoading = false
+ this.error()
+ console.log(err)
+ })
+ },
+ rechazarCartaTermino () {
+ this.isLoading = true
+ const data = {
+ mensaje: this.mensajeRech2,
+ idRegistro: this.idRegistro
+ }
+ axios
+ .put(`${process.env.api}/servicio/rechazar_termino`, data)
+ .then(res => {
+ this.isLoading = false
+ this.$buefy.dialog.alert('Se ha rechazado el documento')
+ })
+ .catch(err => {
+ this.isLoading = false
+ this.error()
+ console.log(err)
+ })
+ },
+ rechazarInformeGlobal () {
+ this.isLoading = true
+ const data = {
+ mensaje: this.mensajeRech3,
+ idRegistro: this.idRegistro
+ }
+ axios
+ .put(`${process.env.api}/servicio/rechazar_informe`, data)
+ .then(res => {
+ this.isLoading = false
+ this.$buefy.dialog.alert('Se ha rechazado el documento')
+ })
+ .catch(err => {
+ this.isLoading = false
+ this.error()
+ console.log(err)
+ })
+ },
cancelar () {
this.isLoading = true
const data = {
idRegistro: this.idRegistro,
- update: 'cancelar',
mensajeCalce: this.mensajeCancel
}
axios
.put(`${process.env.api}/servicio/cancelar`, data)
.then(res => {
this.isLoading = false
- localStorage.removeItem('idRegistro')
- this.$router.push('/admin')
+ this.$buefy.dialog.alert('El servicio ha sido cancelado con éxito')
+ // localStorage.removeItem('idRegistro')
+ // this.$router.push('/admin')
})
.catch(err => {
this.isLoading = false
+ this.error()
console.log(err)
})
},
fecha (date) {
const fecha = moment(date.substr(0, 10))
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`
+ },
+ confirmar () {
+ this.isLoading = true
+ const data = {
+ idRegistro: this.idRegistro
+ }
+ if (this.alumno.vistoBueno) {
+ data.vistoBueno = this.alumno.vistoBueno
+ }
+ axios
+ .put(`${process.env.api}/servicio/cancelar`, data)
+ .then(res => {
+ this.isLoading = false
+ this.$buefy.dialog.alert('El servicio ha sido aprovado')
+ // localStorage.removeItem('idRegistro')
+ // this.$router.push('/admin')
+ })
+ .catch(e => {
+ this.isLoading = false
+ console.log(e)
+ this.error()
+ })
+ },
+ error () {
+ this.$buefy.dialog.alert({
+ title: 'Error',
+ message: 'Ha ocurrido un error, inténtalo de nuevo más tarde',
+ type: 'is-danger',
+ hasIcon: true,
+ icon: 'times-circle',
+ iconPack: 'fa',
+ ariaRole: 'alertdialog',
+ ariaModal: true
+ })
}
},
async created () {
diff --git a/components/responsable/inputTable.vue b/components/responsable/inputTable.vue
index e9b663a..9077b1b 100644
--- a/components/responsable/inputTable.vue
+++ b/components/responsable/inputTable.vue
@@ -2,7 +2,7 @@
-
+
-
+
-
+
@@ -60,6 +63,8 @@
:data="data"
:loading="loading"
+ hoverable
+ striped
paginated
backend-pagination
:total="total"
@@ -69,33 +74,33 @@
{{ props.row.nombre}}
-
+
{{ props.row.numeroCuenta}}
{{ props.row.carrera}}
-
+
{{ props.row.fechaInicio}}
-
+
{{ props.row.fechaFin}}
{{ props.row.status}}
-
+
-
+
@@ -115,7 +119,7 @@
@@ -131,7 +135,6 @@
diff --git a/pages/admin/programa/infoResponsable/index.vue b/pages/admin/programa/infoResponsable/index.vue
new file mode 100644
index 0000000..78a9411
--- /dev/null
+++ b/pages/admin/programa/infoResponsable/index.vue
@@ -0,0 +1,81 @@
+
+
+
+ Regresar
+
+
Información del responsable
+
Nombre: {{responsable.nombre}}
+
Correo: {{responsable.correo}}
+
Programa:
+
+
+
+
Institución: {{selected.institucion}}
+
Dependencia: {{selected.dependencia}}
+
Clave: {{selected.clave}}
+
+ Regresar
+
+
+ Editar información
+
+
+
+
+