Commit 24e8507e authored by agping's avatar agping

财务修改

parent b5d094e4
......@@ -185,18 +185,18 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
console.log($('.btn-info').index());
var a_url;
if($('.btn-info').index()==0){
a_url="/index/checkReportAttache/0"
a_url="/index/overRuleAttache/0"
};
if ($('.btn-info').index()==1) {
a_url="/index/checkReportManager/1"
a_url="/index/overRuleManager/1"
};
if ($('.btn-info').index()==2) {
a_url="/index/checkReportMajordomo/2"
a_url="/index/overRuleMajordomo/2"
};
if ($('.btn-info').index()==3) {
a_url="/index/checkReportCashier/3"
a_url="/index/overRuleCashier/3"
};
// console.log($('.btn-info').index());
console.log(follow.house_id);
$.ajax({
'type': 'POST',
......
......@@ -161,7 +161,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
a_url="/index/checkReportCashier/3"
};
// console.log($('.btn-info').index());
console.log(follow.house_id);
$.ajax({
'type': 'POST',
'url' : a_url,
......@@ -174,7 +173,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
success: function(data){
if(data.code == 200){
if (data.data) {
console.log(666);
bargain.getList(1);
}
} else {
alert('获取失败!');
......@@ -194,7 +193,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
if (data.data) {
var caozuo_table="";
$.each(data['data'], function(i, item) {
caozuo_table +='<tr><td>'+item.role+'</td><td>'+item.agent_name+'</td><td>'+item.store_name
caozuo_table +='<tr><td>'+item.role_name+'</td><td>'+item.agent_name+'</td><td>'+item.store_name
+'</td><td>'+item.scale+'</td><td>'+item.scale_fee+'</td><td>'+item.practical_fee+'</td><td>'+item.content+'</td></tr>';
});
$("#caozuo_table").html(caozuo_table);
......@@ -591,16 +590,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
if (data.code == 200) {
var doTtmpl = doT.template(document.getElementById('reportList_list_tpl').innerHTML);
$("#follow_list").html(doTtmpl(data.data.list));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
// $(".edit").hide();
// $(".is_pass").hide();
// $(".genjing").hide();
// if(user_info_obj.level==10 && $('.btn-info').index()==0){
// }else{
// }
/*分页代码*/
add_page(data.data.total,pageNo,bargain.pageSize,bargain.getList);
......
......@@ -166,7 +166,7 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
}
});
},
Records:function(){//分佣提成数据
Records:function(){//收款记录
$(".Tswitch").eq(0).hide();
$(".Tswitch").eq(1).hide();
$(".Tswitch").eq(2).show();
......
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