From fd249de706b498fbe643dfd50335dd0d7f5b1651 Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Sun, 6 Mar 2022 14:56:15 -0600 Subject: [PATCH] =?UTF-8?q?pasamos=20de=20folio=20a=20ticket=20y=20correcc?= =?UTF-8?q?i=C3=B3n=20del=20monto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/admin/tableTickets.vue | 31 +++++++++------------------- components/registro/CapturaDatos.vue | 5 +++-- pages/admin/index.vue | 12 +---------- 3 files changed, 14 insertions(+), 34 deletions(-) diff --git a/components/admin/tableTickets.vue b/components/admin/tableTickets.vue index dfb2a8b..19e0947 100644 --- a/components/admin/tableTickets.vue +++ b/components/admin/tableTickets.vue @@ -47,23 +47,11 @@ {{ props.row.monto }} - - - {{ props.row.confirmacion }} - - - - - {{ props.row.monto }} - - - Ver ticket @@ -75,6 +63,9 @@ import axios from 'axios' export default { + props: { + updateIsLoading: { type: Function, require: true }, + }, data() { return { token: '', @@ -89,21 +80,19 @@ export default { } }, methods: { - types(value) { - return value === true ? 'is-success' : 'is-danger' - }, todasInscripciones() { + this.updateIsLoading(true) axios .get( `${process.env.api}/admin/todas_inscripciones?validacion=${this.validacion}&numeroCuenta=${this.numeroCuenta}`, this.token ) .then((res) => { + this.updateIsLoading(false) this.inscripciones = res.data }) .catch((err) => { - console.log(err) - // this.imprimirError(err.response.data) + this.updateIsLoading(false) }) }, verTicket(value) { diff --git a/components/registro/CapturaDatos.vue b/components/registro/CapturaDatos.vue index 577b251..b3cde6a 100644 --- a/components/registro/CapturaDatos.vue +++ b/components/registro/CapturaDatos.vue @@ -32,8 +32,8 @@
- - + + @@ -163,6 +163,7 @@ export default { if (this.error === false) { formData.append('idUsuario', this.datosUsuario.idUsuario) formData.append('folio', this.folio) + if (this.monto === '') this.monto = 0 formData.append('monto', this.monto) formData.append('idArea', this.idArea) formData.append('fechaTicket', this.fechaTicket) diff --git a/pages/admin/index.vue b/pages/admin/index.vue index b7169c0..ac97def 100644 --- a/pages/admin/index.vue +++ b/pages/admin/index.vue @@ -2,7 +2,7 @@
- + @@ -11,14 +11,6 @@

- - -

- Selecciona el periodo para generar un archivo CSV y alimnetar la base - del AT. -

- -
@@ -26,14 +18,12 @@