Commit 355b93ac authored by agping's avatar agping

1

parent 86b07e35
......@@ -193,11 +193,11 @@
<td>点评</td>
</tr>
<tr v-for="(item, index) in peopleList" data-id="item.agent_id">
<td>{{item.agent_name}}</td>
<td>{{item.name}}</td>
<td>{{item.house_num}}</td>
<td>{{item.user_num}}</td>
<td>{{item.follow_up_num}}</td>
<td>{{item.performance_week}}</td>
<td>{{item.performance}}</td>
<td><input type="text" placeholder="填写" class="check-dianping"/></td>
<!--<td>
......
......@@ -107,13 +107,16 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
_this.userName = localStorage.getItem('username');
_this.userId = localStorage.getItem('userid');
$.ajax({
type: 'POST',
url: '/broker/dayStatement',
type: 'GET',
// url: 'https://pre2.tonglianjituan.com/broker/dayOrWeekStatement',
url: '/broker/dayOrWeekStatement',
data: {
'AuthToken': _this.token,
'agent_id': _this.userId,
'time_start': _this.dateNow,
'time_end': _this.dateNow
// 'time_start': _this.dateNow,
// 'time_end': _this.dateNow,
'type': 0
},
timeout: 30000,
dataType: 'json',
......@@ -121,40 +124,38 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
success: function(_data) {
if(typeof _data === 'object') {
if(_data['code'] == '200') {
_this.fangyuan = _data.data.house_num;
_this.keyuan = _data.data.add_user_num_day;
_this.daikan = _data.data.follow_up_num;
_this.genjing_day = _data.data.phone_follow_up_num;//店长 日报跟进 日数据
//店长 日数据
_this.fangyuan = _data.data.self_house_num;
_this.keyuan = _data.data.self_user_num;
_this.daikan = _data.data.self_follow_up_num;
_this.genjing_day = _data.data.self_phone_follow_up_num;
//团队日数据 每个员工叠加
dianpingLength = _data.data.store_list.length;
if(_data.data.store_list){
$.each(_data.data.store_list,function(i,item){
_this.duandui_fangyuan += item.house_num*1;
_this.duandui_keyuan += item.user_num*1;
_this.duandui_daikan += item.follow_up_num*1;
_this.duandui_yeji += item.performance_week*1;
_this.duandui_shishou += item.practical_money*1;
});
}
_this.yeji_day = _data.data.performance_day;
if(_data.data.agent_total>0){
_this.peopleNum = Number(_data.data.agent_total);
_this.duandui_fangyuan = _data.data.team_house_num;
_this.duandui_keyuan = _data.data.team_user_num;
_this.duandui_daikan = _data.data.team_follow_up_num;
_this.duandui_yeji = _data.data.team_performance;
_this.duandui_shishou = _data.data.team_real_performance;
//计算人均
if(_data.data.store_list_num>0){
_this.peopleNum = Number(_data.data.store_list_num);
}else{
console.log('人数为0');
};
_this.peopleList = _data.data.store_list;
_this.peopleList = _data.data.store_list;//每个员工的房源 客源 进场 业绩
_this.yeji_yue_wancheng = _data.data.performance_month;
_this.chengjiao_yue_wancheng = _data.data.bargain_sum;
_this.fangyuan_yue_wancheng = _data.data.house_num_month;//房源
_this.keyuan_yue_wancheng = _data.data.user_num_month;//客源
_this.daikan_yue_wancheng = _data.data.follow_up_num_month;//带看
_this.shishou_yue_wancheng = _data.data.real_performance_month;//实收
//月数据
_this.yeji_yue_wancheng = _data.data.team_month_performance;//业绩
_this.chengjiao_yue_wancheng = _data.data.team_month_bargain_sum;//成交
_this.fangyuan_yue_wancheng = _data.data.team_month_house_num;//房源
_this.keyuan_yue_wancheng = _data.data.team_month_user_num;//客源
_this.daikan_yue_wancheng = _data.data.team_month_follow_up_num;//带看
_this.shishou_yue_wancheng = _data.data.team_month_real_performance;//实收
_this.daikan_self = _data.data.look_at_num_day_store;//店长个人带看
_this.kaidan_self = _data.data.bargain_sum_store;//店长个人开单
// _this.yeji_day = _data.data.performance_day;
// _this.daikan_self = _data.data.look_at_num_day_store;//店长个人带看
// _this.kaidan_self = _data.data.bargain_sum_store;//店长个人开单
} else {
layerTipsX(_data['msg']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment