Explorar el Código

区分新老客户统计

test01 hace 3 años
padre
commit
491a5edf2d

+ 1 - 0
js/component/manageCenter/customer/operationalData/interviewStatistics/detailedList.jsx

@@ -511,6 +511,7 @@ class DetailedList extends Component{
                             exportApi={'/api/admin/provinceFollowStatisticsListExport'}
                             query={{
                                 province:this.props.recordInfor.id,
+                                type:this.props.recordInfor.type
                             }}
                             onRowClick={()=>{}}
                             searchOperation={(value)=>{

+ 91 - 15
js/component/manageCenter/customer/operationalData/interviewStatistics/index.jsx

@@ -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))

+ 2 - 2
js/component/manageCenter/customer/operationalData/receivablesStatistics/detailedList.jsx

@@ -191,11 +191,11 @@ class DetailedList extends Component{
                 selectList:[
                     {
                         value:'0',
-                        label:'按总金额排序'
+                        label:'按改签单额排序'
                     },
                     {
                         value:'1',
-                        label:'按数量排序'
+                        label:'按应收款排序'
                     },
                 ]
             },