diff --git a/src/pages/Customer/Defaulter/CustomerDefaulter.vue b/src/pages/Customer/Defaulter/CustomerDefaulter.vue index 3daf7ee54..1af5b3fd9 100644 --- a/src/pages/Customer/Defaulter/CustomerDefaulter.vue +++ b/src/pages/Customer/Defaulter/CustomerDefaulter.vue @@ -6,8 +6,7 @@ import { QBtn, QCheckbox, useQuasar } from 'quasar'; import { useStateStore } from 'stores/useStateStore'; import { toCurrency, toDate } from 'filters/index'; - -import FetchData from 'components/FetchData.vue'; +import VnPaginate from 'src/components/ui/VnPaginate.vue'; import CustomerNotificationsFilter from './CustomerDefaulterFilter.vue'; import CustomerBalanceDueTotal from './CustomerBalanceDueTotal.vue'; import CustomerDescriptorProxy from 'src/pages/Customer/Card/CustomerDescriptorProxy.vue'; @@ -16,6 +15,7 @@ import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import VnInput from 'src/components/common/VnInput.vue'; import CustomerDefaulterAddObservation from './CustomerDefaulterAddObservation.vue'; const stateStore = useStateStore(); +const refreshKey = ref(0); const { t } = useI18n(); const quasar = useQuasar(); @@ -23,7 +23,6 @@ const dataRef = ref(null); const balanceDueTotal = ref(0); const selected = ref([]); -const rows = ref([]); const tableColumnComponents = { client: { @@ -171,7 +170,6 @@ const columns = computed(() => [ ]); const setRows = (data) => { - rows.value = data; balanceDueTotal.value = data.reduce((accumulator, currentValue) => { return accumulator + (currentValue['amount'] || 0); }, 0); @@ -217,13 +215,6 @@ const onFetch = (data) => { - @@ -248,63 +239,95 @@ const onFetch = (data) => { - - +