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