Commit 7e679c94 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(商品询价、询价报价、确认询价报价): 修复跳转企业商城链接

parent 763196a4
...@@ -146,7 +146,7 @@ const ConfirmOfferDetail = () => { ...@@ -146,7 +146,7 @@ const ConfirmOfferDetail = () => {
dataIndex: 'productId', dataIndex: 'productId',
render: (productId, data) => ( render: (productId, data) => (
<Space direction='vertical'> <Space direction='vertical'>
<Typography.Link target="_blank" href={`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${productId}`}>{productId}</Typography.Link> <Typography.Link target="_blank" href={`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${data.commodityId}`}>{productId}</Typography.Link>
<Typography.Text>{data.productName}</Typography.Text> <Typography.Text>{data.productName}</Typography.Text>
</Space> </Space>
) )
......
...@@ -138,7 +138,7 @@ const ConfirmOfferPreview = () => { ...@@ -138,7 +138,7 @@ const ConfirmOfferPreview = () => {
}, []) }, [])
const handleJump = (data:any) => { const handleJump = (data:any) => {
window.open(`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${data.productId}`) window.open(`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${data.commodityId}`)
} }
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
......
...@@ -146,7 +146,7 @@ const InquiryOfferDetail = () => { ...@@ -146,7 +146,7 @@ const InquiryOfferDetail = () => {
dataIndex: 'productId', dataIndex: 'productId',
render: (productId, data) => ( render: (productId, data) => (
<Space direction='vertical'> <Space direction='vertical'>
<Typography.Link target="_blank" href={`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${productId}`}>{productId}</Typography.Link> <Typography.Link target="_blank" href={`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/inquiry/detail/${data.commodityId}`}>{productId}</Typography.Link>
<Typography.Text>{data.productName}</Typography.Text> <Typography.Text>{data.productName}</Typography.Text>
</Space> </Space>
) )
......
...@@ -136,7 +136,7 @@ const InquiryOfferPreview = () => { ...@@ -136,7 +136,7 @@ const InquiryOfferPreview = () => {
}, []) }, [])
const handleJump = (data:any) => { const handleJump = (data:any) => {
window.open(`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${data.productId}`) window.open(`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/inquiry/detail/${data.commodityId}`)
} }
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
......
...@@ -3,6 +3,8 @@ import { Form, Button, Table, Input, Image } from 'antd'; ...@@ -3,6 +3,8 @@ import { Form, Button, Table, Input, Image } from 'antd';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import Card from '@/pages/transaction/components/card'; import Card from '@/pages/transaction/components/card';
import { isEmpty } from '@/components/NiceForm/components/AntUpload/shared'; import { isEmpty } from '@/components/NiceForm/components/AntUpload/shared';
import EyePreview from '@/components/EyePreview';
import { ENTERPRISE_CENTER_URL } from '@/constants';
interface ProductQuoteLayoutProps { interface ProductQuoteLayoutProps {
/** 回显 */ /** 回显 */
...@@ -27,11 +29,17 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => { ...@@ -27,11 +29,17 @@ const ProductQuoteLayout: React.FC<ProductQuoteLayoutProps> = (props: any) => {
}) })
setDataSource([...dataSource]); setDataSource([...dataSource]);
} }
const handleJump = (data:any) => {
window.open(`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/inquiry/detail/${data.commodityId}`)
}
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
{ {
title: "商品ID", title: "商品ID",
key: "productId", key: "productId",
dataIndex: "productId", dataIndex: "productId",
render: (text: any, record: any) => <EyePreview type='button' handleClick={() => handleJump(record)}>{text}</EyePreview>
}, },
{ {
title: "商品图片", title: "商品图片",
......
...@@ -141,7 +141,7 @@ const ProductInquiryDetail = () => { ...@@ -141,7 +141,7 @@ const ProductInquiryDetail = () => {
}, []) }, [])
const handleJump = (data:any) => { const handleJump = (data:any) => {
window.open(`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${data.productId}`) window.open(`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/inquiry/detail/${data.commodityId}`)
} }
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
......
...@@ -49,7 +49,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) = ...@@ -49,7 +49,7 @@ const InquiryProductLayout: React.FC<InquiryProductLayoutProps> = (props: any) =
title: "商品ID", title: "商品ID",
key: "productId", key: "productId",
dataIndex: "productId", dataIndex: "productId",
render: (productId, data) => <Typography.Link target="_blank" href={`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/commodity/detail/${productId}`}>{productId}</Typography.Link> render: (productId, data) => <Typography.Link target="_blank" href={`${ENTERPRISE_CENTER_URL}/shop/${data.memberId}_${data.memberRoleId}/inquiry/detail/${data.commodityId}`}>{productId}</Typography.Link>
}, },
{ {
title: "商品图片", title: "商品图片",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment