Commit eaeb4c2d authored by agping's avatar agping

线上-实收明细优化

parent 850feff8
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
height: auto; height: auto;
float: left; float: left;
position: absolute; position: absolute;
width: 230px; width: 290px;
background: #fff; background: #fff;
border: 1px solid #ccc; border: 1px solid #ccc;
border-top:0; border-top:0;
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
margin-left: -20px; margin-left: -20px;
} }
.left-phone{ .left-phone{
width: 236px; width: 300px;
float: left; float: left;
margin-top: 7px; margin-top: 7px;
margin-left: 10px; margin-left: 10px;
......
...@@ -155,7 +155,22 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'css!style/home.css', ' ...@@ -155,7 +155,22 @@ define(['doT', 'text!temp/commission_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="addphone" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + '</li>'; if(item.status == 0){
var status=' ';
};
if(item.status == 1){
var status='-长假';
};
if(item.status == 2){
var status='-离职';
};
if(item.status == 3){
var status='-转勤';
};
if(item.status == 4){
var status='-黑名单';
}
user_ul += '<li class="addphone" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status +'</li>';
}); });
$(".user-ul").html(user_ul); $(".user-ul").html(user_ul);
...@@ -169,7 +184,8 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'css!style/home.css', ' ...@@ -169,7 +184,8 @@ define(['doT', 'text!temp/commission_template_tpl.html', 'css!style/home.css', '
//将li里的值 赋给input(分佣方姓名) //将li里的值 赋给input(分佣方姓名)
addphone: function(obj) {//新增客户 input赋值 addphone: function(obj) {//新增客户 input赋值
var user_ht = $(obj).html(); var user_ht = $(obj).html();
$("#partical_name").val(user_ht); var user_ht_str=user_ht.substring(0,user_ht.length-3);//输入框里 不显示职称
$("#partical_name").val(user_ht_str);
$(".user-ul").html(''); $(".user-ul").html('');
bargain.agent_id_phone = $(obj).attr("data-id"); bargain.agent_id_phone = $(obj).attr("data-id");
}, },
......
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