diff --git a/src/components/common/VnDropdown.vue b/src/components/common/VnDropdown.vue new file mode 100644 index 000000000..1b3f2237b --- /dev/null +++ b/src/components/common/VnDropdown.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index 5d06d5627..67d57004f 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -21,6 +21,7 @@ import CustomerDescriptorProxy from 'src/pages/Customer/Card/CustomerDescriptorP import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; import DepartmentDescriptorProxy from 'src/pages/Worker/Department/Card/DepartmentDescriptorProxy.vue'; import ClaimDescriptorMenu from './ClaimDescriptorMenu.vue'; +import VnDropdown from 'src/components/common/VnDropdown.vue'; const route = useRoute(); const router = useRouter(); @@ -36,7 +37,7 @@ const $props = defineProps({ }); const entityId = computed(() => $props.id || route.params.id); -const ClaimStates = ref([]); +const claimStates = ref([]); const claimDmsRef = ref(); const claimDms = ref([]); const multimediaDialog = ref(); @@ -173,7 +174,9 @@ function openDialog(dmsId) { } async function changeState(value) { - await axios.patch(`Claims/updateClaim/${entityId.value}`, { claimStateFk: value }); + await axios.patch(`Claims/updateClaim/${entityId.value}`, { + claimStateFk: value, + }); router.go(route.fullPath); } @@ -183,13 +186,18 @@ function claimUrl(section) {