Add KycProfileCard component with full company info
Some checks failed
Build Docker Image / build (push) Has been cancelled

- New KycProfileCard shows full KYC profile data (INN, OGRN, director, capital, activities)
- Added to offer detail page /catalog/suppliers/[supplierId]/[productId]/[hubId]
- Uses kycProfileFull endpoint for authorized detailed company info
This commit is contained in:
Ruslan Bakiev
2026-01-21 14:52:01 +07:00
parent 1b0fae1164
commit c1ae984fcc
3 changed files with 170 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
:unit="getOfferData(option.sourceUuid)?.unit"
:stages="getRouteStages(option)"
:kyc-profile-uuid="getKycProfileUuid(option.sourceUuid)"
@select="navigateToOffer(option.sourceUuid)"
/>
</div>
@@ -68,6 +69,7 @@ import type { RouteStageItem } from '~/components/RouteStagesList.vue'
import { GetOfferDocument, GetSupplierProfileByTeamDocument } from '~/composables/graphql/public/exchange-generated'
const route = useRoute()
const localePath = useLocalePath()
const searchStore = useSearchStore()
const { execute } = useGraphQL()
@@ -175,6 +177,16 @@ const getKycProfileUuid = (offerUuid?: string | null) => {
return supplier?.kycProfileUuid || null
}
// Navigate to offer detail page
const navigateToOffer = (offerUuid?: string | null) => {
if (!offerUuid) return
const offer = offersData.value.get(offerUuid)
if (!offer?.teamUuid || !productUuid.value || !destinationUuid.value) return
// Navigate to /catalog/suppliers/[supplierId]/[productId]/[hubId]
navigateTo(localePath(`/catalog/suppliers/${offer.teamUuid}/${productUuid.value}/${destinationUuid.value}`))
}
// Load offer details for prices
const loadOfferDetails = async (options: ProductRouteOption[]) => {
if (options.length === 0) {