ultimas correcciones
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
<div class="full-h is-flex is-justify-content-center is-align-items-center">
|
||||
<form class="box">
|
||||
<div class="has-text-centered">
|
||||
<p class="title is-3">
|
||||
<h2 class="is-size-4">
|
||||
<strong>Inscripción de servicios de CeDeTec</strong>
|
||||
</p>
|
||||
</h2>
|
||||
|
||||
<p class="title is-3"><strong>periodo 2022-2</strong></p>
|
||||
<h2 class="is-size-4"><strong>periodo 2022-2</strong></h2>
|
||||
</div>
|
||||
|
||||
<b-field label="Número de cuenta" :type="error">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<p class="pb-2"><b>Número de cuenta: </b> {{ numeroCuenta }}</p>
|
||||
|
||||
<b-field label="Ticket" horizontal grouped>
|
||||
<b-input v-model="folioA" :disabled="switchFolio" maxlength="7"></b-input>
|
||||
<b-input v-model="folioA" :disabled="switchFolio" maxlength="6"></b-input>
|
||||
<p class="control">
|
||||
<b-button
|
||||
type="is-primary"
|
||||
@@ -46,7 +46,6 @@
|
||||
|
||||
<div class="has-text-centered pb-2">
|
||||
<b-button
|
||||
:disabled="!habilitarBoton"
|
||||
type="is-success"
|
||||
@click="
|
||||
imprimirWarning(
|
||||
@@ -86,8 +85,6 @@ export default {
|
||||
montoA: '',
|
||||
fechaTicketA: null,
|
||||
maxDate: new Date(),
|
||||
|
||||
habilitarBoton: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -130,7 +127,6 @@ export default {
|
||||
})
|
||||
},
|
||||
bloquearBotones() {
|
||||
this.habilitarBoton = false
|
||||
this.switchFolio = true
|
||||
this.switchMonto = true
|
||||
this.switchFecha = true
|
||||
@@ -143,17 +139,6 @@ export default {
|
||||
)
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
folioA() {
|
||||
this.habilitarBoton = true
|
||||
},
|
||||
montoA() {
|
||||
this.habilitarBoton = true
|
||||
},
|
||||
fechaTicketA() {
|
||||
this.habilitarBoton = true
|
||||
},
|
||||
},
|
||||
created() {
|
||||
;(this.folioA = this.folio),
|
||||
(this.montoA = this.monto),
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="block pt-5" v-if="motivo.motivo">
|
||||
<div class="block pt-5" v-if="motivo">
|
||||
<div class="has-text-centered pb-4">
|
||||
<b-tag type="is-danger" size="is-medium">Ticket declinado</b-tag>
|
||||
</div>
|
||||
<p class="box"><b>Motivo: </b>{{ motivo.motivo }}</p>
|
||||
<p class="box"><b>Motivo: </b>{{ motivo }}</p>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
axios
|
||||
.get(`${process.env.api}/admin/motivo?folio=${this.folio}`, this.token)
|
||||
.then((res) => {
|
||||
this.motivo = res.data
|
||||
this.motivo = res.data.motivo
|
||||
})
|
||||
.catch((err) => {})
|
||||
},
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
<div class="column is-one-third py-5">
|
||||
<figure class="containerImg">
|
||||
<b-image class="zoom" :src="urlTicket" alt="Imagen del ticket">
|
||||
<b-loading :is-full-page="isFullPage" v-model="isLoading">
|
||||
</b-loading>
|
||||
</b-image>
|
||||
</figure>
|
||||
</div>
|
||||
@@ -76,7 +74,6 @@ export default {
|
||||
folio: localStorage.getItem('folio'),
|
||||
monto: localStorage.getItem('monto'),
|
||||
|
||||
isLoading: true,
|
||||
isFullPage: true,
|
||||
urlTicket: '',
|
||||
|
||||
@@ -85,14 +82,15 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
traerTicket() {
|
||||
this.updateIsLoading(true)
|
||||
axios
|
||||
.get(`${process.env.api}/admin/ticket?folio=${this.folio}`)
|
||||
.then((res) => {
|
||||
this.isLoading = false
|
||||
this.updateIsLoading(false)
|
||||
this.urlTicket = res.config.url
|
||||
})
|
||||
.catch((err) => {
|
||||
this.isLoading = false
|
||||
this.updateIsLoading(false)
|
||||
this.imprimirError(err.response.data)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -169,11 +169,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
this.monto &&
|
||||
this.monto <= 20 &&
|
||||
this.inscripcionesUsuario.length > 0
|
||||
)
|
||||
if (this.monto && this.monto < 20 && this.inscripcionesUsuario.length > 0)
|
||||
this.error = true
|
||||
else this.error = false
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
:imprimirWarning="imprimirWarning"
|
||||
:updateIsLoading="updateIsLoading"
|
||||
/>
|
||||
|
||||
<b-loading :is-full-page="true" v-model="isLoading" :can-cancel="false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -17,7 +19,9 @@ export default {
|
||||
Ticket,
|
||||
},
|
||||
data() {
|
||||
return {}
|
||||
return {
|
||||
isLoading: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
updateIsLoading(booleanValue) {
|
||||
|
||||
Reference in New Issue
Block a user