-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPartnerLegalEntityCard.vue
More file actions
36 lines (30 loc) · 1006 Bytes
/
PartnerLegalEntityCard.vue
File metadata and controls
36 lines (30 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
<UCard v-if="entity" class="h-full">
<div class="flex flex-col gap-2.5">
<UIcon name="i-lucide-scale" class="size-16 text-muted/25" />
<h3 class="text-xl md:text-xl/6 font-semibold">
{{ entity.name }}
</h3>
<div>
<p>ИНН {{ entity.inn }}</p>
<p>ОГРНИП {{ entity.ogrnip }}</p>
</div>
<p class="text-muted">
{{ entity.comment }}
</p>
</div>
</UCard>
<CreateCard
v-else
label="Добавить юридическое лицо"
icon="i-lucide-scale"
@click="modalCreatePartnerLegalEntity.open({ partnerId })"
/>
</template>
<script setup lang="ts">
import type { PartnerLegalEntity } from '@roll-stack/database'
import { ModalCreatePartnerLegalEntity } from '#components'
defineProps<{ partnerId: string, entity: PartnerLegalEntity | null | undefined }>()
const overlay = useOverlay()
const modalCreatePartnerLegalEntity = overlay.create(ModalCreatePartnerLegalEntity)
</script>