Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
cc34366e
提交
cc34366e
编写于
7月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码
上级
4bd12da4
变更
107
隐藏空白字符变更
内嵌
并排
正在显示
107 个修改的文件
包含
1112 行增加
和
661 行删除
+1112
-661
campaign-service-base.ts
app_CRM/src/service/campaign/campaign-service-base.ts
+41
-41
contact-service-base.ts
app_CRM/src/service/contact/contact-service-base.ts
+168
-168
ibiz-list-service-base.ts
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
+50
-50
opportunity-service-base.ts
app_CRM/src/service/opportunity/opportunity-service-base.ts
+252
-252
product-service-base.ts
app_CRM/src/service/product/product-service-base.ts
+52
-52
sales-literature-service-base.ts
...service/sales-literature/sales-literature-service-base.ts
+52
-52
AppViewStoreBase.ts
...rc/studio-core/service/app-view-store/AppViewStoreBase.ts
+10
-3
ViewBase.tsx
app_CRM/src/studio-core/view/ViewBase.tsx
+25
-0
gradationtreeexpbar-treeexpbar.html
...treeexpbar-treeexpbar/gradationtreeexpbar-treeexpbar.html
+0
-1
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+4
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
infotabviewpanel3-tabviewpanel-base.tsx
...nel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
+9
-1
infotabviewpanel3-tabviewpanel.html
...ewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
+1
-0
infotabviewpanel4-tabviewpanel-base.tsx
...nel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
+9
-1
infotabviewpanel4-tabviewpanel.html
...ewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
+1
-0
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+5
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
infotabviewpanel3-tabviewpanel-base.tsx
...nel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
+9
-1
infotabviewpanel3-tabviewpanel.html
...ewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
+1
-0
infotabviewpanel4-tabviewpanel-base.tsx
...nel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
+9
-1
infotabviewpanel4-tabviewpanel.html
...ewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
+1
-0
infotabviewpanel5-tabviewpanel-base.tsx
...nel5-tabviewpanel/infotabviewpanel5-tabviewpanel-base.tsx
+9
-1
infotabviewpanel5-tabviewpanel.html
...ewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel.html
+1
-0
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+2
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+4
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
infotabviewpanel3-tabviewpanel-base.tsx
...nel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
+9
-1
infotabviewpanel3-tabviewpanel.html
...ewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
+1
-0
infotabviewpanel4-tabviewpanel-base.tsx
...nel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
+9
-1
infotabviewpanel4-tabviewpanel.html
...ewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
+1
-0
info-viewtabexppanel-tabexppanel.html
...xppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
+2
-0
info-viewtabviewpanel-tabviewpanel-base.tsx
...-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+5
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
infotabviewpanel3-tabviewpanel-base.tsx
...nel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
+9
-1
infotabviewpanel3-tabviewpanel.html
...ewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
+1
-0
infotabviewpanel4-tabviewpanel-base.tsx
...nel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
+9
-1
infotabviewpanel4-tabviewpanel.html
...ewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
+1
-0
infotabviewpanel5-tabviewpanel-base.tsx
...nel5-tabviewpanel/infotabviewpanel5-tabviewpanel-base.tsx
+9
-1
infotabviewpanel5-tabviewpanel.html
...ewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel.html
+1
-0
info-viewtabexppanel-tabexppanel.html
...xppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
+2
-0
info-viewtabviewpanel-tabviewpanel-base.tsx
...-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
info-viewtabexppanel-tabexppanel.html
...xppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
+2
-0
info-viewtabviewpanel-tabviewpanel-base.tsx
...-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+2
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+3
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
infotabviewpanel3-tabviewpanel-base.tsx
...nel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
+9
-1
infotabviewpanel3-tabviewpanel.html
...ewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
+1
-0
info-viewtabexppanel-tabexppanel.html
...xppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
+4
-0
info-viewtabviewpanel-tabviewpanel-base.tsx
...-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
info-viewtabviewpanel3-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel3-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel3-tabviewpanel.html
...el3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
+1
-0
info-viewtabviewpanel4-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel4-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel4-tabviewpanel.html
...el4-tabviewpanel/info-viewtabviewpanel4-tabviewpanel.html
+1
-0
infotabexppanel-tabexppanel.html
...otabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
+2
-0
infotabviewpanel-tabviewpanel-base.tsx
...panel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
+9
-1
infotabviewpanel-tabviewpanel.html
...viewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
+1
-0
infotabviewpanel2-tabviewpanel-base.tsx
...nel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
+9
-1
infotabviewpanel2-tabviewpanel.html
...ewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
+1
-0
info-viewtabexppanel-tabexppanel.html
...xppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
+3
-0
info-viewtabviewpanel-tabviewpanel-base.tsx
...-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
info-viewtabviewpanel3-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel3-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel3-tabviewpanel.html
...el3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
+1
-0
info-viewtabexppanel-tabexppanel.html
...xppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
+2
-0
info-viewtabviewpanel-tabviewpanel-base.tsx
...-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel-tabviewpanel.html
...anel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
+1
-0
info-viewtabviewpanel2-tabviewpanel-base.tsx
...tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
+9
-1
info-viewtabviewpanel2-tabviewpanel.html
...el2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
+1
-0
未找到文件。
app_CRM/src/service/campaign/campaign-service-base.ts
浏览文件 @
cc34366e
...
@@ -62,11 +62,11 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -62,11 +62,11 @@ export default class CampaignServiceBase extends EntityService {
*/
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
campaign
list
sData
:
any
=
[];
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
item
.
relationshipsid
=
null
;
...
@@ -76,12 +76,12 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -76,12 +76,12 @@ export default class CampaignServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
campaign
lists
=
campaignlist
sData
;
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
let
campaign
campaign
sData
:
any
=
[];
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
item
.
relationshipsid
=
null
;
...
@@ -91,7 +91,7 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -91,7 +91,7 @@ export default class CampaignServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
masterData
.
campaign
lists
=
campaignlist
sData
;
let
leadsData
:
any
=
[];
let
leadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
...
@@ -116,8 +116,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -116,8 +116,8 @@ export default class CampaignServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -133,11 +133,11 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -133,11 +133,11 @@ export default class CampaignServiceBase extends EntityService {
*/
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
campaign
list
sData
:
any
=
[];
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
item
.
relationshipsid
=
null
;
...
@@ -147,12 +147,12 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -147,12 +147,12 @@ export default class CampaignServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
campaign
lists
=
campaignlist
sData
;
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
let
campaign
campaign
sData
:
any
=
[];
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
item
.
relationshipsid
=
null
;
...
@@ -162,7 +162,7 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -162,7 +162,7 @@ export default class CampaignServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
masterData
.
campaign
lists
=
campaignlist
sData
;
let
leadsData
:
any
=
[];
let
leadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
...
@@ -180,8 +180,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -180,8 +180,8 @@ export default class CampaignServiceBase extends EntityService {
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/campaigns/
${
context
.
campaign
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/campaigns/
${
context
.
campaign
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -210,8 +210,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -210,8 +210,8 @@ export default class CampaignServiceBase extends EntityService {
*/
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/
${
context
.
campaign
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/
${
context
.
campaign
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -228,8 +228,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -228,8 +228,8 @@ export default class CampaignServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/getdraft`
,
isloading
);
res
.
data
.
campaign
=
data
.
campaign
;
res
.
data
.
campaign
=
data
.
campaign
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -258,11 +258,11 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -258,11 +258,11 @@ export default class CampaignServiceBase extends EntityService {
*/
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
campaign
list
sData
:
any
=
[];
let
campaign
campaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
item
.
relationshipsid
=
null
;
...
@@ -272,12 +272,12 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -272,12 +272,12 @@ export default class CampaignServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
campaign
lists
=
campaignlist
sData
;
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
let
campaign
campaign
sData
:
any
=
[];
let
campaign
list
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
campaign
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaign
list
s'
),
'undefined'
)){
campaign
campaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
campaign
listsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlist
s'
)
as
any
);
if
(
campaign
campaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
if
(
campaign
listsData
&&
campaignlistsData
.
length
&&
campaignlist
sData
.
length
>
0
){
campaign
campaign
sData
.
forEach
((
item
:
any
)
=>
{
campaign
list
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
item
.
relationshipsid
=
null
;
...
@@ -287,7 +287,7 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -287,7 +287,7 @@ export default class CampaignServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
campaign
campaigns
=
campaigncampaign
sData
;
masterData
.
campaign
lists
=
campaignlist
sData
;
let
leadsData
:
any
=
[];
let
leadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_leads'
)
as
any
);
...
@@ -305,8 +305,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -305,8 +305,8 @@ export default class CampaignServiceBase extends EntityService {
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns/
${
context
.
campaign
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns/
${
context
.
campaign
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/service/contact/contact-service-base.ts
浏览文件 @
cc34366e
...
@@ -66,21 +66,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -66,21 +66,21 @@ export default class ContactServiceBase extends EntityService {
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
true
){
if
(
context
.
account
&&
true
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -96,21 +96,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -96,21 +96,21 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -120,27 +120,27 @@ export default class ContactServiceBase extends EntityService {
...
@@ -120,27 +120,27 @@ export default class ContactServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -156,21 +156,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -156,21 +156,21 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -180,9 +180,9 @@ export default class ContactServiceBase extends EntityService {
...
@@ -180,9 +180,9 @@ export default class ContactServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -198,21 +198,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -198,21 +198,21 @@ export default class ContactServiceBase extends EntityService {
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
){
if
(
context
.
account
&&
context
.
contact
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -228,44 +228,44 @@ export default class ContactServiceBase extends EntityService {
...
@@ -228,44 +228,44 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -281,26 +281,26 @@ export default class ContactServiceBase extends EntityService {
...
@@ -281,26 +281,26 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -332,15 +332,15 @@ export default class ContactServiceBase extends EntityService {
...
@@ -332,15 +332,15 @@ export default class ContactServiceBase extends EntityService {
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
){
if
(
context
.
account
&&
context
.
contact
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -357,16 +357,16 @@ export default class ContactServiceBase extends EntityService {
...
@@ -357,16 +357,16 @@ export default class ContactServiceBase extends EntityService {
if
(
context
.
account
&&
true
){
if
(
context
.
account
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/getdraft`
,
isloading
);
res
.
data
.
contact
=
data
.
contact
;
res
.
data
.
contact
=
data
.
contact
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/getdraft`
,
isloading
);
res
.
data
.
contact
=
data
.
contact
;
res
.
data
.
contact
=
data
.
contact
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -382,21 +382,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -382,21 +382,21 @@ export default class ContactServiceBase extends EntityService {
public
async
Active
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Active
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
){
if
(
context
.
account
&&
context
.
contact
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -412,26 +412,26 @@ export default class ContactServiceBase extends EntityService {
...
@@ -412,26 +412,26 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/active`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/active`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/active`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/active`
,
data
,
isloading
);
...
@@ -449,21 +449,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -449,21 +449,21 @@ export default class ContactServiceBase extends EntityService {
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
){
if
(
context
.
account
&&
context
.
contact
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -479,26 +479,26 @@ export default class ContactServiceBase extends EntityService {
...
@@ -479,26 +479,26 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
...
@@ -516,21 +516,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -516,21 +516,21 @@ export default class ContactServiceBase extends EntityService {
public
async
Inactive
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Inactive
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
){
if
(
context
.
account
&&
context
.
contact
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -546,26 +546,26 @@ export default class ContactServiceBase extends EntityService {
...
@@ -546,26 +546,26 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/inactive`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/inactive`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/inactive`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/inactive`
,
data
,
isloading
);
...
@@ -583,21 +583,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -583,21 +583,21 @@ export default class ContactServiceBase extends EntityService {
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
){
if
(
context
.
account
&&
context
.
contact
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -613,44 +613,44 @@ export default class ContactServiceBase extends EntityService {
...
@@ -613,44 +613,44 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -666,26 +666,26 @@ export default class ContactServiceBase extends EntityService {
...
@@ -666,26 +666,26 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
...
@@ -701,21 +701,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -701,21 +701,21 @@ export default class ContactServiceBase extends EntityService {
public
async
SetPrimary
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
SetPrimary
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
){
if
(
context
.
account
&&
context
.
contact
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
opportunity
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontactsData
:
any
=
[];
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
@@ -731,26 +731,26 @@ export default class ContactServiceBase extends EntityService {
...
@@ -731,26 +731,26 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
listcontacts
=
listcontactsData
;
masterData
.
listcontacts
=
listcontactsData
;
let
opportunitie
sData
:
any
=
[];
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
lead
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunities
=
opportunitie
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/setprimary`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/setprimary`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/setprimary`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/setprimary`
,
data
,
isloading
);
...
...
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
浏览文件 @
cc34366e
...
@@ -77,6 +77,21 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -77,6 +77,21 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
listaccounts
=
listaccountsData
;
masterData
.
listaccounts
=
listaccountsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontactsData
.
length
>
0
){
listcontactsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontactsData
;
let
listleadsData
:
any
=
[];
let
listleadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
...
@@ -107,21 +122,6 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -107,21 +122,6 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
campaignlists
=
campaignlistsData
;
masterData
.
campaignlists
=
campaignlistsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontactsData
.
length
>
0
){
listcontactsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontactsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -132,9 +132,9 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -132,9 +132,9 @@ export default class IBizListServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
return
res
;
}
}
...
@@ -164,6 +164,21 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -164,6 +164,21 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
listaccounts
=
listaccountsData
;
masterData
.
listaccounts
=
listaccountsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontactsData
.
length
>
0
){
listcontactsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontactsData
;
let
listleadsData
:
any
=
[];
let
listleadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
...
@@ -194,27 +209,12 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -194,27 +209,12 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
campaignlists
=
campaignlistsData
;
masterData
.
campaignlists
=
campaignlistsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontactsData
.
length
>
0
){
listcontactsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontactsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
return
res
;
}
}
...
@@ -243,9 +243,9 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -243,9 +243,9 @@ export default class IBizListServiceBase extends EntityService {
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
return
res
;
}
}
...
@@ -262,9 +262,9 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -262,9 +262,9 @@ export default class IBizListServiceBase extends EntityService {
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/getdraft`
,
isloading
);
res
.
data
.
ibizlist
=
data
.
ibizlist
;
res
.
data
.
ibizlist
=
data
.
ibizlist
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
return
res
;
}
}
...
@@ -307,6 +307,21 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -307,6 +307,21 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
listaccounts
=
listaccountsData
;
masterData
.
listaccounts
=
listaccountsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontactsData
.
length
>
0
){
listcontactsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontactsData
;
let
listleadsData
:
any
=
[];
let
listleadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
...
@@ -337,27 +352,12 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -337,27 +352,12 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
campaignlists
=
campaignlistsData
;
masterData
.
campaignlists
=
campaignlistsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontactsData
.
length
>
0
){
listcontactsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontactsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists/
${
context
.
ibizlist
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists/
${
context
.
ibizlist
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/service/opportunity/opportunity-service-base.ts
浏览文件 @
cc34366e
...
@@ -69,21 +69,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -69,21 +69,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
true
){
if
(
context
.
account
&&
context
.
contact
&&
true
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -99,21 +99,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -99,21 +99,21 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -123,28 +123,28 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -123,28 +123,28 @@ export default class OpportunityServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
true
){
if
(
context
.
contact
&&
true
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -160,21 +160,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -160,21 +160,21 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -184,27 +184,27 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -184,27 +184,27 @@ export default class OpportunityServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -220,21 +220,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -220,21 +220,21 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -244,9 +244,9 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -244,9 +244,9 @@ export default class OpportunityServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -262,21 +262,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -262,21 +262,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -292,45 +292,45 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -292,45 +292,45 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -346,44 +346,44 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -346,44 +346,44 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -399,26 +399,26 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -399,26 +399,26 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -453,22 +453,22 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -453,22 +453,22 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -485,24 +485,24 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -485,24 +485,24 @@ export default class OpportunityServiceBase extends EntityService {
if
(
context
.
account
&&
context
.
contact
&&
true
){
if
(
context
.
account
&&
context
.
contact
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
true
){
if
(
context
.
contact
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -518,21 +518,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -518,21 +518,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -548,45 +548,45 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -548,45 +548,45 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -602,26 +602,26 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -602,26 +602,26 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
...
@@ -639,21 +639,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -639,21 +639,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Lose
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Lose
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -669,45 +669,45 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -669,45 +669,45 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -723,26 +723,26 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -723,26 +723,26 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
...
@@ -760,21 +760,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -760,21 +760,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -790,45 +790,45 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -790,45 +790,45 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -844,44 +844,44 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -844,44 +844,44 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -897,26 +897,26 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -897,26 +897,26 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -932,21 +932,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -932,21 +932,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Win
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Win
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -962,45 +962,45 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -962,45 +962,45 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
opportunitycompetitor
sData
:
any
=
[];
let
quote
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
quote
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
quote
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
masterData
.
quotes
=
quote
sData
;
let
opportunityproductsData
:
any
=
[];
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
@@ -1016,26 +1016,26 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -1016,26 +1016,26 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
let
quote
sData
:
any
=
[];
let
opportunitycompetitor
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
quote
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitycompetitor
s'
),
'undefined'
)){
quotesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_quote
s'
)
as
any
);
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitor
s'
)
as
any
);
if
(
quotesData
&&
quotesData
.
length
&&
quote
sData
.
length
>
0
){
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitor
sData
.
length
>
0
){
quote
sData
.
forEach
((
item
:
any
)
=>
{
opportunitycompetitor
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
quote
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
quotes
=
quote
sData
;
masterData
.
opportunitycompetitors
=
opportunitycompetitor
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
...
...
app_CRM/src/service/product/product-service-base.ts
浏览文件 @
cc34366e
...
@@ -62,21 +62,21 @@ export default class ProductServiceBase extends EntityService {
...
@@ -62,21 +62,21 @@ export default class ProductServiceBase extends EntityService {
*/
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
product
pricelevel
sData
:
any
=
[];
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
pricelevel
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
pricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevel
s'
)
as
any
);
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
pricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevel
sData
.
length
>
0
){
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
pricelevel
sData
.
forEach
((
item
:
any
)
=>
{
product
association
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
pricelevel
id
=
null
;
item
.
product
association
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
product
pricelevels
=
productpricelevel
sData
;
masterData
.
product
associations
=
productassociation
sData
;
let
productsubstitutesData
:
any
=
[];
let
productsubstitutesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
...
@@ -92,21 +92,21 @@ export default class ProductServiceBase extends EntityService {
...
@@ -92,21 +92,21 @@ export default class ProductServiceBase extends EntityService {
}
}
}
}
masterData
.
productsubstitutes
=
productsubstitutesData
;
masterData
.
productsubstitutes
=
productsubstitutesData
;
let
product
association
sData
:
any
=
[];
let
product
pricelevel
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
pricelevel
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
product
pricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevel
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
if
(
product
pricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevel
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
product
pricelevel
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
association
id
=
null
;
item
.
product
pricelevel
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
product
associations
=
productassociation
sData
;
masterData
.
product
pricelevels
=
productpricelevel
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -116,9 +116,9 @@ export default class ProductServiceBase extends EntityService {
...
@@ -116,9 +116,9 @@ export default class ProductServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
return
res
;
}
}
...
@@ -133,21 +133,21 @@ export default class ProductServiceBase extends EntityService {
...
@@ -133,21 +133,21 @@ export default class ProductServiceBase extends EntityService {
*/
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
product
pricelevel
sData
:
any
=
[];
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
pricelevel
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
pricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevel
s'
)
as
any
);
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
pricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevel
sData
.
length
>
0
){
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
pricelevel
sData
.
forEach
((
item
:
any
)
=>
{
product
association
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
pricelevel
id
=
null
;
item
.
product
association
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
product
pricelevels
=
productpricelevel
sData
;
masterData
.
product
associations
=
productassociation
sData
;
let
productsubstitutesData
:
any
=
[];
let
productsubstitutesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
...
@@ -163,26 +163,26 @@ export default class ProductServiceBase extends EntityService {
...
@@ -163,26 +163,26 @@ export default class ProductServiceBase extends EntityService {
}
}
}
}
masterData
.
productsubstitutes
=
productsubstitutesData
;
masterData
.
productsubstitutes
=
productsubstitutesData
;
let
product
association
sData
:
any
=
[];
let
product
pricelevel
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
pricelevel
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
product
pricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevel
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
if
(
product
pricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevel
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
product
pricelevel
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
association
id
=
null
;
item
.
product
pricelevel
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
product
associations
=
productassociation
sData
;
masterData
.
product
pricelevels
=
productpricelevel
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/products/
${
context
.
product
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/products/
${
context
.
product
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
return
res
;
}
}
...
@@ -210,9 +210,9 @@ export default class ProductServiceBase extends EntityService {
...
@@ -210,9 +210,9 @@ export default class ProductServiceBase extends EntityService {
*/
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/
${
context
.
product
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/
${
context
.
product
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
return
res
;
}
}
...
@@ -228,9 +228,9 @@ export default class ProductServiceBase extends EntityService {
...
@@ -228,9 +228,9 @@ export default class ProductServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/getdraft`
,
isloading
);
res
.
data
.
product
=
data
.
product
;
res
.
data
.
product
=
data
.
product
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
return
res
;
}
}
...
@@ -258,21 +258,21 @@ export default class ProductServiceBase extends EntityService {
...
@@ -258,21 +258,21 @@ export default class ProductServiceBase extends EntityService {
*/
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
product
pricelevel
sData
:
any
=
[];
let
product
association
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
pricelevel
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
product
pricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevel
s'
)
as
any
);
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
if
(
product
pricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevel
sData
.
length
>
0
){
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
product
pricelevel
sData
.
forEach
((
item
:
any
)
=>
{
product
association
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
pricelevel
id
=
null
;
item
.
product
association
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
product
pricelevels
=
productpricelevel
sData
;
masterData
.
product
associations
=
productassociation
sData
;
let
productsubstitutesData
:
any
=
[];
let
productsubstitutesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
...
@@ -288,26 +288,26 @@ export default class ProductServiceBase extends EntityService {
...
@@ -288,26 +288,26 @@ export default class ProductServiceBase extends EntityService {
}
}
}
}
masterData
.
productsubstitutes
=
productsubstitutesData
;
masterData
.
productsubstitutes
=
productsubstitutesData
;
let
product
association
sData
:
any
=
[];
let
product
pricelevel
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
association
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
pricelevel
s'
),
'undefined'
)){
product
associationsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productassociation
s'
)
as
any
);
product
pricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevel
s'
)
as
any
);
if
(
product
associationsData
&&
productassociationsData
.
length
&&
productassociation
sData
.
length
>
0
){
if
(
product
pricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevel
sData
.
length
>
0
){
product
association
sData
.
forEach
((
item
:
any
)
=>
{
product
pricelevel
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
product
association
id
=
null
;
item
.
product
pricelevel
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
product
associations
=
productassociation
sData
;
masterData
.
product
pricelevels
=
productpricelevel
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products/
${
context
.
product
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products/
${
context
.
product
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/service/sales-literature/sales-literature-service-base.ts
浏览文件 @
cc34366e
...
@@ -62,21 +62,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -62,21 +62,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
*/
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
salesliteratureitem
sData
:
any
=
[];
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
let
productsalesliteraturesData
:
any
=
[];
let
productsalesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
)
as
any
);
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
)
as
any
);
...
@@ -92,21 +92,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -92,21 +92,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
}
}
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
let
competitorsalesliterature
sData
:
any
=
[];
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -116,9 +116,9 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -116,9 +116,9 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -133,21 +133,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -133,21 +133,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
*/
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
salesliteratureitem
sData
:
any
=
[];
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
let
productsalesliteraturesData
:
any
=
[];
let
productsalesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
)
as
any
);
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
)
as
any
);
...
@@ -163,26 +163,26 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -163,26 +163,26 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
}
}
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
let
competitorsalesliterature
sData
:
any
=
[];
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -210,9 +210,9 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -210,9 +210,9 @@ export default class SalesLiteratureServiceBase extends EntityService {
*/
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -228,9 +228,9 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -228,9 +228,9 @@ export default class SalesLiteratureServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/getdraft`
,
isloading
);
res
.
data
.
salesliterature
=
data
.
salesliterature
;
res
.
data
.
salesliterature
=
data
.
salesliterature
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -258,21 +258,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -258,21 +258,21 @@ export default class SalesLiteratureServiceBase extends EntityService {
*/
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
salesliteratureitem
sData
:
any
=
[];
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
let
productsalesliteraturesData
:
any
=
[];
let
productsalesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
)
as
any
);
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
)
as
any
);
...
@@ -288,26 +288,26 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -288,26 +288,26 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
}
}
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
let
competitorsalesliterature
sData
:
any
=
[];
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
}
delete
item
.
srffrontuf
;
delete
item
.
srffrontuf
;
}
}
});
});
}
}
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures/
${
context
.
salesliterature
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures/
${
context
.
salesliterature
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/studio-core/service/app-view-store/AppViewStoreBase.ts
浏览文件 @
cc34366e
...
@@ -22,15 +22,22 @@ export class AppViewStoreBase {
...
@@ -22,15 +22,22 @@ export class AppViewStoreBase {
*/
*/
public
push
(
view
:
any
):
void
{
public
push
(
view
:
any
):
void
{
this
.
viewList
.
push
(
view
);
this
.
viewList
.
push
(
view
);
console
.
log
(
this
.
viewList
);
}
}
/**
/**
* 删除最后视图
* 删除最后视图
*
*
* @param {*} [view]
* @memberof AppViewStoreBase
* @memberof AppViewStoreBase
*/
*/
public
pop
():
void
{
public
pop
(
view
?:
any
):
void
{
this
.
viewList
.
pop
();
if
(
view
)
{
const
i
=
this
.
viewList
.
findIndex
((
item
:
any
)
=>
item
.
viewtag
===
view
.
viewtag
);
if
(
i
!==
-
1
)
{
this
.
viewList
.
splice
(
i
,
1
);
}
}
else
{
this
.
viewList
.
pop
();
}
}
}
}
}
\ No newline at end of file
app_CRM/src/studio-core/view/ViewBase.tsx
浏览文件 @
cc34366e
...
@@ -48,6 +48,31 @@ export class ViewBase extends Vue {
...
@@ -48,6 +48,31 @@ export class ViewBase extends Vue {
@
Prop
()
@
Prop
()
public
viewparam
!
:
string
;
public
viewparam
!
:
string
;
/**
* 导航嵌入模式激活状态
*
* @type {boolean}
* @memberof ViewBase
*/
@
Prop
({
default
:
true
})
public
expActive
!
:
boolean
;
/**
* 导航激活状态变更
*
* @memberof ViewBase
*/
@
Watch
(
'expActive'
,
{
immediate
:
true
})
public
watchExpActive
():
void
{
if
(
this
.
viewUsage
===
7
)
{
if
(
this
.
expActive
)
{
this
.
$appService
.
viewStore
.
push
(
this
);
}
else
{
this
.
$appService
.
viewStore
.
pop
(
this
);
}
}
}
/**
/**
* 是否为默认模式,默认模式为导航模式
* 是否为默认模式,默认模式为导航模式
*
*
...
...
app_CRM/src/widgets/account/gradationtreeexpbar-treeexpbar/gradationtreeexpbar-treeexpbar.html
浏览文件 @
cc34366e
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
v-if=
"selection.view && !Object.is(this.selection.view.viewname, '')"
v-if=
"selection.view && !Object.is(this.selection.view.viewname, '')"
:is=
"selection.view.viewname"
:is=
"selection.view.viewname"
class=
"viewcontainer2"
class=
"viewcontainer2"
:viewUsage=
"7"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewdata=
"JSON.stringify(selection.context)"
:viewdata=
"JSON.stringify(selection.context)"
:viewparam=
"JSON.stringify(selection.viewparam)"
:viewparam=
"JSON.stringify(selection.viewparam)"
...
...
app_CRM/src/widgets/account/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
@@ -83,6 +85,7 @@
...
@@ -83,6 +85,7 @@
v-if=
"isInit.tabviewpanel3"
v-if=
"isInit.tabviewpanel3"
name=
"tabviewpanel3"
name=
"tabviewpanel3"
ref=
'tabviewpanel3'
ref=
'tabviewpanel3'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel3
>
</view
_tabviewpanel3
>
...
@@ -112,6 +115,7 @@
...
@@ -112,6 +115,7 @@
v-if=
"isInit.tabviewpanel4"
v-if=
"isInit.tabviewpanel4"
name=
"tabviewpanel4"
name=
"tabviewpanel4"
ref=
'tabviewpanel4'
ref=
'tabviewpanel4'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel4
>
</view
_tabviewpanel4
>
...
...
app_CRM/src/widgets/account/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'account'
;
protected
appDeName
:
string
=
'account'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/account/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/account/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'account'
;
protected
appDeName
:
string
=
'account'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/account/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/account/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'account'
;
protected
appDeName
:
string
=
'account'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/account/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/account/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'account'
;
protected
appDeName
:
string
=
'account'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel4
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/account/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/campaign/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -48,6 +49,7 @@
...
@@ -48,6 +49,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
@@ -71,6 +73,7 @@
...
@@ -71,6 +73,7 @@
v-if=
"isInit.tabviewpanel3"
v-if=
"isInit.tabviewpanel3"
name=
"tabviewpanel3"
name=
"tabviewpanel3"
ref=
'tabviewpanel3'
ref=
'tabviewpanel3'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel3
>
</view
_tabviewpanel3
>
...
@@ -94,6 +97,7 @@
...
@@ -94,6 +97,7 @@
v-if=
"isInit.tabviewpanel4"
v-if=
"isInit.tabviewpanel4"
name=
"tabviewpanel4"
name=
"tabviewpanel4"
ref=
'tabviewpanel4'
ref=
'tabviewpanel4'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel4
>
</view
_tabviewpanel4
>
...
@@ -117,6 +121,7 @@
...
@@ -117,6 +121,7 @@
v-if=
"isInit.tabviewpanel5"
v-if=
"isInit.tabviewpanel5"
name=
"tabviewpanel5"
name=
"tabviewpanel5"
ref=
'tabviewpanel5'
ref=
'tabviewpanel5'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel5
>
</view
_tabviewpanel5
>
...
...
app_CRM/src/widgets/campaign/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'campaign'
;
protected
appDeName
:
string
=
'campaign'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/campaign/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/campaign/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'campaign'
;
protected
appDeName
:
string
=
'campaign'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/campaign/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/campaign/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'campaign'
;
protected
appDeName
:
string
=
'campaign'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/campaign/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/campaign/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'campaign'
;
protected
appDeName
:
string
=
'campaign'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel4
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/campaign/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/campaign/infotabviewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel5TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel5TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'campaign'
;
protected
appDeName
:
string
=
'campaign'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel5
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/campaign/infotabviewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/competitor/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
...
app_CRM/src/widgets/competitor/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'competitor'
;
protected
appDeName
:
string
=
'competitor'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/competitor/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/competitor/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'competitor'
;
protected
appDeName
:
string
=
'competitor'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/competitor/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/contact/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel4"
v-if=
"isInit.tabviewpanel4"
name=
"tabviewpanel4"
name=
"tabviewpanel4"
ref=
'tabviewpanel4'
ref=
'tabviewpanel4'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel4
>
</view
_tabviewpanel4
>
...
@@ -83,6 +85,7 @@
...
@@ -83,6 +85,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
@@ -112,6 +115,7 @@
...
@@ -112,6 +115,7 @@
v-if=
"isInit.tabviewpanel3"
v-if=
"isInit.tabviewpanel3"
name=
"tabviewpanel3"
name=
"tabviewpanel3"
ref=
'tabviewpanel3'
ref=
'tabviewpanel3'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel3
>
</view
_tabviewpanel3
>
...
...
app_CRM/src/widgets/contact/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'contact'
;
protected
appDeName
:
string
=
'contact'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/contact/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/contact/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'contact'
;
protected
appDeName
:
string
=
'contact'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/contact/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/contact/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'contact'
;
protected
appDeName
:
string
=
'contact'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/contact/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/contact/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'contact'
;
protected
appDeName
:
string
=
'contact'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel4
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/contact/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/goal/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
...
app_CRM/src/widgets/goal/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'goal'
;
protected
appDeName
:
string
=
'goal'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/goal/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/goal/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'goal'
;
protected
appDeName
:
string
=
'goal'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/goal/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/ibiz-list/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
@@ -83,6 +85,7 @@
...
@@ -83,6 +85,7 @@
v-if=
"isInit.tabviewpanel3"
v-if=
"isInit.tabviewpanel3"
name=
"tabviewpanel3"
name=
"tabviewpanel3"
ref=
'tabviewpanel3'
ref=
'tabviewpanel3'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel3
>
</view
_tabviewpanel3
>
...
@@ -112,6 +115,7 @@
...
@@ -112,6 +115,7 @@
v-if=
"isInit.tabviewpanel4"
v-if=
"isInit.tabviewpanel4"
name=
"tabviewpanel4"
name=
"tabviewpanel4"
ref=
'tabviewpanel4'
ref=
'tabviewpanel4'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel4
>
</view
_tabviewpanel4
>
...
@@ -141,6 +145,7 @@
...
@@ -141,6 +145,7 @@
v-if=
"isInit.tabviewpanel5"
v-if=
"isInit.tabviewpanel5"
name=
"tabviewpanel5"
name=
"tabviewpanel5"
ref=
'tabviewpanel5'
ref=
'tabviewpanel5'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel5
>
</view
_tabviewpanel5
>
...
...
app_CRM/src/widgets/ibiz-list/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'ibizlist'
;
protected
appDeName
:
string
=
'ibizlist'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/ibiz-list/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/ibiz-list/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'ibizlist'
;
protected
appDeName
:
string
=
'ibizlist'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/ibiz-list/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/ibiz-list/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'ibizlist'
;
protected
appDeName
:
string
=
'ibizlist'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/ibiz-list/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/ibiz-list/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel4TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'ibizlist'
;
protected
appDeName
:
string
=
'ibizlist'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel4
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/ibiz-list/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/ibiz-list/infotabviewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel5TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel5TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'ibizlist'
;
protected
appDeName
:
string
=
'ibizlist'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel5
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/ibiz-list/infotabviewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/incident/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
...
app_CRM/src/widgets/incident/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'incident'
;
protected
appDeName
:
string
=
'incident'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/incident/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/incident/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'incident'
;
protected
appDeName
:
string
=
'incident'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/incident/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/invoice/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
...
app_CRM/src/widgets/invoice/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'invoice'
;
protected
appDeName
:
string
=
'invoice'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/invoice/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/invoice/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'invoice'
;
protected
appDeName
:
string
=
'invoice'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/invoice/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/lead/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
...
app_CRM/src/widgets/lead/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'lead'
;
protected
appDeName
:
string
=
'lead'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/lead/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/lead/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'lead'
;
protected
appDeName
:
string
=
'lead'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/lead/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/opportunity/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
@@ -83,6 +85,7 @@
...
@@ -83,6 +85,7 @@
v-if=
"isInit.tabviewpanel3"
v-if=
"isInit.tabviewpanel3"
name=
"tabviewpanel3"
name=
"tabviewpanel3"
ref=
'tabviewpanel3'
ref=
'tabviewpanel3'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel3
>
</view
_tabviewpanel3
>
...
...
app_CRM/src/widgets/opportunity/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'opportunity'
;
protected
appDeName
:
string
=
'opportunity'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/opportunity/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/opportunity/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'opportunity'
;
protected
appDeName
:
string
=
'opportunity'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/opportunity/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/opportunity/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel3TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'opportunity'
;
protected
appDeName
:
string
=
'opportunity'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/opportunity/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/product/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
@@ -83,6 +85,7 @@
...
@@ -83,6 +85,7 @@
v-if=
"isInit.tabviewpanel3"
v-if=
"isInit.tabviewpanel3"
name=
"tabviewpanel3"
name=
"tabviewpanel3"
ref=
'tabviewpanel3'
ref=
'tabviewpanel3'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel3
>
</view
_tabviewpanel3
>
...
@@ -112,6 +115,7 @@
...
@@ -112,6 +115,7 @@
v-if=
"isInit.tabviewpanel4"
v-if=
"isInit.tabviewpanel4"
name=
"tabviewpanel4"
name=
"tabviewpanel4"
ref=
'tabviewpanel4'
ref=
'tabviewpanel4'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel4
>
</view
_tabviewpanel4
>
...
...
app_CRM/src/widgets/product/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'product'
;
protected
appDeName
:
string
=
'product'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/product/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/product/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'product'
;
protected
appDeName
:
string
=
'product'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/product/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/product/info-viewtabviewpanel3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel3TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel3TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'product'
;
protected
appDeName
:
string
=
'product'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel3
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/product/info-viewtabviewpanel3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/product/info-viewtabviewpanel4-tabviewpanel/info-viewtabviewpanel4-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel4TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel4TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'product'
;
protected
appDeName
:
string
=
'product'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel4
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/product/info-viewtabviewpanel4-tabviewpanel/info-viewtabviewpanel4-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/quote/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
...
app_CRM/src/widgets/quote/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfotabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'quote'
;
protected
appDeName
:
string
=
'quote'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/quote/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/quote/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class Infotabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'quote'
;
protected
appDeName
:
string
=
'quote'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/quote/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/sales-literature/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
@@ -83,6 +85,7 @@
...
@@ -83,6 +85,7 @@
v-if=
"isInit.tabviewpanel3"
v-if=
"isInit.tabviewpanel3"
name=
"tabviewpanel3"
name=
"tabviewpanel3"
ref=
'tabviewpanel3'
ref=
'tabviewpanel3'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel3
>
</view
_tabviewpanel3
>
...
...
app_CRM/src/widgets/sales-literature/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'salesliterature'
;
protected
appDeName
:
string
=
'salesliterature'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/sales-literature/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/sales-literature/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'salesliterature'
;
protected
appDeName
:
string
=
'salesliterature'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/sales-literature/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/sales-literature/info-viewtabviewpanel3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel3TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel3TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'salesliterature'
;
protected
appDeName
:
string
=
'salesliterature'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel3
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/sales-literature/info-viewtabviewpanel3-tabviewpanel/info-viewtabviewpanel3-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/sales-order/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.html
浏览文件 @
cc34366e
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
v-if=
"isInit.tabviewpanel"
v-if=
"isInit.tabviewpanel"
name=
"tabviewpanel"
name=
"tabviewpanel"
ref=
'tabviewpanel'
ref=
'tabviewpanel'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel
>
</view
_tabviewpanel
>
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
v-if=
"isInit.tabviewpanel2"
v-if=
"isInit.tabviewpanel2"
name=
"tabviewpanel2"
name=
"tabviewpanel2"
ref=
'tabviewpanel2'
ref=
'tabviewpanel2'
:expActive=
"activatedTabViewPanel === 'tabviewpanel3'"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
viewpanelDatasChange =
"tabViewPanelDatasChange"
@
closeview=
"closeView($event)"
>
@
closeview=
"closeView($event)"
>
</view
_tabviewpanel2
>
</view
_tabviewpanel2
>
...
...
app_CRM/src/widgets/sales-order/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanelTabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'salesorder'
;
protected
appDeName
:
string
=
'salesorder'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/sales-order/info-viewtabviewpanel-tabviewpanel/info-viewtabviewpanel-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
app_CRM/src/widgets/sales-order/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel-base.tsx
浏览文件 @
cc34366e
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
...
@@ -39,8 +39,16 @@ export class InfoViewtabviewpanel2TabviewpanelBase extends MainControlBase {
*/
*/
protected
appDeName
:
string
=
'salesorder'
;
protected
appDeName
:
string
=
'salesorder'
;
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof InfoViewtabviewpanel2
*/
@
Prop
()
public
expActive
!
:
any
;
/**
/**
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
...
...
app_CRM/src/widgets/sales-order/info-viewtabviewpanel2-tabviewpanel/info-viewtabviewpanel2-tabviewpanel.html
浏览文件 @
cc34366e
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
@
viewload=
"viewDatasChange($event)"
@
viewload=
"viewDatasChange($event)"
:viewDefaultUsage=
"false"
:viewDefaultUsage=
"false"
:viewUsage=
"7"
:viewUsage=
"7"
:expActive=
"expActive"
/>
/>
</div>
</div>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录