0
0
Fork 0

refs #6976 supplier onUnmounted

This commit is contained in:
Carlos Satorres 2024-04-12 08:47:25 +02:00
parent a66ece1683
commit b5aae63e15
1 changed files with 6 additions and 0 deletions

View File

@ -15,8 +15,11 @@ import { usePrintService } from 'composables/usePrintService';
import useNotify from 'src/composables/useNotify.js';
import axios from 'axios';
import { useStateStore } from 'stores/useStateStore';
import { useState } from 'src/composables/useState';
import { useArrayData } from 'composables/useArrayData';
import { onUnmounted } from 'vue';
const state = useState();
const stateStore = useStateStore();
const { t } = useI18n();
const route = useRoute();
@ -32,6 +35,7 @@ const arrayData = useArrayData('SupplierConsumption', {
const store = arrayData.store;
onUnmounted(() => state.unset('SupplierConsumption'));
const dateRanges = computed(() => {
const ranges = {
from: null,
@ -112,6 +116,8 @@ onMounted(async () => {
stateStore.rightDrawer = true;
await getSupplierConsumptionData();
});
console.log('dateRange From', dateRanges.value.from);
</script>
<template>