Commit 00613872 authored by agping's avatar agping

成交报告 未结单

parent e9d5cb4f
......@@ -25,103 +25,50 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
$("#reset").click(function() { //重置
document.getElementById("form_search").reset();
});
// 时间轴
$ (document).delegate (".timeline", "click", function () {//时间轴
follow.Timeline();
});
// 编辑
$ (document).delegate (".edit", "click", function () {//点击操作跟进详情
$ (document).delegate (".edit", "click", function () {//点击编辑
follow.house_id = $ (this).attr ("data-id");
follow.Edit();
});
$ (document).delegate ("#confirm_edit", "click", function () {//点击操作跟进详情
$ (document).delegate ("#confirm_edit", "click", function () {//点击成交信息确定
follow.confirmEdit();
});
$ (document).delegate (".caozuo", "click", function () {//点击分佣提成
follow.Caozuo();
});
//通过
$ (document).delegate ("#confirm_pass", "click", function () {//点击通过
$ (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();
follow.Caozuo();
});
//table切换
$ (document).delegate ("#information", "click", function () {//点击操作跟进详情
$ (document).delegate ("#information", "click", function () {
follow.Information();
});
$ (document).delegate ("#fees", "click", function () {//点击操作跟进详情
$ (document).delegate ("#fees", "click", function () {
follow.Fees();
});
$ (document).delegate ("#records", "click", function () {//点击操作跟进详情
$ (document).delegate ("#records", "click", function () {
follow.Records();
});
$ (document).delegate (".submit_edit", "click", function () {//提交
follow.Submit_follow();
});
//专员审核 总监审核 经理审核 出纳审核
$ (document).delegate ("#commissioner", "click", function () {//点击操作跟进详情
$ (document).delegate ("#commissioner", "click", function () {
follow.Commissioner();
});
$ (document).delegate ("#manager", "click", function () {//点击操作跟进详情
$ (document).delegate ("#manager", "click", function () {
follow.Manager();
});
$ (document).delegate ("#director", "click", function () {//点击操作跟进详情
$ (document).delegate ("#director", "click", function () {
follow.Director();
});
$ (document).delegate ("#cashier", "click", function () {//出纳审核
$ (document).delegate ("#cashier", "click", function () {
follow.Cashier();
});
//专员审核 总监审核 经理审核 出纳审核
$ (document).on ("input","#cus_fang", function () {//手机号搜索客方2
if($("#cus_fang").val()==''){
$(".user-ul2").html('');
}else{
follow.search_phone2();
}
});
$ (document).delegate (".addphone2", "click", function () {//list2消失
follow.addphone2(this);
});
},
addphone2:function(obj){
var user_ht=$(obj).html();
$("#cus_fang").val(user_ht);
$(".user-ul2").html('');
follow.agent_id = $ (obj).attr ("data-id");
},
search_phone2:function(){//手机号
$.ajax ({
url: '/index/select_by_phone',
type: 'POST',
async: true,
data: {
"phone":$("#cus_fang").val()
},
dataType: 'json',
success: function (data) {
if (data.code == 200) {
var user_ul2 = "";
$.each(data.data, function(i,item) {
user_ul2+='<li class="addphone2" data-id="'+item.id+'">'+item.id+'-'+item.realname+'-'+item.phone+'</li>';
});
$(".user-ul2").html(user_ul2);
} else {
alert(data.msg);
}
}
});
});
},
Timeline:function(){//获取时间轴
$.ajax({
......@@ -252,7 +199,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
});
},
// 新增分佣提成
newCommission:function(){//新增分佣提成
$.ajax({
'type': 'POST',
......@@ -275,7 +221,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
},
// table切换
// table切换
Information:function(){
$(".Tswitch").eq(0).show();
$(".Tswitch").eq(1).hide();
......
<script id="refund_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-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 timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["id"] %]'>时间轴</a>
</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="8" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
\ No newline at end of file
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