Commit 7f030408 authored by agping's avatar agping

财务修改

parent 704845b2
......@@ -118,7 +118,7 @@
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消
</button>
<button type="button" class="btn btn-primary" id="confirm_delete">
<button type="button" class="btn btn-primary" data-dismiss="modal" id="confirm_edit">
确定
</button>
</div>
......
......@@ -34,26 +34,23 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$ (document).delegate (".edit", "click", function () {//点击操作跟进详情
follow.house_id = $ (this).attr ("data-id");
follow.Edit();
});
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情
follow.house_id = $ (this).attr ("data-id");
follow.confirmEdit();
});
// =========三个按钮=========
$ (document).delegate ("#information", "click", function () {//点击操作跟进详情
// follow.house_id = $ (this).attr ("data-id");
$ (document).delegate ("#information", "click", function () {//点击操作跟进详情
follow.Information();
});
$ (document).delegate ("#fees", "click", function () {//点击操作跟进详情
// follow.house_id = $ (this).attr ("data-id");
$ (document).delegate ("#fees", "click", function () {//点击操作跟进详情
follow.Fees();
});
$ (document).delegate ("#records", "click", function () {//点击操作跟进详情
// follow.house_id = $ (this).attr ("data-id");
$ (document).delegate ("#records", "click", function () {//点击操作跟进详情
follow.Records();
});
// ===================
// $ (document).delegate (".caozuo", "click", function () {//点击操作跟进详情
// follow.house_id = $ (this).attr ("data-id");
// follow.Caozuo();
// });
$ (document).delegate (".submit_edit", "click", function () {//提交
follow.house_id = $ (this).attr ("data-id");
follow.Submit_follow();
......@@ -144,6 +141,36 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
});
},
confirmEdit:function(){//修改报告详情
console.log(22);
$.ajax({
'type': 'POST',
'url' : '/index/bargainInfo',
data: { "id":follow.house_id,
"commission":$(".commission").val(),
"practical_fee":$(".practical_fee").val(),
},
dataType: "json",
success: function(data){
if(data.code == 200){
if (data.data) {
// console.log(data.data.commission);
// $(".create_time").html(data.data.create_time);
// $(".user_phone").html(data.data.user_phone);
// $(".user_name").html(data.data.user_name);
// $(".internal_address").html(data.data.internal_address);
// $(".internal_title").html(data.data.internal_title);
// $(".commission").val(data.data.commission);
// $(".practical_fee").val(data.data.practical_fee);
}
} else {
alert('获取失败!');
}
}
});
},
// ===========666=========
Information:function(){
$(".Tswitch").eq(0).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