pcpuma_unam_operador/components/operador/ManualIdPrestamo.vue

46 lines
899 B
Vue
Raw Normal View History

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() {
return {
idPrestamo: '',
}
},
methods: {
idPrestamoReset() {
this.idPrestamo = ''
},
llamarPrestamoIdPrestamo() {
if (this.idPrestamo)
this.prestamoIdPrestamo(this.idPrestamo, this.idPrestamoReset)
},
},
}
</script>
<style></style>