This commit is contained in:
parent
391ca36764
commit
fc275d9274
|
@ -33,14 +33,12 @@ const arrayData = useArrayData('SupplierConsumption', {
|
|||
|
||||
const store = arrayData.store;
|
||||
|
||||
watch(() => route.query);
|
||||
|
||||
onUnmounted(() => state.unset('SupplierConsumption'));
|
||||
const dateRanges = computed(() => {
|
||||
const { from, to } = arrayData.store?.userParams || {};
|
||||
return { from, to };
|
||||
});
|
||||
console.log('dataRanges', dateRanges);
|
||||
|
||||
const reportParams = computed(() => ({
|
||||
recipientId: Number(route.params.id),
|
||||
...dateRanges.value,
|
||||
|
@ -127,9 +125,6 @@ onMounted(async () => {
|
|||
stateStore.rightDrawer = true;
|
||||
await getSupplierConsumptionData();
|
||||
});
|
||||
|
||||
console.log('dateRange From', dateRanges.value.from);
|
||||
console.log('dateRange value', dateRanges.value);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Loading…
Reference in New Issue