Commit cba1eacb authored by agping's avatar agping

收款记录修改

parent 4c6d3638
......@@ -146,8 +146,24 @@
</table>
<!--分佣提成-->
</div>
<!-- ===========收款记录================ -->
<div class="Tswitch Tswitch_two">
<table class="table table-striped table-bordered table-hover table-condensed" id="tcaozuo_hide">
<thead>
<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>
</tr>
</thead>
<tbody class="text-center" id="tcaozuo_table">
</table>
</div>
<!-- =============收款记录============== -->
<div class="Tswitch Tswitch_two">收款记录</div>
<br><br><br><br>
</div>
<div class="modal-footer">
......
......@@ -38,6 +38,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$ (document).delegate (".caozuo", "click", function () {//点击分佣提成
follow.Caozuo();
});
$ (document).delegate ("#records", "click", function () {//点击收款记录
follow.Records();
});
$ (document).delegate ("#confirm_pass", "click", function () {//点击通过按钮
follow.confirmPass();
});
......@@ -52,10 +57,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
$ (document).delegate ("#fees", "click", function () {
follow.Fees();
});
$ (document).delegate ("#records", "click", function () {
follow.Records();
});
});
//专员审核 总监审核 经理审核 出纳审核
$ (document).delegate ("#commissioner", "click", function () {
follow.Commissioner();
......@@ -177,7 +179,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
},
Caozuo:function(){//分佣提成获取跟进详情的数据
Caozuo:function(){//分佣提成数据
$.ajax({
'type': 'GET',
'url' : '/index/commissionList',
......@@ -205,6 +207,45 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
});
},
// 收款记录
Records:function(){//分佣提成数据
$(".Tswitch").eq(0).hide();
$(".Tswitch").eq(1).hide();
$(".Tswitch").eq(2).show();
$("#information").removeClass("btn-info");
$("#information").addClass("btn-default");
$("#fees").removeClass("btn-info");
$("#fees").addClass("btn-default");
$("#records").removeClass("btn-default");
$("#records").addClass("btn-info");
$.ajax({
'type': 'GET',
'url' : '/index/payLogList',
data: {"id":follow.house_id},
dataType: "json",
success: function(data){
if(data.code == 200){
if (data.data) {
var caozuo_table="";
$.each(data['data'], function(i, item) {
caozuo_table +='<tr><td>'+item.create_time+'</td><td>'+item.money+'</td><td>'+item.type
+'</td><td>'+item.pay_type+'</td><td>'+item.agent_name+'</td></tr>';
});
$("#tcaozuo_table").html(caozuo_table);
$("#tcaozuo_table tr").each(function (e) { //不能为空
var temp = $("#tcaozuo_table").find("tr").eq(e).find("td").eq(6).html(); //获取一列的值
if(temp=='null'){
$("#tcaozuo_table").find("tr").eq(e).find("td").eq(6).html(" ")
}
});
}
} else {
alert('获取失败!');
}
}
});
},
newCommission:function(){//新增分佣提成
$.ajax({
'type': 'POST',
......@@ -250,18 +291,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$("#records").removeClass("btn-info");
$("#records").addClass("btn-default");
},
Records:function(){
$(".Tswitch").eq(0).hide();
$(".Tswitch").eq(1).hide();
$(".Tswitch").eq(2).show();
$("#information").removeClass("btn-info");
$("#information").addClass("btn-default");
$("#fees").removeClass("btn-info");
$("#fees").addClass("btn-default");
$("#records").removeClass("btn-default");
$("#records").addClass("btn-info");
},
Submit_follow: function() { //提交
$.ajax({
......
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