Commit 6a42e204 authored by agping's avatar agping

收款记录修改

parent 1ea92998
......@@ -93,6 +93,24 @@
</div>
</div>
</div>
<!--时间轴-->
<div class="modal fade" id="modal-time" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title">
时间轴
</h4>
</div>
<div class="modal-body" class="iframe-div-parent">
<iframe class="iframe-time-line"></iframe>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<div class="modal fade" id="modal-linetime" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
......@@ -101,18 +119,18 @@
×
</button>
<h4 class="modal-title">
款记录
付金额
</h4>
</div>
<div class="modal-body">
<div class="modal-body" id="del_msg">
实付金额:<input type="number" />
实付金额:<input type="number" id='real_money'/>
</div>
</div>
<div class="modal-footer">
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>-->
<button type="button" class="btn btn-primary" id=" " data-dismiss="modal">
<button type="button" class="btn btn-primary submit_edit" id=" " data-dismiss="modal">
保存
</button>
</div>
......
......@@ -20,13 +20,11 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
},
event: function() {
var _doc = $(document);
_doc.on("click", ".timeline", function() {
follow.Timeline();
});
_doc.on('click', 'a[href="#modal-time"]', function(e){
_doc.on('click', 'a[href="#modal-time"]', function(e){
follow.house_id = $ (this).attr ("data-id");
e.preventDefault();
e.stopPropagation();
var _this = $(this);
console.log('follow.house_id');
$('.iframe-time-line').attr('src', '/app_broker/timeline_pc?order_id='+follow.house_id);
});
$("#search").click(function() {
......@@ -35,10 +33,7 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
$("#reset").click(function() { //重置
document.getElementById("form_search").reset();
});
$ (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();
......@@ -87,38 +82,13 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
});
},
//时间轴点击事件
Timeline: function() { //获取时间轴
$.ajax({
'type': 'GET',
'url': '/index/selectReportAll',
data: {
"order_id": follow.house_id
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {
console.log(data.data);
}
} else {
alert('获取失败!');
}
}
});
},
Submit_follow: function() { //提交
$.ajax({
'type': 'POST',
'url': '/index/pcEditClient',
'url': 'index/addRealMoney',
data: {
"id": follow.house_id,
"user_nick": $("#cus_name").val(),
"user_phone": $("#cus_phone").html(),
"agent_id":follow.agent_id,//客方
"sex": $("#sex").val()
"collection_id": follow.house_id,
"real_money": $("#real_money").val(),
},
dataType: "json",
success: function(data) {
......
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