From 2790fa9b9839c4a62f8d290b8073bf86344d7a44 Mon Sep 17 00:00:00 2001 From: Veronika Smirnova Date: Wed, 27 Aug 2025 12:28:36 +0300 Subject: [PATCH] =?UTF-8?q?fix(components):=20=D1=81=D0=B8=D0=BD=D1=85?= =?UTF-8?q?=D1=80=D0=BE=D0=BD=D0=B8=D0=B7=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BA=D0=B5=D1=88=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D0=B6=D0=B4=D1=83=20=D1=81?= =?UTF-8?q?=D0=B2=D1=8F=D0=B7=D0=B0=D0=BD=D0=BD=D1=8B=D0=BC=D0=B8=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=B0=D0=BC?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавить fetchPolicy: 'cache-and-network' в раздел услуг - Добавить pollInterval: 30000 для автоматического обновления - Обеспечить синхронизацию данных между складом и услугами 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../fulfillment-warehouse-dashboard/index.tsx | 1 + src/components/services/supplies-tab.tsx | 2 ++ 2 files changed, 3 insertions(+) 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)