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

fix: 修复业务员业绩统计详情金额返回nul展示l的问题

parent c0b9421b
......@@ -19,7 +19,7 @@ const SalesPerformanceStatistics: React.FC = () => {
const [paramsData,setParamsData] = useState<{ name:string,time:string,organization:number,pageSize:number,current:number }>()
const defaultColumns: ColumnType<any>[] = [
{
title: intl.formatMessage({ id: 'salesPerformanceStatistics.name' }),
dataIndex: 'name',
......@@ -93,14 +93,14 @@ const SalesPerformanceStatistics: React.FC = () => {
render: (text, record) => (
<>
<Link
to={`/memberCenter/tranactionAbility/salesPerformanceStatistics/statisticsDetail?id=${record.userId}`}
to={`/memberCenter/order/salesPerformanceStatistics/statisticsDetail?id=${record.userId}`}
>
<Button type="link">
{intl.formatMessage({ id: 'salesPerformanceStatistics.view' })}
</Button>
</Link>
<Link
to={`/memberCenter/tranactionAbility/salesPerformanceStatistics/performanceDetail?id=${record.userId}`}
to={`/memberCenter/order/salesPerformanceStatistics/performanceDetail?id=${record.userId}`}
>
<Button type="link">
{intl.formatMessage({
......@@ -231,10 +231,10 @@ const SalesPerformanceStatistics: React.FC = () => {
type: 'Search',
"x-component-props": {
placeholder: intl.formatMessage({ id: 'salesPerformanceStatistics.placeholder.name' }),
allowClear:true,
allowClear:true,
}
},
}
}
}
......
......@@ -78,7 +78,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
render: text =>
`${intl.formatMessage({
id: 'salesPerformanceStatistics.currency',
})}${text}`,
})}${text || '0'}`,
},
{
title: intl.formatMessage({
......@@ -93,7 +93,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
render: text =>
`${intl.formatMessage({
id: 'salesPerformanceStatistics.currency',
})}${text}`,
})}${text || '0'}`,
},
{
title: intl.formatMessage({
......@@ -105,7 +105,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
render: text =>
`${intl.formatMessage({
id: 'salesPerformanceStatistics.currency',
})}${text}`,
})}${text || '0'}`,
},
{
title: intl.formatMessage({
......@@ -115,7 +115,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
align: 'center',
width: 260,
render: (text, record) => (
<Button type="link" onClick={()=> history.push(`/memberCenter/tranactionAbility/salesPerformanceStatistics/performanceDetail?id=${id}&subMemberId=${record.memberId}&subMemberRoleId=${record.memberRoleId}&memberName=${record.memberName}`)}>
<Button type="link" onClick={()=> history.push(`/memberCenter/order/salesPerformanceStatistics/performanceDetail?id=${id}&subMemberId=${record.memberId}&subMemberRoleId=${record.memberRoleId}&memberName=${record.memberName}`)}>
{intl.formatMessage({
id: 'salesPerformanceStatistics.orderDetail',
})}
......@@ -172,7 +172,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
render: text =>
`${intl.formatMessage({
id: 'salesPerformanceStatistics.currency',
})}${text}`,
})}${text || '0'}`,
},
{
title: intl.formatMessage({
......@@ -187,7 +187,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
render: text =>
`${intl.formatMessage({
id: 'salesPerformanceStatistics.currency',
})}${text}`,
})}${text || '0'}`,
},
{
title: intl.formatMessage({
......@@ -198,7 +198,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
render: text =>
`${intl.formatMessage({
id: 'salesPerformanceStatistics.currency',
})}${text}`,
})}${text || '0'}`,
},
{
title: intl.formatMessage({
......@@ -209,7 +209,7 @@ const StatistticsList: React.FC<{ searchType: string; id: number }> = ({
width: 260,
render: (text, record) => (
<Link
to={`/memberCenter/tranactionAbility/salesPerformanceStatistics/performanceDetail?id=${id}&skuId=${record.skuId}&commodityName=${record.commodityName}`}
to={`/memberCenter/order/salesPerformanceStatistics/performanceDetail?id=${id}&skuId=${record.skuId}&commodityName=${record.commodityName}`}
>
<Button type="link">
{intl.formatMessage({
......
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