Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
d07a3421
提交
d07a3421
编写于
6月 30, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
f7c2b26a
变更
25
隐藏空白字符变更
内嵌
并排
正在显示
25 个修改的文件
包含
3979 行增加
和
3697 行删除
+3979
-3697
data-dictionary.json
app_CRM/public/assets/json/data-dictionary.json
+1486
-1379
view-config.json
app_CRM/public/assets/json/view-config.json
+10
-0
codelist_en_US.ts
app_CRM/src/locale/lanres/codelist/codelist_en_US.ts
+194
-181
codelist_zh_CN.ts
app_CRM/src/locale/lanres/codelist/codelist_zh_CN.ts
+194
-181
activity-pointer_en_US.ts
...anres/entities/activity-pointer/activity-pointer_en_US.ts
+4
-0
activity-pointer_zh_CN.ts
...anres/entities/activity-pointer/activity-pointer_zh_CN.ts
+4
-0
invoice_en_US.ts
app_CRM/src/locale/lanres/entities/invoice/invoice_en_US.ts
+3
-2
invoice_zh_CN.ts
app_CRM/src/locale/lanres/entities/invoice/invoice_zh_CN.ts
+3
-2
codelist.ts
app_CRM/src/mock/codelist/codelist.ts
+1494
-1387
viewconfig.ts
app_CRM/src/mock/viewconfig/viewconfig.ts
+8
-0
activity-pointer-grid-view-base.tsx
...ity-pointer-grid-view/activity-pointer-grid-view-base.tsx
+2
-10
opportunity-competitor-opp-comp-grid-view.html
...-grid-view/opportunity-competitor-opp-comp-grid-view.html
+0
-3
quote-detail-quo-detail-grid-view.html
...o-detail-grid-view/quote-detail-quo-detail-grid-view.html
+0
-3
page-register.ts
app_CRM/src/pages/ungroup/central/page-register.ts
+1
-0
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
+99
-99
ibiz-list-service-base.ts
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
+82
-82
opportunity-service-base.ts
app_CRM/src/service/opportunity/opportunity-service-base.ts
+231
-231
sales-literature-service-base.ts
...service/sales-literature/sales-literature-service-base.ts
+41
-41
state.ts
app_CRM/src/store/modules/view-action/state.ts
+6
-5
activity-pointer-ui-service-base.ts
...vice/activity-pointer/activity-pointer-ui-service-base.ts
+1
-0
main-grid-base.tsx
app_CRM/src/widgets/invoice/main-grid/main-grid-base.tsx
+16
-8
main-grid-model.ts
app_CRM/src/widgets/invoice/main-grid/main-grid-model.ts
+12
-7
main-grid.html
app_CRM/src/widgets/invoice/main-grid/main-grid.html
+20
-8
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+27
-27
未找到文件。
app_CRM/public/assets/json/data-dictionary.json
浏览文件 @
d07a3421
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_CRM/public/assets/json/view-config.json
浏览文件 @
d07a3421
...
@@ -939,6 +939,16 @@
...
@@ -939,6 +939,16 @@
"viewtag"
:
"893e62d6fbdc4580de7e3e802aec9108"
,
"viewtag"
:
"893e62d6fbdc4580de7e3e802aec9108"
,
"memo"
:
""
"memo"
:
""
},
},
"activitypointerredirectview"
:
{
"title"
:
"活动数据重定向视图"
,
"caption"
:
"活动"
,
"viewtype"
:
"DEREDIRECTVIEW"
,
"viewmodule"
:
"Base"
,
"viewname"
:
"ActivityPointerRedirectView"
,
"viewfilename"
:
"activity-pointer-redirect-view"
,
"viewtag"
:
"899dbdcf77250023245eb323c6cdeb05"
,
"memo"
:
"系统自动添加"
},
"central"
:
{
"central"
:
{
"title"
:
"企业中心"
,
"title"
:
"企业中心"
,
"caption"
:
"企业中心"
,
"caption"
:
"企业中心"
,
...
...
app_CRM/src/locale/lanres/codelist/codelist_en_US.ts
浏览文件 @
d07a3421
...
@@ -17,22 +17,6 @@ export default {
...
@@ -17,22 +17,6 @@ export default {
'8'
:
"通过邮件合并的电子邮件"
,
'8'
:
"通过邮件合并的电子邮件"
,
empty
:
""
,
empty
:
""
,
},
},
Opportunity__PurchaseProcess
:
{
'0'
:
"个人"
,
'1'
:
"委员会"
,
'2'
:
"未知"
,
empty
:
""
,
},
Salesorder__StatusCode
:
{
'100001'
:
"完成"
,
'100003'
:
"已开发票"
,
'2'
:
"待定"
,
'1'
:
"新建"
,
'4'
:
"无现金"
,
'3'
:
"正在进行"
,
'100002'
:
"部分"
,
empty
:
""
,
},
Quote__StateCode
:
{
Quote__StateCode
:
{
'3'
:
"已关闭"
,
'3'
:
"已关闭"
,
'1'
:
"有效"
,
'1'
:
"有效"
,
...
@@ -40,58 +24,12 @@ export default {
...
@@ -40,58 +24,12 @@ export default {
'2'
:
"赢单"
,
'2'
:
"赢单"
,
empty
:
""
,
empty
:
""
,
},
},
Campaign__StatusCode
:
{
'6'
:
"停用"
,
'1'
:
"准备启动"
,
'4'
:
"已取消"
,
'2'
:
"已启动"
,
'3'
:
"已完成"
,
'0'
:
"已建议"
,
'5'
:
"已暂停"
,
empty
:
""
,
},
List__MemberType
:
{
List__MemberType
:
{
'Account'
:
"客户"
,
'Account'
:
"客户"
,
'Lead'
:
"潜在客户"
,
'Lead'
:
"潜在客户"
,
'Contact'
:
"联系人"
,
'Contact'
:
"联系人"
,
empty
:
""
,
empty
:
""
,
},
},
Lead__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctor's Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Salesorder__ShippingMethodCode
:
{
Salesorder__ShippingMethodCode
:
{
'2'
:
"DHL"
,
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'3'
:
"FedEx"
,
...
@@ -109,16 +47,6 @@ export default {
...
@@ -109,16 +47,6 @@ export default {
'4'
:
"N60"
,
'4'
:
"N60"
,
empty
:
""
,
empty
:
""
,
},
},
Account__Address1_ShippingMethodCode
:
{
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'6'
:
"Full Load"
,
'4'
:
"UPS"
,
'7'
:
"Will Call"
,
'1'
:
"航空运输"
,
'5'
:
"邮递"
,
empty
:
""
,
},
ActivityTypeCode
:
{
ActivityTypeCode
:
{
'TASK'
:
"任务"
,
'TASK'
:
"任务"
,
'EMAIL'
:
"电子邮件"
,
'EMAIL'
:
"电子邮件"
,
...
@@ -135,12 +63,6 @@ export default {
...
@@ -135,12 +63,6 @@ export default {
'1'
:
"默认值"
,
'1'
:
"默认值"
,
empty
:
""
,
empty
:
""
,
},
},
Activitypointer__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Lead__PurchaseTimeFrame
:
{
Lead__PurchaseTimeFrame
:
{
'2'
:
"下一季度"
,
'2'
:
"下一季度"
,
'3'
:
"今年"
,
'3'
:
"今年"
,
...
@@ -179,48 +101,6 @@ export default {
...
@@ -179,48 +101,6 @@ export default {
'6'
:
"研讨会"
,
'6'
:
"研讨会"
,
empty
:
""
,
empty
:
""
,
},
},
Account__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctors Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Phonecall__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Salesliterature__LiteratureTypeCode
:
{
Salesliterature__LiteratureTypeCode
:
{
'1'
:
"产品表单"
,
'1'
:
"产品表单"
,
'7'
:
"价格表单"
,
'7'
:
"价格表单"
,
...
@@ -245,12 +125,6 @@ export default {
...
@@ -245,12 +125,6 @@ export default {
'2'
:
"私人公司"
,
'2'
:
"私人公司"
,
empty
:
""
,
empty
:
""
,
},
},
Lead__StateCode
:
{
'2'
:
"不合格"
,
'1'
:
"已合格"
,
'0'
:
"已开始"
,
empty
:
""
,
},
Activitypointer__StateCode
:
{
Activitypointer__StateCode
:
{
'2'
:
"已取消"
,
'2'
:
"已取消"
,
'1'
:
"已完成"
,
'1'
:
"已完成"
,
...
@@ -258,38 +132,30 @@ export default {
...
@@ -258,38 +132,30 @@ export default {
'3'
:
"已计划"
,
'3'
:
"已计划"
,
empty
:
""
,
empty
:
""
,
},
},
Salesorder__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Contact__ShippingMethodCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Account__StateCode
:
{
'1'
:
"停用"
,
'0'
:
"可用"
,
empty
:
""
,
},
YesNo
:
{
YesNo
:
{
'1'
:
"是"
,
'1'
:
"是"
,
'0'
:
"否"
,
'0'
:
"否"
,
empty
:
""
,
empty
:
""
,
},
},
Invoice__StatusCode
:
{
'7'
:
"全额付款(已弃用)"
,
'100001'
:
"完成"
,
'100003'
:
"已取消"
,
'3'
:
"已取消(已弃用)"
,
'6'
:
"已安装(适用于服务)"
,
'4'
:
"已记帐"
,
'5'
:
"已预定(适用于服务)"
,
'1'
:
"新建"
,
'100002'
:
"部分"
,
'2'
:
"部分发货"
,
empty
:
""
,
},
Task__PriorityCode
:
{
Task__PriorityCode
:
{
'0'
:
"低"
,
'0'
:
"低"
,
'1'
:
"正常"
,
'1'
:
"正常"
,
'2'
:
"高"
,
'2'
:
"高"
,
empty
:
""
,
empty
:
""
,
},
},
Contact__FamilyStatusCode
:
{
'4'
:
"丧偶"
,
'1'
:
"单身"
,
'2'
:
"已婚"
,
'3'
:
"离异"
,
empty
:
""
,
},
Quote__ShippingMethodCode
:
{
Quote__ShippingMethodCode
:
{
'2'
:
"DHL"
,
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'3'
:
"FedEx"
,
...
@@ -300,13 +166,6 @@ export default {
...
@@ -300,13 +166,6 @@ export default {
'5'
:
"邮递"
,
'5'
:
"邮递"
,
empty
:
""
,
empty
:
""
,
},
},
Quote__PaymentTermsCode
:
{
'2'
:
"2/10 N30"
,
'1'
:
"N30"
,
'3'
:
"N45"
,
'4'
:
"N60"
,
empty
:
""
,
},
Contact__StateCode
:
{
Contact__StateCode
:
{
'1'
:
"停用"
,
'1'
:
"停用"
,
'0'
:
"可用"
,
'0'
:
"可用"
,
...
@@ -341,33 +200,11 @@ export default {
...
@@ -341,33 +200,11 @@ export default {
'2'
:
"送货地址"
,
'2'
:
"送货地址"
,
empty
:
""
,
empty
:
""
,
},
},
Contact__LeadSourceCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Account__AccountCategoryCode
:
{
Account__AccountCategoryCode
:
{
'2'
:
"标准"
,
'2'
:
"标准"
,
'1'
:
"首选客户"
,
'1'
:
"首选客户"
,
empty
:
""
,
empty
:
""
,
},
},
Contact__GenderCode
:
{
'2'
:
"女"
,
'1'
:
"男"
,
empty
:
""
,
},
FQG_ActivityPointer
:
{
'ALL'
:
"全部活动"
,
'TASK'
:
"任务"
,
'EMAIL'
:
"电子邮件"
,
'APPOINTMENT'
:
"约会"
,
'PHONECALL'
:
"电话联络"
,
'OTHER'
:
"其他"
,
'LETTER'
:
"信件"
,
'FAX'
:
"传真"
,
'SERVICEAPPOINTMENT'
:
"服务活动"
,
'CAMPAIGNRESPONSE'
:
"市场活动响应"
,
empty
:
""
,
},
Invoice__ShippingMethodCode
:
{
Invoice__ShippingMethodCode
:
{
'2'
:
"DHL"
,
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'3'
:
"FedEx"
,
...
@@ -388,6 +225,187 @@ export default {
...
@@ -388,6 +225,187 @@ export default {
'5'
:
"无法联系"
,
'5'
:
"无法联系"
,
empty
:
""
,
empty
:
""
,
},
},
Quote__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Opportunity__PurchaseProcess
:
{
'0'
:
"个人"
,
'1'
:
"委员会"
,
'2'
:
"未知"
,
empty
:
""
,
},
Salesorder__StatusCode
:
{
'100001'
:
"完成"
,
'100003'
:
"已开发票"
,
'2'
:
"待定"
,
'1'
:
"新建"
,
'4'
:
"无现金"
,
'3'
:
"正在进行"
,
'100002'
:
"部分"
,
empty
:
""
,
},
Campaign__StatusCode
:
{
'6'
:
"停用"
,
'1'
:
"准备启动"
,
'4'
:
"已取消"
,
'2'
:
"已启动"
,
'3'
:
"已完成"
,
'0'
:
"已建议"
,
'5'
:
"已暂停"
,
empty
:
""
,
},
Lead__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctor's Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Account__Address1_ShippingMethodCode
:
{
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'6'
:
"Full Load"
,
'4'
:
"UPS"
,
'7'
:
"Will Call"
,
'1'
:
"航空运输"
,
'5'
:
"邮递"
,
empty
:
""
,
},
Activitypointer__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Account__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctors Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Phonecall__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Lead__StateCode
:
{
'2'
:
"不合格"
,
'1'
:
"已合格"
,
'0'
:
"已开始"
,
empty
:
""
,
},
Salesorder__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Contact__ShippingMethodCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Account__StateCode
:
{
'1'
:
"停用"
,
'0'
:
"可用"
,
empty
:
""
,
},
Contact__FamilyStatusCode
:
{
'4'
:
"丧偶"
,
'1'
:
"单身"
,
'2'
:
"已婚"
,
'3'
:
"离异"
,
empty
:
""
,
},
Quote__PaymentTermsCode
:
{
'2'
:
"2/10 N30"
,
'1'
:
"N30"
,
'3'
:
"N45"
,
'4'
:
"N60"
,
empty
:
""
,
},
Contact__LeadSourceCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Contact__GenderCode
:
{
'2'
:
"女"
,
'1'
:
"男"
,
empty
:
""
,
},
FQG_ActivityPointer
:
{
'ALL'
:
"全部活动"
,
'TASK'
:
"任务"
,
'EMAIL'
:
"电子邮件"
,
'APPOINTMENT'
:
"约会"
,
'PHONECALL'
:
"电话联络"
,
'OTHER'
:
"其他"
,
'LETTER'
:
"信件"
,
'FAX'
:
"传真"
,
'SERVICEAPPOINTMENT'
:
"服务活动"
,
'CAMPAIGNRESPONSE'
:
"市场活动响应"
,
empty
:
""
,
},
Invoice__PaymentTermsCode
:
{
Invoice__PaymentTermsCode
:
{
'2'
:
"2/10 N30"
,
'2'
:
"2/10 N30"
,
'1'
:
"N30"
,
'1'
:
"N30"
,
...
@@ -403,11 +421,6 @@ export default {
...
@@ -403,11 +421,6 @@ export default {
'5'
:
"邮件"
,
'5'
:
"邮件"
,
empty
:
""
,
empty
:
""
,
},
},
Quote__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Opportunity__PurchaseTimeframe
:
{
Opportunity__PurchaseTimeframe
:
{
'2'
:
"下一季度"
,
'2'
:
"下一季度"
,
'3'
:
"今年"
,
'3'
:
"今年"
,
...
...
app_CRM/src/locale/lanres/codelist/codelist_zh_CN.ts
浏览文件 @
d07a3421
...
@@ -17,22 +17,6 @@ export default {
...
@@ -17,22 +17,6 @@ export default {
'8'
:
"通过邮件合并的电子邮件"
,
'8'
:
"通过邮件合并的电子邮件"
,
empty
:
""
,
empty
:
""
,
},
},
Opportunity__PurchaseProcess
:
{
'0'
:
"个人"
,
'1'
:
"委员会"
,
'2'
:
"未知"
,
empty
:
""
,
},
Salesorder__StatusCode
:
{
'100001'
:
"完成"
,
'100003'
:
"已开发票"
,
'2'
:
"待定"
,
'1'
:
"新建"
,
'4'
:
"无现金"
,
'3'
:
"正在进行"
,
'100002'
:
"部分"
,
empty
:
""
,
},
Quote__StateCode
:
{
Quote__StateCode
:
{
'3'
:
"已关闭"
,
'3'
:
"已关闭"
,
'1'
:
"有效"
,
'1'
:
"有效"
,
...
@@ -40,58 +24,12 @@ export default {
...
@@ -40,58 +24,12 @@ export default {
'2'
:
"赢单"
,
'2'
:
"赢单"
,
empty
:
""
,
empty
:
""
,
},
},
Campaign__StatusCode
:
{
'6'
:
"停用"
,
'1'
:
"准备启动"
,
'4'
:
"已取消"
,
'2'
:
"已启动"
,
'3'
:
"已完成"
,
'0'
:
"已建议"
,
'5'
:
"已暂停"
,
empty
:
""
,
},
List__MemberType
:
{
List__MemberType
:
{
'Account'
:
"客户"
,
'Account'
:
"客户"
,
'Lead'
:
"潜在客户"
,
'Lead'
:
"潜在客户"
,
'Contact'
:
"联系人"
,
'Contact'
:
"联系人"
,
empty
:
""
,
empty
:
""
,
},
},
Lead__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctor's Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Salesorder__ShippingMethodCode
:
{
Salesorder__ShippingMethodCode
:
{
'2'
:
"DHL"
,
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'3'
:
"FedEx"
,
...
@@ -109,16 +47,6 @@ export default {
...
@@ -109,16 +47,6 @@ export default {
'4'
:
"N60"
,
'4'
:
"N60"
,
empty
:
""
,
empty
:
""
,
},
},
Account__Address1_ShippingMethodCode
:
{
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'6'
:
"Full Load"
,
'4'
:
"UPS"
,
'7'
:
"Will Call"
,
'1'
:
"航空运输"
,
'5'
:
"邮递"
,
empty
:
""
,
},
ActivityTypeCode
:
{
ActivityTypeCode
:
{
'TASK'
:
"任务"
,
'TASK'
:
"任务"
,
'EMAIL'
:
"电子邮件"
,
'EMAIL'
:
"电子邮件"
,
...
@@ -135,12 +63,6 @@ export default {
...
@@ -135,12 +63,6 @@ export default {
'1'
:
"默认值"
,
'1'
:
"默认值"
,
empty
:
""
,
empty
:
""
,
},
},
Activitypointer__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Lead__PurchaseTimeFrame
:
{
Lead__PurchaseTimeFrame
:
{
'2'
:
"下一季度"
,
'2'
:
"下一季度"
,
'3'
:
"今年"
,
'3'
:
"今年"
,
...
@@ -179,48 +101,6 @@ export default {
...
@@ -179,48 +101,6 @@ export default {
'6'
:
"研讨会"
,
'6'
:
"研讨会"
,
empty
:
""
,
empty
:
""
,
},
},
Account__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctors Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Phonecall__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Salesliterature__LiteratureTypeCode
:
{
Salesliterature__LiteratureTypeCode
:
{
'1'
:
"产品表单"
,
'1'
:
"产品表单"
,
'7'
:
"价格表单"
,
'7'
:
"价格表单"
,
...
@@ -245,12 +125,6 @@ export default {
...
@@ -245,12 +125,6 @@ export default {
'2'
:
"私人公司"
,
'2'
:
"私人公司"
,
empty
:
""
,
empty
:
""
,
},
},
Lead__StateCode
:
{
'2'
:
"不合格"
,
'1'
:
"已合格"
,
'0'
:
"已开始"
,
empty
:
""
,
},
Activitypointer__StateCode
:
{
Activitypointer__StateCode
:
{
'2'
:
"已取消"
,
'2'
:
"已取消"
,
'1'
:
"已完成"
,
'1'
:
"已完成"
,
...
@@ -258,38 +132,30 @@ export default {
...
@@ -258,38 +132,30 @@ export default {
'3'
:
"已计划"
,
'3'
:
"已计划"
,
empty
:
""
,
empty
:
""
,
},
},
Salesorder__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Contact__ShippingMethodCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Account__StateCode
:
{
'1'
:
"停用"
,
'0'
:
"可用"
,
empty
:
""
,
},
YesNo
:
{
YesNo
:
{
'1'
:
"是"
,
'1'
:
"是"
,
'0'
:
"否"
,
'0'
:
"否"
,
empty
:
""
,
empty
:
""
,
},
},
Invoice__StatusCode
:
{
'7'
:
"全额付款(已弃用)"
,
'100001'
:
"完成"
,
'100003'
:
"已取消"
,
'3'
:
"已取消(已弃用)"
,
'6'
:
"已安装(适用于服务)"
,
'4'
:
"已记帐"
,
'5'
:
"已预定(适用于服务)"
,
'1'
:
"新建"
,
'100002'
:
"部分"
,
'2'
:
"部分发货"
,
empty
:
""
,
},
Task__PriorityCode
:
{
Task__PriorityCode
:
{
'0'
:
"低"
,
'0'
:
"低"
,
'1'
:
"正常"
,
'1'
:
"正常"
,
'2'
:
"高"
,
'2'
:
"高"
,
empty
:
""
,
empty
:
""
,
},
},
Contact__FamilyStatusCode
:
{
'4'
:
"丧偶"
,
'1'
:
"单身"
,
'2'
:
"已婚"
,
'3'
:
"离异"
,
empty
:
""
,
},
Quote__ShippingMethodCode
:
{
Quote__ShippingMethodCode
:
{
'2'
:
"DHL"
,
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'3'
:
"FedEx"
,
...
@@ -300,13 +166,6 @@ export default {
...
@@ -300,13 +166,6 @@ export default {
'5'
:
"邮递"
,
'5'
:
"邮递"
,
empty
:
""
,
empty
:
""
,
},
},
Quote__PaymentTermsCode
:
{
'2'
:
"2/10 N30"
,
'1'
:
"N30"
,
'3'
:
"N45"
,
'4'
:
"N60"
,
empty
:
""
,
},
Contact__StateCode
:
{
Contact__StateCode
:
{
'1'
:
"停用"
,
'1'
:
"停用"
,
'0'
:
"可用"
,
'0'
:
"可用"
,
...
@@ -341,33 +200,11 @@ export default {
...
@@ -341,33 +200,11 @@ export default {
'2'
:
"送货地址"
,
'2'
:
"送货地址"
,
empty
:
""
,
empty
:
""
,
},
},
Contact__LeadSourceCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Account__AccountCategoryCode
:
{
Account__AccountCategoryCode
:
{
'2'
:
"标准"
,
'2'
:
"标准"
,
'1'
:
"首选客户"
,
'1'
:
"首选客户"
,
empty
:
""
,
empty
:
""
,
},
},
Contact__GenderCode
:
{
'2'
:
"女"
,
'1'
:
"男"
,
empty
:
""
,
},
FQG_ActivityPointer
:
{
'ALL'
:
"全部活动"
,
'TASK'
:
"任务"
,
'EMAIL'
:
"电子邮件"
,
'APPOINTMENT'
:
"约会"
,
'PHONECALL'
:
"电话联络"
,
'OTHER'
:
"其他"
,
'LETTER'
:
"信件"
,
'FAX'
:
"传真"
,
'SERVICEAPPOINTMENT'
:
"服务活动"
,
'CAMPAIGNRESPONSE'
:
"市场活动响应"
,
empty
:
""
,
},
Invoice__ShippingMethodCode
:
{
Invoice__ShippingMethodCode
:
{
'2'
:
"DHL"
,
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'3'
:
"FedEx"
,
...
@@ -388,6 +225,187 @@ export default {
...
@@ -388,6 +225,187 @@ export default {
'5'
:
"无法联系"
,
'5'
:
"无法联系"
,
empty
:
""
,
empty
:
""
,
},
},
Quote__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Opportunity__PurchaseProcess
:
{
'0'
:
"个人"
,
'1'
:
"委员会"
,
'2'
:
"未知"
,
empty
:
""
,
},
Salesorder__StatusCode
:
{
'100001'
:
"完成"
,
'100003'
:
"已开发票"
,
'2'
:
"待定"
,
'1'
:
"新建"
,
'4'
:
"无现金"
,
'3'
:
"正在进行"
,
'100002'
:
"部分"
,
empty
:
""
,
},
Campaign__StatusCode
:
{
'6'
:
"停用"
,
'1'
:
"准备启动"
,
'4'
:
"已取消"
,
'2'
:
"已启动"
,
'3'
:
"已完成"
,
'0'
:
"已建议"
,
'5'
:
"已暂停"
,
empty
:
""
,
},
Lead__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctor's Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Account__Address1_ShippingMethodCode
:
{
'2'
:
"DHL"
,
'3'
:
"FedEx"
,
'6'
:
"Full Load"
,
'4'
:
"UPS"
,
'7'
:
"Will Call"
,
'1'
:
"航空运输"
,
'5'
:
"邮递"
,
empty
:
""
,
},
Activitypointer__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Account__IndustryCode
:
{
'1'
:
"Accounting"
,
'2'
:
"Agriculture and Non-petrol Natural Resource Extraction"
,
'3'
:
"Broadcasting Printing and Publishing"
,
'4'
:
"Brokers"
,
'5'
:
"Building Supply Retail"
,
'6'
:
"Business Services"
,
'7'
:
"Consulting"
,
'8'
:
"Consumer Services"
,
'9'
:
"Design, Direction and Creative Management"
,
'10'
:
"Distributors, Dispatchers and Processors"
,
'11'
:
"Doctors Offices and Clinics"
,
'12'
:
"Durable Manufacturing"
,
'13'
:
"Eating and Drinking Places"
,
'14'
:
"Entertainment Retail"
,
'15'
:
"Equipment Rental and Leasing"
,
'17'
:
"Food and Tobacco Processing"
,
'18'
:
"Inbound Capital Intensive Processing"
,
'19'
:
"Inbound Repair and Services"
,
'20'
:
"Insurance"
,
'21'
:
"Legal Services"
,
'22'
:
"Non-Durable Merchandise Retail"
,
'23'
:
"Outbound Consumer Service"
,
'24'
:
"Petrochemical Extraction and Distribution"
,
'25'
:
"Service Retail"
,
'26'
:
"SIG Affiliations"
,
'27'
:
"Social Services"
,
'28'
:
"Special Outbound Trade Contractors"
,
'29'
:
"Specialty Realty"
,
'30'
:
"Transportation"
,
'31'
:
"Utility Creation and Distribution"
,
'32'
:
"Vehicle Retail"
,
'33'
:
"Wholesale"
,
'16'
:
"金融业"
,
empty
:
""
,
},
Phonecall__PriorityCode
:
{
'0'
:
"低"
,
'1'
:
"正常"
,
'2'
:
"高"
,
empty
:
""
,
},
Lead__StateCode
:
{
'2'
:
"不合格"
,
'1'
:
"已合格"
,
'0'
:
"已开始"
,
empty
:
""
,
},
Salesorder__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Contact__ShippingMethodCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Account__StateCode
:
{
'1'
:
"停用"
,
'0'
:
"可用"
,
empty
:
""
,
},
Contact__FamilyStatusCode
:
{
'4'
:
"丧偶"
,
'1'
:
"单身"
,
'2'
:
"已婚"
,
'3'
:
"离异"
,
empty
:
""
,
},
Quote__PaymentTermsCode
:
{
'2'
:
"2/10 N30"
,
'1'
:
"N30"
,
'3'
:
"N45"
,
'4'
:
"N60"
,
empty
:
""
,
},
Contact__LeadSourceCode
:
{
'1'
:
"默认值"
,
empty
:
""
,
},
Contact__GenderCode
:
{
'2'
:
"女"
,
'1'
:
"男"
,
empty
:
""
,
},
FQG_ActivityPointer
:
{
'ALL'
:
"全部活动"
,
'TASK'
:
"任务"
,
'EMAIL'
:
"电子邮件"
,
'APPOINTMENT'
:
"约会"
,
'PHONECALL'
:
"电话联络"
,
'OTHER'
:
"其他"
,
'LETTER'
:
"信件"
,
'FAX'
:
"传真"
,
'SERVICEAPPOINTMENT'
:
"服务活动"
,
'CAMPAIGNRESPONSE'
:
"市场活动响应"
,
empty
:
""
,
},
Invoice__PaymentTermsCode
:
{
Invoice__PaymentTermsCode
:
{
'2'
:
"2/10 N30"
,
'2'
:
"2/10 N30"
,
'1'
:
"N30"
,
'1'
:
"N30"
,
...
@@ -403,11 +421,6 @@ export default {
...
@@ -403,11 +421,6 @@ export default {
'5'
:
"邮件"
,
'5'
:
"邮件"
,
empty
:
""
,
empty
:
""
,
},
},
Quote__FreightTermsCode
:
{
'1'
:
"FOB"
,
'2'
:
"免收费用"
,
empty
:
""
,
},
Opportunity__PurchaseTimeframe
:
{
Opportunity__PurchaseTimeframe
:
{
'2'
:
"下一季度"
,
'2'
:
"下一季度"
,
'3'
:
"今年"
,
'3'
:
"今年"
,
...
...
app_CRM/src/locale/lanres/entities/activity-pointer/activity-pointer_en_US.ts
浏览文件 @
d07a3421
...
@@ -64,6 +64,10 @@ export default {
...
@@ -64,6 +64,10 @@ export default {
caption
:
"活动信息"
,
caption
:
"活动信息"
,
title
:
"活动"
,
title
:
"活动"
,
},
},
redirectview
:
{
caption
:
"活动"
,
title
:
"活动数据重定向视图"
,
},
byparentkey
:
{
byparentkey
:
{
caption
:
"活动"
,
caption
:
"活动"
,
title
:
"活动"
,
title
:
"活动"
,
...
...
app_CRM/src/locale/lanres/entities/activity-pointer/activity-pointer_zh_CN.ts
浏览文件 @
d07a3421
...
@@ -63,6 +63,10 @@ export default {
...
@@ -63,6 +63,10 @@ export default {
caption
:
"活动信息"
,
caption
:
"活动信息"
,
title
:
"活动"
,
title
:
"活动"
,
},
},
redirectview
:
{
caption
:
"活动"
,
title
:
"活动数据重定向视图"
,
},
byparentkey
:
{
byparentkey
:
{
caption
:
"活动"
,
caption
:
"活动"
,
title
:
"活动"
,
title
:
"活动"
,
...
...
app_CRM/src/locale/lanres/entities/invoice/invoice_en_US.ts
浏览文件 @
d07a3421
...
@@ -217,8 +217,9 @@ export default {
...
@@ -217,8 +217,9 @@ export default {
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
invoicename
:
"发票名称"
,
invoicename
:
"发票名称"
,
updateman
:
"更新人"
,
statuscode
:
"状态描述"
,
updatedate
:
"更新时间"
,
totalamount
:
"总金额"
,
customerid
:
"客户"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
...
...
app_CRM/src/locale/lanres/entities/invoice/invoice_zh_CN.ts
浏览文件 @
d07a3421
...
@@ -216,8 +216,9 @@ export default {
...
@@ -216,8 +216,9 @@ export default {
main_grid
:
{
main_grid
:
{
columns
:
{
columns
:
{
invoicename
:
"发票名称"
,
invoicename
:
"发票名称"
,
updateman
:
"更新人"
,
statuscode
:
"状态描述"
,
updatedate
:
"更新时间"
,
totalamount
:
"总金额"
,
customerid
:
"客户"
,
},
},
uiactions
:
{
uiactions
:
{
},
},
...
...
app_CRM/src/mock/codelist/codelist.ts
浏览文件 @
d07a3421
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_CRM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
d07a3421
...
@@ -759,6 +759,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
...
@@ -759,6 +759,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"TaskQuickCreate"
,
"viewname"
:
"TaskQuickCreate"
,
"viewtag"
:
"893e62d6fbdc4580de7e3e802aec9108"
"viewtag"
:
"893e62d6fbdc4580de7e3e802aec9108"
},
},
"activitypointerredirectview"
:
{
"title"
:
"活动数据重定向视图"
,
"caption"
:
"活动"
,
"viewtype"
:
"DEREDIRECTVIEW"
,
"viewmodule"
:
"Base"
,
"viewname"
:
"ActivityPointerRedirectView"
,
"viewtag"
:
"899dbdcf77250023245eb323c6cdeb05"
},
"central"
:
{
"central"
:
{
"title"
:
"企业中心"
,
"title"
:
"企业中心"
,
"caption"
:
"企业中心"
,
"caption"
:
"企业中心"
,
...
...
app_CRM/src/pages/base/activity-pointer-grid-view/activity-pointer-grid-view-base.tsx
浏览文件 @
d07a3421
...
@@ -491,16 +491,8 @@ export class ActivityPointerGridViewBase extends GridViewBase {
...
@@ -491,16 +491,8 @@ export class ActivityPointerGridViewBase extends GridViewBase {
Object
.
assign
(
tempContext
,
args
[
0
]);
Object
.
assign
(
tempContext
,
args
[
0
]);
}
}
const
deResParameters
:
any
[]
=
[];
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
const
parameters
:
any
[]
=
[];
{
pathName
:
'activitypointers'
,
parameterName
:
'activitypointer'
},
// todo 实体数据重定向视图
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
}
...
...
app_CRM/src/pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.html
浏览文件 @
d07a3421
<studio-view-style2
viewName=
"opportunitycompetitoroppcompgridview"
viewTitle=
"商机对手表格视图"
class=
'degridview opportunity-competitor-opp-comp-grid-view'
>
<studio-view-style2
viewName=
"opportunitycompetitoroppcompgridview"
viewTitle=
"商机对手表格视图"
class=
'degridview opportunity-competitor-opp-comp-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
search
@
on-search=
"onSearch($event)"
/>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
...
...
app_CRM/src/pages/sales/quote-detail-quo-detail-grid-view/quote-detail-quo-detail-grid-view.html
浏览文件 @
d07a3421
<studio-view-style2
viewName=
"quotedetailquodetailgridview"
viewTitle=
"报价单产品表格视图"
class=
'degridview quote-detail-quo-detail-grid-view'
>
<studio-view-style2
viewName=
"quotedetailquodetailgridview"
viewTitle=
"报价单产品表格视图"
class=
'degridview quote-detail-quo-detail-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
search
@
on-search=
"onSearch($event)"
/>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
...
...
app_CRM/src/pages/ungroup/central/page-register.ts
浏览文件 @
d07a3421
...
@@ -9,6 +9,7 @@ export const PageComponents = {
...
@@ -9,6 +9,7 @@ export const PageComponents = {
Vue
.
component
(
'account-edit-view'
,
()
=>
import
(
'@pages/base/account-edit-view/account-edit-view.vue'
));
Vue
.
component
(
'account-edit-view'
,
()
=>
import
(
'@pages/base/account-edit-view/account-edit-view.vue'
));
Vue
.
component
(
'lead-pickup-view'
,
()
=>
import
(
'@pages/sales/lead-pickup-view/lead-pickup-view.vue'
));
Vue
.
component
(
'lead-pickup-view'
,
()
=>
import
(
'@pages/sales/lead-pickup-view/lead-pickup-view.vue'
));
Vue
.
component
(
'incident-edit-view'
,
()
=>
import
(
'@pages/service/incident-edit-view/incident-edit-view.vue'
));
Vue
.
component
(
'incident-edit-view'
,
()
=>
import
(
'@pages/service/incident-edit-view/incident-edit-view.vue'
));
Vue
.
component
(
'activity-pointer-redirect-view'
,
()
=>
import
(
'@pages/base/activity-pointer-redirect-view/activity-pointer-redirect-view.vue'
));
Vue
.
component
(
'product-pickup-view'
,
()
=>
import
(
'@pages/product/product-pickup-view/product-pickup-view.vue'
));
Vue
.
component
(
'product-pickup-view'
,
()
=>
import
(
'@pages/product/product-pickup-view/product-pickup-view.vue'
));
Vue
.
component
(
'quote-info-abstract'
,
()
=>
import
(
'@pages/sales/quote-info-abstract/quote-info-abstract.vue'
));
Vue
.
component
(
'quote-info-abstract'
,
()
=>
import
(
'@pages/sales/quote-info-abstract/quote-info-abstract.vue'
));
Vue
.
component
(
'contact-info-book'
,
()
=>
import
(
'@pages/base/contact-info-book/contact-info-book.vue'
));
Vue
.
component
(
'contact-info-book'
,
()
=>
import
(
'@pages/base/contact-info-book/contact-info-book.vue'
));
...
...
app_CRM/src/service/campaign/campaign-service-base.ts
浏览文件 @
d07a3421
...
@@ -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
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
;
...
@@ -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
().
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
;
}
}
...
@@ -198,8 +198,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -198,8 +198,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
;
}
}
...
@@ -215,11 +215,11 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -215,11 +215,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
;
...
@@ -229,12 +229,12 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -229,12 +229,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
;
...
@@ -244,7 +244,7 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -244,7 +244,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
);
...
@@ -262,8 +262,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -262,8 +262,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
;
}
}
...
@@ -279,8 +279,8 @@ export default class CampaignServiceBase extends EntityService {
...
@@ -279,8 +279,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
;
}
}
...
...
app_CRM/src/service/contact/contact-service-base.ts
浏览文件 @
d07a3421
...
@@ -66,6 +66,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -66,6 +66,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
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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,26 +111,11 @@ export default class ContactServiceBase extends EntityService {
...
@@ -96,26 +111,11 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
let
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
return
res
;
}
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
...
@@ -149,15 +149,15 @@ export default class ContactServiceBase extends EntityService {
...
@@ -149,15 +149,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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
return
res
;
}
}
...
@@ -173,6 +173,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -173,6 +173,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
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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
);
...
@@ -203,6 +218,14 @@ export default class ContactServiceBase extends EntityService {
...
@@ -203,6 +218,14 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
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
;
}
let
masterData
:
any
=
{};
let
opportunitiesData
:
any
=
[];
let
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
...
@@ -218,14 +241,6 @@ export default class ContactServiceBase extends EntityService {
...
@@ -218,14 +241,6 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunities
=
opportunitiesData
;
masterData
.
opportunities
=
opportunitiesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
masterData
:
any
=
{};
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
);
...
@@ -256,26 +271,11 @@ export default class ContactServiceBase extends EntityService {
...
@@ -256,26 +271,11 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
let
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
return
res
;
}
}
...
@@ -291,6 +291,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -291,6 +291,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
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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
);
...
@@ -321,6 +336,14 @@ export default class ContactServiceBase extends EntityService {
...
@@ -321,6 +336,14 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
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
;
}
let
masterData
:
any
=
{};
let
opportunitiesData
:
any
=
[];
let
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
...
@@ -336,14 +359,6 @@ export default class ContactServiceBase extends EntityService {
...
@@ -336,14 +359,6 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunities
=
opportunitiesData
;
masterData
.
opportunities
=
opportunitiesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
masterData
:
any
=
{};
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
);
...
@@ -374,26 +389,11 @@ export default class ContactServiceBase extends EntityService {
...
@@ -374,26 +389,11 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
let
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
return
res
;
}
}
...
@@ -410,16 +410,16 @@ export default class ContactServiceBase extends EntityService {
...
@@ -410,16 +410,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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
return
res
;
}
}
...
@@ -435,6 +435,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -435,6 +435,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
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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
);
...
@@ -465,6 +480,21 @@ export default class ContactServiceBase extends EntityService {
...
@@ -465,6 +480,21 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts`
,
data
,
isloading
);
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
;
}
let
masterData
:
any
=
{};
let
opportunitiesData
:
any
=
[];
let
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
...
@@ -480,21 +510,6 @@ export default class ContactServiceBase extends EntityService {
...
@@ -480,21 +510,6 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunities
=
opportunitiesData
;
masterData
.
opportunities
=
opportunitiesData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
masterData
:
any
=
{};
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
);
...
@@ -525,21 +540,6 @@ export default class ContactServiceBase extends EntityService {
...
@@ -525,21 +540,6 @@ export default class ContactServiceBase extends EntityService {
}
}
}
}
masterData
.
leads
=
leadsData
;
masterData
.
leads
=
leadsData
;
let
opportunitiesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunities'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitiesData
.
length
>
0
){
opportunitiesData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunityid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitiesData
;
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
;
...
@@ -549,9 +549,9 @@ export default class ContactServiceBase extends EntityService {
...
@@ -549,9 +549,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
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
浏览文件 @
d07a3421
...
@@ -62,11 +62,11 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -62,11 +62,11 @@ export default class IBizListServiceBase 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
list
lead
sData
:
any
=
[];
let
list
contact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
lead
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contact
s'
),
'undefined'
)){
list
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
list
leadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
list
lead
sData
.
forEach
((
item
:
any
)
=>
{
list
contact
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 IBizListServiceBase extends EntityService {
...
@@ -76,12 +76,12 @@ export default class IBizListServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
list
leads
=
listlead
sData
;
masterData
.
list
contacts
=
listcontact
sData
;
let
campaignlis
tsData
:
any
=
[];
let
listaccoun
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlis
ts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listaccoun
ts'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlis
ts'
)
as
any
);
listaccountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlis
tsData
.
length
>
0
){
if
(
listaccountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
campaignlis
tsData
.
forEach
((
item
:
any
)
=>
{
listaccoun
tsData
.
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,12 +91,12 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -91,12 +91,12 @@ export default class IBizListServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
campaignlists
=
campaignlis
tsData
;
masterData
.
listaccounts
=
listaccoun
tsData
;
let
list
contact
sData
:
any
=
[];
let
list
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
contact
s'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_list
lead
s'
),
'undefined'
)){
list
contactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
list
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listlead
s'
)
as
any
);
if
(
list
contactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
if
(
list
leadsData
&&
listleadsData
.
length
&&
listlead
sData
.
length
>
0
){
list
contact
sData
.
forEach
((
item
:
any
)
=>
{
list
lead
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
;
...
@@ -106,12 +106,12 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -106,12 +106,12 @@ export default class IBizListServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
list
contacts
=
listcontact
sData
;
masterData
.
list
leads
=
listlead
sData
;
let
listaccoun
tsData
:
any
=
[];
let
campaignlis
tsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listaccoun
ts'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaignlis
ts'
),
'undefined'
)){
listaccountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccoun
ts'
)
as
any
);
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlis
ts'
)
as
any
);
if
(
listaccountsData
&&
listaccountsData
.
length
&&
listaccoun
tsData
.
length
>
0
){
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlis
tsData
.
length
>
0
){
listaccoun
tsData
.
forEach
((
item
:
any
)
=>
{
campaignlis
tsData
.
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
;
...
@@ -121,13 +121,13 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -121,13 +121,13 @@ export default class IBizListServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
listaccounts
=
listaccoun
tsData
;
masterData
.
campaignlists
=
campaignlis
tsData
;
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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
return
res
;
return
res
;
}
}
...
@@ -168,36 +168,6 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -168,36 +168,6 @@ export default class IBizListServiceBase 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
listleadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listleadsData
.
length
>
0
){
listleadsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listleads
=
listleadsData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
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,26 +198,6 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -228,26 +198,6 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
listaccounts
=
listaccountsData
;
masterData
.
listaccounts
=
listaccountsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
data
,
isloading
);
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
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizListServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
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
);
...
@@ -278,6 +228,26 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -278,6 +228,26 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
campaignlists
=
campaignlistsData
;
masterData
.
campaignlists
=
campaignlistsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizListServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
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
);
...
@@ -308,6 +278,36 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -308,6 +278,36 @@ export default class IBizListServiceBase extends EntityService {
}
}
}
}
masterData
.
listaccounts
=
listaccountsData
;
masterData
.
listaccounts
=
listaccountsData
;
let
listleadsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
),
'undefined'
)){
listleadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listleads'
)
as
any
);
if
(
listleadsData
&&
listleadsData
.
length
&&
listleadsData
.
length
>
0
){
listleadsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listleads
=
listleadsData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
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
;
...
@@ -317,10 +317,10 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -317,10 +317,10 @@ 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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
return
res
;
return
res
;
}
}
...
@@ -335,10 +335,10 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -335,10 +335,10 @@ 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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
return
res
;
return
res
;
}
}
...
@@ -354,10 +354,10 @@ export default class IBizListServiceBase extends EntityService {
...
@@ -354,10 +354,10 @@ export default class IBizListServiceBase 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
(
`/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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
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
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/service/opportunity/opportunity-service-base.ts
浏览文件 @
d07a3421
...
@@ -84,41 +84,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -84,41 +84,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
...
@@ -138,41 +138,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -138,41 +138,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_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
);
...
@@ -205,41 +205,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -205,41 +205,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
...
@@ -259,41 +259,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -259,41 +259,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_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
);
...
@@ -312,21 +312,21 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -312,21 +312,21 @@ export default class OpportunityServiceBase extends EntityService {
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -344,23 +344,23 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -344,23 +344,23 @@ export default class OpportunityServiceBase extends EntityService {
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -391,36 +391,36 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -391,36 +391,36 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
;
...
@@ -431,8 +431,8 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -431,8 +431,8 @@ 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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
true
){
if
(
context
.
contact
&&
true
){
...
@@ -452,36 +452,36 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -452,36 +452,36 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
;
...
@@ -492,8 +492,8 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -492,8 +492,8 @@ 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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
...
@@ -512,36 +512,36 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -512,36 +512,36 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
;
...
@@ -552,8 +552,8 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -552,8 +552,8 @@ 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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -603,41 +603,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -603,41 +603,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
...
@@ -657,41 +657,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -657,41 +657,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
...
@@ -710,41 +710,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -710,41 +710,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
@@ -775,41 +775,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -775,41 +775,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
...
@@ -829,41 +829,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -829,41 +829,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_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
);
...
@@ -896,41 +896,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -896,41 +896,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
if
(
context
.
contact
&&
context
.
opportunity
){
if
(
context
.
contact
&&
context
.
opportunity
){
...
@@ -950,41 +950,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -950,41 +950,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
...
@@ -1003,41 +1003,41 @@ export default class OpportunityServiceBase extends EntityService {
...
@@ -1003,41 +1003,41 @@ export default class OpportunityServiceBase extends EntityService {
}
}
}
}
masterData
.
opportunityproducts
=
opportunityproductsData
;
masterData
.
opportunityproducts
=
opportunityproductsData
;
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
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
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
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
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/service/sales-literature/sales-literature-service-base.ts
浏览文件 @
d07a3421
...
@@ -62,8 +62,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -62,8 +62,8 @@ 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
+
'_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
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -79,11 +79,11 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -79,11 +79,11 @@ 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
product
salesliteraturesData
:
any
=
[];
let
competitor
salesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
product
salesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitor
salesliteratures'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
salesliteratures'
)
as
any
);
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitor
salesliteratures'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
product
salesliteraturesData
.
length
>
0
){
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitor
salesliteraturesData
.
length
>
0
){
product
salesliteraturesData
.
forEach
((
item
:
any
)
=>
{
competitor
salesliteraturesData
.
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
;
...
@@ -93,12 +93,12 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -93,12 +93,12 @@ export default class SalesLiteratureServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
productsalesliteratures
=
product
salesliteraturesData
;
masterData
.
competitorsalesliteratures
=
competitor
salesliteraturesData
;
let
competitor
salesliteraturesData
:
any
=
[];
let
product
salesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitor
salesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
product
salesliteratures'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitor
salesliteratures'
)
as
any
);
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
salesliteratures'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitor
salesliteraturesData
.
length
>
0
){
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
product
salesliteraturesData
.
length
>
0
){
competitor
salesliteraturesData
.
forEach
((
item
:
any
)
=>
{
product
salesliteraturesData
.
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
;
...
@@ -108,7 +108,7 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -108,7 +108,7 @@ export default class SalesLiteratureServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
competitorsalesliteratures
=
competitor
salesliteraturesData
;
masterData
.
productsalesliteratures
=
product
salesliteraturesData
;
let
salesliteratureitemsData
:
any
=
[];
let
salesliteratureitemsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
)
as
any
);
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
)
as
any
);
...
@@ -126,8 +126,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -126,8 +126,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
masterData
.
salesliteratureitems
=
salesliteratureitemsData
;
masterData
.
salesliteratureitems
=
salesliteratureitemsData
;
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
+
'_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
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -143,11 +143,11 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -143,11 +143,11 @@ 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
product
salesliteraturesData
:
any
=
[];
let
competitor
salesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
product
salesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitor
salesliteratures'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
salesliteratures'
)
as
any
);
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitor
salesliteratures'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
product
salesliteraturesData
.
length
>
0
){
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitor
salesliteraturesData
.
length
>
0
){
product
salesliteraturesData
.
forEach
((
item
:
any
)
=>
{
competitor
salesliteraturesData
.
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
;
...
@@ -157,12 +157,12 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -157,12 +157,12 @@ export default class SalesLiteratureServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
productsalesliteratures
=
product
salesliteraturesData
;
masterData
.
competitorsalesliteratures
=
competitor
salesliteraturesData
;
let
competitor
salesliteraturesData
:
any
=
[];
let
product
salesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitor
salesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
product
salesliteratures'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitor
salesliteratures'
)
as
any
);
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
salesliteratures'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitor
salesliteraturesData
.
length
>
0
){
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
product
salesliteraturesData
.
length
>
0
){
competitor
salesliteraturesData
.
forEach
((
item
:
any
)
=>
{
product
salesliteraturesData
.
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
;
...
@@ -172,7 +172,7 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -172,7 +172,7 @@ export default class SalesLiteratureServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
competitorsalesliteratures
=
competitor
salesliteraturesData
;
masterData
.
productsalesliteratures
=
product
salesliteraturesData
;
let
salesliteratureitemsData
:
any
=
[];
let
salesliteratureitemsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
)
as
any
);
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
)
as
any
);
...
@@ -197,8 +197,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -197,8 +197,8 @@ 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
+
'_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
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -240,11 +240,11 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -240,11 +240,11 @@ 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
product
salesliteraturesData
:
any
=
[];
let
competitor
salesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
product
salesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitor
salesliteratures'
),
'undefined'
)){
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
salesliteratures'
)
as
any
);
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitor
salesliteratures'
)
as
any
);
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
product
salesliteraturesData
.
length
>
0
){
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitor
salesliteraturesData
.
length
>
0
){
product
salesliteraturesData
.
forEach
((
item
:
any
)
=>
{
competitor
salesliteraturesData
.
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
;
...
@@ -254,12 +254,12 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -254,12 +254,12 @@ export default class SalesLiteratureServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
productsalesliteratures
=
product
salesliteraturesData
;
masterData
.
competitorsalesliteratures
=
competitor
salesliteraturesData
;
let
competitor
salesliteraturesData
:
any
=
[];
let
product
salesliteraturesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitor
salesliteratures'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
product
salesliteratures'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitor
salesliteratures'
)
as
any
);
productsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_product
salesliteratures'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitor
salesliteraturesData
.
length
>
0
){
if
(
productsalesliteraturesData
&&
productsalesliteraturesData
.
length
&&
product
salesliteraturesData
.
length
>
0
){
competitor
salesliteraturesData
.
forEach
((
item
:
any
)
=>
{
product
salesliteraturesData
.
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
;
...
@@ -269,7 +269,7 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -269,7 +269,7 @@ export default class SalesLiteratureServiceBase extends EntityService {
});
});
}
}
}
}
masterData
.
competitorsalesliteratures
=
competitor
salesliteraturesData
;
masterData
.
productsalesliteratures
=
product
salesliteraturesData
;
let
salesliteratureitemsData
:
any
=
[];
let
salesliteratureitemsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
)
as
any
);
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
)
as
any
);
...
@@ -287,8 +287,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -287,8 +287,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
masterData
.
salesliteratureitems
=
salesliteratureitemsData
;
masterData
.
salesliteratureitems
=
salesliteratureitemsData
;
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
+
'_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
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
@@ -305,8 +305,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
...
@@ -305,8 +305,8 @@ 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
+
'_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
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
return
res
;
}
}
...
...
app_CRM/src/store/modules/view-action/state.ts
浏览文件 @
d07a3421
...
@@ -458,17 +458,18 @@ export const viewstate: any = {
...
@@ -458,17 +458,18 @@ export const viewstate: any = {
viewdatachange
:
false
,
viewdatachange
:
false
,
refviews
:
[
refviews
:
[
'aa79d35850f36fbc1a5085353ecd5af5'
,
'aa79d35850f36fbc1a5085353ecd5af5'
,
'24e222a530526aab94ed4ed22cfedf9a'
,
'99d4a530c13b03a98cd143f341394354'
,
'30458f00562fda145be535e56948b067'
,
'30458f00562fda145be535e56948b067'
,
'b3cfac5362b3bfb70d1471932f120fa5'
,
'3d538df4ca389d372347f7b53d67269f'
,
'3d538df4ca389d372347f7b53d67269f'
,
'893e62d6fbdc4580de7e3e802aec9108'
,
'b3cfac5362b3bfb70d1471932f120fa5'
,
'a50134133db91e46c8434ad0ebff22c7'
,
'a95d7d9111bc13a8b73a11ee1e4ff92a'
,
'a95d7d9111bc13a8b73a11ee1e4ff92a'
,
'a50134133db91e46c8434ad0ebff22c7'
,
'3f78dcc732a7a8ba6d959dcf6007b225'
,
'3f78dcc732a7a8ba6d959dcf6007b225'
,
'f84a705f33385d5999fcfb69124932d4'
,
'f84a705f33385d5999fcfb69124932d4'
,
'a5213905238dbc5d8e1a505029105cc9'
,
'a5213905238dbc5d8e1a505029105cc9'
,
'899dbdcf77250023245eb323c6cdeb05'
,
'24e222a530526aab94ed4ed22cfedf9a'
,
'99d4a530c13b03a98cd143f341394354'
,
'893e62d6fbdc4580de7e3e802aec9108'
,
],
],
},
},
{
{
...
...
app_CRM/src/uiservice/activity-pointer/activity-pointer-ui-service-base.ts
浏览文件 @
d07a3421
...
@@ -81,6 +81,7 @@ export default class ActivityPointerUIServiceBase extends UIService {
...
@@ -81,6 +81,7 @@ export default class ActivityPointerUIServiceBase extends UIService {
public
initViewMap
(){
public
initViewMap
(){
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'activitypointers'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'activitypointers'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'activitypointers'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'activitypointers'
});
this
.
allViewMap
.
set
(
'REDIRECTVIEW:'
,{
viewname
:
'redirectview'
,
srfappde
:
'activitypointers'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'byparentkey'
,
srfappde
:
'activitypointers'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'byparentkey'
,
srfappde
:
'activitypointers'
});
}
}
...
...
app_CRM/src/widgets/invoice/main-grid/main-grid-base.tsx
浏览文件 @
d07a3421
...
@@ -64,16 +64,23 @@ export class MainGridBase extends GridControllerBase {
...
@@ -64,16 +64,23 @@ export class MainGridBase extends GridControllerBase {
util
:
'PX'
util
:
'PX'
},
},
{
{
name
:
'
updateman
'
,
name
:
'
statuscode
'
,
label
:
'
更新人
'
,
label
:
'
状态描述
'
,
langtag
:
'entities.invoice.main_grid.columns.
updateman
'
,
langtag
:
'entities.invoice.main_grid.columns.
statuscode
'
,
show
:
true
,
show
:
true
,
util
:
'PX'
util
:
'PX'
},
},
{
{
name
:
'updatedate'
,
name
:
'totalamount'
,
label
:
'更新时间'
,
label
:
'总金额'
,
langtag
:
'entities.invoice.main_grid.columns.updatedate'
,
langtag
:
'entities.invoice.main_grid.columns.totalamount'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'customerid'
,
label
:
'客户'
,
langtag
:
'entities.invoice.main_grid.columns.customerid'
,
show
:
true
,
show
:
true
,
util
:
'PX'
util
:
'PX'
},
},
...
@@ -112,8 +119,9 @@ export class MainGridBase extends GridControllerBase {
...
@@ -112,8 +119,9 @@ export class MainGridBase extends GridControllerBase {
*/
*/
public
hasRowEdit
:
any
=
{
public
hasRowEdit
:
any
=
{
'invoicename'
:
false
,
'invoicename'
:
false
,
'updateman'
:
false
,
'statuscode'
:
false
,
'updatedate'
:
false
,
'totalamount'
:
false
,
'customerid'
:
false
,
};
};
/**
/**
...
...
app_CRM/src/widgets/invoice/main-grid/main-grid-model.ts
浏览文件 @
d07a3421
...
@@ -32,8 +32,8 @@ export default class MainModel {
...
@@ -32,8 +32,8 @@ export default class MainModel {
dataType
:
'TEXT'
,
dataType
:
'TEXT'
,
},
},
{
{
name
:
'
updateman
'
,
name
:
'
customerid
'
,
prop
:
'
updateman
'
,
prop
:
'
customerid
'
,
dataType
:
'TEXT'
,
dataType
:
'TEXT'
,
},
},
{
{
...
@@ -56,16 +56,16 @@ export default class MainModel {
...
@@ -56,16 +56,16 @@ export default class MainModel {
prop
:
'opportunityid'
,
prop
:
'opportunityid'
,
dataType
:
'PICKUP'
,
dataType
:
'PICKUP'
,
},
},
{
name
:
'updatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
{
name
:
'pricelevelid'
,
name
:
'pricelevelid'
,
prop
:
'pricelevelid'
,
prop
:
'pricelevelid'
,
dataType
:
'PICKUP'
,
dataType
:
'PICKUP'
,
},
},
{
name
:
'statuscode'
,
prop
:
'statuscode'
,
dataType
:
'NSCODELIST'
,
},
{
{
name
:
'srfmajortext'
,
name
:
'srfmajortext'
,
prop
:
'invoicename'
,
prop
:
'invoicename'
,
...
@@ -81,6 +81,11 @@ export default class MainModel {
...
@@ -81,6 +81,11 @@ export default class MainModel {
prop
:
'invoiceid'
,
prop
:
'invoiceid'
,
dataType
:
'GUID'
,
dataType
:
'GUID'
,
},
},
{
name
:
'totalamount'
,
prop
:
'totalamount'
,
dataType
:
'BIGDECIMAL'
,
},
{
{
name
:
'invoice'
,
name
:
'invoice'
,
prop
:
'invoiceid'
,
prop
:
'invoiceid'
,
...
...
app_CRM/src/widgets/invoice/main-grid/main-grid.html
浏览文件 @
d07a3421
...
@@ -35,29 +35,41 @@
...
@@ -35,29 +35,41 @@
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('
updateman
')"
>
<template
v-if=
"getColumnState('
statuscode
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
updateman'"
:label=
"$t('entities.invoice.main_grid.columns.updateman')"
:width=
"15
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
statuscode'"
:label=
"$t('entities.invoice.main_grid.columns.statuscode')"
:width=
"16
0"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{$t('entities.invoice.main_grid.columns.
updateman
')}}
{{$t('entities.invoice.main_grid.columns.
statuscode
')}}
</span>
</span>
</template>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<template
>
<codelist
:value=
"row.
updateman"
tag=
'SysOperator'
codelistType=
'DYNAM
IC'
></codelist>
<codelist
:value=
"row.
statuscode"
tag=
'Invoice__StatusCode'
codelistType=
'STAT
IC'
></codelist>
</template>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
<template
v-if=
"getColumnState('
updatedate
')"
>
<template
v-if=
"getColumnState('
totalamount
')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
updatedate'"
:label=
"$t('entities.invoice.main_grid.columns.updatedate
')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<el-table-column
show-overflow-tooltip
:prop=
"'
totalamount'"
:label=
"$t('entities.invoice.main_grid.columns.totalamount
')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
<span
class=
"column-header "
>
{{$t('entities.invoice.main_grid.columns.
updatedate
')}}
{{$t('entities.invoice.main_grid.columns.
totalamount
')}}
</span>
</span>
</template>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD hh:mm:ss"
:data=
"row.updatedate"
></app-format-data>
<span>
{{row.totalamount}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('customerid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'customerid'"
:label=
"$t('entities.invoice.main_grid.columns.customerid')"
:width=
"160"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.invoice.main_grid.columns.customerid')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.customerid}}
</span>
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
...
...
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
d07a3421
...
@@ -466,7 +466,7 @@
...
@@ -466,7 +466,7 @@
<!--输出实体[QUOTEDETAIL]数据结构 -->
<!--输出实体[QUOTEDETAIL]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-quotedetail-1
5
-8"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-quotedetail-1
6
-8"
>
<createTable
tableName=
"QUOTEDETAIL"
>
<createTable
tableName=
"QUOTEDETAIL"
>
<column
name=
"OWNERIDTYPE"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"OWNERIDTYPE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</column>
...
@@ -2418,7 +2418,7 @@
...
@@ -2418,7 +2418,7 @@
<!--输出实体[INVOICE]数据结构 -->
<!--输出实体[INVOICE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-invoice-3
6
-33"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-invoice-3
7
-33"
>
<createTable
tableName=
"INVOICE"
>
<createTable
tableName=
"INVOICE"
>
<column
name=
"BILLTO_LINE1"
remarks=
""
type=
"VARCHAR(250)"
>
<column
name=
"BILLTO_LINE1"
remarks=
""
type=
"VARCHAR(250)"
>
</column>
</column>
...
@@ -6343,7 +6343,7 @@
...
@@ -6343,7 +6343,7 @@
<!--输出实体[SALESLITERATURE]数据结构 -->
<!--输出实体[SALESLITERATURE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-salesliterature-1
7
-73"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-salesliterature-1
9
-73"
>
<createTable
tableName=
"SALESLITERATURE"
>
<createTable
tableName=
"SALESLITERATURE"
>
<column
name=
"IMPORTSEQUENCENUMBER"
remarks=
""
type=
"INT"
>
<column
name=
"IMPORTSEQUENCENUMBER"
remarks=
""
type=
"INT"
>
</column>
</column>
...
@@ -9074,7 +9074,7 @@
...
@@ -9074,7 +9074,7 @@
<!--输出实体[ACTIVITYPOINTER]数据结构 -->
<!--输出实体[ACTIVITYPOINTER]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-activitypointer-
68
-101"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-activitypointer-
70
-101"
>
<createTable
tableName=
"ACTIVITYPOINTER"
>
<createTable
tableName=
"ACTIVITYPOINTER"
>
<column
name=
"SERIESID"
remarks=
""
type=
"VARCHAR(60)"
>
<column
name=
"SERIESID"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
</column>
...
@@ -10434,7 +10434,7 @@
...
@@ -10434,7 +10434,7 @@
<!--输出实体[OPPORTUNITY]数据结构 -->
<!--输出实体[OPPORTUNITY]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-opportunity-11
1
-124"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-opportunity-11
8
-124"
>
<createTable
tableName=
"OPPORTUNITY"
>
<createTable
tableName=
"OPPORTUNITY"
>
<column
name=
"DECISIONMAKER"
remarks=
""
type=
"INT"
>
<column
name=
"DECISIONMAKER"
remarks=
""
type=
"INT"
>
</column>
</column>
...
@@ -10805,19 +10805,19 @@
...
@@ -10805,19 +10805,19 @@
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"SEMIANNUALFISCALCALENDAR"
constraintName=
"DER1N_SEMIANNUALFISCALCALENDAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"SEMIANNUALFISCALCALENDAR"
constraintName=
"DER1N_SEMIANNUALFISCALCALENDAR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[QUOTEDETAIL]外键关系 -->
<!--输出实体[QUOTEDETAIL]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
5
-137"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
6
-137"
>
<addForeignKeyConstraint
baseColumnNames=
"PRODUCTID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__PRODUCT__PR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRODUCTID"
referencedTableName=
"PRODUCT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PRODUCTID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__PRODUCT__PR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRODUCTID"
referencedTableName=
"PRODUCT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
5
-138"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
6
-138"
>
<addForeignKeyConstraint
baseColumnNames=
"PARENTBUNDLEIDREF"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__QUOTEDETAIL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"QUOTEDETAILID"
referencedTableName=
"QUOTEDETAIL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PARENTBUNDLEIDREF"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__QUOTEDETAIL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"QUOTEDETAILID"
referencedTableName=
"QUOTEDETAIL"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
5
-139"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
6
-139"
>
<addForeignKeyConstraint
baseColumnNames=
"QUOTEID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__QUOTE__QUOT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"QUOTEID"
referencedTableName=
"QUOTE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"QUOTEID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__QUOTE__QUOT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"QUOTEID"
referencedTableName=
"QUOTE"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
5
-140"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
6
-140"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__TRANSACTION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__TRANSACTION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
5
-141"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-quotedetail-1
6
-141"
>
<addForeignKeyConstraint
baseColumnNames=
"UOMID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__UOM__UOMID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"UOMID"
referencedTableName=
"UOM"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"UOMID"
baseTableName=
"QUOTEDETAIL"
constraintName=
"DER1N_QUOTEDETAIL__UOM__UOMID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"UOMID"
referencedTableName=
"UOM"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[QUARTERLYFISCALCALENDAR]外键关系 -->
<!--输出实体[QUARTERLYFISCALCALENDAR]外键关系 -->
...
@@ -10983,19 +10983,19 @@
...
@@ -10983,19 +10983,19 @@
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"SLAKPIINSTANCE"
constraintName=
"DER1N_SLAKPIINSTANCE__TRANSACT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"SLAKPIINSTANCE"
constraintName=
"DER1N_SLAKPIINSTANCE__TRANSACT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[INVOICE]外键关系 -->
<!--输出实体[INVOICE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
6
-192"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
7
-192"
>
<addForeignKeyConstraint
baseColumnNames=
"OPPORTUNITYID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__OPPORTUNITY__OP"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OPPORTUNITYID"
referencedTableName=
"OPPORTUNITY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"OPPORTUNITYID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__OPPORTUNITY__OP"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"OPPORTUNITYID"
referencedTableName=
"OPPORTUNITY"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
6
-193"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
7
-193"
>
<addForeignKeyConstraint
baseColumnNames=
"PRICELEVELID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__PRICELEVEL__PRI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRICELEVELID"
referencedTableName=
"PRICELEVEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PRICELEVELID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__PRICELEVEL__PRI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRICELEVELID"
referencedTableName=
"PRICELEVEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
6
-194"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
7
-194"
>
<addForeignKeyConstraint
baseColumnNames=
"SALESORDERID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__SALESORDER__SAL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SALESORDERID"
referencedTableName=
"SALESORDER"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"SALESORDERID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__SALESORDER__SAL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SALESORDERID"
referencedTableName=
"SALESORDER"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
6
-195"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
7
-195"
>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__SLA__SLAID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__SLA__SLAID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
6
-196"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-invoice-3
7
-196"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__TRANSACTIONCURR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"INVOICE"
constraintName=
"DER1N_INVOICE__TRANSACTIONCURR"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[TASK]外键关系 -->
<!--输出实体[TASK]外键关系 -->
...
@@ -11335,10 +11335,10 @@
...
@@ -11335,10 +11335,10 @@
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"RATINGVALUE"
constraintName=
"DER1N_RATINGVALUE__TRANSACTION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"RATINGVALUE"
constraintName=
"DER1N_RATINGVALUE__TRANSACTION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[SALESLITERATURE]外键关系 -->
<!--输出实体[SALESLITERATURE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-salesliterature-1
7
-311"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-salesliterature-1
9
-311"
>
<addForeignKeyConstraint
baseColumnNames=
"SUBJECTID"
baseTableName=
"SALESLITERATURE"
constraintName=
"DER1N_SALESLITERATURE__SUBJECT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SUBJECTID"
referencedTableName=
"SUBJECT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"SUBJECTID"
baseTableName=
"SALESLITERATURE"
constraintName=
"DER1N_SALESLITERATURE__SUBJECT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SUBJECTID"
referencedTableName=
"SUBJECT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-salesliterature-1
7
-312"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-salesliterature-1
9
-312"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"SALESLITERATURE"
constraintName=
"DER1N_SALESLITERATURE__TRANSAC"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"SALESLITERATURE"
constraintName=
"DER1N_SALESLITERATURE__TRANSAC"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[METRIC]外键关系 -->
<!--输出实体[METRIC]外键关系 -->
...
@@ -11540,13 +11540,13 @@
...
@@ -11540,13 +11540,13 @@
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"PRODUCTSUBSTITUTE"
constraintName=
"DER1N_PRODUCTSUBSTITUTE__TRANS"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"PRODUCTSUBSTITUTE"
constraintName=
"DER1N_PRODUCTSUBSTITUTE__TRANS"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[ACTIVITYPOINTER]外键关系 -->
<!--输出实体[ACTIVITYPOINTER]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-activitypointer-
68
-378"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-activitypointer-
70
-378"
>
<addForeignKeyConstraint
baseColumnNames=
"SERVICEID"
baseTableName=
"ACTIVITYPOINTER"
constraintName=
"DER1N_ACTIVITYPOINTER__SERVICE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SERVICEID"
referencedTableName=
"SERVICE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"SERVICEID"
baseTableName=
"ACTIVITYPOINTER"
constraintName=
"DER1N_ACTIVITYPOINTER__SERVICE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SERVICEID"
referencedTableName=
"SERVICE"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-activitypointer-
68
-379"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-activitypointer-
70
-379"
>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"ACTIVITYPOINTER"
constraintName=
"DER1N_ACTIVITYPOINTER__SLA__SL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"ACTIVITYPOINTER"
constraintName=
"DER1N_ACTIVITYPOINTER__SLA__SL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-activitypointer-
68
-380"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-activitypointer-
70
-380"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"ACTIVITYPOINTER"
constraintName=
"DER1N_ACTIVITYPOINTER__TRANSAC"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"ACTIVITYPOINTER"
constraintName=
"DER1N_ACTIVITYPOINTER__TRANSAC"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[LEADCOMPETITOR]外键关系 -->
<!--输出实体[LEADCOMPETITOR]外键关系 -->
...
@@ -11668,25 +11668,25 @@
...
@@ -11668,25 +11668,25 @@
<!--输出实体[RELATIONSHIPS]外键关系 -->
<!--输出实体[RELATIONSHIPS]外键关系 -->
<!--输出实体[CONNECTIONROLE]外键关系 -->
<!--输出实体[CONNECTIONROLE]外键关系 -->
<!--输出实体[OPPORTUNITY]外键关系 -->
<!--输出实体[OPPORTUNITY]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
1
-414"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
8
-414"
>
<addForeignKeyConstraint
baseColumnNames=
"PARENTACCOUNTID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__ACCOUNT__PA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ACCOUNTID"
referencedTableName=
"ACCOUNT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PARENTACCOUNTID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__ACCOUNT__PA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ACCOUNTID"
referencedTableName=
"ACCOUNT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
1
-415"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
8
-415"
>
<addForeignKeyConstraint
baseColumnNames=
"CAMPAIGNID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__CAMPAIGN__C"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CAMPAIGNID"
referencedTableName=
"CAMPAIGN"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"CAMPAIGNID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__CAMPAIGN__C"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CAMPAIGNID"
referencedTableName=
"CAMPAIGN"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
1
-416"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
8
-416"
>
<addForeignKeyConstraint
baseColumnNames=
"PARENTCONTACTID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__CONTACT__PA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CONTACTID"
referencedTableName=
"CONTACT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PARENTCONTACTID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__CONTACT__PA"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"CONTACTID"
referencedTableName=
"CONTACT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
1
-417"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
8
-417"
>
<addForeignKeyConstraint
baseColumnNames=
"ORIGINATINGLEADID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__LEAD__ORIGI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"LEADID"
referencedTableName=
"LEAD"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"ORIGINATINGLEADID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__LEAD__ORIGI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"LEADID"
referencedTableName=
"LEAD"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
1
-418"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
8
-418"
>
<addForeignKeyConstraint
baseColumnNames=
"PRICELEVELID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__PRICELEVEL_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRICELEVELID"
referencedTableName=
"PRICELEVEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PRICELEVELID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__PRICELEVEL_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"PRICELEVELID"
referencedTableName=
"PRICELEVEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
1
-419"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
8
-419"
>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__SLA__SLAID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"SLAID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__SLA__SLAID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"SLAID"
referencedTableName=
"SLA"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
1
-420"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-opportunity-11
8
-420"
>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__TRANSACTION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TRANSACTIONCURRENCYID"
baseTableName=
"OPPORTUNITY"
constraintName=
"DER1N_OPPORTUNITY__TRANSACTION"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TRANSACTIONCURRENCYID"
referencedTableName=
"TRANSACTIONCURRENCY"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[OPPORTUNITYCOMPETITOR]外键关系 -->
<!--输出实体[OPPORTUNITYCOMPETITOR]外键关系 -->
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录