reload req after close deal modal

This commit is contained in:
Vladimir 2026-07-03 11:49:23 +03:00
parent 8a39ca6e05
commit 04cc2a787e

View File

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