提交 ab216f31 编写于 作者: L luojing

crm,修复由老数据未选择地区而出现的基础信息显示异常问题

上级 0191878e
......@@ -177,12 +177,13 @@ MWF.xApplication.CRM.ClueOpen = new Class({
var itemTemplateObject = _self.lp;
var section_conent = '<div class="section-conent">';
for ( i in itemTemplateObject){
debugger
var conentValue = jsonObj[i];
if(i == "province" && conentValue.indexOf("#")>0){
conentValue = conentValue.replaceAll("#","-")
}
section_conent = section_conent+'<div class="conent-inline"><div class="conent-title">'+itemTemplateObject[i].text+'</div>' +
'<div class="conent-value">'+conentValue+'</div></div>';
'<div class="conent-value">'+((typeof(conentValue)=="undefined")?"" : conentValue)+'</div></div>';
}
section_conent = section_conent + '</div>';
......
......@@ -179,6 +179,7 @@ MWF.xApplication.CRM.ContactsOpen = new Class({
var itemTemplateObject = _self.lp;
var section_conent = '<div class="section-conent">';
for ( i in itemTemplateObject){
debugger
var valueStr = "";
if(i=="customername"){
valueStr = ((typeof(jsonObj.customer)=="undefined")?"" : jsonObj.customer.customername);
......
......@@ -215,8 +215,9 @@ MWF.xApplication.CRM.CustomerOpen = new Class({
var itemTemplateObject = _self.lp;
var section_conent = '<div class="section-conent">';
for ( i in itemTemplateObject){
debugger
var conentValue = jsonObj[i];
if(i == "province" && conentValue.indexOf("#")>0){
if(i == "province" && conentValue && conentValue.indexOf("#")>0){
conentValue = conentValue.replaceAll("#","-")
}
section_conent = section_conent+'<div class="conent-inline"><div class="conent-title">'+itemTemplateObject[i].text+'</div>' +
......
......@@ -193,7 +193,7 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
var section_conent = '<div class="section-conent">';
for ( i in itemTemplateObject){
var conentValue = jsonObj[i];
if(i == "province" && conentValue.indexOf("#")>0){
if(i == "province" && conentValue && conentValue.indexOf("#")>0){
conentValue = conentValue.replaceAll("#","-")
}
section_conent = section_conent+'<div class="conent-inline"><div class="conent-title">'+itemTemplateObject[i].text+'</div>' +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册