diff --git a/src/pages/Customer/Card/CustomerDescriptor.vue b/src/pages/Customer/Card/CustomerDescriptor.vue
index 9ae453df0..4980e5495 100644
--- a/src/pages/Customer/Card/CustomerDescriptor.vue
+++ b/src/pages/Customer/Card/CustomerDescriptor.vue
@@ -152,7 +152,13 @@ const setData = (entity) => (data.value = useCardDescription(entity?.name, entit
{
+ const query = route.query.table ? JSON.parse(route.query.table) : {};
+
+ // Asigna los valores a las variables correspondientes
+ from.value = query.from || from.toISOString();
+ to.value = query.to || to.toISOString();
+ Object.assign(userParams, { from, to });
};
const columns = computed(() => [
@@ -200,7 +211,10 @@ const getColor = (row) => {
return row?.classColor ? `bg-${row.classColor}` : 'bg-orange';
};
-onMounted(() => (stateStore.rightDrawer = true));
+onMounted(() => {
+ initializeFromQuery();
+ stateStore.rightDrawer = true;
+});