|
| 1 | +<template> |
| 2 | + <ActiveCard> |
| 3 | + <div class="flex flex-row gap-2 items-center"> |
| 4 | + <UIcon name="i-lucide-scroll" class="size-8 text-primary" /> |
| 5 | + |
| 6 | + <div v-if="agreement.isActive" class="flex flex-row items-center gap-1.5 text-primary"> |
| 7 | + <UIcon |
| 8 | + name="i-lucide-book-check" |
| 9 | + class="size-8" |
| 10 | + /> |
| 11 | + <p class="max-w-22 text-sm/4 font-bold"> |
| 12 | + Активный |
| 13 | + </p> |
| 14 | + </div> |
| 15 | + </div> |
| 16 | + |
| 17 | + <h3 class="text-xl/5 font-bold"> |
| 18 | + № {{ agreement.internalId }} |
| 19 | + </h3> |
| 20 | + |
| 21 | + <div> |
| 22 | + {{ agreement.legalEntity?.name }} |
| 23 | + </div> |
| 24 | + |
| 25 | + <div> |
| 26 | + <div v-if="agreement.concludedAt" class="w-full text-base/5 font-normal"> |
| 27 | + Заключен: {{ format(new Date(agreement.concludedAt), 'd MMMM yyyy', { locale: ru }) }} |
| 28 | + </div> |
| 29 | + |
| 30 | + <div v-if="agreement.willEndAt" class="w-full text-base/5 font-normal"> |
| 31 | + Заканчивается: {{ format(new Date(agreement.willEndAt), 'd MMMM yyyy', { locale: ru }) }} |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + |
| 35 | + <div> |
| 36 | + <div v-if="agreement.royalty" class="w-full text-base/5 font-normal"> |
| 37 | + Роялти: {{ agreement.royalty }}%, минимум {{ agreement.minRoyaltyPerMonth }} ₽ |
| 38 | + </div> |
| 39 | + |
| 40 | + <div v-if="agreement.royalty" class="w-full text-base/5 font-normal"> |
| 41 | + Роспатент: {{ getPatentStatus(agreement.patentStatus) }} |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + |
| 45 | + <div v-if="agreement.comment" class="w-full text-base/5 text-muted font-normal whitespace-pre-wrap break-words line-clamp-5"> |
| 46 | + {{ agreement.comment }} |
| 47 | + </div> |
| 48 | + |
| 49 | + <!-- <div class="flex justify-between items-center"> |
| 50 | + <div class="flex flex-row gap-4"> |
| 51 | + <div class="flex flex-row gap-1.5 items-center text-muted"> |
| 52 | + <UIcon name="i-lucide-message-circle" class="size-5" /> |
| 53 | + <p>{{ epic?.comments.length }}</p> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | +
|
| 57 | + <time |
| 58 | + :datetime="epic.createdAt" |
| 59 | + class="text-sm text-muted" |
| 60 | + v-text="format(new Date(epic.createdAt), 'от d MMMM yyyy', { locale: ru })" |
| 61 | + /> |
| 62 | + </div> --> |
| 63 | + </ActiveCard> |
| 64 | +</template> |
| 65 | + |
| 66 | +<script setup lang="ts"> |
| 67 | +import type { PartnerAgreementWithAllData } from '~/stores/partner' |
| 68 | +import { getPatentStatus } from '#shared/utils/helpers' |
| 69 | +import { format } from 'date-fns' |
| 70 | +import { ru } from 'date-fns/locale/ru' |
| 71 | +
|
| 72 | +defineProps<{ |
| 73 | + agreement: PartnerAgreementWithAllData |
| 74 | +}>() |
| 75 | +</script> |
0 commit comments