V-2.8-cartasCuestionario
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div v-if="idServicio != null && cartaAceptacion != null" class="container">
|
||||
<h3 class="title is-4 mt-6">
|
||||
Carta de aceptación (en formato .PDF. No se aceptan fotos).
|
||||
</h3>
|
||||
@@ -43,6 +43,7 @@ export default {
|
||||
isFullPage: true,
|
||||
file: "",
|
||||
idServicio: "",
|
||||
cartaAceptacion: "",
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -105,10 +106,17 @@ export default {
|
||||
})
|
||||
.finally(() => {
|
||||
this.$router.push("/responsable");
|
||||
localStorage.removeItem("idServicio");
|
||||
localStorage.removeItem("cartaAceptacion");
|
||||
});
|
||||
},
|
||||
getIdLocal() {
|
||||
this.idServicio = localStorage.getItem("idServicio");
|
||||
this.cartaAceptacion = localStorage.getItem("cartaAceptacion");
|
||||
|
||||
if (this.idServicio === null || this.cartaAceptacion === null) {
|
||||
this.$router.push("/responsable");
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div v-if="idServicio != null && cartaTermino != null" class="container">
|
||||
<h3 class="title is-4 mt-6">
|
||||
Carta de termino (en formato .PDF. No se aceptan fotos).
|
||||
</h3>
|
||||
@@ -49,6 +49,7 @@ export default {
|
||||
isFullPage: true,
|
||||
file: [],
|
||||
idServicio: "",
|
||||
cartaTermino: "",
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -112,10 +113,17 @@ export default {
|
||||
})
|
||||
.finally(() => {
|
||||
this.$router.push("/responsable");
|
||||
localStorage.removeItem("idServicio");
|
||||
localStorage.removeItem("cartaTermino");
|
||||
});
|
||||
},
|
||||
getIdLocal() {
|
||||
this.idServicio = localStorage.getItem("idServicio");
|
||||
this.cartaTermino = localStorage.getItem("cartaTermino");
|
||||
|
||||
if (this.idServicio === null || this.cartaTermino === null) {
|
||||
this.$router.push("/responsable");
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div v-if="this.idServicio && this.cuestionario" class="container">
|
||||
<div class="section">
|
||||
<h1 class="title is-3">
|
||||
Estimad(a) responsable de programa de servicio social:
|
||||
@@ -181,6 +181,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
idServicio: "",
|
||||
cuestionario: "",
|
||||
actividades: {
|
||||
actividad1: "",
|
||||
actividad2: "",
|
||||
@@ -203,6 +205,17 @@ export default {
|
||||
imprime() {
|
||||
console.log(this.actividad1);
|
||||
},
|
||||
getIdLocal() {
|
||||
this.idServicio = localStorage.getItem("idServicio");
|
||||
this.cuestionario = localStorage.getItem("cuestionario");
|
||||
|
||||
if (this.idServicio === null || this.cuestionario === null) {
|
||||
this.$router.push("/responsable");
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getIdLocal();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<span
|
||||
class="cursorR"
|
||||
v-if="props.row.idStatus == 7"
|
||||
@click="cartaAceptacion(props.row.idServicio)"
|
||||
@click="cartaAceptacion(props.row.idServicio, props.row.idStatus)"
|
||||
>{{ props.row.nombre }}</span
|
||||
>
|
||||
<span v-else>{{ props.row.nombre }}</span>
|
||||
@@ -83,7 +83,7 @@
|
||||
<span
|
||||
class="cursorR"
|
||||
v-if="props.row.idStatus == 7"
|
||||
@click="cartaAceptacion(props.row.idServicio)"
|
||||
@click="cartaAceptacion(props.row.idServicio, props.row.idStatus)"
|
||||
>{{ props.row.numeroCuenta }}</span
|
||||
>
|
||||
<span v-else>{{ props.row.numeroCuenta }}</span>
|
||||
@@ -97,7 +97,7 @@
|
||||
<span
|
||||
class="cursorR"
|
||||
v-if="props.row.idStatus == 7"
|
||||
@click="cartaAceptacion(props.row.idServicio)"
|
||||
@click="cartaAceptacion(props.row.idServicio, props.row.idStatus)"
|
||||
>{{ props.row.carrera }}</span
|
||||
>
|
||||
<span v-else>{{ props.row.carrera }}</span>
|
||||
@@ -113,7 +113,7 @@
|
||||
<span
|
||||
class="cursorR"
|
||||
v-if="props.row.idStatus == 7"
|
||||
@click="cartaAceptacion(props.row.idServicio)"
|
||||
@click="cartaAceptacion(props.row.idServicio, props.row.idStatus)"
|
||||
>{{ fecha(props.row.fechaInicio) }}</span
|
||||
>
|
||||
<span v-else>{{ fecha(props.row.fechaInicio) }}</span>
|
||||
@@ -128,7 +128,7 @@
|
||||
<span
|
||||
class="cursorR"
|
||||
v-if="props.row.idStatus == 7"
|
||||
@click="cartaAceptacion(props.row.idServicio)"
|
||||
@click="cartaAceptacion(props.row.idServicio, props.row.idStatus)"
|
||||
>{{ fecha(props.row.fechaFin) }}</span
|
||||
>
|
||||
<span v-else>{{ fecha(props.row.fechaFin) }}</span>
|
||||
@@ -138,8 +138,8 @@
|
||||
<span
|
||||
v-if="props.row.idStatus == 7"
|
||||
class="cursorR tag"
|
||||
:class="type(props.row.idStatus)"
|
||||
@click="cartaAceptacion(props.row.idServicio)"
|
||||
:class="types(props.row.idStatus)"
|
||||
@click="cartaAceptacion(props.row.idServicio, props.row.idStatus)"
|
||||
>{{ props.row.status }}</span
|
||||
>
|
||||
<span v-else class="tag" :class="types(props.row.idStatus)">{{
|
||||
@@ -156,7 +156,7 @@
|
||||
>
|
||||
<div
|
||||
v-if="
|
||||
(props.row.idStatus >= 4 && props.row.idStatus <= 7) ||
|
||||
(props.row.idStatus >= 4 && props.row.idStatus < 7) ||
|
||||
props.row.idStatus == 9
|
||||
"
|
||||
>
|
||||
@@ -190,7 +190,7 @@
|
||||
>
|
||||
<div
|
||||
v-if="
|
||||
(props.row.idStatus >= 4 && props.row.idStatus <= 7) ||
|
||||
(props.row.idStatus >= 4 && props.row.idStatus < 7) ||
|
||||
props.row.idStatus == 9
|
||||
"
|
||||
>
|
||||
@@ -272,6 +272,7 @@ export default {
|
||||
},
|
||||
botonCarta(cartaTermino, idServicio) {
|
||||
window.localStorage.setItem("idServicio", idServicio);
|
||||
window.localStorage.setItem("cartaTermino", cartaTermino);
|
||||
this.$router.push("/responsable/carta_termino");
|
||||
if (cartaTermino === 1) {
|
||||
return "is-success";
|
||||
@@ -281,6 +282,7 @@ export default {
|
||||
},
|
||||
botonCuestionario(cuestionario, idServicio) {
|
||||
window.localStorage.setItem("idServicio", idServicio);
|
||||
window.localStorage.setItem("cuestionario", cuestionario);
|
||||
this.$router.push("/responsable/cuestionario");
|
||||
if (cuestionario === 1) {
|
||||
return "is-success";
|
||||
@@ -304,7 +306,7 @@ export default {
|
||||
},
|
||||
fecha(date) {
|
||||
const fecha = moment(date.substr(0, 10));
|
||||
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`;
|
||||
return `${fecha.year()}/${fecha.month() + 1}/${fecha.date()}`;
|
||||
},
|
||||
obtenerDatos(idStatus) {
|
||||
this.loading = true;
|
||||
@@ -348,8 +350,9 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
cartaAceptacion(idServicio) {
|
||||
cartaAceptacion(idServicio, idStatus) {
|
||||
window.localStorage.setItem("idServicio", idServicio);
|
||||
window.localStorage.setItem("cartaAceptacion", idStatus);
|
||||
this.$router.push("/responsable/carta_aceptacion");
|
||||
},
|
||||
insertIdLocal() {
|
||||
|
||||
Reference in New Issue
Block a user