Add KycProfileCard component with full company info
Some checks failed
Build Docker Image / build (push) Has been cancelled
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user