11<template >
2- <Header :title =" t (' app.menu.agreements' )" >
3- <UButton
4- size="lg"
5- variant="solid"
6- color="secondary"
7- class="w-full md:w-fit "
8- icon="i-lucide-circle-plus"
9- :label =" t (' app.create.agreement.button' )"
10- @click =" modalCreatePartnerAgreement .open ()"
11- />
12- </Header >
2+ <Header :title =" t (' app.menu.agreements' )" />
133
144 <Content >
155 <div class =" flex flex-wrap items-center justify-between gap-1.5" >
16- <div class =" flex flex-row gap-2.5" >
17- <UInput
18- v-model =" filterValue "
19- placeholder="По номеру"
20- class="max-w-sm"
21- icon="i-lucide-search"
22- />
23- </div >
6+ <UInput
7+ v-model =" filterValue "
8+ placeholder="По номеру"
9+ class="max-w-sm"
10+ icon="i-lucide-search"
11+ />
2412
2513 <div class =" flex flex-wrap items-center gap-1.5" >
2614 <UDropdownMenu
4634 :label =" $t (' common.columns' )"
4735 color="neutral"
4836 variant="outline"
49- trailing- icon="i-lucide-settings-2"
37+ icon="i-lucide-settings-2"
5038 />
5139 </UDropdownMenu >
40+
41+ <UButton
42+ size="md"
43+ variant="solid"
44+ color="secondary"
45+ class="w-full md:w-fit "
46+ icon="i-lucide-circle-plus"
47+ :label =" t (' app.create.partner-legal-entity.button' )"
48+ @click =" modalCreatePartnerLegalEntity .open ()"
49+ />
50+
51+ <UButton
52+ size="md"
53+ variant="solid"
54+ color="secondary"
55+ class="w-full md:w-fit "
56+ icon="i-lucide-circle-plus"
57+ :label =" t (' app.create.agreement.button' )"
58+ @click =" modalCreatePartnerAgreement .open ()"
59+ />
5260 </div >
5361 </div >
5462
178186import type { DropdownMenuItem , TableColumn } from ' @nuxt/ui'
179187import type { PartnerAgreement } from ' @roll-stack/database'
180188import type { PartnerAgreementWithAllData } from ' ~/stores/partner'
181- import { ModalCreatePartnerAgreement , ModalUpdatePartnerAgreement } from ' #components'
189+ import { ModalCreatePartnerAgreement , ModalCreatePartnerLegalEntity , ModalUpdatePartnerAgreement } from ' #components'
182190import { getPaginationRowModel } from ' @tanstack/table-core'
183191import { format } from ' date-fns'
184192import { ru } from ' date-fns/locale/ru'
@@ -193,6 +201,7 @@ const filterValue = ref('')
193201const overlay = useOverlay ()
194202const modalCreatePartnerAgreement = overlay .create (ModalCreatePartnerAgreement )
195203const modalUpdatePartnerAgreement = overlay .create (ModalUpdatePartnerAgreement )
204+ const modalCreatePartnerLegalEntity = overlay .create (ModalCreatePartnerLegalEntity )
196205
197206const partnerStore = usePartnerStore ()
198207
0 commit comments