refs #6976 supplier onUnmounted #286

Merged
carlossa merged 8 commits from 6976-supplierConsumption into dev 2024-04-26 07:05:01 +00:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit b5aae63e15 - Show all commits

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;
carlossa marked this conversation as resolved Outdated
Outdated
Review

?

?
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>
carlossa marked this conversation as resolved Outdated
Outdated
Review

Quitar esta linea tambien

Quitar esta linea tambien
carlossa marked this conversation as resolved Outdated
Outdated
Review

quitar log

quitar log
<template>