fix: hotfix date #1045
|
@ -8,7 +8,7 @@ import SendEmailDialog from 'components/common/SendEmailDialog.vue';
|
||||||
import SupplierConsumptionFilter from './SupplierConsumptionFilter.vue';
|
import SupplierConsumptionFilter from './SupplierConsumptionFilter.vue';
|
||||||
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
||||||
|
|
||||||
import { toDate } from 'src/filters';
|
import { dateRange, toDate } from 'src/filters';
|
||||||
import { dashIfEmpty } from 'src/filters';
|
import { dashIfEmpty } from 'src/filters';
|
||||||
import { usePrintService } from 'composables/usePrintService';
|
import { usePrintService } from 'composables/usePrintService';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
|
@ -35,14 +35,20 @@ const store = arrayData.store;
|
||||||
|
|
||||||
onUnmounted(() => state.unset('SupplierConsumption'));
|
onUnmounted(() => state.unset('SupplierConsumption'));
|
||||||
const dateRanges = computed(() => {
|
const dateRanges = computed(() => {
|
||||||
const { from, to } = arrayData.store?.userParams || {};
|
let { from, to } = arrayData.store?.userParams || {};
|
||||||
return { from, to };
|
return { from, to };
|
||||||
});
|
});
|
||||||
|
|
||||||
const reportParams = computed(() => ({
|
const reportParams = computed(() => {
|
||||||
recipientId: Number(route.params.id),
|
const dates = {
|
||||||
...dateRanges.value,
|
to: dateRange(dateRanges.value.to)[1].toISOString(),
|
||||||
carlossa marked this conversation as resolved
|
|||||||
}));
|
from: dateRange(dateRanges.value.from)[1].toISOString(),
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
recipientId: Number(route.params.id),
|
||||||
|
...dates,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
async function getSupplierConsumptionData() {
|
async function getSupplierConsumptionData() {
|
||||||
await arrayData.fetch({ append: false });
|
await arrayData.fetch({ append: false });
|
||||||
|
|
Loading…
Reference in New Issue
Q raro gastar toISOString no?