|
@@ -26,6 +26,15 @@ class InterviewStatistics extends Component{
|
|
title: "老客户面谈数",
|
|
title: "老客户面谈数",
|
|
dataIndex: "useInterview",
|
|
dataIndex: "useInterview",
|
|
key: "useInterview",
|
|
key: "useInterview",
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 1;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "老客户签单数/金额",
|
|
title: "老客户签单数/金额",
|
|
@@ -33,20 +42,47 @@ class InterviewStatistics extends Component{
|
|
key: "useQuantity",
|
|
key: "useQuantity",
|
|
render:(text, record)=>(
|
|
render:(text, record)=>(
|
|
text + '/' + record.useTotal
|
|
text + '/' + record.useTotal
|
|
- )
|
|
|
|
|
|
+ ),
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 1;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "老客户面谈率",
|
|
title: "老客户面谈率",
|
|
dataIndex: "useRatio",
|
|
dataIndex: "useRatio",
|
|
key: "useRatio",
|
|
key: "useRatio",
|
|
render:(text)=>(
|
|
render:(text)=>(
|
|
- parseFloat(text) * 100 + '%'
|
|
|
|
- )
|
|
|
|
|
|
+ parseFloat((parseFloat(text) * 100).toFixed(2)) + '%'
|
|
|
|
+ ),
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 1;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "新客户面谈数",
|
|
title: "新客户面谈数",
|
|
dataIndex: "newInterview",
|
|
dataIndex: "newInterview",
|
|
key: "newInterview",
|
|
key: "newInterview",
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 2;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "新客户签单数/金额",
|
|
title: "新客户签单数/金额",
|
|
@@ -54,20 +90,47 @@ class InterviewStatistics extends Component{
|
|
key: "newQuantity",
|
|
key: "newQuantity",
|
|
render:(text, record)=>(
|
|
render:(text, record)=>(
|
|
text + '/' + record.newTotal
|
|
text + '/' + record.newTotal
|
|
- )
|
|
|
|
|
|
+ ),
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 2;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "新客户面谈率",
|
|
title: "新客户面谈率",
|
|
dataIndex: "newRatio",
|
|
dataIndex: "newRatio",
|
|
key: "newRatio",
|
|
key: "newRatio",
|
|
render:(text)=>(
|
|
render:(text)=>(
|
|
- parseFloat(text) * 100 + '%'
|
|
|
|
- )
|
|
|
|
|
|
+ parseFloat((parseFloat(text) * 100).toFixed(2)) + '%'
|
|
|
|
+ ),
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 2;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "总面数",
|
|
title: "总面数",
|
|
dataIndex: "totalInterview",
|
|
dataIndex: "totalInterview",
|
|
key: "totalInterview",
|
|
key: "totalInterview",
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 0;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "总签单数/金额",
|
|
title: "总签单数/金额",
|
|
@@ -75,15 +138,33 @@ class InterviewStatistics extends Component{
|
|
key: "totalQuantity",
|
|
key: "totalQuantity",
|
|
render:(text, record)=>(
|
|
render:(text, record)=>(
|
|
text + '/' + record.total
|
|
text + '/' + record.total
|
|
- )
|
|
|
|
|
|
+ ),
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 0;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "总面谈率",
|
|
title: "总面谈率",
|
|
dataIndex: "totalRatio",
|
|
dataIndex: "totalRatio",
|
|
key: "totalRatio",
|
|
key: "totalRatio",
|
|
render:(text)=>(
|
|
render:(text)=>(
|
|
- parseFloat(text) * 100 + '%'
|
|
|
|
- )
|
|
|
|
|
|
+ parseFloat((parseFloat(text) * 100).toFixed(2)) + '%'
|
|
|
|
+ ),
|
|
|
|
+ className: 'projectTable',
|
|
|
|
+ onCellClick: (record, event) => {
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ record.type = 0;
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ recordInfor: record,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
],
|
|
],
|
|
searchConfig:{}
|
|
searchConfig:{}
|
|
@@ -168,12 +249,7 @@ class InterviewStatistics extends Component{
|
|
}
|
|
}
|
|
tabelApi={'/api/admin/followStatisticsList'}
|
|
tabelApi={'/api/admin/followStatisticsList'}
|
|
exportApi={'/api/admin/followStatisticsListExport'}
|
|
exportApi={'/api/admin/followStatisticsListExport'}
|
|
- onRowClick={(row)=>{
|
|
|
|
- this.setState({
|
|
|
|
- visible: true,
|
|
|
|
- recordInfor: row,
|
|
|
|
- })
|
|
|
|
- }}
|
|
|
|
|
|
+ onRowClick={()=>{}}
|
|
exportExecProcessing={(data)=>{
|
|
exportExecProcessing={(data)=>{
|
|
if(data.province){
|
|
if(data.province){
|
|
let arr = provinceList.filter(v=>String(v.id) === String(data.province))
|
|
let arr = provinceList.filter(v=>String(v.id) === String(data.province))
|