Commit 5b565677 authored by duxinyuan's avatar duxinyuan

1

parent 8276e7d3
...@@ -361,15 +361,18 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -361,15 +361,18 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//将li里的值 赋给input(分佣方姓名) //将li里的值 赋给input(分佣方姓名)
intoIdBuild: function(obj) {//新增客户 input赋值 intoIdBuild: function(obj) {//新增客户 input赋值
var that = receiv ; var that = receiv ;
that.intoId_a = $(obj).attr("data-id");
$("#into_id_change").val($(obj).attr("data-id")); $("#into_id_change").val($(obj).attr("data-id"));
$(".intoIdArea").html(''); $(".intoIdArea").html('');
$('.intoIdArea').hide(); $('.intoIdArea').hide();
$('#shop_addr_change').text($(obj).attr("data-addr")); $('#shop_addr_change').text($(obj).attr("data-addr"));
// $('#into_id_change').text($(obj).attr("data-order_id"));
$('#shop_id_change_shop').text($(obj).attr("data-house_number")); $('#shop_id_change_shop').text($(obj).attr("data-house_number"));
$('#shop_id_change').text($(obj).attr("data-house_number")); $('#shop_id_change').text($(obj).attr("data-house_number"));
that.houseNmuber = $(obj).attr("data-house_number"); that.houseNmuber = $(obj).attr("data-house_number");
that.order_id = $(obj).attr("data-id") ;
that.order_no = $(obj).attr("data-order_no") ;
that.report_id = $(obj).attr("data-report_id");
that.agent_id = $(obj).attr("data-agent_id");
that.agent_name = $(obj).attr("data-agent_name");
}, },
//将li里的值 赋给input(分佣方姓名) //将li里的值 赋给input(分佣方姓名)
...@@ -380,7 +383,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -380,7 +383,6 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$(".reportArea").html(''); $(".reportArea").html('');
$('.reportArea').hide(); $('.reportArea').hide();
$('#shop_addr_change').text($(obj).attr("data-addr")); $('#shop_addr_change').text($(obj).attr("data-addr"));
// $('#into_id_change').text($(obj).attr("data-order_id"));
$('#shop_id_change_shop').text($(obj).attr("data-house_number")); $('#shop_id_change_shop').text($(obj).attr("data-house_number"));
$('#shop_id_change').text($(obj).attr("data-house_id")); $('#shop_id_change').text($(obj).attr("data-house_id"));
that.houseNmuber = $(obj).attr("data-house_number"); that.houseNmuber = $(obj).attr("data-house_number");
...@@ -391,6 +393,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -391,6 +393,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
that.order_no = $(obj).attr("data-order_no") ; that.order_no = $(obj).attr("data-order_no") ;
that.report_id = $(obj).attr("data-report_id"); that.report_id = $(obj).attr("data-report_id");
that.agent_id = $(obj).attr("data-agent_id"); that.agent_id = $(obj).attr("data-agent_id");
that.agent_name = $(obj).attr("data-agent_name");
}, },
search_phone : function(){ search_phone : function(){
...@@ -450,7 +453,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -450,7 +453,9 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
if(data.code == 200) { if(data.code == 200) {
var user_ul = ""; var user_ul = "";
$.each(data.data, function(i, item) { $.each(data.data, function(i, item) {
user_ul += '<li class="intoIdBuild" data-house_number="'+item.house_id+'"data-order_id="'+item.order_id+'" data-addr="'+item.house_address+'" data-id="' + item.id + '">' + item.house_address + ',商铺ID:+' + item.house_id + ',带看ID' + item.id+'</li>'; user_ul += '<li class="intoIdBuild" data-house_number="'+item.house_id+'"data-order_id="'+item.order_id+'" data-addr="'+item.house_address+'" data-id="' + item.id
+'" data-agent_id="' + item.report_agent_id +'" data-agent_name="' + item.report_agent_name +'" data-order_no="' + item.order_no
+ '">' + item.house_address + ',商铺ID:+' + item.house_id + ',带看ID' + item.id+'</li>';
}); });
$('.intoIdArea').show(); $('.intoIdArea').show();
$(".intoIdArea").html(user_ul); $(".intoIdArea").html(user_ul);
...@@ -582,7 +587,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css', ...@@ -582,7 +587,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
'order_id' : that.order_id , 'order_id' : that.order_id ,
'order_no' : that.order_no, 'order_no' : that.order_no,
'agent_id' : that.agent_id, 'agent_id' : that.agent_id,
'report_id' : that.report_id_a ? that.report_id_a : that.report_id, 'report_id' : that.report_id,
'industry_type' : that.yetai, 'industry_type' : that.yetai,
'income_time' : that.income_time 'income_time' : that.income_time
}; };
......
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