Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa-crm
提交
9636c4d5
O
o2oa-crm
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa-crm
通知
0
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
o2oa-crm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9636c4d5
编写于
1月 27, 2021
作者:
L
luojing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
crm,前端修复区域显示问题
上级
bbe33ba3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
26 addition
and
300 deletion
+26
-300
web/source/x_component_CRM/ClueOpen.js
web/source/x_component_CRM/ClueOpen.js
+5
-292
web/source/x_component_CRM/ContactsOpen.js
web/source/x_component_CRM/ContactsOpen.js
+6
-1
web/source/x_component_CRM/CustomerOpen.js
web/source/x_component_CRM/CustomerOpen.js
+5
-1
web/source/x_component_CRM/PublicseasOpen.js
web/source/x_component_CRM/PublicseasOpen.js
+9
-5
web/source/x_component_CRM/lp/zh-cn.js
web/source/x_component_CRM/lp/zh-cn.js
+1
-1
未找到文件。
web/source/x_component_CRM/ClueOpen.js
浏览文件 @
9636c4d5
...
@@ -177,9 +177,12 @@ MWF.xApplication.CRM.ClueOpen = new Class({
...
@@ -177,9 +177,12 @@ MWF.xApplication.CRM.ClueOpen = new Class({
var
itemTemplateObject
=
_self
.
lp
;
var
itemTemplateObject
=
_self
.
lp
;
var
section_conent
=
'
<div class="section-conent">
'
;
var
section_conent
=
'
<div class="section-conent">
'
;
for
(
i
in
itemTemplateObject
){
for
(
i
in
itemTemplateObject
){
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>
'
+
section_conent
=
section_conent
+
'
<div class="conent-inline"><div class="conent-title">
'
+
itemTemplateObject
[
i
].
text
+
'
</div>
'
+
'
<div class="conent-value">
'
+
jsonObj
[
i
]
+
'
</div></div>
'
;
'
<div class="conent-value">
'
+
conentValue
+
'
</div></div>
'
;
}
}
section_conent
=
section_conent
+
'
</div>
'
;
section_conent
=
section_conent
+
'
</div>
'
;
...
@@ -1064,296 +1067,6 @@ debugger
...
@@ -1064,296 +1067,6 @@ debugger
loadFormData
:
function
(){
loadFormData
:
function
(){
var
tmpData
=
{};
var
tmpData
=
{};
this
.
loadForm
();
this
.
loadForm
();
/*
var html = "<table width='100%' bordr='0' cellpadding='5' cellspacing='0' styles='formTable'>" +
"<tr>" +
" <td styles='formTableTitle'><span lable='TCustomerName'></span><span style='color:#f00'>*</span></td>" +
" <td styles='formTableValue' item='TCustomerName'></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TCustomerType'></td>" +
" <td styles='formTableValue'><div id='TCustomerType'></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TCustomerLevel'></td>" +
" <td styles='formTableValue'><div id='TCustomerLevel'></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TSource'></td>" +
" <td styles='formTableValue'><div id='TSource'></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TIndustryFirst'></td>" +
" <td styles='formTableValue'><div id='TIndustryFirst'></div><div id='TIndustrySecond'></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TDistrict'></td>" +
" <td styles='formTableValue'><div id='TProvince'></div><div id='TCity'></div><div id='TArea'></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TStreet'></td>" +
" <td styles='formTableValue' item='TStreet'></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TLocation'></td>" +
" <td styles='formTableValue'><div style='width:100%;height:30px;'><input type='text' placeholder='"+this.lp.TLocationNotice+"' id='mapLocation' disabled/></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle'></td>" +
" <td styles='formTableValue'><div id='mapDiv' styles='mapDiv'></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TTelphone'></td>" +
" <td styles='formTableValue' item='TTelphone'></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TFax'></td>" +
" <td styles='formTableValue' item='TFax'></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TRemark'></td>" +
" <td styles='formTableValue' item='TRemark'></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TWebSite'></td>" +
" <td styles='formTableValue' item='TWebSite'></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TEmail'></td>" +
" <td styles='formTableValue' item='TEmail'></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TCustomerStatus'></td>" +
" <td styles='formTableValue'><div id='TCustomerStatus'></div></td>" +
"</tr><tr>" +
" <td styles='formTableTitle' lable='TCustomerGrade'></td>" +
" <td styles='formTableValue'><div id='TCustomerGrade'></div></td>" +
"</tr>" +
"</table>"
this.formTableArea.set("html", html);
this.TCustomerType = this.formTableArea.getElement("#TCustomerType");
this.TCustomerLevel = this.formTableArea.getElement("#TCustomerLevel");
this.TSource = this.formTableArea.getElement("#TSource");
this.TIndustryFirst = this.formTableArea.getElement("#TIndustryFirst");
this.TIndustrySecond = this.formTableArea.getElement("#TIndustrySecond");
this.TProvince = this.formTableArea.getElement("#TProvince");
this.TCity = this.formTableArea.getElement("#TCity");
this.TArea = this.formTableArea.getElement("#TArea");
this.TCustomerStatus = this.formTableArea.getElement("#TCustomerStatus");
this.TCustomerGrade = this.formTableArea.getElement("#TCustomerGrade");
var size = {"width":230,"height":30};
this.TIndustryFirst.setStyles({"float":"left"});
this.TIndustrySecond.setStyles({"float":"left","margin-left":"10px"});
//客户类型
this.TCustomerTypeSelector = new MWF.xApplication.CRM.Template.Select(this.TCustomerType,this, this.actions, size);
this.TCustomerTypeSelector.load();
alert(JSON.stringify(this.profileData.customertype_config))
this.TCustomerTypeSelector.setList(this.profileData.customertype_config);
if(this.customerData && this.customerData.customertype){
this.TCustomerTypeSelector.selectValueDiv.set({"text":this.customerData.customertype});
this.TCustomerTypeSelector.node.set("value",this.customerData.customertype);
}
//客户级别
this.TCustomerLevelSelector = new MWF.xApplication.CRM.Template.Select(this.TCustomerLevel,this, this.actions, size);
this.TCustomerLevelSelector.load();
this.TCustomerLevelSelector.setList(this.profileData.level_config);
if(this.customerData && this.customerData.level){
this.TCustomerLevelSelector.selectValueDiv.set({"text":this.customerData.level});
this.TCustomerLevelSelector.node.set("value",this.customerData.level);
}
//来源
this.TSourceSelector = new MWF.xApplication.CRM.Template.Select(this.TSource,this, this.actions, size);
this.TSourceSelector.load();
this.TSourceSelector.setList(this.profileData.source_config);
if(this.customerData && this.customerData.source){
this.TSourceSelector.selectValueDiv.set({"text":this.customerData.source});
this.TSourceSelector.node.set("value",this.customerData.source);
}
//行业
this.TIndustryFirstSelector = new MWF.xApplication.CRM.Template.Select(this.TIndustryFirst,this, this.actions, {"width":230,"height":30});
this.TIndustrySecondSelector = new MWF.xApplication.CRM.Template.Select(this.TIndustrySecond,this, this.actions, {"width":230,"height":30,"available":"no"});
this.TIndustrySecondSelector.load();
this.TIndustryFirstSelector.load();
if(this.customerData && this.customerData.industryfirst){
this.TIndustryFirstSelector.selectValueDiv.set({"text":this.customerData.industryfirst});
this.TIndustryFirstSelector.node.set("value",this.customerData.industryfirst);
this.profileData.industry_config.childNodes.each(function(d){
if(d.configname == this.customerData.industryfirst){
tmpData = d;
}
}.bind(this));
this.TIndustrySecondSelector.setList(tmpData);
this.TIndustrySecond.set("available","yes");
this.TIndustrySecond.setStyles({"background-color":""});
}
if(this.customerData && this.customerData.industrysecond){
this.TIndustrySecondSelector.selectValueDiv.set({"text":this.customerData.industrysecond});
this.TIndustrySecondSelector.node.set("value",this.customerData.industrysecond);
this.profileData.industry_config.childNodes.each(function(d){
if(d.configname == this.customerData.industryfirst){
tmpData = d;
}
}.bind(this));
this.TIndustrySecondSelector.setList(tmpData);
this.TIndustrySecond.set("available","yes");
this.TIndustrySecond.setStyles({"background-color":""});
}
this.TIndustryFirstSelector.setList(this.profileData.industry_config,function(d){
if(this.TIndustryFirst.get("value") == this.lp.defaultSelect){
this.TIndustrySecondSelector.createDefault();
this.TIndustrySecondSelector.setList();
this.TIndustrySecond.set("available","no");
this.TIndustrySecond.setStyles({"background-color":"#eeeeee"})
}else{
this.TIndustrySecondSelector.createDefault();
this.TIndustrySecondSelector.setList(d);
this.TIndustrySecond.set("available","yes");
this.TIndustrySecond.setStyles({"background-color":""});
}
}.bind(this));
//省、市、区
this.TProvinceSelector = new MWF.xApplication.CRM.Template.Select(this.TProvince,this, this.actions, {"width":150,"height":30});
this.TProvinceSelector.load({},function(){
this.actions.getProvinceList(function(json){
this.TProvinceSelector.setAddress(json.data,function(d){
//city
if(this.TProvince.get("value") == this.lp.defaultSelect){
this.TCitySelector.createDefault();
this.TCitySelector.setAddress();
this.TCity.set("available","no");
this.TCity.setStyles({"background-color":"#eeeeee"});
}else{
this.actions.getCityList({pid: d.cityid},function(json){
this.TCitySelector.createDefault();
this.TCitySelector.setAddress(json.data,function(dd){
//area
if(this.TCity.get("value") == this.lp.defaultSelect){
this.TAreaSelector.createDefault();
this.TAreaSelector.setAddress();
this.TArea.set("available","no");
this.TArea.setStyles({"background-color":"#eeeeee"});
}else{
this.actions.getAreaList({pid:dd.cityid},function(json){
this.TAreaSelector.createDefault();
this.TAreaSelector.setAddress(json.data);
this.TArea.set("available","yes");
this.TArea.setStyles({"background-color":""});
}.bind(this));
}
}.bind(this));
this.TCity.set("available","yes");
this.TCity.setStyles({"background-color":""});
}.bind(this));
}
this.TAreaSelector.createDefault();
this.TAreaSelector.setAddress();
this.TArea.set("available","no");
this.TArea.setStyles({"background-color":"#eeeeee"});
}.bind(this))
}.bind(this))
}.bind(this));
this.TCitySelector = new MWF.xApplication.CRM.Template.Select(this.TCity,this, this.actions, {"width":150,"height":30,"available":"no"});
this.TCitySelector.load();
this.TAreaSelector = new MWF.xApplication.CRM.Template.Select(this.TArea,this, this.actions, {"width":150,"height":30,"available":"no"});
this.TAreaSelector.load();
if(this.customerData && this.customerData.province){ //省
this.TProvinceSelector.selectValueDiv.set({"text":this.customerData.province});
this.TProvinceSelector.node.set("value",this.customerData.province);
}
if(this.customerData && this.customerData.city){ //市
if(this.customerData && this.customerData.province){
this.actions.getCityListByName({"regionname":this.customerData.province},
function(json){
this.TCitySelector.setAddress(json.data,function(dd){
//area
if(this.TCity.get("value") == this.lp.defaultSelect){
this.TAreaSelector.createDefault();
this.TAreaSelector.setAddress();
this.TArea.set("available","no");
this.TArea.setStyles({"background-color":"#eeeeee"});
}else{
this.actions.getAreaList({pid:dd.cityid},function(json){
this.TAreaSelector.createDefault();
this.TAreaSelector.setAddress(json.data);
this.TArea.set("available","yes");
this.TArea.setStyles({"background-color":""});
}.bind(this));
}
}.bind(this));
}.bind(this));
}
this.TCitySelector.selectValueDiv.set({"text":this.customerData.city});
this.TCitySelector.node.set("value",this.customerData.city);
this.TCity.set("available","yes");
this.TCity.setStyles({"background-color":""});
}
if(this.customerData && this.customerData.county){ //区
if(this.customerData && this.customerData.city){
this.actions.getAreaListByName({"regionname":this.customerData.city},
function(json){
this.TAreaSelector.setAddress(json.data);
}.bind(this));
}
this.TAreaSelector.selectValueDiv.set({"text":this.customerData.county});
this.TAreaSelector.node.set("value",this.customerData.county);
this.TArea.set("available","yes");
this.TArea.setStyles({"background-color":""});
}
this.TProvince.setStyles({"float":"left"});
this.TCity.setStyles({"float":"left","margin-left":"10px"});
this.TArea.setStyles({"float":"left","margin-left":"10px"});
this.TCustomerStatusSelector = new MWF.xApplication.CRM.Template.Select(this.TCustomerStatus,this, this.actions, size);
this.TCustomerStatusSelector.load();
this.TCustomerStatusSelector.setList(this.profileData.state_config);
if(this.customerData && this.customerData.state){
this.TCustomerStatusSelector.selectValueDiv.set({"text":this.customerData.state});
this.TCustomerStatusSelector.node.set("value",this.customerData.state);
}
this.TCustomerGradeSelector = new MWF.xApplication.CRM.Template.Select(this.TCustomerGrade,this, this.actions, size);
this.TCustomerGradeSelector.load();
this.TCustomerGradeSelector.setList(this.profileData.customerrank_config);
this.TMap = this.formTableArea.getElement("#mapDiv");
this.TMap.addEvents({
"mousewheel":function(e){
e.stopPropagation();
}
});
this.mapLocation = this.formTableArea.getElement("#mapLocation");
this.mapLocation.setStyles({
"width": "99%",
"text-indent":"5px",
"border":"1px solid #999",
"background-color":"#eee",
"border-radius": "3px",
"box-shadow": "0px 0px 6px #eee",
"height": "26px"
});
MWF.xDesktop.requireApp("CRM", "BaiduMap", function(){
this.bMap = new MWF.xApplication.CRM.BaiduMap(this.TMap,this.app,this,this.actions,{"from":"newCustomer"});
var mapData = {};
if(this.customerData && this.customerData.addresslatitude){
mapData.latitude = this.customerData.addresslatitude
}
if(this.customerData && this.customerData.addresslongitude){
mapData.longitude = this.customerData.addresslongitude
}
this.bMap.load(mapData);
}.bind(this));
*/
},
},
ok
:
function
(
e
)
{
ok
:
function
(
e
)
{
this
.
fireEvent
(
"
queryOk
"
);
this
.
fireEvent
(
"
queryOk
"
);
...
...
web/source/x_component_CRM/ContactsOpen.js
浏览文件 @
9636c4d5
...
@@ -182,7 +182,12 @@ MWF.xApplication.CRM.ContactsOpen = new Class({
...
@@ -182,7 +182,12 @@ MWF.xApplication.CRM.ContactsOpen = new Class({
var
valueStr
=
""
;
var
valueStr
=
""
;
if
(
i
==
"
customername
"
){
if
(
i
==
"
customername
"
){
valueStr
=
((
typeof
(
jsonObj
.
customer
)
==
"
undefined
"
)?
""
:
jsonObj
.
customer
.
customername
);
valueStr
=
((
typeof
(
jsonObj
.
customer
)
==
"
undefined
"
)?
""
:
jsonObj
.
customer
.
customername
);
}
else
{
}
else
if
(
i
==
"
province
"
){
valueStr
=
((
typeof
(
jsonObj
[
i
])
==
"
undefined
"
)?
""
:
jsonObj
[
i
]);
if
(
valueStr
.
indexOf
(
"
#
"
)
>
0
){
valueStr
=
valueStr
.
replaceAll
(
"
#
"
,
"
-
"
);
}
}
else
{
valueStr
=
((
typeof
(
jsonObj
[
i
])
==
"
undefined
"
)?
""
:
jsonObj
[
i
]);
valueStr
=
((
typeof
(
jsonObj
[
i
])
==
"
undefined
"
)?
""
:
jsonObj
[
i
]);
}
}
section_conent
=
section_conent
+
'
<div class="conent-inline"><div class="conent-title">
'
+
itemTemplateObject
[
i
].
text
+
'
</div>
'
+
section_conent
=
section_conent
+
'
<div class="conent-inline"><div class="conent-title">
'
+
itemTemplateObject
[
i
].
text
+
'
</div>
'
+
...
...
web/source/x_component_CRM/CustomerOpen.js
浏览文件 @
9636c4d5
...
@@ -215,8 +215,12 @@ MWF.xApplication.CRM.CustomerOpen = new Class({
...
@@ -215,8 +215,12 @@ MWF.xApplication.CRM.CustomerOpen = new Class({
var
itemTemplateObject
=
_self
.
lp
;
var
itemTemplateObject
=
_self
.
lp
;
var
section_conent
=
'
<div class="section-conent">
'
;
var
section_conent
=
'
<div class="section-conent">
'
;
for
(
i
in
itemTemplateObject
){
for
(
i
in
itemTemplateObject
){
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>
'
+
section_conent
=
section_conent
+
'
<div class="conent-inline"><div class="conent-title">
'
+
itemTemplateObject
[
i
].
text
+
'
</div>
'
+
'
<div class="conent-value">
'
+
((
typeof
(
jsonObj
[
i
])
==
"
undefined
"
)?
""
:
jsonObj
[
i
]
)
+
'
</div></div>
'
;
'
<div class="conent-value">
'
+
((
typeof
(
conentValue
)
==
"
undefined
"
)?
""
:
conentValue
)
+
'
</div></div>
'
;
}
}
section_conent
=
section_conent
+
'
</div>
'
;
section_conent
=
section_conent
+
'
</div>
'
;
...
...
web/source/x_component_CRM/PublicseasOpen.js
浏览文件 @
9636c4d5
...
@@ -192,8 +192,12 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
...
@@ -192,8 +192,12 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
var
itemTemplateObject
=
_self
.
getItemTemplate
(
_self
.
lp
);
var
itemTemplateObject
=
_self
.
getItemTemplate
(
_self
.
lp
);
var
section_conent
=
'
<div class="section-conent">
'
;
var
section_conent
=
'
<div class="section-conent">
'
;
for
(
i
in
itemTemplateObject
){
for
(
i
in
itemTemplateObject
){
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>
'
+
section_conent
=
section_conent
+
'
<div class="conent-inline"><div class="conent-title">
'
+
itemTemplateObject
[
i
].
text
+
'
</div>
'
+
'
<div class="conent-value">
'
+
((
typeof
(
jsonObj
[
i
])
==
"
undefined
"
)?
""
:
jsonObj
[
i
]
)
+
'
</div></div>
'
;
'
<div class="conent-value">
'
+
((
typeof
(
jsonObj
[
i
])
==
"
undefined
"
)?
""
:
conentValue
)
+
'
</div></div>
'
;
}
}
section_conent
=
section_conent
+
'
</div>
'
;
section_conent
=
section_conent
+
'
</div>
'
;
...
@@ -1327,6 +1331,10 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
...
@@ -1327,6 +1331,10 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
text
:
lp
.
cellphone
,
text
:
lp
.
cellphone
,
type
:
"
text
"
type
:
"
text
"
},
},
province
:
{
text
:
lp
.
province
,
type
:
"
map
"
},
detailaddress
:
{
detailaddress
:
{
text
:
lp
.
detailaddress
,
text
:
lp
.
detailaddress
,
type
:
"
text
"
type
:
"
text
"
...
@@ -1334,10 +1342,6 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
...
@@ -1334,10 +1342,6 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
remark
:
{
remark
:
{
text
:
lp
.
remark
,
text
:
lp
.
remark
,
type
:
"
textarea
"
type
:
"
textarea
"
},
location
:
{
text
:
lp
.
location
,
type
:
"
map
"
}
}
}
}
...
...
web/source/x_component_CRM/lp/zh-cn.js
浏览文件 @
9636c4d5
...
@@ -409,7 +409,7 @@ MWF.xApplication.CRM.LP = {
...
@@ -409,7 +409,7 @@ MWF.xApplication.CRM.LP = {
"
remark
"
:
"
备注
"
,
"
remark
"
:
"
备注
"
,
"
cellphone
"
:
"
手机
"
,
"
cellphone
"
:
"
手机
"
,
"
detailaddress
"
:
"
详细地址
"
,
"
detailaddress
"
:
"
详细地址
"
,
"
location
"
:
"
区域
"
,
"
province
"
:
"
区域
"
,
"
saveSuccess
"
:
"
新建成功
"
,
"
saveSuccess
"
:
"
新建成功
"
,
"
actionConfirm
"
:
"
确定
"
,
"
actionConfirm
"
:
"
确定
"
,
"
actionCancel
"
:
"
关闭
"
"
actionCancel
"
:
"
关闭
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录