2022-07-11 20:03:39 +00:00
|
|
|
<template>
|
|
|
|
<div class="column">
|
|
|
|
<b-field label="Número de Prestamo">
|
|
|
|
<b-input
|
|
|
|
type="number"
|
|
|
|
@keyup.enter.native="llamarPrestamoIdPrestamo()"
|
|
|
|
v-model="idPrestamo"
|
|
|
|
/>
|
|
|
|
</b-field>
|
|
|
|
|
|
|
|
<b-field class="has-text-centered">
|
|
|
|
<b-button
|
|
|
|
type="is-info"
|
|
|
|
@click="prestamoIdPrestamo(idPrestamo, idPrestamoReset)"
|
|
|
|
:disabled="!idPrestamo"
|
|
|
|
>
|
|
|
|
Enviar
|
|
|
|
</b-button>
|
|
|
|
</b-field>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
2023-01-09 17:29:31 +00:00
|
|
|
prestamoIdPrestamo: { type: Function, required: true, default: () => {} },
|
2022-07-11 20:03:39 +00:00
|
|
|
},
|
|
|
|
data() {
|
2023-01-10 15:56:32 +00:00
|
|
|
return { idPrestamo: '' }
|
2022-07-11 20:03:39 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
idPrestamoReset() {
|
|
|
|
this.idPrestamo = ''
|
|
|
|
},
|
|
|
|
llamarPrestamoIdPrestamo() {
|
|
|
|
if (this.idPrestamo)
|
|
|
|
this.prestamoIdPrestamo(this.idPrestamo, this.idPrestamoReset)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style></style>
|