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() } }) }