Commit 74fe3475 authored by agping's avatar agping

财务修改

parent 916d783f
......@@ -27,7 +27,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
// 时间轴
$ (document).delegate (".timeline", "click", function () {//时间轴
follow.house_id = $ (this).attr ("data-id");
follow.Timeline();
});
// 编辑
......@@ -41,6 +40,13 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$ (document).delegate (".caozuo", "click", function () {//点击分佣提成
follow.Caozuo();
});
//通过
$ (document).delegate ("#confirm_pass", "click", function () {//点击通过
follow.confirmPass();
});
$ (document).delegate (".is_pass", "click", function () {//点击通过
follow.house_id = $ (this).attr ("data-id");
});
// 点击新增分佣提成
$ (document).delegate ("#new-commission", "click", function () {//点击分佣提成
follow.newCommission();
......@@ -57,7 +63,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
follow.Records();
});
$ (document).delegate (".submit_edit", "click", function () {//提交
follow.house_id = $ (this).attr ("data-id");
follow.Submit_follow();
});
//专员审核 总监审核 经理审核 出纳审核
......@@ -70,7 +75,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$ (document).delegate ("#director", "click", function () {//点击操作跟进详情
follow.Director();
});
$ (document).delegate ("#cashier", "click", function () {//提交
$ (document).delegate ("#cashier", "click", function () {//出纳审核
follow.Cashier();
});
//专员审核 总监审核 经理审核 出纳审核
......@@ -180,6 +185,44 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
});
},
//通过
confirmPass:function(){//通过
var a_url;
if($('.btn-info').index()==0){
a_url="/index/checkReportAttache/0"
};
if ($('.btn-info').index()==1) {
a_url="/index/checkReportManager/1"
};
if ($('.btn-info').index()==2) {
a_url="/index/checkReportMajordomo/2"
};
if ($('.btn-info').index()==3) {
a_url="/index/checkReportCashier/3"
};
console.log($('.btn-info').index());
console.log(follow.house_id);
$.ajax({
'type': 'POST',
'url' : a_url,
data: {"id":follow.house_id,
"source":1,
"status":10,
"":$("#note_text").val(),
},
dataType: "json",
success: function(data){
if(data.code == 200){
if (data.data) {
console.log(666);
}
} else {
alert('获取失败!');
}
}
});
},
Caozuo:function(){//分佣提成获取跟进详情的数据
$.ajax({
'type': 'GET',
......@@ -289,7 +332,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
},
//专员审核
Commissioner: function(pageNo) {
Commissioner: function(pageNo) {
$("#commissioner").removeClass("btn-default");
$("#commissioner").addClass("btn-info");
$("#manager").removeClass("btn-info");
......@@ -298,6 +341,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$("#director").addClass("btn-default");
$("#cashier").removeClass("btn-info");
$("#cashier").addClass("btn-default");
console.log($('.btn-info').index());
follow.pageNo = pageNo;
var params = {};
params.pageNo = follow.pageNo;
......@@ -339,6 +383,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
//经理审核
Manager: function(pageNo) {
console.log($('.btn-info').index());
$("#commissioner").removeClass("btn-info");
$("#commissioner").addClass("btn-default");
$("#manager").removeClass("btn-default");
......@@ -389,6 +434,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
//总监审核
Director: function(pageNo) {
console.log($('.btn-info').index());
$("#commissioner").removeClass("btn-info");
$("#commissioner").addClass("btn-default");
$("#manager").removeClass("btn-info");
......@@ -439,6 +485,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
//出纳审核
Cashier: function(pageNo) {
console.log($('.btn-info').index());
$("#commissioner").removeClass("btn-info");
$("#commissioner").addClass("btn-default");
$("#manager").removeClass("btn-info");
......
This diff is collapsed.
<script id="statement_list_tpl" type="text/template">
[% if(it) { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['internal_address'] %]</td>
<td>[%= it[item]['internal_title'] %]</td>
<td>[%= it[item]['user_name'] %]</td>
<td>[%= it[item]['user_phone'] %]</td>
<td>[%= it[item]['commission'] %]</td>
<td>[%= it[item]['practical_fee'] %]</td>
<td>
<a class="btn1 btn-info edit" href="#modal-details" data-toggle="modal" data-id='[%= it[item]["id"] %]'>详情</a>
<a class="btn1 btn-info timeline" href="#modal-linetime" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="8" 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