From 37a87fa8e1a54fa3d788f5194e2a9f3734e511b7 Mon Sep 17 00:00:00 2001 From: jtubau Date: Fri, 27 Dec 2024 13:45:01 +0100 Subject: [PATCH 1/7] refactor: refs #8316 used VnSection and VnCardBeta --- src/pages/Customer/Card/CustomerCard.vue | 19 +- src/pages/Customer/CustomerList.vue | 147 ++-- src/pages/Customer/locale/en.yml | 2 + src/pages/Customer/locale/es.yml | 4 +- src/router/modules/customer.js | 882 ++++++++++++----------- 5 files changed, 528 insertions(+), 526 deletions(-) diff --git a/src/pages/Customer/Card/CustomerCard.vue b/src/pages/Customer/Card/CustomerCard.vue index 139917d05..f46884834 100644 --- a/src/pages/Customer/Card/CustomerCard.vue +++ b/src/pages/Customer/Card/CustomerCard.vue @@ -1,25 +1,12 @@ + diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue index fdfd7ff9c..d0f533bb1 100644 --- a/src/pages/Customer/CustomerList.vue +++ b/src/pages/Customer/CustomerList.vue @@ -5,18 +5,19 @@ import { useRouter } from 'vue-router'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { toDate } from 'src/filters'; -import RightMenu from 'src/components/common/RightMenu.vue'; import CustomerSummary from './Card/CustomerSummary.vue'; import CustomerFilter from './CustomerFilter.vue'; import VnTable from 'components/VnTable/VnTable.vue'; import VnLocation from 'src/components/common/VnLocation.vue'; -import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue'; import VnSelectWorker from 'src/components/common/VnSelectWorker.vue'; +import VnSection from 'src/components/common/VnSection.vue'; const { t } = useI18n(); const router = useRouter(); const tableRef = ref(); +const dataKey = 'CustomerList'; + const columns = computed(() => [ { align: 'left', @@ -390,82 +391,86 @@ function handleLocation(data, location) { + diff --git a/src/pages/Customer/Card/CustomerConsumptionFilter.vue b/src/pages/Customer/Card/CustomerConsumptionFilter.vue deleted file mode 100644 index 289b2eb08..000000000 --- a/src/pages/Customer/Card/CustomerConsumptionFilter.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - -en: - params: - item: Item id - buyer: Buyer - type: Type - category: Category - itemId: Item id - buyerId: Buyer - typeId: Type - categoryId: Category - from: From - to: To - campaignId: Campaña - valentinesDay: Valentine's Day - mothersDay: Mother's Day - allSaints: All Saints' Day -es: - params: - item: Id artículo - buyer: Comprador - type: Tipo - category: Categoría - itemId: Id Artículo - buyerId: Comprador - typeId: Tipo - categoryId: Reino - from: Desde - to: Hasta - campaignId: Campaña - valentinesDay: Día de San Valentín - mothersDay: Día de la Madre - allSaints: Día de Todos los Santos - diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue index ea07ef673..f6458fd64 100644 --- a/src/pages/Customer/CustomerList.vue +++ b/src/pages/Customer/CustomerList.vue @@ -406,7 +406,6 @@ function handleLocation(data, location) { :array-data-props="{ url: 'Clients/filter', order: ['id DESC'], - exprBuilder, }" >