From 531371543e2585f64ee9a40397f904c126e297d9 Mon Sep 17 00:00:00 2001 From: jtubau Date: Fri, 27 Dec 2024 14:03:45 +0100 Subject: [PATCH 1/3] refactor: refs #8316 used VnSection and VnCardBeta --- src/pages/InvoiceOut/Card/InvoiceOutCard.vue | 12 +- src/pages/InvoiceOut/InvoiceOutList.vue | 421 ++++++++++--------- src/pages/InvoiceOut/locale/en.yml | 3 + src/pages/InvoiceOut/locale/es.yml | 5 +- src/router/modules/invoiceOut.js | 71 ++-- 5 files changed, 259 insertions(+), 253 deletions(-) diff --git a/src/pages/InvoiceOut/Card/InvoiceOutCard.vue b/src/pages/InvoiceOut/Card/InvoiceOutCard.vue index 17b4216da..93e3fe042 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutCard.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutCard.vue @@ -1,19 +1,11 @@ diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index 89b109c3c..dbd905e35 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -3,7 +3,6 @@ import { ref, computed, watchEffect } from 'vue'; import { useI18n } from 'vue-i18n'; import VnSelect from 'src/components/common/VnSelect.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue'; -import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { usePrintService } from 'src/composables/usePrintService'; @@ -12,12 +11,12 @@ import InvoiceOutSummary from './Card/InvoiceOutSummary.vue'; import { toCurrency, toDate } from 'src/filters/index'; import { QBtn } from 'quasar'; import axios from 'axios'; -import RightMenu from 'src/components/common/RightMenu.vue'; import InvoiceOutFilter from './InvoiceOutFilter.vue'; import VnRow from 'src/components/ui/VnRow.vue'; import VnRadio from 'src/components/common/VnRadio.vue'; import VnInput from 'src/components/common/VnInput.vue'; import CustomerDescriptorProxy from '../Customer/Card/CustomerDescriptorProxy.vue'; +import VnSection from 'src/components/common/VnSection.vue'; const { t } = useI18n(); const { viewSummary } = useSummaryDialog(); @@ -30,6 +29,8 @@ const MODEL = 'InvoiceOuts'; const { openReport } = usePrintService(); const addressOptions = ref([]); const selectedOption = ref('ticket'); +const dataKey = 'InvoiceOutList'; + async function fetchClientAddress(id) { const { data } = await axios.get( `Clients/${id}/addresses?filter[order]=isActive DESC` @@ -37,11 +38,7 @@ async function fetchClientAddress(id) { addressOptions.value = data; } -const exprBuilder = (_, value) => { - return { - or: [{ code: value }, { description: { like: `%${value}%` } }], - }; -}; + const columns = computed(() => [ { @@ -173,220 +170,224 @@ watchEffect(selectedRows);