Commit 4d7edc4a authored by agping's avatar agping

业绩排行修改

parent dcbb9904
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 弹出框 门店业绩排行 详情 --> <!-- 弹出框-部门-门店详情 -->
<div class="modal fade" id="modal-store" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal-store" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-w"> <div class="modal-dialog modal-body-width-w">
<div class="modal-content modal-body-width-h"> <div class="modal-content modal-body-width-h">
...@@ -122,7 +122,8 @@ ...@@ -122,7 +122,8 @@
</div><!-- /.modal --> </div><!-- /.modal -->
</div> </div>
<!-- 弹出框 经纪人业绩排行 详情 -->
<!-- 弹出框-门店-个人详情 -->
<div class="modal fade" id="modal-agent" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal-agent" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-w"> <div class="modal-dialog modal-body-width-w">
<div class="modal-content modal-body-width-h"> <div class="modal-content modal-body-width-h">
...@@ -145,7 +146,7 @@ ...@@ -145,7 +146,7 @@
</div><!-- /.modal --> </div><!-- /.modal -->
</div> </div>
<!-- (点击门店名字)弹出框 经纪人业绩(二级)排行 详情 --> <!-- 弹出框-部门-门店-个人详情 -->
<div class="modal fade" id="modal-agent-two" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal-agent-two" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w"> <div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h"> <div class="modal-content modal-body-width-two-h">
...@@ -166,4 +167,165 @@ ...@@ -166,4 +167,165 @@
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal --> </div><!-- /.modal -->
</div> </div>
\ No newline at end of file
<!-- 弹出框-部门-成交单数-详情 -->
<div class="modal fade" id="modal-deal-number-details" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<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>
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="deal_number_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- 弹出框-部门-收款数-详情 -->
<div class="modal fade" id="modal-collection-number-details" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<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>
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="collection_number_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- 弹出框-部门-进场数-详情 -->
<div class="modal fade" id="modal-approach-number-details" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<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>
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="approach_number_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- 弹出框-部门-报备数-详情 -->
<div class="modal fade" id="modal-reported-number-details" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<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>
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="reported_number_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- 弹出框-部门-新增商铺-详情 -->
<div class="modal fade" id="modal-newshop-number-details" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<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>
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="newshop_number_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- 弹出框-部门-新增客户-详情 -->
<div class="modal fade" id="modal-newuser-number-details" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<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>
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="newuser_number_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- 弹出框-部门-团队人数-详情 -->
<div class="modal fade" id="modal-team-number-details" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-body-width-two-w">
<div class="modal-content modal-body-width-two-h">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<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>
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="team_number_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
<td class="text-center"> <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> <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>
<td class="text-center">[%= it[item]['performance_total'] %]</td> <td class="text-center"> [%= it[item]['performance_total'] %]</td>
<td class="text-center">[%= it[item]['bargain_sum_total'] %]</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">[%= it[item]['paylog_total'] %]</td> <td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center">[%= it[item]['march_in_num_total'] %]</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">[%= it[item]['look_at_num_total'] %]</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">[%= it[item]['add_house_num_total'] %]</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">[%= it[item]['add_user_num_total'] %]</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">[%= it[item]['team_num'] %]</td> <td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal">[%= it[item]['team_num'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
[% } %] [% } %]
</script> </script>
<!--门店业绩排行--> <!--门店业绩排行-->
<script id="realtimePerformance_list_tpl_two" type="text/template"> <script id="realtimePerformance_list_tpl_two" type="text/template">
[% if(it && it.length && it.length>0) { %] [% if(it && it.length && it.length>0) { %]
...@@ -59,13 +61,13 @@ ...@@ -59,13 +61,13 @@
<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> <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>
<td class="text-center">[%= it[item]['performance_total'] %]</td> <td class="text-center">[%= it[item]['performance_total'] %]</td>
<td class="text-center">[%= it[item]['bargain_sum_total'] %]</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">[%= it[item]['paylog_total'] %]</td> <td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center">[%= it[item]['march_in_num_total'] %]</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">[%= it[item]['look_at_num_total'] %]</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">[%= it[item]['add_house_num_total'] %]</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">[%= it[item]['add_user_num_total'] %]</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">[%= it[item]['team_num'] %]</td> <td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal">[%= it[item]['team_num'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
...@@ -75,6 +77,8 @@ ...@@ -75,6 +77,8 @@
[% } %] [% } %]
</script> </script>
<!--个人业绩排行--> <!--个人业绩排行-->
<script id="realtimePerformance_list_tpl_three" type="text/template"> <script id="realtimePerformance_list_tpl_three" type="text/template">
[% if(it && it.length && it.length>0) { %] [% if(it && it.length && it.length>0) { %]
...@@ -94,12 +98,12 @@ ...@@ -94,12 +98,12 @@
<td class="text-center">[%= it[item]['index_'] %]</td> <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">[%= it[item]['district_name']+'-'+it[item]['store_name']+'-'+it[item]['name'] %]</a></td>
<td class="text-center">[%= it[item]['performance_total'] %]</td> <td class="text-center">[%= it[item]['performance_total'] %]</td>
<td class="text-center">[%= it[item]['bargain_sum_total'] %]</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">[%= it[item]['paylog_total'] %]</td> <td class="text-center"><a class="collection-number-details" href="#modal-collection-number-details" data-toggle="modal">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center">[%= it[item]['march_in_num_total'] %]</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">[%= it[item]['look_at_num_total'] %]</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">[%= it[item]['add_house_num_total'] %]</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">[%= it[item]['add_user_num_total'] %]</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>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
...@@ -112,7 +116,7 @@ ...@@ -112,7 +116,7 @@
<!--门店业绩 详情--> <!--部门-门店业绩-->
<script id="store_list_tpl" type="text/template"> <script id="store_list_tpl" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>0) { %] [% if(it["list"] && it["list"].length && it["list"].length>0) { %]
<tr> <tr>
...@@ -154,7 +158,7 @@ ...@@ -154,7 +158,7 @@
<!--个人业绩 详情--> <!--门店-个人业绩 -->
<script id="agent_list_tpl" type="text/template"> <script id="agent_list_tpl" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>0) { %] [% if(it["list"] && it["list"].length && it["list"].length>0) { %]
<tr> <tr>
...@@ -191,7 +195,7 @@ ...@@ -191,7 +195,7 @@
</script> </script>
<!--个人业绩二级详情 点击门店名字 --> <!--部门-门店-个人 -->
<script id="agent_list_two_tpl" type="text/template"> <script id="agent_list_two_tpl" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>0) { %] [% if(it["list"] && it["list"].length && it["list"].length>0) { %]
<tr> <tr>
...@@ -227,4 +231,42 @@ ...@@ -227,4 +231,42 @@
[% } %] [% } %]
</script> </script>
<!--部门-成交单数 -->
<!--门店-成交单数 -->
<!--个人-成交单数 -->
<script id="deal_number_details_tpl" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>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>
<th class="text-center">报备数</th>
<th class="text-center">新增商铺</th>
<th class="text-center">新增客户</th>
</tr>
[% for(var item in it["list"]){ %]
<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>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="10" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</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