From 04cc2a787ea78438d3b824d1caef573fbf5a995b Mon Sep 17 00:00:00 2001 From: Vladimir Date: Fri, 3 Jul 2026 11:49:23 +0300 Subject: [PATCH] reload req after close deal modal --- src/App.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.vue b/src/App.vue index c3ffce8..58020f7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -19,6 +19,12 @@ const dealId = ref(null) const newDealReqId = ref(null) const dialog = useDialog() +const refreshRequisitions = () => { + if (window.requisitions && typeof window.requisitions.getList === 'function') { + window.requisitions.getList() + } +} + const createDeal = (newDealReqId) => { console.log('[createDeal] Открываем DealModal через DynamicDialog', newDealReqId) @@ -33,6 +39,7 @@ const createDeal = (newDealReqId) => { }, onClose: (opt) => { console.log('[DynamicDialog] Закрыто с данными:', opt?.data) + refreshRequisitions() } }) } @@ -58,6 +65,7 @@ const editDeal = (newDealReqId, dealId) => { }, onClose: (opt) => { console.log('[DynamicDialog] Закрыто с данными:', opt?.data) + refreshRequisitions() } }) }