From 10747d7a4ff49d7057e3d49425e5075871dc2958 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 27 Aug 2024 07:00:28 +0200 Subject: [PATCH] perf: customerSummaryTable --- src/components/VnTable/VnTable.vue | 16 +- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 2 + src/pages/Customer/Card/CustomerSummary.vue | 32 ++- .../components/CustomerSummaryTable.vue | 249 ++++++++---------- .../CustomerSummaryTableActions.vue | 52 ---- 6 files changed, 139 insertions(+), 213 deletions(-) delete mode 100644 src/pages/Customer/components/CustomerSummaryTableActions.vue diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 6c77d44df..1708f9b6c 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -65,6 +65,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + disableInfiniteScroll: { + type: Boolean, + default: false, + }, hasSubToolbar: { type: Boolean, default: true, @@ -335,11 +339,13 @@ defineExpose({
+ > + { :url="`#/customer/${entityId}/fiscal-data`" :text="t('customer.summary.fiscalData')" /> - + { :label="t('customer.summary.isActive')" :value="entity.isActive" /> - - + { :label="t('customer.summary.hasToInvoice')" :value="entity.hasToInvoice" /> - - + { /> - + { :value="toCurrency(entity?.mana?.mana)" /> @@ -236,7 +243,6 @@ const creditWarning = computed(() => { :value="toCurrency(entity?.averageInvoiced?.invoiced)" /> @@ -262,12 +268,10 @@ const creditWarning = computed(() => { /> - { :value="entity.recommendedCredit" /> - + diff --git a/src/pages/Customer/components/CustomerSummaryTable.vue b/src/pages/Customer/components/CustomerSummaryTable.vue index c25870fd8..da310934d 100644 --- a/src/pages/Customer/components/CustomerSummaryTable.vue +++ b/src/pages/Customer/components/CustomerSummaryTable.vue @@ -1,22 +1,25 @@ diff --git a/src/pages/Customer/components/CustomerSummaryTableActions.vue b/src/pages/Customer/components/CustomerSummaryTableActions.vue deleted file mode 100644 index 154a37d22..000000000 --- a/src/pages/Customer/components/CustomerSummaryTableActions.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -es: - Go to lines: Ir a lineas - Preview: Vista previa -