fix: refs #7543 fix changed descriptors

This commit is contained in:
Jon Elias 2024-07-03 08:20:16 +02:00
parent e13f98dffb
commit 363abb899f
2 changed files with 1 additions and 16 deletions

View File

@ -9,7 +9,6 @@ import { useRole } from 'src/composables/useRole';
import { downloadFile } from 'src/composables/downloadFile'; import { downloadFile } from 'src/composables/downloadFile';
import { useArrayData } from 'src/composables/useArrayData'; import { useArrayData } from 'src/composables/useArrayData';
import { usePrintService } from 'composables/usePrintService'; import { usePrintService } from 'composables/usePrintService';
import useCardDescription from 'src/composables/useCardDescription';
import VnLv from 'src/components/ui/VnLv.vue'; import VnLv from 'src/components/ui/VnLv.vue';
import CardDescriptor from 'components/ui/CardDescriptor.vue'; import CardDescriptor from 'components/ui/CardDescriptor.vue';
import FetchData from 'src/components/FetchData.vue'; import FetchData from 'src/components/FetchData.vue';
@ -20,12 +19,7 @@ import { useCapitalize } from 'src/composables/useCapitalize';
import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorProxy.vue'; import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorProxy.vue';
import InvoiceInToBook from '../InvoiceInToBook.vue'; import InvoiceInToBook from '../InvoiceInToBook.vue';
const $props = defineProps({ const $props = defineProps({ id: { type: Number, default: null } });
id: {
type: Number,
default: null,
},
});
const { push, currentRoute } = useRouter(); const { push, currentRoute } = useRouter();
@ -258,9 +252,6 @@ const createInvoiceInCorrection = async () => {
); );
push({ path: `/invoice-in/${correctingId}/summary` }); push({ path: `/invoice-in/${correctingId}/summary` });
}; };
const data = ref(useCardDescription());
const setData = (entity) => (data.value = useCardDescription(entity.name, entity.id));
</script> </script>
<template> <template>
<FetchData <FetchData
@ -292,8 +283,6 @@ const setData = (entity) => (data.value = useCardDescription(entity.name, entity
:url="`InvoiceIns/${entityId}`" :url="`InvoiceIns/${entityId}`"
:filter="filter" :filter="filter"
title="supplierRef" title="supplierRef"
@on-fetch="setData"
:summary="$attrs"
> >
<template #menu="{ entity }"> <template #menu="{ entity }">
<InvoiceInToBook> <InvoiceInToBook>

View File

@ -70,8 +70,6 @@ const filter = {
}; };
const data = ref(useCardDescription()); const data = ref(useCardDescription());
const setData = (entity) =>
(data.value = useCardDescription(entity.client?.name, entity.id));
</script> </script>
<template> <template>
@ -82,8 +80,6 @@ const setData = (entity) =>
:title="data.title" :title="data.title"
:subtitle="data.subtitle" :subtitle="data.subtitle"
data-key="ticketData" data-key="ticketData"
@on-fetch="setData"
:summary="$attrs"
> >
<template #menu="{ entity }"> <template #menu="{ entity }">
<TicketDescriptorMenu :ticket="entity" /> <TicketDescriptorMenu :ticket="entity" />