7729-devToTest_2430 #554

Merged
alexm merged 401 commits from 7729-devToTest_2430 into test 2024-07-16 07:17:04 +00:00
2 changed files with 8 additions and 6 deletions
Showing only changes of commit 02ce4f2658 - Show all commits

View File

@ -37,7 +37,8 @@ watch(
getTheoricalCost(); getTheoricalCost();
if (ticketData.value?.zone && ticketData.value?.zone?.isVolumetric) if (ticketData.value?.zone && ticketData.value?.zone?.isVolumetric)
getTicketVolume(); getTicketVolume();
} },
{ immediate: true }
); );
const salesFilter = computed(() => ({ const salesFilter = computed(() => ({
@ -134,7 +135,6 @@ const getComponentsSum = async () => {
try { try {
const { data } = await axios.get(`Tickets/${route.params.id}/getComponentsSum`); const { data } = await axios.get(`Tickets/${route.params.id}/getComponentsSum`);
componentsList.value = data; componentsList.value = data;
console.log('componentsList', componentsList.value);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }
@ -153,7 +153,6 @@ const getTicketVolume = async () => {
try { try {
if (!ticketData.value) return; if (!ticketData.value) return;
const { data } = await axios.get(`Tickets/${ticketData.value.id}/getVolume`); const { data } = await axios.get(`Tickets/${ticketData.value.id}/getVolume`);
console.log('data volume: ', data);
ticketVolume.value = data[0].volume; ticketVolume.value = data[0].volume;
} catch (error) { } catch (error) {
console.error(error); console.error(error);
@ -218,8 +217,12 @@ onUnmounted(() => (stateStore.rightDrawer = false));
class="justify-center" class="justify-center"
horizontal horizontal
> >
<span class="q-mr-xs color-vn-label"> {{ component.name }}: </span> <span v-if="component.name" class="q-mr-xs color-vn-label">
<span>{{ toCurrency(component.value, 'EUR', 3) }}</span> {{ component.name }}:
</span>
<span v-if="component.value">{{
toCurrency(component.value, 'EUR', 3)
}}</span>
</QCardSection> </QCardSection>
</QCard> </QCard>
<QCard <QCard

View File

@ -77,7 +77,6 @@ const getDefaultTaxClass = async () => {
params: { filter: JSON.stringify(filter) }, params: { filter: JSON.stringify(filter) },
}); });
defaultTaxClass.value = data; defaultTaxClass.value = data;
console.log('defaultTaxClass', defaultTaxClass.value);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }