forked from verdnatura/salix-front
refs #6898 fix
This commit is contained in:
parent
8d59fc95e7
commit
2e56100623
|
@ -285,7 +285,9 @@ defineExpose({
|
||||||
<template #body>
|
<template #body>
|
||||||
<div
|
<div
|
||||||
class="row no-wrap flex-center"
|
class="row no-wrap flex-center"
|
||||||
v-for="col of splittedColumns.columns"
|
v-for="col of splittedColumns.columns.filter(
|
||||||
|
(c) => c.columnFilter ?? true
|
||||||
|
)"
|
||||||
:key="col.id"
|
:key="col.id"
|
||||||
>
|
>
|
||||||
<VnTableFilter
|
<VnTableFilter
|
||||||
|
|
|
@ -152,7 +152,7 @@ function getUrl(section) {
|
||||||
/>
|
/>
|
||||||
<VnLv
|
<VnLv
|
||||||
:label="t('supplier.summary.country')"
|
:label="t('supplier.summary.country')"
|
||||||
:value="supplier.country?.country"
|
:value="supplier.country?.name"
|
||||||
dash
|
dash
|
||||||
/>
|
/>
|
||||||
</QCard>
|
</QCard>
|
||||||
|
|
|
@ -3,8 +3,6 @@ import { computed, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
import VnSearchbar from 'components/ui/VnSearchbar.vue';
|
import VnSearchbar from 'components/ui/VnSearchbar.vue';
|
||||||
import RightMenu from 'components/common/RightMenu.vue';
|
|
||||||
import SupplierListFilter from './SupplierListFilter.vue';
|
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
|
@ -21,75 +19,70 @@ const columns = computed(() => [
|
||||||
label: t('supplier.list.tableVisibleColumns.name'),
|
label: t('supplier.list.tableVisibleColumns.name'),
|
||||||
name: 'socialName',
|
name: 'socialName',
|
||||||
create: true,
|
create: true,
|
||||||
component: 'input',
|
columnFilter: {
|
||||||
columnField: {
|
name: 'nickname',
|
||||||
component: null,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('supplier.list.tableVisibleColumns.nif'),
|
label: t('supplier.list.tableVisibleColumns.nif'),
|
||||||
name: 'nif',
|
name: 'nif',
|
||||||
component: 'input',
|
|
||||||
columnField: {
|
|
||||||
component: null,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('supplier.list.tableVisibleColumns.nickname'),
|
label: t('supplier.list.tableVisibleColumns.nickname'),
|
||||||
name: 'alias',
|
name: 'alias',
|
||||||
component: 'input',
|
columnFilter: {
|
||||||
columnField: {
|
name: 'nickname',
|
||||||
component: null,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('supplier.list.tableVisibleColumns.account'),
|
label: t('supplier.list.tableVisibleColumns.account'),
|
||||||
name: 'account',
|
name: 'account',
|
||||||
component: 'input',
|
columnFilter: false,
|
||||||
columnField: {
|
|
||||||
component: null,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('supplier.list.tableVisibleColumns.payMethod'),
|
label: t('supplier.list.tableVisibleColumns.payMethod'),
|
||||||
name: 'payMethod',
|
name: 'payMethod',
|
||||||
component: 'select',
|
columnFilter: false,
|
||||||
attrs: {
|
|
||||||
url: 'payMethods',
|
|
||||||
fields: ['id', 'name'],
|
|
||||||
},
|
|
||||||
columnField: {
|
|
||||||
component: null,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('supplier.list.tableVisibleColumns.payDay'),
|
label: t('supplier.list.tableVisibleColumns.payDay'),
|
||||||
name: 'payDat',
|
name: 'payDay',
|
||||||
component: 'input',
|
columnFilter: false,
|
||||||
columnField: {
|
},
|
||||||
component: null,
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'countryFk',
|
||||||
|
label: t('customer.extendedList.tableVisibleColumns.countryFk'),
|
||||||
|
component: 'select',
|
||||||
|
attrs: {
|
||||||
|
url: 'Countries',
|
||||||
},
|
},
|
||||||
|
visible: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
label: t('customer.extendedList.tableVisibleColumns.provinceFk'),
|
||||||
|
name: 'provinceFk',
|
||||||
|
component: 'select',
|
||||||
|
attrs: {
|
||||||
|
url: 'Provinces',
|
||||||
|
},
|
||||||
|
visible: false,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnSearchbar data-key="SuppliersList" :limit="20" :label="t('Search suppliers')" />
|
<VnSearchbar data-key="SuppliersList" :limit="20" :label="t('Search suppliers')" />
|
||||||
<RightMenu>
|
|
||||||
<template #right-panel>
|
|
||||||
<SupplierListFilter data-key="SuppliersList" />
|
|
||||||
</template>
|
|
||||||
</RightMenu>
|
|
||||||
<VnTable
|
<VnTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="SuppliersList"
|
data-key="SuppliersList"
|
||||||
url="Suppliers/filter"
|
url="Suppliers/filter"
|
||||||
save-url="Suppliers/crud"
|
|
||||||
redirect="supplier"
|
redirect="supplier"
|
||||||
:create="{
|
:create="{
|
||||||
urlCreate: 'Suppliers/newSupplier',
|
urlCreate: 'Suppliers/newSupplier',
|
||||||
|
@ -100,8 +93,6 @@ const columns = computed(() => [
|
||||||
order="id ASC"
|
order="id ASC"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
auto-load
|
auto-load
|
||||||
:right-search="false"
|
|
||||||
:use-model="true"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue