feat(SupplierList): refs #8718 add province filter column to supplier list
This commit is contained in:
parent
849d1b889a
commit
5e087d9e3a
|
@ -120,6 +120,21 @@ const columns = computed(() => [
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const filterColumns = computed(() => {
|
||||||
|
const copy = [...columns.value];
|
||||||
|
copy.splice(copy.length - 1, 0, {
|
||||||
|
align: 'left',
|
||||||
|
label: t('globals.params.provinceFk'),
|
||||||
|
name: 'provinceFk',
|
||||||
|
options: provincesOptions.value,
|
||||||
|
columnFilter: {
|
||||||
|
component: 'select',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
return copy;
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FetchData
|
<FetchData
|
||||||
|
@ -130,7 +145,7 @@ const columns = computed(() => [
|
||||||
/>
|
/>
|
||||||
<VnSection
|
<VnSection
|
||||||
:data-key="dataKey"
|
:data-key="dataKey"
|
||||||
:columns="columns"
|
:columns="filterColumns"
|
||||||
prefix="supplier"
|
prefix="supplier"
|
||||||
:array-data-props="{
|
:array-data-props="{
|
||||||
url: 'Suppliers/filter',
|
url: 'Suppliers/filter',
|
||||||
|
@ -165,17 +180,6 @@ const columns = computed(() => [
|
||||||
</template>
|
</template>
|
||||||
</VnTable>
|
</VnTable>
|
||||||
</template>
|
</template>
|
||||||
<template #moreFilterPanel="{ params, searchFn }">
|
|
||||||
<VnSelect
|
|
||||||
:label="t('globals.params.provinceFk')"
|
|
||||||
v-model="params.provinceFk"
|
|
||||||
@update:model-value="searchFn()"
|
|
||||||
:options="provincesOptions"
|
|
||||||
filled
|
|
||||||
dense
|
|
||||||
class="q-px-sm q-pr-lg"
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
</VnSection>
|
</VnSection>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue