Commit ae16ad4e authored by agping's avatar agping

业绩修改

parent e5ea5042
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
<a class="btn btn-default liudan_pic_btn">个人业绩排行榜</a> <a class="btn btn-default liudan_pic_btn">个人业绩排行榜</a>
</td> </td>
</tr> </tr>
<!--三级审核的搜索功能--> <!--部门业绩 门店业绩 个人业绩的搜索功能-->
<tr> <tr>
<td colspan="11"> <td colspan="11">
<form id="maintable_form_search"> <form id="maintable_form_search">
<span class="btn btn-primary btn3 left" id="maintable_month">本月</span> <!--<span class="btn btn-primary btn3 left" id="maintable_month">本月</span>-->
<span class="btn btn-primary btn3 left" id="maintable_today">今天</span> <span class="btn btn-primary btn3 left" id="maintable_today">今天</span>
<span class="fore-span margin-left-10">时间:</span> <span class="fore-span margin-left-10">时间:</span>
<input class="form-control btn4" value="" data-rule-phoneus="false" data-rule-required="false" id="maintable_create_time" name="start_date" type="date"> <input class="form-control btn4" value="" data-rule-phoneus="false" data-rule-required="false" id="maintable_create_time" name="start_date" type="date">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
时间:2018.02.08-2018.02.28 时间门店:2018.02.08-2018.02.28
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
...@@ -102,7 +102,29 @@ ...@@ -102,7 +102,29 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
时间:2018.02.08-2018.02.28 时间经纪人:2018.02.08-2018.02.28
</h4>
</div>
<div class="modal-body">
<table class="table table-striped table-bordered table-hover table-condensed">
<tbody class="text-center" id="agent_details_list">
</tbody>
</table>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<!-- (点击门店名字)弹出框 经纪人业绩排行 详情 -->
<div class="modal fade" id="modal-agent" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content modal-body-width">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title">
时间经纪人:2018.02.08-2018.02.28
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -18,8 +18,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h ...@@ -18,8 +18,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
}, },
event: function() { event: function() {
var _doc = $(document); var _doc = $(document);
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件 //主页面 部门业绩 门店业绩 个人业绩 三个tab的点击事件
//专员审核 总监审核 经理审核 出纳审核
_doc.on('click', '.maintable-top-sub-tr>a', function(e){ _doc.on('click', '.maintable-top-sub-tr>a', function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
...@@ -29,6 +28,29 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h ...@@ -29,6 +28,29 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
console.log(bargain.mainTabIndex); console.log(bargain.mainTabIndex);
bargain.getList(1); bargain.getList(1);
}); });
//点击今天按钮事件 的搜素
_doc.on('click', '#maintable_today', function(e){
//获取当天的日期 格式如 mmmm-yy-dd
function getNowFormatDate() {
var date = new Date();
var seperator1 = "-";
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate;
return currentdate;
};
var currentdate_=getNowFormatDate();
$("#maintable_create_time").val(currentdate_);
$("#maintable_end_time").val(currentdate_);
bargain.getList(1);
});
//点击 部门排行 的部门名字 //点击 部门排行 的部门名字
_doc.on('click', '.store-ranking', function(e){ _doc.on('click', '.store-ranking', function(e){
e.preventDefault(); e.preventDefault();
...@@ -41,8 +63,6 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h ...@@ -41,8 +63,6 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
e.stopPropagation(); e.stopPropagation();
bargain.getListAgent(1); bargain.getListAgent(1);
}); });
//搜索按钮的事件 //搜索按钮的事件
_doc.on('click', '#maintable_search', function(e) { _doc.on('click', '#maintable_search', function(e) {
e.preventDefault(); e.preventDefault();
...@@ -57,7 +77,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h ...@@ -57,7 +77,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
}, },
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url //获取部门业绩 门店业绩 个人业绩 不同的ajax请求url
switchType: function(){ switchType: function(){
switch (Number(this.mainTabIndex)){ switch (Number(this.mainTabIndex)){
case 0: case 0:
...@@ -70,6 +90,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h ...@@ -70,6 +90,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
return ''; return '';
} }
}, },
//获取部门业绩 门店业绩 个人业绩 不同的模板
switchTpl: function(){ switchTpl: function(){
switch (Number(this.mainTabIndex)){ switch (Number(this.mainTabIndex)){
case 0: case 0:
...@@ -82,7 +103,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h ...@@ -82,7 +103,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
return ''; return '';
} }
}, },
//获取一级审核,二级审核,三级审核,结单数据列表共用的方法 //获取部门业绩 门店业绩 个人业绩 的共用方法
getList: function(pageNo){ getList: function(pageNo){
console.count('bar'); console.count('bar');
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
...@@ -94,7 +115,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h ...@@ -94,7 +115,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
'AuthToken':user_info_obj.AuthToken, 'AuthToken':user_info_obj.AuthToken,
'agent_id':user_info_obj.id, 'agent_id':user_info_obj.id,
'start_day':$('#maintable_create_time').val(), 'start_day':$('#maintable_create_time').val(),
'end_day':$('#maintable_end_time').val() 'end_day':$('#maintable_end_time').val(),
'request_source_type':1
}; };
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<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>
...@@ -16,14 +16,13 @@ ...@@ -16,14 +16,13 @@
</tr> </tr>
[% for(var item in it["list"]){ %] [% for(var item in it["list"]){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]"> <tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<!--index_-->
<td class="text-center">[%= it["list"][item]['index_'] %]</td> <td class="text-center">[%= it["list"][item]['index_'] %]</td>
<td class="text-center"> <td class="text-center">
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name']+'-'+it["list"][item]['name'] %]</a> <a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name']+'-'+it["list"][item]['name'] %]</a>
</td> </td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td> <td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td> <td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td> <!--<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>-->
<td class="text-center">[%= it["list"][item]['paylog'] %]</td> <td class="text-center">[%= it["list"][item]['paylog'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num'] %]</td> <td class="text-center">[%= it["list"][item]['march_in_num'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num'] %]</td> <td class="text-center">[%= it["list"][item]['look_at_num'] %]</td>
...@@ -46,8 +45,8 @@ ...@@ -46,8 +45,8 @@
<th class="text-center">排名</th> <th class="text-center">排名</th>
<td class="text-center">门店</td> <td class="text-center">门店</td>
<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>
...@@ -63,7 +62,7 @@ ...@@ -63,7 +62,7 @@
</td> </td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td> <td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td> <td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td> <!--<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>-->
<td class="text-center">[%= it["list"][item]['paylog'] %]</td> <td class="text-center">[%= it["list"][item]['paylog'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num'] %]</td> <td class="text-center">[%= it["list"][item]['march_in_num'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num'] %]</td> <td class="text-center">[%= it["list"][item]['look_at_num'] %]</td>
...@@ -86,8 +85,8 @@ ...@@ -86,8 +85,8 @@
<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>
...@@ -100,7 +99,7 @@ ...@@ -100,7 +99,7 @@
<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]['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]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td> <td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td> <!--<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>-->
<td class="text-center">[%= it["list"][item]['paylog'] %]</td> <td class="text-center">[%= it["list"][item]['paylog'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num'] %]</td> <td class="text-center">[%= it["list"][item]['march_in_num'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num'] %]</td> <td class="text-center">[%= it["list"][item]['look_at_num'] %]</td>
......
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