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