diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue new file mode 100644 index 0000000000..e8fc2c675b --- /dev/null +++ b/src/components/ui/CardDescriptor.vue @@ -0,0 +1,91 @@ + + + + + + + + {{ t('components.card.mainList') }} + + + + + {{ t('components.card.summary') }} + + + + + {{ t('components.card.moreOptions') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/Claim/Card/ClaimCard.vue b/src/pages/Claim/Card/ClaimCard.vue index 29b3b4ee78..4ef530103f 100644 --- a/src/pages/Claim/Card/ClaimCard.vue +++ b/src/pages/Claim/Card/ClaimCard.vue @@ -5,6 +5,7 @@ import { useI18n } from 'vue-i18n'; import axios from 'axios'; import { useState } from 'src/composables/useState'; import { toDate } from 'src/filters'; +import CardDescriptor from 'src/components/ui/CardDescriptor.vue'; const route = useRoute(); const { t } = useI18n(); @@ -13,7 +14,7 @@ const state = useState(); onMounted(async () => { await fetch(); }); -const claim = ref({}); +const claim = ref(); async function fetch() { const entityId = route.params.id; @@ -46,8 +47,71 @@ function stateColor(code) { - - + + + + Option 1 + Option 2 + + + + + {{ claim.client.name }} + {{ claim.client.name }} + + + + {{ t('claim.card.claimId') }} + #{{ claim.id }} + + + {{ t('claim.card.created') }} + {{ toDate(claim.created) }} + + + + + {{ t('claim.card.assignedTo') }} + {{ claim.worker.user.name }} + + + {{ t('claim.card.state') }} + + + {{ claim.claimState.description }} + + + + + + + {{ t('claim.card.ticketId') }} + {{ claim.ticketFk }} + + + + + + + {{ t('claim.card.customerSummary') }} + + + {{ t('claim.card.claimedTicket') }} + + + + + + - + --> - - + + + + - + diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue new file mode 100644 index 0000000000..e69de29bb2