refs #6897 fix filters, right filters
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
a6bb9af1a7
commit
00321803ab
|
@ -2,8 +2,9 @@
|
||||||
import { onMounted, ref, computed, reactive, onUnmounted } from 'vue';
|
import { onMounted, ref, computed, reactive, onUnmounted } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
|
import EntryLatestBuysFilter from './EntryLatestBuysFilter.vue';
|
||||||
|
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { useArrayData } from 'composables/useArrayData';
|
import { useArrayData } from 'composables/useArrayData';
|
||||||
|
@ -62,8 +63,6 @@ const arrayData = useArrayData('EntryLatestBuys', {
|
||||||
order: ['itemFk DESC'],
|
order: ['itemFk DESC'],
|
||||||
exprBuilder: exprBuilder,
|
exprBuilder: exprBuilder,
|
||||||
});
|
});
|
||||||
const store = arrayData.store;
|
|
||||||
const rows = computed(() => store.data);
|
|
||||||
const rowsSelected = ref([]);
|
const rowsSelected = ref([]);
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
@ -77,10 +76,10 @@ const columns = [
|
||||||
return {
|
return {
|
||||||
id,
|
id,
|
||||||
width: '50px',
|
width: '50px',
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
columnFilter: false
|
columnFilter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -107,31 +106,26 @@ const columns = [
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.description'),
|
label: t('entry.latestBuys.tableVisibleColumns.description'),
|
||||||
name: 'description',
|
name: 'description',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.size'),
|
label: t('entry.latestBuys.tableVisibleColumns.size'),
|
||||||
name: 'size',
|
name: 'size',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.tags'),
|
label: t('entry.latestBuys.tableVisibleColumns.tags'),
|
||||||
name: 'tags',
|
name: 'tags',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.type'),
|
label: t('entry.latestBuys.tableVisibleColumns.type'),
|
||||||
name: 'type',
|
name: 'type',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.intrastat'),
|
label: t('entry.latestBuys.tableVisibleColumns.intrastat'),
|
||||||
name: 'intrastat',
|
name: 'intrastat',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -139,7 +133,6 @@ const columns = [
|
||||||
name: 'origin',
|
name: 'origin',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.weightByPiece'),
|
label: t('entry.latestBuys.tableVisibleColumns.weightByPiece'),
|
||||||
name: 'weightByPiece',
|
name: 'weightByPiece',
|
||||||
|
@ -148,80 +141,76 @@ const columns = [
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.isActive'),
|
label: t('entry.latestBuys.tableVisibleColumns.isActive'),
|
||||||
name: 'isActive',
|
name: 'isActive',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.family'),
|
label: t('entry.latestBuys.tableVisibleColumns.family'),
|
||||||
name: 'family'
|
name: 'family',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.entryFk'),
|
label: t('entry.latestBuys.tableVisibleColumns.entryFk'),
|
||||||
name: 'entryFk'
|
name: 'entryFk',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.buyingValue'),
|
label: t('entry.latestBuys.tableVisibleColumns.buyingValue'),
|
||||||
name: 'buyingValue'
|
name: 'buyingValue',
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.freightValue'),
|
label: t('entry.latestBuys.tableVisibleColumns.freightValue'),
|
||||||
name: 'freightValue'
|
name: 'freightValue',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.comissionValue'),
|
label: t('entry.latestBuys.tableVisibleColumns.comissionValue'),
|
||||||
name: 'comissionValue'
|
name: 'comissionValue',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.packageValue'),
|
label: t('entry.latestBuys.tableVisibleColumns.packageValue'),
|
||||||
name: 'packageValue'
|
name: 'packageValue',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.isIgnored'),
|
label: t('entry.latestBuys.tableVisibleColumns.isIgnored'),
|
||||||
name: 'isIgnored'
|
name: 'isIgnored',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.price2'),
|
label: t('entry.latestBuys.tableVisibleColumns.price2'),
|
||||||
name: 'price2'
|
name: 'price2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.price3'),
|
label: t('entry.latestBuys.tableVisibleColumns.price3'),
|
||||||
name: 'price3'
|
name: 'price3',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.minPrice'),
|
label: t('entry.latestBuys.tableVisibleColumns.minPrice'),
|
||||||
name: 'minPrice'
|
name: 'minPrice',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.ektFk'),
|
label: t('entry.latestBuys.tableVisibleColumns.ektFk'),
|
||||||
name: 'ektFk'
|
name: 'ektFk',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.weight'),
|
label: t('entry.latestBuys.tableVisibleColumns.weight'),
|
||||||
name: 'weight'
|
name: 'weight',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.packagingFk'),
|
label: t('entry.latestBuys.tableVisibleColumns.packagingFk'),
|
||||||
name: 'packagingFk'
|
name: 'packagingFk',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('entry.latestBuys.tableVisibleColumns.packingOut'),
|
label: t('entry.latestBuys.tableVisibleColumns.packingOut'),
|
||||||
name: 'packingOut'
|
name: 'packingOut',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -231,7 +220,7 @@ const columns = [
|
||||||
columnField: {
|
columnField: {
|
||||||
component: null,
|
component: null,
|
||||||
},
|
},
|
||||||
format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.landing))
|
format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.landing)),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -280,7 +269,12 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VnSubToolbar/>
|
<RightMenu>
|
||||||
|
<template #right-panel>
|
||||||
|
<EntryLatestBuysFilter data-key="LatestBuys" />
|
||||||
|
</template>
|
||||||
|
</RightMenu>
|
||||||
|
<VnSubToolbar />
|
||||||
<VnTable
|
<VnTable
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
data-key="LatestBuys"
|
data-key="LatestBuys"
|
||||||
|
|
Loading…
Reference in New Issue