|
@@ -18,12 +18,12 @@ const DiurnalStatistics = React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/open/api/admin/report/sales/sometimeMarketingStatistics",
|
|
|
+ url: globalConfig.context + "/api/admin/report/sales/sometimeMarketingStatistics",
|
|
|
data: {
|
|
|
type:'1',
|
|
|
timeType:this.state.releaseDate[0]?4:timeTypes,
|
|
|
- startDate: this.state.releaseDate[0]?(this.state.releaseDate[0]+' '+'00:00:00'):'',
|
|
|
- endDate: this.state.releaseDate[1]?(this.state.releaseDate[1]+' '+'00:00:00'):'',
|
|
|
+ startDate: this.state.releaseDate[0],
|
|
|
+ endDate: this.state.releaseDate[1],
|
|
|
depId:this.state.superId,//部门机构
|
|
|
},
|
|
|
success: function(data) {
|
|
@@ -60,21 +60,10 @@ const DiurnalStatistics = React.createClass({
|
|
|
key:9999999,
|
|
|
theNumber:true,
|
|
|
departmentName:'合计',
|
|
|
- departmentNumber:total.departmentNumber, //部门人数
|
|
|
- privateCustomersCount:total.privateCustomersCount,// 部门客户数
|
|
|
- dailyTelNo:total.dayTelNo,//日电话量
|
|
|
- dailyVisitNo:total.dayVisitNo,//日外拜量
|
|
|
- dailyFollowNo:total.dayFollowNo,//日营销总量
|
|
|
- dailyAVG:parseFloat(total.dailyAVG).toFixed(2),//日人均营销量
|
|
|
- weekTelNo:total.weeklyTelNo,//周电话量
|
|
|
- weekFollowNo:total.weeklyFollowNo,//周总量
|
|
|
- weekVisitNo:total.weeklyVisitNo,//周外拜量
|
|
|
- monthsTelNo:total.monthTelNo,//月电话量
|
|
|
- monthsFollowNo:total.monthFollowNo,//月总量
|
|
|
- monthsVisitNo:total.monthVisitNo,//月外拜量
|
|
|
- annualTelNo:total.yearTelNo,//年电话量
|
|
|
- annualFollowNo:total.yearFollowNo,//年总量
|
|
|
- annualVisitNo:total.yearVisitNo,//年外拜量
|
|
|
+ countVisitNo:total.countVisitNo,//拜访量
|
|
|
+ countTelNo:total.countTelNo,//电话量
|
|
|
+ countFollowNo:total.countFollowNo,//总量
|
|
|
+ dayAVG:parseFloat(total.dayAVG).toFixed(2),//营销日均量
|
|
|
}
|
|
|
)
|
|
|
}
|
|
@@ -96,12 +85,12 @@ const DiurnalStatistics = React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/open/api/admin/report/sales/countMarketingStatistics",
|
|
|
+ url: globalConfig.context + "/api/admin/report/sales/countsometimeMarketingStatistics",
|
|
|
data: {
|
|
|
type:'1',
|
|
|
timeType:this.state.releaseDate[0]?4:timeTypes,
|
|
|
- startDate: this.state.releaseDate[0]?(this.state.releaseDate[0]+' '+'00:00:00'):null,
|
|
|
- endDate: this.state.releaseDate[1]?(this.state.releaseDate[1]+' '+'00:00:00'):null,
|
|
|
+ startDate: this.state.releaseDate[0],
|
|
|
+ endDate: this.state.releaseDate[1],
|
|
|
depId:this.state.superId,//部门机构
|
|
|
},
|
|
|
success: function(data) {
|