0
0
Fork 0

fix(ClaimLines): not reload when change quantity

This commit is contained in:
Alex Moreno 2024-09-11 09:21:30 +02:00
parent 7b2545798c
commit e2d3154878
1 changed files with 6 additions and 4 deletions

View File

@ -45,7 +45,7 @@ async function onFetchClaim(data) {
const amount = ref(); const amount = ref();
const amountClaimed = ref(); const amountClaimed = ref();
async function onFetch(rows, newRows) { function onFetch(rows, newRows) {
if (newRows) rows = newRows; if (newRows) rows = newRows;
amount.value = 0; amount.value = 0;
amountClaimed.value = 0; amountClaimed.value = 0;
@ -155,7 +155,7 @@ function showImportDialog() {
async function saveWhenHasChanges() { async function saveWhenHasChanges() {
if (claimLinesForm.value.getChanges().updates) { if (claimLinesForm.value.getChanges().updates) {
await claimLinesForm.value.onSubmit(); await claimLinesForm.value.onSubmit();
await claimLinesForm.value.reload(); onFetch(claimLinesForm.value.formData);
} }
} }
</script> </script>
@ -211,7 +211,7 @@ async function saveWhenHasChanges() {
<template #body-cell-claimed="{ row }"> <template #body-cell-claimed="{ row }">
<QTd auto-width align="right" class="text-primary"> <QTd auto-width align="right" class="text-primary">
<QInput <QInput
v-model="row.quantity" v-model.number="row.quantity"
type="number" type="number"
dense dense
@keyup.enter="saveWhenHasChanges()" @keyup.enter="saveWhenHasChanges()"
@ -266,7 +266,9 @@ async function saveWhenHasChanges() {
<template v-if="column.name === 'claimed'"> <template v-if="column.name === 'claimed'">
<QItemLabel class="text-primary"> <QItemLabel class="text-primary">
<QInput <QInput
v-model="props.row.quantity" v-model.number="
props.row.quantity
"
type="number" type="number"
dense dense
autofocus autofocus