Commit d773c7ac authored by agping's avatar agping Committed by hujun

财务修改

parent ca1a471c
......@@ -147,7 +147,21 @@
<!--分佣提成-->
</div>
<div class="Tswitch Tswitch_two">收款记录</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>
<br><br><br><br>
</div>
<div class="modal-footer">
......
......@@ -34,8 +34,17 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
follow.house_id = $ (this).attr ("data-id");
follow.Edit();
});
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情
follow.confirmEdit();
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#modal-rejected", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#confirm_rejected", "click", function () {//点击驳回确定
follow.confirmRejected();
});
$ (document).delegate (".caozuo", "click", function () {//点击分佣提成
follow.Caozuo();
......@@ -172,13 +181,28 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
}
});
},
confirmEdit:function(){//修改报告详情
confirmRejected:function(){//驳回提交
console.log($('.btn-info').index());
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' : '/index/editBargainInfo',
data: { "id":follow.house_id,
"scale_fee":$(".commission").val(),
"practical_fee":$(".practical_fee").val()
'url' : a_url,
data: {"id":follow.house_id,
"remark":$("#rejected_text").val(),
},
dataType: "json",
success: function(data){
......
......@@ -33,6 +33,10 @@ define(['doT', 'text!temp/refundorder_template_tpl.html', 'css!style/home.css',
$ (document).delegate (".edit", "click", function () {//点击操作跟进详情
follow.house_id = $ (this).attr ("data-id");
follow.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情
follow.confirmEdit();
......
......@@ -160,7 +160,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
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,
......@@ -172,13 +173,16 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
dataType: "json",
success: function(data){
if(data.code == 200){
bargain.getList(1);
if (data.data) {
console.log(666);
}
} else {
alert('通过失败!');
alert('获取失败!');
}
}
});
},
Caozuo:function(){//分佣提成数据
$.ajax({
'type': 'GET',
......
......@@ -47,6 +47,10 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
$ (document).delegate (".edit", "click", function () {//点击编辑
business.house_id = $ (this).attr ("data-id");
business.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#confirm_edit", "click", function () {//点击编辑确定
business.confirmEdit();
......
......@@ -43,6 +43,10 @@ define (['doT', 'text!temp/statement_backout_template_tpl.html', 'css!style/home
$ (document).delegate (".edit", "click", function () {//点击编辑
business.house_id = $ (this).attr ("data-id");
business.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#confirm_edit", "click", function () {//点击确定编辑
business.confirmEdit();
......
......@@ -33,6 +33,10 @@ define(['doT', 'text!temp/wait_backout_template_tpl.html', 'css!style/home.css',
$ (document).delegate (".edit", "click", function () {//点击操作跟进详情
follow.house_id = $ (this).attr ("data-id");
follow.Edit();
});
$ (document).delegate (".is_pass", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
console.log(follow.house_id);
});
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情
follow.confirmEdit();
......
......@@ -9,7 +9,7 @@
<td>[%= it[item]['refund_money'] %]</td>
<td>[%= it[item]['card_no'] %]</td>
<td>
<a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>驳回</a>
<a class="btn1 btn-success edit" href="#modal-rejected" data-toggle="modal" data-id='[%= it[item]["id"] %]'>驳回</a>
<a class="btn1 btn-success is_pass" href="#modal-pass" data-toggle="modal" data-id='[%= it[item]["id"] %]'>通过</a>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</a>
</td>
......
......@@ -11,7 +11,7 @@
<td>
<a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a>
<a class="btn1 btn-success is_pass" href="#modal-pass" data-toggle="modal" data-id='[%= it[item]["id"] %]'>通过</a>
<a class="btn1 btn-success genjing" href="#modal-follow" data-toggle="modal" data-id='[%= it[item]["id"] %]' >跟进</a>
<!-- <a class="btn1 btn-success genjing" href="#modal-follow" data-toggle="modal" data-id='[%= it[item]["id"] %]' >跟进</a> -->
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</a>
</td>
</tr>
......
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