Public Invoice View fix

This commit is contained in:
Martin Chevignard
2024-10-15 17:55:56 +02:00
parent 168b741936
commit 59b43fa258
5 changed files with 37 additions and 43 deletions

View File

@@ -174,6 +174,7 @@
:data="fetchData"
:columns="estimateColumns"
:placeholder-count="estimateStore.totalEstimateCount >= 20 ? 10 : 5"
:key="tableKey"
class="mt-10"
>
<template #header>
@@ -256,6 +257,7 @@ const dialogStore = useDialogStore()
const userStore = useUserStore()
const tableComponent = ref(null)
const tableKey = ref(0)
const { t } = useI18n()
const showFilters = ref(false)
const status = ref([
@@ -408,6 +410,8 @@ function setFilters() {
state.selectAllField = false
})
tableKey.value += 1
refreshTable()
}

View File

@@ -172,6 +172,7 @@
:data="fetchData"
:columns="invoiceColumns"
:placeholder-count="invoiceStore.invoiceTotalCount >= 20 ? 10 : 5"
:key="tableKey"
class="mt-10"
>
<!-- Select All Checkbox -->
@@ -288,6 +289,7 @@ const { t } = useI18n()
// Local State
const utils = inject('$utils')
const table = ref(null)
const tableKey = ref(0)
const showFilters = ref(false)
const status = ref([
@@ -416,9 +418,12 @@ async function fetchData({ page, filter, sort }) {
page,
}
console.log(data)
isRequestOngoing.value = true
let response = await invoiceStore.fetchInvoices(data)
console.log('API response:', response.data.data)
isRequestOngoing.value = false
@@ -464,6 +469,8 @@ function setFilters() {
state.selectAllField = false
})
tableKey.value += 1
refreshTable()
}