reload req after close deal modal
This commit is contained in:
parent
8a39ca6e05
commit
04cc2a787e
@ -19,6 +19,12 @@ const dealId = ref(null)
|
|||||||
const newDealReqId = ref(null)
|
const newDealReqId = ref(null)
|
||||||
const dialog = useDialog()
|
const dialog = useDialog()
|
||||||
|
|
||||||
|
const refreshRequisitions = () => {
|
||||||
|
if (window.requisitions && typeof window.requisitions.getList === 'function') {
|
||||||
|
window.requisitions.getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const createDeal = (newDealReqId) => {
|
const createDeal = (newDealReqId) => {
|
||||||
console.log('[createDeal] Открываем DealModal через DynamicDialog', newDealReqId)
|
console.log('[createDeal] Открываем DealModal через DynamicDialog', newDealReqId)
|
||||||
|
|
||||||
@ -33,6 +39,7 @@ const createDeal = (newDealReqId) => {
|
|||||||
},
|
},
|
||||||
onClose: (opt) => {
|
onClose: (opt) => {
|
||||||
console.log('[DynamicDialog] Закрыто с данными:', opt?.data)
|
console.log('[DynamicDialog] Закрыто с данными:', opt?.data)
|
||||||
|
refreshRequisitions()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -58,6 +65,7 @@ const editDeal = (newDealReqId, dealId) => {
|
|||||||
},
|
},
|
||||||
onClose: (opt) => {
|
onClose: (opt) => {
|
||||||
console.log('[DynamicDialog] Закрыто с данными:', opt?.data)
|
console.log('[DynamicDialog] Закрыто с данными:', opt?.data)
|
||||||
|
refreshRequisitions()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user