Commit 3f3ba255 authored by agping's avatar agping

财务修改

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