forked from verdnatura/salix-front
refs #7366 fix component
This commit is contained in:
parent
0c31755fdb
commit
31cd266ec7
|
@ -6,6 +6,8 @@ import { useStateStore } from 'stores/useStateStore';
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
import TravelSummary from './Card/TravelSummary.vue';
|
||||||
|
import { dashIfEmpty, toDate } from 'src/filters';
|
||||||
const { viewSummary } = useSummaryDialog();
|
const { viewSummary } = useSummaryDialog();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -43,6 +45,9 @@ const columns = computed(() => [
|
||||||
label: t('travel.travelList.tableVisibleColumns.ref'),
|
label: t('travel.travelList.tableVisibleColumns.ref'),
|
||||||
field: 'ref',
|
field: 'ref',
|
||||||
component: 'input',
|
component: 'input',
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
create: true,
|
create: true,
|
||||||
},
|
},
|
||||||
|
@ -56,6 +61,9 @@ const columns = computed(() => [
|
||||||
url: 'agencyModes',
|
url: 'agencyModes',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
},
|
},
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
create: true,
|
create: true,
|
||||||
},
|
},
|
||||||
|
@ -65,8 +73,12 @@ const columns = computed(() => [
|
||||||
label: t('travel.travelList.tableVisibleColumns.shipped'),
|
label: t('travel.travelList.tableVisibleColumns.shipped'),
|
||||||
field: 'shipped',
|
field: 'shipped',
|
||||||
component: 'date',
|
component: 'date',
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
create: true,
|
create: true,
|
||||||
|
format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.shipped)),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -74,8 +86,12 @@ const columns = computed(() => [
|
||||||
label: t('travel.travelList.tableVisibleColumns.landed'),
|
label: t('travel.travelList.tableVisibleColumns.landed'),
|
||||||
field: 'landed',
|
field: 'landed',
|
||||||
component: 'date',
|
component: 'date',
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
create: true,
|
create: true,
|
||||||
|
format: (row, dashIfEmpty) => dashIfEmpty(toDate(row.landed)),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -87,6 +103,9 @@ const columns = computed(() => [
|
||||||
url: 'warehouses',
|
url: 'warehouses',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
},
|
},
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
create: true,
|
create: true,
|
||||||
},
|
},
|
||||||
|
@ -100,6 +119,9 @@ const columns = computed(() => [
|
||||||
url: 'warehouses',
|
url: 'warehouses',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
},
|
},
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
create: true,
|
create: true,
|
||||||
},
|
},
|
||||||
|
@ -109,6 +131,9 @@ const columns = computed(() => [
|
||||||
label: t('travel.travelList.tableVisibleColumns.totalEntries'),
|
label: t('travel.travelList.tableVisibleColumns.totalEntries'),
|
||||||
field: 'totalEntries',
|
field: 'totalEntries',
|
||||||
component: 'input',
|
component: 'input',
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
create: true,
|
create: true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue