diff --git a/src/components/fulfillment-warehouse/fulfillment-warehouse-dashboard/index.tsx b/src/components/fulfillment-warehouse/fulfillment-warehouse-dashboard/index.tsx index adea559..9389633 100644 --- a/src/components/fulfillment-warehouse/fulfillment-warehouse-dashboard/index.tsx +++ b/src/components/fulfillment-warehouse/fulfillment-warehouse-dashboard/index.tsx @@ -210,6 +210,7 @@ export function FulfillmentWarehouseDashboard() { error: warehouseStatsError, refetch: refetchWarehouseStats, } = useQuery(GET_FULFILLMENT_WAREHOUSE_STATS, { + fetchPolicy: 'cache-and-network', // Синхронизация с карточкой "ОСТАТОК" pollInterval: 30000, errorPolicy: 'all', onError: (error) => { diff --git a/src/components/services/supplies-tab.tsx b/src/components/services/supplies-tab.tsx index e0ba49f..a0639e8 100644 --- a/src/components/services/supplies-tab.tsx +++ b/src/components/services/supplies-tab.tsx @@ -60,6 +60,8 @@ export function SuppliesTab() { // GraphQL запросы и мутации const { data, loading, error, refetch } = useQuery(GET_MY_SUPPLIES, { skip: !user || user?.organization?.type !== 'FULFILLMENT', + fetchPolicy: 'cache-and-network', // Автоматическое обновление данных со склада + pollInterval: 30000, // Обновление каждые 30 секунд для синхронизации со складом }) const [updateFulfillmentInventoryPrice] = useMutation(UPDATE_FULFILLMENT_INVENTORY_PRICE)