0
0
Fork 0

refs #7366 fix travel

This commit is contained in:
Carlos Satorres 2024-07-04 13:41:43 +02:00
parent 3585f651b8
commit c6ae1aec36
2 changed files with 5 additions and 4 deletions

View File

@ -54,7 +54,6 @@ const entityId = computed(() => {
});
const data = ref(useCardDescription());
const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.id));
</script>
<template>
@ -65,8 +64,6 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.
:subtitle="data.subtitle"
:filter="filter"
data-key="travelData"
:summary="$attrs"
@on-fetch="setData"
>
<template #menu="{ entity }">
<TravelDescriptorMenuItems :travel="entity" />

View File

@ -71,6 +71,7 @@ const columns = computed(() => [
url: 'agencyModes',
fields: ['id', 'name'],
},
format: (row) => row.agencyModeName,
columnField: {
component: null,
},
@ -112,7 +113,10 @@ const columns = computed(() => [
attrs: {
url: 'warehouses',
fields: ['id', 'name'],
optionLabel: 'name',
optionValue: 'id',
},
format: (row) => row.warehouseInName,
columnField: {
component: null,
},
@ -129,6 +133,7 @@ const columns = computed(() => [
url: 'warehouses',
fields: ['id', 'name'],
},
format: (row) => row.warehouseOutName,
columnField: {
component: null,
},
@ -196,7 +201,6 @@ const columns = computed(() => [
default-mode="table"
auto-load
redirect="travel"
:right-search="false"
:is-editable="false"
:use-model="true"
/>