|
|
@ -195,6 +195,7 @@ |
|
|
<script type="text/html" id="action"> |
|
|
<script type="text/html" id="action"> |
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="alter"><i class="layui-icon"></i>转移</a> |
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="alter"><i class="layui-icon"></i>转移</a> |
|
|
<a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon"></i>编辑</a> |
|
|
<a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon"></i>编辑</a> |
|
|
|
|
|
<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="search_beian"><i class="layui-icon"></i>报备查询</a> |
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon"></i>删除</a> |
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon"></i>删除</a> |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
@ -224,7 +225,7 @@ |
|
|
{field: 'id', title: 'ID', width: 80, fixed: true,hide:true}, |
|
|
{field: 'id', title: 'ID', width: 80, fixed: true,hide:true}, |
|
|
{field: 'kh_name', title: '客户名称',templet:function (res) { |
|
|
{field: 'kh_name', title: '客户名称',templet:function (res) { |
|
|
return "<a href='{:url('dialogue')}?id="+res.id+"'>"+res.kh_name+"</a>"; |
|
|
return "<a href='{:url('dialogue')}?id="+res.id+"'>"+res.kh_name+"</a>"; |
|
|
},minWidth: 120}, |
|
|
},minWidth: 40}, |
|
|
|
|
|
|
|
|
{field: 'pro', templet: function (d) { |
|
|
{field: 'pro', templet: function (d) { |
|
|
var returnHtml = ''; |
|
|
var returnHtml = ''; |
|
|
@ -232,7 +233,7 @@ |
|
|
returnHtml += d.city ; |
|
|
returnHtml += d.city ; |
|
|
returnHtml += d.area ; |
|
|
returnHtml += d.area ; |
|
|
return returnHtml |
|
|
return returnHtml |
|
|
}, title: '地区',minWidth: 210 |
|
|
}, title: '地区',minWidth: 160 |
|
|
}, |
|
|
}, |
|
|
{field: 'house', title: '小区名称',minWidth: 150}, |
|
|
{field: 'house', title: '小区名称',minWidth: 150}, |
|
|
{field: 'bn', templet: function (d) { |
|
|
{field: 'bn', templet: function (d) { |
|
|
@ -241,7 +242,7 @@ |
|
|
returnHtml += '-'; |
|
|
returnHtml += '-'; |
|
|
returnHtml += d.number ; |
|
|
returnHtml += d.number ; |
|
|
return returnHtml |
|
|
return returnHtml |
|
|
}, title: '门牌号',minWidth: 100 |
|
|
}, title: '门牌号',minWidth: 60 |
|
|
}, |
|
|
}, |
|
|
{field: 'phone', title: '联系号码',width: 120 }, |
|
|
{field: 'phone', title: '联系号码',width: 120 }, |
|
|
{field: 'kh_rank', title: '客户级别',hide:true}, |
|
|
{field: 'kh_rank', title: '客户级别',hide:true}, |
|
|
@ -265,7 +266,7 @@ |
|
|
{field: 'at_user', title: '创建人',hide:true}, |
|
|
{field: 'at_user', title: '创建人',hide:true}, |
|
|
{field: 'pr_user_bef', title: '前负责人',hide:true }, |
|
|
{field: 'pr_user_bef', title: '前负责人',hide:true }, |
|
|
{field: 'sort', title: '等级',width: 60}, |
|
|
{field: 'sort', title: '等级',width: 60}, |
|
|
{width: 220, align: 'center', toolbar: '#action'} |
|
|
{width: 320, align: 'center', toolbar: '#action'} |
|
|
]], |
|
|
]], |
|
|
limit: 100, //每页默认显示的数量 |
|
|
limit: 100, //每页默认显示的数量 |
|
|
|
|
|
|
|
|
@ -295,6 +296,15 @@ |
|
|
layer_add("编辑客户","{:url('Client/edit')}?id="+data.id); |
|
|
layer_add("编辑客户","{:url('Client/edit')}?id="+data.id); |
|
|
}else if(obj.event === 'alter'){ |
|
|
}else if(obj.event === 'alter'){ |
|
|
layer_add("转移客户","{:url('Client/alterPrUser')}?ids="+data.id) |
|
|
layer_add("转移客户","{:url('Client/alterPrUser')}?ids="+data.id) |
|
|
|
|
|
}else if(obj.event === 'search_beian'){ |
|
|
|
|
|
$.post("{:url('Client/searchClient')}?id=" + data.id,[],function (res) { |
|
|
|
|
|
if (res.code == 0){ |
|
|
|
|
|
layer.alert(res.msg,{time:5000}); |
|
|
|
|
|
}else { |
|
|
|
|
|
layer.alert(res.msg,{time:5000}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
},'json') |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|