multiple correccion de bugs
This commit is contained in:
@@ -57,14 +57,12 @@
|
||||
|
||||
<b-button
|
||||
type="is-success"
|
||||
v-if="
|
||||
!props.row.folio &&
|
||||
!props.row.monto &&
|
||||
!props.row.fechaTicket &&
|
||||
props.row.validacion != 1
|
||||
"
|
||||
v-if="!props.row.folio && !props.row.monto && !props.row.fechaTicket"
|
||||
@click="
|
||||
cuenta(props.row.Usuario.numeroCuenta),
|
||||
usuario(
|
||||
props.row.Usuario.numeroCuenta,
|
||||
props.row.Usuario.idUsuario
|
||||
),
|
||||
imprimirWarning(
|
||||
'¿Estas seguro de querer validar esta inscripción ?',
|
||||
validarSinTicket
|
||||
@@ -93,7 +91,7 @@ export default {
|
||||
currentPage: 1,
|
||||
perPage: 5,
|
||||
|
||||
noCuenta: '',
|
||||
data: {},
|
||||
validacion: '2',
|
||||
numeroCuenta: '',
|
||||
}
|
||||
@@ -109,7 +107,6 @@ export default {
|
||||
.then((res) => {
|
||||
this.updateIsLoading(false)
|
||||
this.inscripciones = res.data
|
||||
console.log(this.inscripciones)
|
||||
})
|
||||
.catch((err) => {
|
||||
this.updateIsLoading(false)
|
||||
@@ -126,13 +123,13 @@ export default {
|
||||
})
|
||||
},
|
||||
validarSinTicket() {
|
||||
const data = {
|
||||
numeroCuenta: this.noCuenta,
|
||||
}
|
||||
|
||||
this.updateIsLoading(true)
|
||||
axios
|
||||
.put(`${process.env.api}/admin/validar_sin_ticket`, data, this.token)
|
||||
.put(
|
||||
`${process.env.api}/admin/validar_sin_ticket`,
|
||||
this.data,
|
||||
this.token
|
||||
)
|
||||
.then((res) => {
|
||||
this.imprimirMensaje(res.data.message)
|
||||
this.updateIsLoading(false)
|
||||
@@ -142,8 +139,9 @@ export default {
|
||||
this.updateIsLoading(false)
|
||||
})
|
||||
},
|
||||
cuenta(value) {
|
||||
this.noCuenta = value
|
||||
usuario(noCuenta, usuario) {
|
||||
this.data.numeroCuenta = noCuenta
|
||||
this.data.idUsuario = usuario
|
||||
},
|
||||
|
||||
imprimirError(err = {}, title = '¡Hubo un error!', onConfirm = () => {}) {
|
||||
|
||||
Reference in New Issue
Block a user