diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index 4f0e8860a..ccef57b0e 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -6,6 +6,7 @@ import { useI18n } from 'vue-i18n'; import { QCheckbox, QIcon } from 'quasar'; import CardSummary from 'components/ui/CardSummary.vue'; import VnLv from 'src/components/ui/VnLv.vue'; +import EntryDescriptorProxy from 'src/pages/Entry/Card/EntryDescriptorProxy.vue'; import travelService from 'src/services/travel.service'; import { toDate, toCurrency } from 'src/filters'; @@ -55,60 +56,6 @@ const headerMenuOptions = [ { name: t('travel.summary.AddEntry'), action: null }, ]; -const tableColumnComponents = { - isConfirmed: { - component: () => QCheckbox, - props: (prop) => ({ - disable: true, - 'model-value': Boolean(prop.value), - }), - }, - id: { - component: () => 'span', - props: () => {}, - event: () => openEntryDescriptor(), - }, - supplierName: { - component: () => 'span', - props: () => {}, - event: () => {}, - }, - reference: { - component: () => 'span', - props: () => {}, - event: () => {}, - }, - freightValue: { - component: () => 'span', - props: () => {}, - event: () => {}, - }, - packageValue: { - component: () => 'span', - props: () => {}, - event: () => {}, - }, - cc: { - component: () => 'span', - props: () => {}, - event: () => {}, - }, - pallet: { - component: () => 'span', - props: () => {}, - event: () => {}, - }, - m3: { - component: () => 'span', - props: () => {}, - event: () => {}, - }, - observation: { - component: (props) => (props.value ? QIcon : null), - props: () => ({ name: 'insert_drive_file', color: 'primary', size: '25px' }), - }, -}; - const entriesTableColumns = computed(() => { return [ { @@ -182,8 +129,6 @@ async function setTravelData(data) { const redirectToCreateView = (queryParams) => { router.push({ name: 'TravelCreate', query: { travelData: queryParams } }); }; - -const openEntryDescriptor = () => {};