Commit 5478019e authored by agping's avatar agping

业绩明细

parent adc1c760
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
<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">
<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_end_time" name="end_date" type="date"> <input class="form-control btn4" value="" data-rule-phoneus="false" data-rule-required="false" id="maintable_end_time" name="end_date" type="date">
<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_internal_address" placeholder="商铺地址" type="text" value=""> <input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_internal_address" placeholder="房源地址" type="text" value="">
<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_shop_num" placeholder="商铺编号" type="text" value=""> <input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_shop_num" placeholder="房源编号" type="text" value="">
<!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_user_phone" placeholder="客户电话" type="text" value="">--> <!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_user_phone" placeholder="客户电话" type="text" value="">-->
<select name="district_id" class="form-control btn4"> <select name="district_id" class="form-control btn4">
<option value="">分佣方所在部门</option> <option value="">分佣方所在部门</option>
...@@ -127,8 +127,8 @@ ...@@ -127,8 +127,8 @@
<th class="text-center">分佣ID</th> <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>
......
...@@ -32,7 +32,8 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h ...@@ -32,7 +32,8 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h
_objTemp.html(''); //先清空 _objTemp.html(''); //先清空
if(_id && _id != '0') { if(_id && _id != '0') {
bargain.getDistrictStoreList(_id, function(_data) { bargain.getDistrictStoreList(_id, function(_data) {
var _str = '<option value="">全部</option>'; // var _str = '<option value="">全部</option>';
var _str = '';
$.each(_data, function(i, item) { $.each(_data, function(i, item) {
_str += '<option value="' + item.id + '">' + item.store_name + '</option>'; _str += '<option value="' + item.id + '">' + item.store_name + '</option>';
}); });
...@@ -87,16 +88,11 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h ...@@ -87,16 +88,11 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h
var params = {}; var params = {};
params.pageNo = bargain.pageNo; params.pageNo = bargain.pageNo;
params.pageSize = bargain.pageSize; params.pageSize = bargain.pageSize;
params.create_time = $('#create_time') .val(); params.daily_date = $('#create_time') .val();
params.end_time = $('#end_time') .val(); // params.district_id = $("select[name='district_id'] option:selected").val();//部门 后端没有定义字段
params.internal_address = $('#internal_address').val();
params.house_number = $('#internal_num').val();
params.bargain_id = $('#bargain_id').val();
params.partial_id = bargain.agent_id_phone;//分佣方姓名 下拉式 搜索
params.district_id = $("select[name='district_id'] option:selected").val();//部门
params.store_id = $("select[name='store_id'] option:selected").val();//门店 params.store_id = $("select[name='store_id'] option:selected").val();//门店
$.ajax({ $.ajax({
url: '/index/partialCommissionList', //获取列表 url: '/index/DailyUncommittedList', //获取列表
type: 'GET', type: 'GET',
async: true, async: true,
data: params, data: params,
...@@ -105,10 +101,9 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h ...@@ -105,10 +101,9 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h
if (data.code == 200) { if (data.code == 200) {
var temp = document.getElementById('forgetSubmitFinancial_list_tpl').innerHTML; var temp = document.getElementById('forgetSubmitFinancial_list_tpl').innerHTML;
var doTtmpl = doT.template(temp); var doTtmpl = doT.template(temp);
$("#business_list").html(doTtmpl(data.data.data.list)); $("#business_list").html(doTtmpl(data.data.list));
$("#money_total").html(data.data.data.total_money);//实收总计
/*分页代码*/ /*分页代码*/
add_page(data.data.data.total, pageNo, bargain.pageSize, bargain.getList); add_page(data.data.total, pageNo, bargain.pageSize, bargain.getList);
} else { } else {
alert(data.msg); alert(data.msg);
} }
......
...@@ -25,11 +25,17 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -25,11 +25,17 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
e.stopPropagation(); e.stopPropagation();
var _this = $(this); var _this = $(this);
_this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default'); _this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
bargain.mainTabIndex = $(this).index();//下标值
if($(this).index() == 0){ if($(this).index() == 0){
bargain.listUrl = '/index/performanceInfo';//商铺
bargain.exportUrl = '/index/getPerformanceInfoExcel';//商铺导出
}else if($(this).index() == 1){ }else if($(this).index() == 1){
bargain.listUrl = '/office_index/performanceInfo';//办公楼
bargain.exportUrl = '/office_index/getPerformanceInfoExcel';//办公楼导出
} }
bargain.getList(1);
}); });
//成交报告详情 点击商铺 查看商铺详情 //成交报告详情 点击商铺 查看商铺详情
_doc.on('click', 'a[href="#modal_shop_detail"]', function(e){ _doc.on('click', 'a[href="#modal_shop_detail"]', function(e){
...@@ -73,7 +79,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -73,7 +79,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
_doc.on('click', '.details-btn', function() { _doc.on('click', '.details-btn', function() {
var _id = $(this).attr("data-id"); var _id = $(this).attr("data-id");
bargain.bargain_id = _id; bargain.bargain_id = _id;
$('.iframe-bargaininfo-static').attr('src', '/app_broker/bargaininfo_detail_static_pc?orderid='+_id).load; if(bargain.mainTabIndex == 0){//商铺
$('.iframe-bargaininfo-static').attr('src', '/app_broker/bargaininfo_detail_static_pc?otherbtn=no&orderid='+_id).load;
}else{//办公楼
$('.iframe-bargaininfo-static').attr('src', '/app_broker/bargaininfo_detail_static_pc_office?orderid='+_id+'&otherbtn=no').load;
}
}); });
...@@ -83,8 +94,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -83,8 +94,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
e.stopPropagation(); e.stopPropagation();
var _this = $(this); var _this = $(this);
var _id = _this.closest('tr').data('orderid'); var _id = _this.closest('tr').data('orderid');
console.log(_id); if(bargain.mainTabIndex == 0){//商铺
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id='+_id); $('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id='+_id);
}else{//办公楼
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc_financial?order_id='+_id);
}
}); });
var _doc = $(document); var _doc = $(document);
...@@ -156,7 +171,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -156,7 +171,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
var name= $('#agent_name').val(); var name= $('#agent_name').val();
var phone= $('#agent_phone').val(); var phone= $('#agent_phone').val();
var bargain_id = $('#bargain_id').val(); var bargain_id = $('#bargain_id').val();
window.open('/index/getPerformanceInfoExcel?' + 'shop_type=' + shop_type + '&trade_type=' + trade_type + '&create_time_start=' + create_time_start + '&create_time_end=' + create_time_end + '&landmark=' + landmark + '&house_id=' + house_id + '&district_id=' + district_id + '&store_id=' + store_id + '&name=' + name + '&phone=' + phone); window.open(bargain.exportUrl + '?' + 'shop_type=' + shop_type + '&trade_type=' + trade_type + '&create_time_start=' + create_time_start + '&create_time_end=' + create_time_end + '&landmark=' + landmark + '&house_id=' + house_id + '&district_id=' + district_id + '&store_id=' + store_id + '&name=' + name + '&phone=' + phone);
}, },
// 获取客户详情 // 获取客户详情
Caozuo: function() { //获取跟进详情的数据 Caozuo: function() { //获取跟进详情的数据
...@@ -318,7 +333,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -318,7 +333,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
}; };
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/index/performanceInfo', //获取业绩明细列表 url: bargain.listUrl, //获取业绩明细列表
data: params, data: params,
dataType: 'json', dataType: 'json',
beforeSend: function() { beforeSend: function() {
...@@ -333,8 +348,6 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r ...@@ -333,8 +348,6 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
$('#performance_subsidiary_total').html(data.data.scale_fee_sum); $('#performance_subsidiary_total').html(data.data.scale_fee_sum);
$('#performance_subsidiary_total2').html(data.data.real_fee); $('#performance_subsidiary_total2').html(data.data.real_fee);
$('#performance_subsidiary_total3').html((data.data.scale_fee_sum*1-data.data.real_fee*1).toFixed(2)); $('#performance_subsidiary_total3').html((data.data.scale_fee_sum*1-data.data.real_fee*1).toFixed(2));
// var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); // var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
/*分页代码*/ /*分页代码*/
add_page(data.data.total, pageNo, bargain.pageSize, bargain.getList); add_page(data.data.total, pageNo, bargain.pageSize, bargain.getList);
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
[% if(it&&it[0]) { %] [% if(it&&it[0]) { %]
[% for(var item in it){ %] [% for(var item in it){ %]
<tr class="text-center" data-id="[%= it[item]['bargain_id'] %]" data-orderid="[%= it[item]['order_id'] %]" data-fatherid="[%= it[item]['father_id'] %]"> <tr class="text-center" data-id="[%= it[item]['bargain_id'] %]" data-orderid="[%= it[item]['order_id'] %]" data-fatherid="[%= it[item]['father_id'] %]">
<td>[%= it[item]['scale_fee'] %]</td> <td>[%= it[item]['daily_date'] %]</td>
<td>[%= it[item]['practical_fee'] %]</td> <td>[%= it[item]['store_name'] %]</td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }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