|
@@ -15,7 +15,7 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/report/sales/marketingStatistics",
|
|
|
+ url: globalConfig.context + "/open/api/admin/report/sales/sometimeMarketingStatistics",
|
|
|
data: {
|
|
|
type:'0',
|
|
|
timeType:this.state.releaseDate[0]?4:timeTypes,
|
|
@@ -44,20 +44,10 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
departmentName:item.departmentName,//部门名称
|
|
|
departmentManagerName:item.departmentManagerName,//部门负责人名称
|
|
|
roleName:item.roleName, //职位权限
|
|
|
- privateCustomersCount:item.privateCustomersCount,// 部门客户数
|
|
|
- dailyTelNo:item.dayTelNo,//日电话量
|
|
|
- dailyVisitNo:item.dayVisitNo,//日外拜量
|
|
|
- dailyFollowNo:item.dayFollowNo,//日营销总量
|
|
|
- dailyAVG:parseFloat(item.dayAVG).toFixed(2),//日人均营销量
|
|
|
- weekTelNo:item.weeklyTelNo,//周电话量
|
|
|
- weekFollowNo:item.weeklyFollowNo,//周总量
|
|
|
- weekVisitNo:item.weeklyVisitNo,//周外拜量
|
|
|
- monthsTelNo:item.monthTelNo,//月电话量
|
|
|
- monthsFollowNo:item.monthFollowNo,//月总量
|
|
|
- monthsVisitNo:item.monshVisitNo,//月外拜量
|
|
|
- annualTelNo:item.yearTelNo,//年电话量
|
|
|
- annualFollowNo:item.yearFollowNo,//年总量
|
|
|
- annualVisitNo:item.yearVisitNo,//年外拜量
|
|
|
+ countVisitNo:item.countVisitNo,//拜访量
|
|
|
+ countTelNo:item.countTelNo,//电话量
|
|
|
+ countFollowNo:item.countFollowNo,//总量
|
|
|
+ dayAVG:parseFloat(item.dayAVG).toFixed(2),//营销日均量
|
|
|
})
|
|
|
})
|
|
|
}
|
|
@@ -102,7 +92,7 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/report/sales/countMarketingStatistics",
|
|
|
+ url: globalConfig.context + "/open/api/admin/report/sales/countMarketingStatistics",
|
|
|
data: {
|
|
|
type:'0',
|
|
|
timeType:this.state.releaseDate[0]?4:timeTypes,
|
|
@@ -308,7 +298,6 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
}
|
|
|
},{
|
|
|
title: '姓名',
|
|
|
- width:100,
|
|
|
fixed:false,
|
|
|
dataIndex: 'name',
|
|
|
key: 'name',
|
|
@@ -331,7 +320,6 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
title: '部门',
|
|
|
dataIndex: 'departmentName',
|
|
|
key: 'departmentName',
|
|
|
- width:100,
|
|
|
fixed:false,
|
|
|
render:(text,record)=>{
|
|
|
if(!record.theNumber){
|
|
@@ -349,7 +337,6 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
}
|
|
|
},{
|
|
|
title: '职位',
|
|
|
- width:100,
|
|
|
fixed:false,
|
|
|
dataIndex: 'roleName',
|
|
|
key: 'roleName',
|
|
@@ -369,11 +356,11 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '私有客户数',
|
|
|
- width:100,
|
|
|
+ title: '营销总量',
|
|
|
fixed:false,
|
|
|
- dataIndex: 'privateCustomersCount',
|
|
|
- key: 'privateCustomersCount',
|
|
|
+ dataIndex: 'countFollowNo',
|
|
|
+ key: 'countFollowNo',
|
|
|
+ sorter: (a, b) => a.countFollowNo - b.countFollowNo,
|
|
|
render:(text,record)=>{
|
|
|
if(!record.theNumber){
|
|
|
return text
|
|
@@ -388,100 +375,69 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- },{
|
|
|
- title: '今日营销',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '营销总量(所有)',
|
|
|
- width:100,
|
|
|
- dataIndex: 'dailyFollowNo',
|
|
|
- key: 'nudailyFollowNom',
|
|
|
- sorter: (a, b) => a.dailyFollowNo - b.dailyFollowNo,
|
|
|
- sorterOrder:'ascend'
|
|
|
- },{
|
|
|
- title: '电话量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'dailyTelNo',
|
|
|
- key: 'dailyTelNo',
|
|
|
- sorter: (a, b) => a.dailyTelNo - b.dailyTelNo,
|
|
|
- },{
|
|
|
- title: '外拜量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'dailyVisitNo',
|
|
|
- key: 'dailyVisitNo',
|
|
|
- sorter: (a, b) => a.dailyVisitNo - b.dailyVisitNo,
|
|
|
- }
|
|
|
- ],
|
|
|
},
|
|
|
- {
|
|
|
- title: '周营销累计',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '周营销总量(所有)',
|
|
|
- width:110,
|
|
|
- dataIndex: 'weekFollowNo',
|
|
|
- key: 'weekFollowNo',
|
|
|
- sorter: (a, b) => a.weekFollowNo - b.weekFollowNo,
|
|
|
- },{
|
|
|
- title: '电话量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'weekTelNo',
|
|
|
- key: 'weekTelNo',
|
|
|
- sorter: (a, b) => a.weekTelNo - b.weekTelNo,
|
|
|
- },{
|
|
|
- title: '外拜量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'weekVisitNo',
|
|
|
- key: 'weekVisitNo',
|
|
|
- sorter: (a, b) => a.weekVisitNo - b.weekVisitNo,
|
|
|
- }
|
|
|
- ],
|
|
|
- },{
|
|
|
- title: '月营销累计',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '月营销总量(所有)',
|
|
|
- width:110,
|
|
|
- dataIndex: 'monthsFollowNo',
|
|
|
- key: 'monthsFollowNo',
|
|
|
- sorter: (a, b) => a.monthsFollowNo - b.monthsFollowNo,
|
|
|
- },{
|
|
|
- title: '电话量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'monthsTelNo',
|
|
|
- key: 'monthsTelNo',
|
|
|
- sorter: (a, b) => a.monthsTelNo - b.monthsTelNo,
|
|
|
- },{
|
|
|
- title: '外拜量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'monthsVisitNo',
|
|
|
- key: 'monthsVisitNo',
|
|
|
- sorter: (a, b) => a.monthsVisitNo - b.monthsVisitNo,
|
|
|
- }
|
|
|
- ],
|
|
|
- },{
|
|
|
- title: '年营销累计',
|
|
|
- children: [
|
|
|
- {
|
|
|
- title: '年营销总量(所有)',
|
|
|
- width:110,
|
|
|
- dataIndex: 'annualFollowNo',
|
|
|
- key: 'annualFollowNo',
|
|
|
- sorter: (a, b) => a.annualFollowNo - b.annualFollowNo,
|
|
|
- },{
|
|
|
- title: '电话量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'annualTelNo',
|
|
|
- key: 'annualTelNo',
|
|
|
- sorter: (a, b) => a.annualTelNo - b.annualTelNo,
|
|
|
- },{
|
|
|
- title: '外拜量',
|
|
|
- width:80,
|
|
|
- dataIndex: 'annualVisitNo',
|
|
|
- key: 'annualVisitNo',
|
|
|
- sorter: (a, b) => a.annualVisitNo - b.annualVisitNo,
|
|
|
- }
|
|
|
- ],
|
|
|
+ {
|
|
|
+ title: '电话量',
|
|
|
+ fixed:false,
|
|
|
+ dataIndex: 'countTelNo',
|
|
|
+ key: 'countTelNo',
|
|
|
+ sorter: (a, b) => a.countTelNo - b.countTelNo,
|
|
|
+ render:(text,record)=>{
|
|
|
+ if(!record.theNumber){
|
|
|
+ return text
|
|
|
+ }else{
|
|
|
+ return {
|
|
|
+ children: text,
|
|
|
+ props: {
|
|
|
+ colSpan:1
|
|
|
+ },
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '外拜量',
|
|
|
+ fixed:false,
|
|
|
+ dataIndex: 'countVisitNo',
|
|
|
+ key: 'countVisitNo',
|
|
|
+ sorter: (a, b) => a.countVisitNo - b.countVisitNo,
|
|
|
+ render:(text,record)=>{
|
|
|
+ if(!record.theNumber){
|
|
|
+ return text
|
|
|
+ }else{
|
|
|
+ return {
|
|
|
+ children: text,
|
|
|
+ props: {
|
|
|
+ colSpan:1
|
|
|
+ },
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '营销日均量',
|
|
|
+ fixed:false,
|
|
|
+ dataIndex: 'dayAVG',
|
|
|
+ key: 'dayAVG',
|
|
|
+ sorter: (a, b) => a.dayAVG - b.dayAVG,
|
|
|
+ render:(text,record)=>{
|
|
|
+ if(!record.theNumber){
|
|
|
+ return text
|
|
|
+ }else{
|
|
|
+ return {
|
|
|
+ children: text,
|
|
|
+ props: {
|
|
|
+ colSpan:1
|
|
|
+ },
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
],
|
|
|
dataSource: [],
|
|
@@ -515,7 +471,7 @@ const DiurnalStatisticsOne = React.createClass({
|
|
|
this.totalData(3);
|
|
|
},
|
|
|
componentWillMount() {
|
|
|
- this.totalData();
|
|
|
+ this.totalData(0);
|
|
|
let times=new Date();
|
|
|
let nowTime=times.getFullYear()+'年'+(times.getMonth()+1)+'月'+times.getDate()+'日';
|
|
|
this.setState({
|