diff --git a/components/admin/servicio/documento.vue b/components/admin/servicio/documento.vue
new file mode 100644
index 0000000..85d1187
--- /dev/null
+++ b/components/admin/servicio/documento.vue
@@ -0,0 +1,152 @@
+
+
+
{{ title }}
+
+
+ Ver
+
+
+
+ Rechazar
+
+
+
+
+
+ Rechazar documento
+
+
+ Rechazar documento
+
+
+
+
+
+
diff --git a/components/admin/servicio/vistaServicio.vue b/components/admin/servicio/vistaServicio.vue
index f6a8bcf..05d97ed 100644
--- a/components/admin/servicio/vistaServicio.vue
+++ b/components/admin/servicio/vistaServicio.vue
@@ -5,17 +5,9 @@
Regresar
-
-
-
-
-
-
Ver carta de aceptación
-
-
- Ver
-
-
-
- Rechazar
-
+
+
-
-
-
-
- Rechazar documento
-
-
- Rechazar documento
-
-
-
Ver carta de término
-
-
- Ver
-
-
-
- Rechazar
-
+
+
-
-
-
-
- Rechazar documento
-
-
- Rechazar documento
-
-
Ver informe global de actividades
-
-
- Ver
-
-
-
- Rechazar
-
+
-
-
-
-
- Rechazar documento
-
-
- Rechazar documento
-
@@ -198,6 +119,7 @@ import tituloServicio from "./tituloServicio";
import tituloStatus from "./tituloStatus";
import datosPrograma from "./datosPrograma";
import datosPersonales from "./datosPersonales";
+import documento from './documento'
export default {
components: {
@@ -205,6 +127,7 @@ export default {
datosPrograma,
datosPersonales,
tituloStatus,
+ documento
},
data() {
return {
@@ -228,12 +151,6 @@ export default {
mensaje: "",
mensajeCancel: "",
isLoading: false,
- mensajeRech1: "",
- mensajeRech2: "",
- mensajeRech3: "",
- mensajeRechBoolean1: false,
- mensajeRechBoolean2: false,
- mensajeRechBoolean3: false,
};
},
methods: {
@@ -305,86 +222,6 @@ export default {
},
});
},
- 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,
- idServicio: this.idServicio,
- };
- axios
- .put(`${process.env.api}/servicio/rechazar_aceptacion`, data)
- .then((res) => {
- this.isLoading = false;
- this.$buefy.dialog.alert("Se ha rechazado el documento");
- this.$router.push("./");
- })
- .catch((err) => {
- this.isLoading = false;
- this.error();
- console.log(err);
- });
- },
- rechazarCartaTermino() {
- this.isLoading = true;
- const data = {
- mensaje: this.mensajeRech2,
- idServicio: this.idServicio,
- };
- axios
- .put(`${process.env.api}/servicio/rechazar_termino`, data)
- .then((res) => {
- this.isLoading = false;
- this.$buefy.dialog.alert("Se ha rechazado el documento");
- this.$router.push("./");
- })
- .catch((err) => {
- this.isLoading = false;
- this.error();
- console.log(err);
- });
- },
- rechazarInformeGlobal() {
- this.isLoading = true;
- const data = {
- mensaje: this.mensajeRech3,
- idServicio: this.idServicio,
- };
- axios
- .put(`${process.env.api}/servicio/rechazar_informe`, data)
- .then((res) => {
- this.isLoading = false;
- this.$buefy.dialog.alert("Se ha rechazado el documento");
- this.$router.push("./");
- })
- .catch((err) => {
- this.isLoading = false;
- this.error();
- console.log(err);
- });
- },
cancelar() {
this.isLoading = true;
const data = {
@@ -466,8 +303,7 @@ export default {
async created() {
await this.obtenerRegistro();
},
- beforeCreate() {
- }
+ beforeCreate() {},
};