This commit is contained in:
parent
2ee3ba5251
commit
b2e54e1f7f
|
@ -90,7 +90,7 @@ const getEntryRedirectionFilter = (entry) => {
|
||||||
ref="entryDescriptorRef"
|
ref="entryDescriptorRef"
|
||||||
module="Entry"
|
module="Entry"
|
||||||
:url="`Entries/${entityId}`"
|
:url="`Entries/${entityId}`"
|
||||||
:filter="entryFilter"
|
:userFilter="entryFilter"
|
||||||
title="supplier.nickname"
|
title="supplier.nickname"
|
||||||
data-key="Entry"
|
data-key="Entry"
|
||||||
>
|
>
|
||||||
|
|
|
@ -35,9 +35,9 @@ const openDialog = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const transferEntry = async () => {
|
const transferEntry = async () => {
|
||||||
let response = await axios.post(`Entries/${route.params.id}/transfer`);
|
const { data } = await axios.post(`Entries/${route.params.id}/transfer`);
|
||||||
notify('globals.dataSaved', 'positive');
|
notify('globals.dataSaved', 'positive');
|
||||||
const url = `#/entry/${response.data.newEntryFk[0].newEntryFk}/summary`;
|
const url = `#/entry/${data.newEntryFk.newEntryFk}/summary`;
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue