Commit 7d80476a authored by agping's avatar agping

业绩排行修改

parent 9afa3ace
......@@ -37,22 +37,34 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
realtime.mainTabIndex = _this.index();
realtime.getList(1);
});
_doc.on('click', '#liudan_pic_btn_district', function(e){
//点击部门列表-参数初始化
_doc.on('click', '.performance-district-click', function(e){
e.preventDefault();
e.stopPropagation();
realtime.switchType=3;
realtime.district_id = $(this).attr("data-id");
realtime.store_id = '';
realtime.agents_id = '';
});
_doc.on('click', '#liudan_pic_btn_store', function(e){
//点击门店列表-参数初始化
_doc.on('click', '.performance-store-click', function(e){
e.preventDefault();
e.stopPropagation();
realtime.switchType=2;
realtime.district_id = '';
realtime.store_id = $(this).attr("data-id");
realtime.agents_id = '';
});
_doc.on('click', '#liudan_pic_btn_person', function(e){
//点击个人列表-参数初始化
_doc.on('click', '.performance-person-click', function(e){
e.preventDefault();
e.stopPropagation();
realtime.switchType=1;
realtime.district_id = '';
realtime.store_id = '';
realtime.agents_id = $(this).attr("data-id");
});
//点击今天按钮事件 的搜素
_doc.on('click', '#maintable_today', function(e){
//获取当天的日期 格式如 mmmm-yy-dd
......@@ -83,6 +95,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
e.stopPropagation();
realtime.district_id = $(this).attr("data-id");
realtime.getListStore(1);
});
//点击 门店排行 的门店名字
_doc.on('click', '.agent-ranking', function(e){
......@@ -132,7 +145,6 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
_doc.on('click', '.performance-number-details', function(e) {
e.preventDefault();
e.stopPropagation();
realtime.switchTypeId();
realtime.getPerformanceDetails(1);
});
//部门-收款数-弹出框
......@@ -243,36 +255,24 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
}
},
//获取1表示个人业绩排行 2门店 3区域
// switchType: function(){
// if(Number(this.mainTabIndex)==0){
// realtime.switchtype=3;
// }
// if(Number(this.mainTabIndex)==1){
// realtime.switchtype=2;
// }
// if(Number(this.mainTabIndex)==2){
// realtime.switchtype=1;
// }
// //获取个人-门店-区域id
// switchTypeId: function(){
// if(realtime.mainTabIndex == 0){
// realtime.district_id = $(this).attr("data-id");
// realtime.store_id = '';
// realtime.agents_id = '';
// };
// if(realtime.mainTabIndex == 1){
// realtime.district_id = '';
// realtime.store_id = $(this).attr("data-id");
// realtime.agents_id = '';
// };
// if(realtime.mainTabIndex == 2){
// realtime.district_id = '';
// realtime.store_id = '';
// realtime.agents_id = $(this).attr("data-id");
// };
// },
//获取个人-门店-区域id
switchTypeId: function(){
if(realtime.mainTabIndex == 0){
realtime.district_id = $(this).attr("data-id");
realtime.store_id = '';
realtime.agents_id = '';
};
if(realtime.mainTabIndex == 1){
realtime.district_id = '';
realtime.store_id = $(this).attr("data-id");
realtime.agents_id = '';
};
if(realtime.mainTabIndex == 2){
realtime.district_id = '';
realtime.store_id = '';
realtime.agents_id = $(this).attr("data-id");
};
},
//获取部门业绩 门店业绩 个人业绩 的共用方法
getList: function(pageNo){
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
......@@ -562,7 +562,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
getapproachNumberDetails: function(pageNo){
var params = {
'id': realtime.district_store_agent_id,
'type': realtime.switchtype,
'type': realtime.switchType,
'start_time': realtime.time_search_start,
'end_time': realtime.time_search_end,
'AuthToken':user_info_obj.AuthToken
......
......@@ -19,14 +19,14 @@
<td class="text-center">
<a class="store-ranking" href="#modal-store" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['district_name']+'-'+it[item]['name'] %]</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="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" 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" 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" 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" 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" data-id="[%= it[item]['district_id'] %]">[%= it[item]['team_num'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-district-click" 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 performance-district-click" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-district-click" 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 performance-district-click" 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 performance-district-click" 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 performance-district-click" 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 performance-district-click" 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 performance-district-click" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['team_num'] %]</a></td>
</tr>
[% } %]
......@@ -60,13 +60,13 @@
<td class="text-center">
<a class="agent-ranking" href="#modal-agent" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['district_name']+'-'+it[item]['store_name']+'-'+it[item]['name'] %]</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="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" 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" 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" 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" data-id="[%= it[item]['store_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-store-click" 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 performance-store-click" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-store-click" 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 performance-store-click" 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 performance-store-click" 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 performance-store-click" 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 performance-store-click" 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" data-id="[%= it[item]['store_id'] %]">[%= it[item]['team_num'] %]</a></td>
</tr>
[% } %]
......@@ -97,13 +97,13 @@
<tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]">
<td class="text-center">[%= it[item]['index_'] %]</td>
<td class="text-center">[%= it[item]['district_name']+'-'+it[item]['store_name']+'-'+it[item]['name'] %]</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="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" 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" 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" 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" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-person-click" 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 performance-person-click" href="#modal-deal-number-details" data-toggle="modal">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-person-click" 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 performance-person-click" 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 performance-person-click" 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 performance-person-click" 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 performance-person-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
</tr>
[% } %]
[% }else{ %]
......@@ -135,16 +135,16 @@
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">[%= it["list"][item]['index_'] %]</td>
<td class="text-center">
<a class="store-ranking-two" href="#modal-agent-two" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]">[%= it["list"][item]['district_name']+'-'+it["list"][item]['store_name']+'-'+it["list"][item]['name'] %]</a>
<a class="store-ranking-two" href="#modal-agent-two" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]">[%= it['list'][item]['district_name']+'-'+it["list"][item]['store_name']+'-'+it["list"][item]['name'] %]</a>
</td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum_total'] %]</td>
<td class="text-center">[%= it["list"][item]['paylog_total'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['add_house_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['add_user_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['team_num'] %]</td>
<td class="text-center"><a class="performance-number-details performance-store-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]" >[%= it["list"][item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-store-click" href="#modal-deal-number-details" data-toggle="modal">[%= it['list'][item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-store-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]" >[%= it["list"][item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-store-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]">[%= it["list"][item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-store-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]">[%= it["list"][item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-store-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]">[%= it["list"][item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-store-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]">[%= it["list"][item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="team-number-details performance-store-click" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it['list'][item]['store_id'] %]">[%= it["list"][item]['team_num'] %]</a></td>
</tr>
[% } %]
[% }else{ %]
......@@ -175,14 +175,13 @@
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">[%= it["list"][item]['index_'] %]</td>
<td class="text-center">[%= it["list"][item]['district_name']+'-'+it["list"][item]['store_name']+'-'+it["list"][item]['name'] %]</a></td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum_total'] %]</td>
<!--<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>-->
<td class="text-center">[%= it["list"][item]['paylog_total'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['add_house_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['add_user_num_total'] %]</td>
<td class="text-center"><a class="performance-number-details performance-person-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-person-click" href="#modal-deal-number-details" data-toggle="modal">[%= it['list'][item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-person-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-person-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-person-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-person-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-person-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['add_user_num_total'] %]</a></td>
</tr>
[% } %]
[% }else{ %]
......@@ -201,7 +200,6 @@
<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>
......@@ -212,14 +210,13 @@
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">[%= it["list"][item]['index_'] %]</td>
<td class="text-center">[%= it["list"][item]['district_name']+'-'+it["list"][item]['store_name']+'-'+it["list"][item]['name'] %]</a></td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum_total'] %]</td>
<!--<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>-->
<td class="text-center">[%= it["list"][item]['paylog_total'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['add_house_num_total'] %]</td>
<td class="text-center">[%= it["list"][item]['add_user_num_total'] %]</td>
<td class="text-center"><a class="performance-number-details performance-person-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-person-click" href="#modal-deal-number-details" data-toggle="modal">[%= it['list'][item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-person-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-person-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-person-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-person-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-person-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it['list'][item]['agent_id'] %]">[%= it['list'][item]['add_user_num_total'] %]</a></td>
</tr>
[% } %]
[% }else{ %]
......
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