diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index 4d817c3c2..9538e753f 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -36,8 +36,6 @@ const $props = defineProps({ const entityId = computed(() => $props.id || route.params.id); const ClaimStates = ref([]); -const claimUrl = ref(); -const salixUrl = ref(); const claimDmsRef = ref(); const claimDms = ref([]); const multimediaDialog = ref(); @@ -152,11 +150,6 @@ const developmentColumns = ref([ }, ]); -onMounted(async () => { - salixUrl.value = await getUrl(''); - claimUrl.value = salixUrl.value + `claim/${entityId.value}/`; -}); - async function getClaimDms() { claimDmsFilter.value.where = { claimFk: entityId.value }; await claimDmsRef.value.fetch(); @@ -177,10 +170,15 @@ function openDialog(dmsId) { multimediaSlide.value = dmsId; multimediaDialog.value = true; } + async function changeState(value) { await axios.patch(`Claims/updateClaim/${entityId.value}`, { claimStateFk: value }); router.go(route.fullPath); } + +function claimUrl(section) { + return '#/claim/' + entityId.value + '/' + section; +}