diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue
index 31486091b..6eba9730e 100644
--- a/src/components/VnTable/VnTable.vue
+++ b/src/components/VnTable/VnTable.vue
@@ -288,7 +288,7 @@ defineExpose({
-
+
{
- try {
- const paramKey = col.columnFilter?.filterParamKey || col.field;
- params[paramKey] = col.columnFilter.filterValue;
- await paginateRef.value.addFilter(null, params);
- } catch (err) {
- console.error('Error applying column filter', err);
- }
-};
-
const columns = computed(() => [
{
label: t('salesClientsTable.date'),
- name: 'date',
+ name: 'dated',
field: 'dated',
align: 'left',
columnFilter: null,
sortable: true,
- format: (val) => toDateFormat(val),
+ format: (row) => toDateFormat(row.dated),
},
{
label: t('salesClientsTable.hour'),
@@ -89,19 +75,9 @@ const columns = computed(() => [
field: 'salesPerson',
align: 'left',
sortable: true,
- columnFilter: {
- component: VnSelect,
- filterParamKey: 'salesPersonFk',
- type: 'select',
- filterValue: null,
- attrs: {
- options: workersActiveOptions.value,
- 'option-value': 'id',
- 'option-label': 'name',
- dense: true,
- },
+ columnField: {
+ component: null,
},
- format: (val) => dashIfEmpty(val),
},
{
label: t('salesClientsTable.client'),
@@ -109,19 +85,9 @@ const columns = computed(() => [
name: 'client',
align: 'left',
sortable: true,
- columnFilter: {
- component: VnSelect,
- filterParamKey: 'clientFk',
- type: 'select',
- filterValue: null,
- attrs: {
- options: clientsOptions.value,
- 'option-value': 'id',
- 'option-label': 'name',
- dense: true,
- },
+ columnField: {
+ component: null,
},
- format: (val) => dashIfEmpty(val),
},
]);
@@ -147,7 +113,7 @@ const columns = computed(() => [
@on-fetch="(data) => (clientsOptions = data)"
/>
- [
:filter="filter"
:offset="50"
auto-load
+ :columns="columns"
+ :right-search="false"
+ default-mode="table"
+ dense
+ :without-header="true"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ row.salesPerson }}
-
-
-
-
-
- {{ row.clientName }}
-
-
-
-
+
+
+ {{ row.salesPerson }}
+
+
-
+
+
+ {{ row.clientName }}
+
+
+
+