Commit 5cc2ecc5 authored by agping's avatar agping

业绩排行修改

parent b261408e
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
<a href="#"><span id="performance_ranking_agent_two">收款数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="rank_start_day_agent_two"></span>&nbsp;&nbsp;<span id="rank_end_day_agent_two"></span></a> <a href="#"><span id="performance_ranking_agent_two">收款数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="collection_details_time_start"></span>&nbsp;&nbsp;<span id="collection_details_time_end"></span></a>
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
<a href="#"><span id="performance_ranking_agent_two">进场数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="rank_start_day_agent_two"></span>&nbsp;&nbsp;<span id="rank_end_day_agent_two"></span></a> <a href="#"><span id="performance_ranking_agent_two">进场数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="approach_details_time_start"></span>&nbsp;&nbsp;<span id="approach_details_time_end"></span></a>
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -124,6 +124,13 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -124,6 +124,13 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
realtime.district_store_agent_id = $(this).attr("data-id"); realtime.district_store_agent_id = $(this).attr("data-id");
realtime.getcollectionNumberDetails(1); realtime.getcollectionNumberDetails(1);
}); });
//部门-进场数-弹出框
_doc.on('click', '.approach-number-details', function(e) {
e.preventDefault();
e.stopPropagation();
realtime.district_store_agent_id = $(this).attr("data-id");
realtime.getapproachNumberDetails(1);
});
//点击详情按钮事件,获取报告详情 //点击详情按钮事件,获取报告详情
_doc.on('click', '.details-btn', function() { _doc.on('click', '.details-btn', function() {
...@@ -480,11 +487,53 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -480,11 +487,53 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
var doTtmpl = doT.template(document.getElementById('performance_details_tpl').innerHTML); var doTtmpl = doT.template(document.getElementById('collection_number_details_tpl').innerHTML);
$("#performance_details_list").html(doTtmpl(data.data.data)); $("#collection_number_details_list").html(doTtmpl(data.data));
//获取统计时间 //获取统计时间
$('#performance_details_time_start').html(realtime.time_search_start); $('#collection_details_time_start').html(realtime.time_search_start);
$('#performance_details_time_end').html(realtime.time_search_end); $('#collection_details_time_end').html(realtime.time_search_end);
} else {
alert(data['msg']);
};
} else {
alert('数据错误');
};
},
error: function() {
alert('error');
},
complete: function(xhr, textStatus) {
if(textStatus === 'timeout') {
alert('请求超时');
};
}
});
},
//部门-进场-弹出框-详情
getapproachNumberDetails: function(pageNo){
var params = {
'id': realtime.district_store_agent_id,
'type': realtime.switchType(),
'start_time': realtime.time_search_start,
'end_time': realtime.time_search_end
};
$.ajax({
type: 'GET',
url: '/broker/housingResourcePcInfo',
data: params,
timeout: 30000,
dataType: 'json',
beforeSend: function() {},
success: function(data) {
if(typeof data === 'object') {
if(data.code == 200) {
var doTtmpl = doT.template(document.getElementById('approach_number_details_tpl').innerHTML);
$("#approach_number_details_list").html(doTtmpl(data.data));
//获取统计时间
$('#approach_details_time_start').html(realtime.time_search_start);
$('#approach_details_time_end').html(realtime.time_search_end);
} else { } else {
alert(data['msg']); alert(data['msg']);
......
...@@ -970,7 +970,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -970,7 +970,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
if (data.code == 200) { if (data.code == 200) {
_backPhone = data['data']['data']['phone']; _backPhone = data['data']['phone'];
_temp_follow_id = data['data']['follow_id'];//临时的跟进id _temp_follow_id = data['data']['follow_id'];//临时的跟进id
console.log(_backPhone); console.log(_backPhone);
$('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone); $('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone);
......
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
<td class="text-center"><a class="performance-number-details" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]" >[%= it[item]['performance_total'] %]</a></td> <td class="text-center"><a class="performance-number-details" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]" >[%= it[item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td> <td class="text-center"><a class="deal-number-details" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['paylog_total'] %]</a></td> <td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details" href="#modal-approach-number-details" data-toggle="modal">[%= it[item]['march_in_num_total'] %]</a></td> <td class="text-center"><a class="approach-number-details" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details" href="#modal-reported-number-details" data-toggle="modal">[%= it[item]['look_at_num_total'] %]</a></td> <td class="text-center"><a class="reported-number-details" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details" href="#modal-newshop-number-details" data-toggle="modal">[%= it[item]['add_house_num_total'] %]</a></td> <td class="text-center"><a class="newshop-number-details" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details" href="#modal-newuser-number-details" data-toggle="modal">[%= it[item]['add_user_num_total'] %]</a></td> <td class="text-center"><a class="newuser-number-details" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal">[%= it[item]['team_num'] %]</a></td> <td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['team_num'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
...@@ -63,11 +63,11 @@ ...@@ -63,11 +63,11 @@
<td class="text-center"><a class="performance-number-details" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['performance_total'] %]</a></td> <td class="text-center"><a class="performance-number-details" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td> <td class="text-center"><a class="deal-number-details" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['paylog_total'] %]</a></td> <td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details" href="#modal-approach-number-details" data-toggle="modal">[%= it[item]['march_in_num_total'] %]</a></td> <td class="text-center"><a class="approach-number-details" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details" href="#modal-reported-number-details" data-toggle="modal">[%= it[item]['look_at_num_total'] %]</a></td> <td class="text-center"><a class="reported-number-details" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details" href="#modal-newshop-number-details" data-toggle="modal">[%= it[item]['add_house_num_total'] %]</a></td> <td class="text-center"><a class="newshop-number-details" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details" href="#modal-newuser-number-details" data-toggle="modal">[%= it[item]['add_user_num_total'] %]</a></td> <td class="text-center"><a class="newuser-number-details" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal">[%= it[item]['team_num'] %]</a></td> <td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['team_num'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
...@@ -100,10 +100,10 @@ ...@@ -100,10 +100,10 @@
<td class="text-center"><a class="performance-number-details" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['performance_total'] %]</a></td> <td class="text-center"><a class="performance-number-details" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td> <td class="text-center"><a class="deal-number-details" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['paylog_total'] %]</a></td> <td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details" href="#modal-approach-number-details" data-toggle="modal">[%= it[item]['march_in_num_total'] %]</a></td> <td class="text-center"><a class="approach-number-details" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details" href="#modal-reported-number-details" data-toggle="modal">[%= it[item]['look_at_num_total'] %]</a></td> <td class="text-center"><a class="reported-number-details" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details" href="#modal-newshop-number-details" data-toggle="modal">[%= it[item]['add_house_num_total'] %]</a></td> <td class="text-center"><a class="newshop-number-details" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details" href="#modal-newuser-number-details" data-toggle="modal">[%= it[item]['add_user_num_total'] %]</a></td> <td class="text-center"><a class="newuser-number-details" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
...@@ -318,36 +318,64 @@ ...@@ -318,36 +318,64 @@
<!--门店-收款数 --> <!--门店-收款数 -->
<!--个人-收款数 --> <!--个人-收款数 -->
<script id="collection_number_details_tpl" type="text/template"> <script id="collection_number_details_tpl" type="text/template">
[% if(it[0]) { %] [% if(it&&it[0]) { %]
<tr> <tr>
<th class="text-center">成交报告ID</th> <th class="text-center">收款时间</th>
<th class="text-center">提交时间</th> <th class="text-center">客户姓名</th>
<th class="text-center">成交类型</th> <th class="text-center">收款金额</th>
<th class="text-center">入账类型</th>
<th class="text-center">入账方式</th>
<th class="text-center">商铺地址</th> <th class="text-center">商铺地址</th>
<th class="text-center">商铺编号</th> <th class="text-center">商铺名称</th>
<th class="text-center">分佣提成方</th>
<th class="text-center">所部门门店</th>
<th class="text-center">分佣比例</th>
<th class="text-center">应分佣金</th>
<th class="text-center">实收佣金</th>
<th class="text-center">操作</th> <th class="text-center">操作</th>
</tr> </tr>
[% for(var item in it){ %] [% for(var item in it){ %]
<tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]"> <tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]">
<td class="text-center">[%= it[item]['id'] %]</td>
<td class="text-center">[%= it[item]['create_time'] %]</td> <td class="text-center">[%= it[item]['create_time'] %]</td>
<td class="text-center">[%= it[item]['trade_type'] %]</td> <td class="text-center">[%= it[item]['user_name'] %]</td>
<td class="text-center">[%= it[item]['money'] %]</td>
<td class="text-center">[%= it[item]['pay_type'] %]</td>
<td class="text-center">[%= it[item]['type'] %]</td>
<td class="text-center">[%= it[item]['landmark'] %]</td> <td class="text-center">[%= it[item]['landmark'] %]</td>
<td class="text-center">[%= it[item]['house_id'] %]</td> <td class="text-center">[%= it[item]['house_title'] %]</td>
<td class="text-center">[%= it[item]['name'] %]</td> <td class="text-center">
<td class="text-center">[%= it[item]['district_name']+'-'+it[item]['store_name'] %]</a></td> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<td class="text-center">[%= it[item]['scale'] %]</td> </td>
<td class="text-center">[%= it[item]['scale_fee'] %]</td> </tr>
<td class="text-center">[%= it[item]['practical_fee'] %]</td> [% } %]
[% }else{ %]
<tr>
<td colspan="10" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
<!--部门-进场数 -->
<!--门店-进场数 -->
<!--个人-进场数 -->
<script id="approach_number_details_tpl" type="text/template">
[% if(it&&it[0]) { %]
<tr>
<th class="text-center">客户姓名</th>
<th class="text-center">客户电话</th>
<th class="text-center">报备时间</th>
<th class="text-center">报备人</th>
<th class="text-center">商铺</th>
<th class="text-center">预计到场时间</th>
<th class="text-center">操作</th>
</tr>
[% for(var item in it){ %]
<tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]">
<td class="text-center">[%= it[item]['user_name'] %]</td>
<td class="text-center">[%= it[item]['user_phone'] %]</td>
<td class="text-center">[%= it[item]['predict_see_time'] %]</td>
<td class="text-center">[%= it[item]['report_agent_name'] %]</td>
<td class="text-center">[%= it[item]['house_title'] %]</td>
<td class="text-center">[%= it[item]['predict_see_time'] %]</td>
<td class="text-center"> <td class="text-center">
<a class="btn1 btn-success timeline2" href="#modal-time2" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>查看详情</a> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
<a class="btn1 btn-success timeline2" href="#modal-time2" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
</td> </td>
</tr> </tr>
[% } %] [% } %]
...@@ -359,3 +387,4 @@ ...@@ -359,3 +387,4 @@
</script> </script>
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