From 161922da0934ad2a9e57fb5143a374a8e408453d Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 26 Apr 2024 15:17:03 +0200 Subject: [PATCH] feat: refs #6825 create vnTable and add in CustomerExtendedList --- src/components/common/VnTable.vue | 243 ++++++++ .../ExtendedList/CustomerExtendedList.vue | 121 ++-- .../CustomerExtendedListBackup.vue | 571 ++++++++++++++++++ 3 files changed, 877 insertions(+), 58 deletions(-) create mode 100644 src/components/common/VnTable.vue create mode 100644 src/pages/Customer/ExtendedList/CustomerExtendedListBackup.vue diff --git a/src/components/common/VnTable.vue b/src/components/common/VnTable.vue new file mode 100644 index 000000000..a537c5215 --- /dev/null +++ b/src/components/common/VnTable.vue @@ -0,0 +1,243 @@ + + + diff --git a/src/pages/Customer/ExtendedList/CustomerExtendedList.vue b/src/pages/Customer/ExtendedList/CustomerExtendedList.vue index a24d3211a..789e90834 100644 --- a/src/pages/Customer/ExtendedList/CustomerExtendedList.vue +++ b/src/pages/Customer/ExtendedList/CustomerExtendedList.vue @@ -2,6 +2,8 @@ import { ref, computed, onBeforeMount, onMounted } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; +import VnInput from 'src/components/common/VnInput.vue'; +import VnTable from 'components/common/VnTable.vue'; import { QBtn, QIcon } from 'quasar'; import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; @@ -266,28 +268,30 @@ const tableColumnComponents = { const columns = computed(() => [ { align: 'left', - field: '', - label: '', + field: 'customerStatus', + label: 'customerStatus', name: 'customerStatus', - format: () => ' ', }, { align: 'left', field: 'id', label: t('customer.extendedList.tableVisibleColumns.id'), name: 'id', + isId: true, }, { align: 'left', field: 'name', label: t('customer.extendedList.tableVisibleColumns.name'), name: 'name', + cardVisible: true, }, { align: 'left', field: 'fi', label: t('customer.extendedList.tableVisibleColumns.fi'), name: 'fi', + cardVisible: true, }, { align: 'left', @@ -494,7 +498,7 @@ const selectSalesPersonId = (id) => (selectedSalesPersonId.value = id); /> - + - - + + +