提交 e2b36a78 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 f8481820
...@@ -359,6 +359,16 @@ ...@@ -359,6 +359,16 @@
"viewtag": "3a665de6a3970b95fde436c0fea4b1df", "viewtag": "3a665de6a3970b95fde436c0fea4b1df",
"memo": "" "memo": ""
}, },
"competitorinfo_abstract": {
"title": "竞争对手编辑视图",
"caption": "竞争对手",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "CompetitorInfo_Abstract",
"viewfilename": "competitor-info-abstract",
"viewtag": "3b3a9dc75518028c6577a3634f853bdc",
"memo": ""
},
"contactinfo_abstract": { "contactinfo_abstract": {
"title": "联系人编辑视图", "title": "联系人编辑视图",
"caption": "联系人", "caption": "联系人",
...@@ -529,6 +539,16 @@ ...@@ -529,6 +539,16 @@
"viewtag": "5c7e90ccfaeb49b5bd84ae6c17b479e3", "viewtag": "5c7e90ccfaeb49b5bd84ae6c17b479e3",
"memo": "" "memo": ""
}, },
"opportunitycompetitoroppcompgridview": {
"title": "商机对手表格视图",
"caption": "商机对手",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sales",
"viewname": "OpportunityCompetitorOppCompGridView",
"viewfilename": "opportunity-competitor-opp-comp-grid-view",
"viewtag": "5de2a290b5d079445ad825f6d6418dd6",
"memo": "系统自动添加"
},
"opportunitygridview": { "opportunitygridview": {
"title": "商机表格视图", "title": "商机表格视图",
"caption": "商机信息", "caption": "商机信息",
...@@ -909,6 +929,16 @@ ...@@ -909,6 +929,16 @@
"viewtag": "9a96ebf2e57358b3590b9d4479edb77a", "viewtag": "9a96ebf2e57358b3590b9d4479edb77a",
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"competitordashboardview": {
"title": "竞争对手数据看板视图",
"caption": "竞争对手",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Sales",
"viewname": "CompetitorDashboardView",
"viewfilename": "competitor-dashboard-view",
"viewtag": "9bf80730e83a74615919a0f0907505d4",
"memo": ""
},
"ibizlistsummary": { "ibizlistsummary": {
"title": "市场营销列表概览", "title": "市场营销列表概览",
"caption": "市场营销列表概览", "caption": "市场营销列表概览",
...@@ -1019,6 +1049,16 @@ ...@@ -1019,6 +1049,16 @@
"viewtag": "aaa875342bd9286a39c2d193a150afc4", "viewtag": "aaa875342bd9286a39c2d193a150afc4",
"memo": "" "memo": ""
}, },
"competitortabexpview": {
"title": "竞争对手分页导航视图",
"caption": "竞争对手",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Sales",
"viewname": "CompetitorTabExpView",
"viewfilename": "competitor-tab-exp-view",
"viewtag": "ad5b5579442b2a90900b62803059a029",
"memo": ""
},
"quoteeditview": { "quoteeditview": {
"title": "报价单编辑视图", "title": "报价单编辑视图",
"caption": "报价单", "caption": "报价单",
...@@ -1129,6 +1169,16 @@ ...@@ -1129,6 +1169,16 @@
"viewtag": "c0f2529b17654edda5f85a28635e353c", "viewtag": "c0f2529b17654edda5f85a28635e353c",
"memo": "" "memo": ""
}, },
"opportunitycompetitoreditview": {
"title": "商机对手编辑视图",
"caption": "商机对手",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "OpportunityCompetitorEditView",
"viewfilename": "opportunity-competitor-edit-view",
"viewtag": "c420212fae385872d6ae89e3d237350a",
"memo": "系统自动添加"
},
"accountinfo_distribution": { "accountinfo_distribution": {
"title": "客户编辑视图", "title": "客户编辑视图",
"caption": "客户", "caption": "客户",
......
/**
* 商机对手
*
* @export
* @interface OpportunityCompetitor
*/
export interface OpportunityCompetitor {
/**
* 建立时间
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
createdate?: any;
/**
* 建立人
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
createman?: any;
/**
* 关系标识
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
relationshipsid?: any;
/**
* 关系名称
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
relationshipsname?: any;
/**
* 关系类型
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
relationshipstype?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
updatedate?: any;
/**
* 更新人
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
updateman?: any;
/**
* 商机
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
entityid?: any;
/**
* 竞争对手
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
entity2id?: any;
/**
* 商机
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
entityname?: any;
/**
* 竞争对手
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
entity2name?: any;
/**
* 潜在顾客
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
originatingleadid?: any;
/**
* 潜在顾客
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
originatingleadname?: any;
/**
* 状态
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
statecode?: any;
/**
* 预计收入
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
estimatedvalue?: any;
/**
* 预计结束日期
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
estimatedclosedate?: any;
/**
* 实际收入
*
* @returns {*}
* @memberof OpportunityCompetitor
*/
actualvalue?: any;
}
\ No newline at end of file
...@@ -26,6 +26,7 @@ import fax_en_US from '@locale/lanres/entities/fax/fax_en_US'; ...@@ -26,6 +26,7 @@ import fax_en_US from '@locale/lanres/entities/fax/fax_en_US';
import quote_en_US from '@locale/lanres/entities/quote/quote_en_US'; import quote_en_US from '@locale/lanres/entities/quote/quote_en_US';
import campaignactivity_en_US from '@locale/lanres/entities/campaign-activity/campaign-activity_en_US'; import campaignactivity_en_US from '@locale/lanres/entities/campaign-activity/campaign-activity_en_US';
import listlead_en_US from '@locale/lanres/entities/list-lead/list-lead_en_US'; import listlead_en_US from '@locale/lanres/entities/list-lead/list-lead_en_US';
import opportunitycompetitor_en_US from '@locale/lanres/entities/opportunity-competitor/opportunity-competitor_en_US';
import contact_en_US from '@locale/lanres/entities/contact/contact_en_US'; import contact_en_US from '@locale/lanres/entities/contact/contact_en_US';
import product_en_US from '@locale/lanres/entities/product/product_en_US'; import product_en_US from '@locale/lanres/entities/product/product_en_US';
import competitor_en_US from '@locale/lanres/entities/competitor/competitor_en_US'; import competitor_en_US from '@locale/lanres/entities/competitor/competitor_en_US';
...@@ -164,6 +165,7 @@ export default { ...@@ -164,6 +165,7 @@ export default {
quote: quote_en_US, quote: quote_en_US,
campaignactivity: campaignactivity_en_US, campaignactivity: campaignactivity_en_US,
listlead: listlead_en_US, listlead: listlead_en_US,
opportunitycompetitor: opportunitycompetitor_en_US,
contact: contact_en_US, contact: contact_en_US,
product: product_en_US, product: product_en_US,
competitor: competitor_en_US, competitor: competitor_en_US,
......
...@@ -26,6 +26,7 @@ import fax_zh_CN from '@locale/lanres/entities/fax/fax_zh_CN'; ...@@ -26,6 +26,7 @@ import fax_zh_CN from '@locale/lanres/entities/fax/fax_zh_CN';
import quote_zh_CN from '@locale/lanres/entities/quote/quote_zh_CN'; import quote_zh_CN from '@locale/lanres/entities/quote/quote_zh_CN';
import campaignactivity_zh_CN from '@locale/lanres/entities/campaign-activity/campaign-activity_zh_CN'; import campaignactivity_zh_CN from '@locale/lanres/entities/campaign-activity/campaign-activity_zh_CN';
import listlead_zh_CN from '@locale/lanres/entities/list-lead/list-lead_zh_CN'; import listlead_zh_CN from '@locale/lanres/entities/list-lead/list-lead_zh_CN';
import opportunitycompetitor_zh_CN from '@locale/lanres/entities/opportunity-competitor/opportunity-competitor_zh_CN';
import contact_zh_CN from '@locale/lanres/entities/contact/contact_zh_CN'; import contact_zh_CN from '@locale/lanres/entities/contact/contact_zh_CN';
import product_zh_CN from '@locale/lanres/entities/product/product_zh_CN'; import product_zh_CN from '@locale/lanres/entities/product/product_zh_CN';
import competitor_zh_CN from '@locale/lanres/entities/competitor/competitor_zh_CN'; import competitor_zh_CN from '@locale/lanres/entities/competitor/competitor_zh_CN';
...@@ -164,6 +165,7 @@ export default { ...@@ -164,6 +165,7 @@ export default {
quote: quote_zh_CN, quote: quote_zh_CN,
campaignactivity: campaignactivity_zh_CN, campaignactivity: campaignactivity_zh_CN,
listlead: listlead_zh_CN, listlead: listlead_zh_CN,
opportunitycompetitor: opportunitycompetitor_zh_CN,
contact: contact_zh_CN, contact: contact_zh_CN,
product: product_zh_CN, product: product_zh_CN,
competitor: competitor_zh_CN, competitor: competitor_zh_CN,
......
...@@ -87,6 +87,18 @@ export default { ...@@ -87,6 +87,18 @@ export default {
optionview: { optionview: {
caption: "竞争对手", caption: "竞争对手",
title: '竞争对手选项操作视图', title: '竞争对手选项操作视图',
},
info_abstract: {
caption: "竞争对手",
title: '竞争对手编辑视图',
},
dashboardview: {
caption: "竞争对手",
title: '竞争对手数据看板视图',
},
tabexpview: {
caption: "竞争对手",
title: '竞争对手分页导航视图',
}, },
gridview: { gridview: {
caption: "竞争对手", caption: "竞争对手",
...@@ -123,6 +135,33 @@ export default { ...@@ -123,6 +135,33 @@ export default {
uiactions: { uiactions: {
}, },
}, },
abstractinfo_form: {
details: {
group1: "竞争对手基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "竞争对手",
srfmajortext: "竞争对手名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
competitorname: "竞争对手名称",
websiteurl: "网站",
transactioncurrencyname: "货币",
address1_postalcode: "邮政编码",
address1_country: "国家/地区",
address1_stateorprovince: "省/直辖市/自治区",
address1_city: "市/县",
address1_line1: "街道",
strengths: "优势",
weaknesses: "劣势",
competitorid: "竞争对手",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "competitor基本信息", group1: "competitor基本信息",
......
...@@ -86,6 +86,18 @@ export default { ...@@ -86,6 +86,18 @@ export default {
optionview: { optionview: {
caption: '竞争对手', caption: '竞争对手',
title: '竞争对手选项操作视图', title: '竞争对手选项操作视图',
},
info_abstract: {
caption: '竞争对手',
title: '竞争对手编辑视图',
},
dashboardview: {
caption: '竞争对手',
title: '竞争对手数据看板视图',
},
tabexpview: {
caption: '竞争对手',
title: '竞争对手分页导航视图',
}, },
gridview: { gridview: {
caption: '竞争对手', caption: '竞争对手',
...@@ -122,6 +134,33 @@ export default { ...@@ -122,6 +134,33 @@ export default {
uiactions: { uiactions: {
}, },
}, },
abstractinfo_form: {
details: {
group1: '竞争对手基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '竞争对手',
srfmajortext: '竞争对手名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
competitorname: '竞争对手名称',
websiteurl: '网站',
transactioncurrencyname: '货币',
address1_postalcode: '邮政编码',
address1_country: '国家/地区',
address1_stateorprovince: '省/直辖市/自治区',
address1_city: '市/县',
address1_line1: '街道',
strengths: '优势',
weaknesses: '劣势',
competitorid: '竞争对手',
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: 'competitor基本信息', group1: 'competitor基本信息',
......
export default {
fields: {
createdate: '建立时间',
createman: '建立人',
relationshipsid: '关系标识',
relationshipsname: '关系名称',
relationshipstype: '关系类型',
updatedate: '更新时间',
updateman: '更新人',
entityid: '商机',
entity2id: '竞争对手',
entityname: '商机',
entity2name: '竞争对手',
originatingleadid: '潜在顾客',
originatingleadname: '潜在顾客',
statecode: '状态',
estimatedvalue: '预计收入',
estimatedclosedate: '预计结束日期',
actualvalue: '实际收入',
},
views: {
oppcompgridview: {
caption: "商机对手",
title: '商机对手表格视图',
},
editview: {
caption: "商机对手",
title: '商机对手编辑视图',
},
},
main_form: {
details: {
group1: "商机对手基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "关系标识",
srfmajortext: "关系名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
relationshipsid: "关系标识",
},
uiactions: {
},
},
main_grid: {
columns: {
entityname: "商机",
entity2name: "竞争对手",
originatingleadname: "潜在顾客",
estimatedvalue: "预计收入",
estimatedclosedate: "预计结束日期",
actualvalue: "实际收入",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
oppcompgridviewtoolbar_toolbar: {
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
deuiaction1: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
},
seperator1: {
caption: "",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
};
\ No newline at end of file
export default {
fields: {
createdate: '建立时间',
createman: '建立人',
relationshipsid: '关系标识',
relationshipsname: '关系名称',
relationshipstype: '关系类型',
updatedate: '更新时间',
updateman: '更新人',
entityid: '商机',
entity2id: '竞争对手',
entityname: '商机',
entity2name: '竞争对手',
originatingleadid: '潜在顾客',
originatingleadname: '潜在顾客',
statecode: '状态',
estimatedvalue: '预计收入',
estimatedclosedate: '预计结束日期',
actualvalue: '实际收入',
},
views: {
oppcompgridview: {
caption: '商机对手',
title: '商机对手表格视图',
},
editview: {
caption: '商机对手',
title: '商机对手编辑视图',
},
},
main_form: {
details: {
group1: '商机对手基本信息',
formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '关系标识',
srfmajortext: '关系名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
relationshipsid: '关系标识',
},
uiactions: {
},
},
main_grid: {
columns: {
entityname: '商机',
entity2name: '竞争对手',
originatingleadname: '潜在顾客',
estimatedvalue: '预计收入',
estimatedclosedate: '预计结束日期',
actualvalue: '实际收入',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
},
uiactions: {
},
},
oppcompgridviewtoolbar_toolbar: {
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
tbitem10: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
deuiaction1: {
caption: '删除并关闭',
tip: '删除并关闭',
},
deuiaction2: {
caption: '刷新',
tip: '刷新',
},
seperator1: {
caption: '',
tip: '',
},
tbitem12: {
caption: '关闭',
tip: '关闭',
},
},
};
\ No newline at end of file
...@@ -35,6 +35,7 @@ import './entity/faxs/faxs'; ...@@ -35,6 +35,7 @@ import './entity/faxs/faxs';
import './entity/quotes/quotes'; import './entity/quotes/quotes';
import './entity/campaign-activitys/campaign-activitys'; import './entity/campaign-activitys/campaign-activitys';
import './entity/list-leads/list-leads'; import './entity/list-leads/list-leads';
import './entity/opportunity-competitors/opportunity-competitors';
import './entity/contacts/contacts'; import './entity/contacts/contacts';
import './entity/products/products'; import './entity/products/products';
import './entity/competitors/competitors'; import './entity/competitors/competitors';
......
...@@ -295,6 +295,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -295,6 +295,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IncidentGridView", "viewname": "IncidentGridView",
"viewtag": "3a665de6a3970b95fde436c0fea4b1df" "viewtag": "3a665de6a3970b95fde436c0fea4b1df"
}, },
"competitorinfo_abstract": {
"title": "竞争对手编辑视图",
"caption": "竞争对手",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "CompetitorInfo_Abstract",
"viewtag": "3b3a9dc75518028c6577a3634f853bdc"
},
"contactinfo_abstract": { "contactinfo_abstract": {
"title": "联系人编辑视图", "title": "联系人编辑视图",
"caption": "联系人", "caption": "联系人",
...@@ -431,6 +439,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -431,6 +439,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountGridView", "viewname": "AccountGridView",
"viewtag": "5c7e90ccfaeb49b5bd84ae6c17b479e3" "viewtag": "5c7e90ccfaeb49b5bd84ae6c17b479e3"
}, },
"opportunitycompetitoroppcompgridview": {
"title": "商机对手表格视图",
"caption": "商机对手",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sales",
"viewname": "OpportunityCompetitorOppCompGridView",
"viewtag": "5de2a290b5d079445ad825f6d6418dd6"
},
"opportunitygridview": { "opportunitygridview": {
"title": "商机表格视图", "title": "商机表格视图",
"caption": "商机信息", "caption": "商机信息",
...@@ -735,6 +751,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -735,6 +751,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactEditView", "viewname": "ContactEditView",
"viewtag": "9a96ebf2e57358b3590b9d4479edb77a" "viewtag": "9a96ebf2e57358b3590b9d4479edb77a"
}, },
"competitordashboardview": {
"title": "竞争对手数据看板视图",
"caption": "竞争对手",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Sales",
"viewname": "CompetitorDashboardView",
"viewtag": "9bf80730e83a74615919a0f0907505d4"
},
"ibizlistsummary": { "ibizlistsummary": {
"title": "市场营销列表概览", "title": "市场营销列表概览",
"caption": "市场营销列表概览", "caption": "市场营销列表概览",
...@@ -823,6 +847,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -823,6 +847,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ListContactInner", "viewname": "ListContactInner",
"viewtag": "aaa875342bd9286a39c2d193a150afc4" "viewtag": "aaa875342bd9286a39c2d193a150afc4"
}, },
"competitortabexpview": {
"title": "竞争对手分页导航视图",
"caption": "竞争对手",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Sales",
"viewname": "CompetitorTabExpView",
"viewtag": "ad5b5579442b2a90900b62803059a029"
},
"quoteeditview": { "quoteeditview": {
"title": "报价单编辑视图", "title": "报价单编辑视图",
"caption": "报价单", "caption": "报价单",
...@@ -911,6 +943,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -911,6 +943,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "LeadInfo_Detail", "viewname": "LeadInfo_Detail",
"viewtag": "c0f2529b17654edda5f85a28635e353c" "viewtag": "c0f2529b17654edda5f85a28635e353c"
}, },
"opportunitycompetitoreditview": {
"title": "商机对手编辑视图",
"caption": "商机对手",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "OpportunityCompetitorEditView",
"viewtag": "c420212fae385872d6ae89e3d237350a"
},
"accountinfo_distribution": { "accountinfo_distribution": {
"title": "客户编辑视图", "title": "客户编辑视图",
"caption": "客户", "caption": "客户",
......
<template>
<studio-view-style2 viewName="competitordashboardview" viewTitle="竞争对手数据看板视图" class='deportalview competitor-dashboard-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_dashboard
:viewState="viewState"
:viewparams="viewparams"
:context="JSON.parse(JSON.stringify(context))"
:isEnableCustomized = "false"
name="dashboard"
ref='dashboard'
@load="dashboard_load($event)"
@closeview="closeView($event)">
</view_dashboard>
</studio-view-style2>
</template>
<script lang='tsx'>
import { Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs';
import { UIActionTool, Util } from '@/utils';
import { VueLifeCycleProcessing, DashboardViewBase } from '@/studio-core';
import CompetitorService from '@/service/competitor/competitor-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
/**
* 竞争对手数据看板视图视图基类
*
* @export
* @class CompetitorDashboardViewBase
* @extends {DashboardViewBase}
*/
@Component({})
@VueLifeCycleProcessing()
export default class CompetitorDashboardViewBase extends DashboardViewBase {
/**
* 实体服务对象
*
* @type {CompetitorService}
* @memberof CompetitorDashboardViewBase
*/
protected appEntityService: CompetitorService = new CompetitorService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof CompetitorDashboardViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof CompetitorDashboardViewBase
*/
protected customViewNavContexts: any = {
'REGARDINGOBJECTID': { isRawValue: false, value: 'competitor' },
'REGARDINGOBJECTTYPECODE': { isRawValue: true, value: 'COMPETITOR' }
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof CompetitorDashboardViewBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof CompetitorDashboardViewBase
*/
protected model: any = {
srfCaption: 'entities.competitor.views.dashboardview.caption',
srfTitle: 'entities.competitor.views.dashboardview.title',
srfSubTitle: 'entities.competitor.views.dashboardview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof CompetitorDashboardViewBase
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof CompetitorDashboardViewBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof CompetitorDashboardViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'competitor',
majorPSDEField: 'competitorname',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CompetitorDashboardViewBase
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
</script>
<style lang='less'>
@import './competitor-dashboard-view.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.competitor-dashboard-view {
--competitor-dashboard-view: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CompetitorDashboardViewBase from './competitor-dashboard-view-base.vue';
import view_dashboard from '@widgets/competitor/abstract-info-dashboard/abstract-info-dashboard.vue';
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class CompetitorDashboardView extends CompetitorDashboardViewBase {
}
</script>
\ No newline at end of file
...@@ -577,7 +577,7 @@ export default class CompetitorGridViewBase extends GridViewBase { ...@@ -577,7 +577,7 @@ export default class CompetitorGridViewBase extends GridViewBase {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'competitors', parameterName: 'competitor' }, { pathName: 'competitors', parameterName: 'competitor' },
{ pathName: 'editview', parameterName: 'editview' }, { pathName: 'tabexpview', parameterName: 'tabexpview' },
]; ];
const _this: any = this; const _this: any = this;
const openIndexViewTab = (data: any) => { const openIndexViewTab = (data: any) => {
......
<template>
<studio-view-style2 viewName="competitorinfo_abstract" viewTitle="竞争对手编辑视图" class='deeditview competitor-info-abstract'>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
</template>
<script lang='tsx'>
import { Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs';
import { UIActionTool, Util } from '@/utils';
import { VueLifeCycleProcessing, EditViewBase } from '@/studio-core';
import CompetitorService from '@/service/competitor/competitor-service';
import EditViewEngine from '@engine/view/edit-view-engine';
/**
* 竞争对手编辑视图视图基类
*
* @export
* @class CompetitorInfo_AbstractBase
* @extends {EditViewBase}
*/
@Component({})
@VueLifeCycleProcessing()
export default class CompetitorInfo_AbstractBase extends EditViewBase {
/**
* 实体服务对象
*
* @type {CompetitorService}
* @memberof CompetitorInfo_AbstractBase
*/
protected appEntityService: CompetitorService = new CompetitorService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof CompetitorInfo_AbstractBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof CompetitorInfo_AbstractBase
*/
protected customViewNavContexts: any = {
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof CompetitorInfo_AbstractBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof CompetitorInfo_AbstractBase
*/
protected model: any = {
srfCaption: 'entities.competitor.views.info_abstract.caption',
srfTitle: 'entities.competitor.views.info_abstract.title',
srfSubTitle: 'entities.competitor.views.info_abstract.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof CompetitorInfo_AbstractBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof CompetitorInfo_AbstractBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof CompetitorInfo_AbstractBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'competitor',
majorPSDEField: 'competitorname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CompetitorInfo_AbstractBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CompetitorInfo_AbstractBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CompetitorInfo_AbstractBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
</script>
<style lang='less'>
@import './competitor-info-abstract.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.competitor-info-abstract {
--competitor-info-abstract: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CompetitorInfo_AbstractBase from './competitor-info-abstract-base.vue';
import view_form from '@widgets/competitor/abstract-info-form/abstract-info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class CompetitorInfo_Abstract extends CompetitorInfo_AbstractBase {
}
</script>
\ No newline at end of file
<template>
<studio-view-style2 viewName="competitortabexpview" viewTitle="竞争对手分页导航视图" class='detabexpview competitor-tab-exp-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
name="tabexppanel"
ref='tabexppanel'
@closeview="closeView($event)">
</view_tabexppanel>
</studio-view-style2>
</template>
<script lang='tsx'>
import { Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs';
import { UIActionTool, Util } from '@/utils';
import { VueLifeCycleProcessing, TabExpViewBase } from '@/studio-core';
import CompetitorService from '@/service/competitor/competitor-service';
import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
/**
* 竞争对手分页导航视图视图基类
*
* @export
* @class CompetitorTabExpViewBase
* @extends {TabExpViewBase}
*/
@Component({})
@VueLifeCycleProcessing()
export default class CompetitorTabExpViewBase extends TabExpViewBase {
/**
* 实体服务对象
*
* @type {CompetitorService}
* @memberof CompetitorTabExpViewBase
*/
protected appEntityService: CompetitorService = new CompetitorService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof CompetitorTabExpViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof CompetitorTabExpViewBase
*/
protected customViewNavContexts: any = {
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof CompetitorTabExpViewBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof CompetitorTabExpViewBase
*/
protected model: any = {
srfCaption: 'entities.competitor.views.tabexpview.caption',
srfTitle: 'entities.competitor.views.tabexpview.title',
srfSubTitle: 'entities.competitor.views.tabexpview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof CompetitorTabExpViewBase
*/
protected containerModel: any = {
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof CompetitorTabExpViewBase
*/
public engine: TabExpViewEngine = new TabExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof CompetitorTabExpViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
keyPSDEField: 'competitor',
majorPSDEField: 'competitorname',
isLoadDefault: true,
});
}
/**
* 加载模型
*
* @protected
* @memberof CompetitorTabExpViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context.competitor){
this.appEntityService.getDataInfo(JSON.parse(JSON.stringify(this.context)),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if (_data.competitorname) {
Object.assign(this.model, { dataInfo: _data.competitorname });
if (this.$tabPageExp) {
this.$tabPageExp.setCurPageCaption(this.model.srfTitle, this.model.srfTitle, this.model.dataInfo);
}
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
}
})
}
}
}
</script>
<style lang='less'>
@import './competitor-tab-exp-view.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.competitor-tab-exp-view {
--competitor-tab-exp-view: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CompetitorTabExpViewBase from './competitor-tab-exp-view-base.vue';
import view_tabexppanel from '@widgets/competitor/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel.vue';
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class CompetitorTabExpView extends CompetitorTabExpViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.opportunity-competitor-edit-view {
--opportunity-competitor-edit-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import OpportunityCompetitorEditViewBase from './opportunity-competitor-edit-view-base.vue';
import view_form from '@widgets/opportunity-competitor/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class OpportunityCompetitorEditView extends OpportunityCompetitorEditViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.opportunity-competitor-opp-comp-grid-view {
--opportunity-competitor-opp-comp-grid-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import OpportunityCompetitorOppCompGridViewBase from './opportunity-competitor-opp-comp-grid-view-base.vue';
import view_grid from '@widgets/opportunity-competitor/main-grid/main-grid.vue';
import view_searchform from '@widgets/opportunity-competitor/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class OpportunityCompetitorOppCompGridView extends OpportunityCompetitorOppCompGridViewBase {
}
</script>
\ No newline at end of file
...@@ -12,6 +12,7 @@ export const PageComponents = { ...@@ -12,6 +12,7 @@ export const PageComponents = {
Vue.component('task-quick-create', () => import('@pages/base/task-quick-create/task-quick-create.vue')); Vue.component('task-quick-create', () => import('@pages/base/task-quick-create/task-quick-create.vue'));
Vue.component('opportunity-option-view', () => import('@pages/sales/opportunity-option-view/opportunity-option-view.vue')); Vue.component('opportunity-option-view', () => import('@pages/sales/opportunity-option-view/opportunity-option-view.vue'));
Vue.component('opportunity-info-product', () => import('@pages/sales/opportunity-info-product/opportunity-info-product.vue')); Vue.component('opportunity-info-product', () => import('@pages/sales/opportunity-info-product/opportunity-info-product.vue'));
Vue.component('opportunity-competitor-opp-comp-grid-view', () => import('@pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.vue'));
Vue.component('contact-info-person', () => import('@pages/base/contact-info-person/contact-info-person.vue')); Vue.component('contact-info-person', () => import('@pages/base/contact-info-person/contact-info-person.vue'));
Vue.component('campaign-info-schedule', () => import('@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue')); Vue.component('campaign-info-schedule', () => import('@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue'));
Vue.component('opportunity-grid-view', () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue')); Vue.component('opportunity-grid-view', () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'));
...@@ -23,6 +24,7 @@ export const PageComponents = { ...@@ -23,6 +24,7 @@ export const PageComponents = {
Vue.component('goal-grid-view', () => import('@pages/sales/goal-grid-view/goal-grid-view.vue')); Vue.component('goal-grid-view', () => import('@pages/sales/goal-grid-view/goal-grid-view.vue'));
Vue.component('account-grid-view', () => import('@pages/base/account-grid-view/account-grid-view.vue')); Vue.component('account-grid-view', () => import('@pages/base/account-grid-view/account-grid-view.vue'));
Vue.component('invoice-grid-view', () => import('@pages/finance/invoice-grid-view/invoice-grid-view.vue')); Vue.component('invoice-grid-view', () => import('@pages/finance/invoice-grid-view/invoice-grid-view.vue'));
Vue.component('competitor-dashboard-view', () => import('@pages/sales/competitor-dashboard-view/competitor-dashboard-view.vue'));
Vue.component('ibiz-list-grid-view', () => import('@pages/marketing/ibiz-list-grid-view/ibiz-list-grid-view.vue')); Vue.component('ibiz-list-grid-view', () => import('@pages/marketing/ibiz-list-grid-view/ibiz-list-grid-view.vue'));
Vue.component('product-grid-view', () => import('@pages/product/product-grid-view/product-grid-view.vue')); Vue.component('product-grid-view', () => import('@pages/product/product-grid-view/product-grid-view.vue'));
Vue.component('ibiz-list-info-abstract', () => import('@pages/marketing/ibiz-list-info-abstract/ibiz-list-info-abstract.vue')); Vue.component('ibiz-list-info-abstract', () => import('@pages/marketing/ibiz-list-info-abstract/ibiz-list-info-abstract.vue'));
...@@ -41,6 +43,7 @@ export const PageComponents = { ...@@ -41,6 +43,7 @@ export const PageComponents = {
Vue.component('campaign-activity-edit-view', () => import('@pages/marketing/campaign-activity-edit-view/campaign-activity-edit-view.vue')); Vue.component('campaign-activity-edit-view', () => import('@pages/marketing/campaign-activity-edit-view/campaign-activity-edit-view.vue'));
Vue.component('contact-quick-create', () => import('@pages/base/contact-quick-create/contact-quick-create.vue')); Vue.component('contact-quick-create', () => import('@pages/base/contact-quick-create/contact-quick-create.vue'));
Vue.component('lead-info-market', () => import('@pages/sales/lead-info-market/lead-info-market.vue')); Vue.component('lead-info-market', () => import('@pages/sales/lead-info-market/lead-info-market.vue'));
Vue.component('competitor-info-abstract', () => import('@pages/sales/competitor-info-abstract/competitor-info-abstract.vue'));
Vue.component('phone-call-edit-view', () => import('@pages/base/phone-call-edit-view/phone-call-edit-view.vue')); Vue.component('phone-call-edit-view', () => import('@pages/base/phone-call-edit-view/phone-call-edit-view.vue'));
Vue.component('contact-info-address', () => import('@pages/base/contact-info-address/contact-info-address.vue')); Vue.component('contact-info-address', () => import('@pages/base/contact-info-address/contact-info-address.vue'));
Vue.component('lead-quick-create', () => import('@pages/sales/lead-quick-create/lead-quick-create.vue')); Vue.component('lead-quick-create', () => import('@pages/sales/lead-quick-create/lead-quick-create.vue'));
...@@ -61,7 +64,6 @@ export const PageComponents = { ...@@ -61,7 +64,6 @@ export const PageComponents = {
Vue.component('lead-grid-view', () => import('@pages/sales/lead-grid-view/lead-grid-view.vue')); Vue.component('lead-grid-view', () => import('@pages/sales/lead-grid-view/lead-grid-view.vue'));
Vue.component('activity-pointer-edit-view', () => import('@pages/base/activity-pointer-edit-view/activity-pointer-edit-view.vue')); Vue.component('activity-pointer-edit-view', () => import('@pages/base/activity-pointer-edit-view/activity-pointer-edit-view.vue'));
Vue.component('sales-literature-grid-view', () => import('@pages/sales/sales-literature-grid-view/sales-literature-grid-view.vue')); Vue.component('sales-literature-grid-view', () => import('@pages/sales/sales-literature-grid-view/sales-literature-grid-view.vue'));
Vue.component('competitor-edit-view', () => import('@pages/sales/competitor-edit-view/competitor-edit-view.vue'));
Vue.component('product-edit-view', () => import('@pages/product/product-edit-view/product-edit-view.vue')); Vue.component('product-edit-view', () => import('@pages/product/product-edit-view/product-edit-view.vue'));
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue')); Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue')); Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'));
...@@ -89,12 +91,14 @@ export const PageComponents = { ...@@ -89,12 +91,14 @@ export const PageComponents = {
Vue.component('lead-dashboard-view', () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue')); Vue.component('lead-dashboard-view', () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'));
Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue')); Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'));
Vue.component('campaign-list-edit-view', () => import('@pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue')); Vue.component('campaign-list-edit-view', () => import('@pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue'));
Vue.component('competitor-tab-exp-view', () => import('@pages/sales/competitor-tab-exp-view/competitor-tab-exp-view.vue'));
Vue.component('account-pickup-grid-view', () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue')); Vue.component('account-pickup-grid-view', () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue'));
Vue.component('lead-info', () => import('@pages/sales/lead-info/lead-info.vue')); Vue.component('lead-info', () => import('@pages/sales/lead-info/lead-info.vue'));
Vue.component('list-lead-quick-create-by-list', () => import('@pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue')); Vue.component('list-lead-quick-create-by-list', () => import('@pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue'));
Vue.component('account-info', () => import('@pages/base/account-info/account-info.vue')); Vue.component('account-info', () => import('@pages/base/account-info/account-info.vue'));
Vue.component('lead-info-detail', () => import('@pages/sales/lead-info-detail/lead-info-detail.vue')); Vue.component('lead-info-detail', () => import('@pages/sales/lead-info-detail/lead-info-detail.vue'));
Vue.component('account-info-all', () => import('@pages/base/account-info-all/account-info-all.vue')); Vue.component('account-info-all', () => import('@pages/base/account-info-all/account-info-all.vue'));
Vue.component('opportunity-competitor-edit-view', () => import('@pages/sales/opportunity-competitor-edit-view/opportunity-competitor-edit-view.vue'));
Vue.component('activity-pointer-by-parent-key', () => import('@pages/base/activity-pointer-by-parent-key/activity-pointer-by-parent-key.vue')); Vue.component('activity-pointer-by-parent-key', () => import('@pages/base/activity-pointer-by-parent-key/activity-pointer-by-parent-key.vue'));
Vue.component('contact-edit-abstract', () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue')); Vue.component('contact-edit-abstract', () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue'));
Vue.component('list-account-inner', () => import('@pages/marketing/list-account-inner/list-account-inner.vue')); Vue.component('list-account-inner', () => import('@pages/marketing/list-account-inner/list-account-inner.vue'));
......
...@@ -76,8 +76,24 @@ export default class CompetitorServiceBase extends EntityService { ...@@ -76,8 +76,24 @@ export default class CompetitorServiceBase 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 opportunitycompetitorsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_opportunitycompetitors'),'undefined')){
opportunitycompetitorsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_opportunitycompetitors') as any);
if(opportunitycompetitorsData && opportunitycompetitorsData.length && opportunitycompetitorsData.length > 0){
opportunitycompetitorsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.relationshipsid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.opportunitycompetitors = opportunitycompetitorsData;
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/competitors/${context.competitor}`,data,isloading); let res:any = await Http.getInstance().put(`/competitors/${context.competitor}`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_opportunitycompetitors',JSON.stringify(res.data.opportunitycompetitors));
return res; return res;
} }
...@@ -92,8 +108,24 @@ export default class CompetitorServiceBase extends EntityService { ...@@ -92,8 +108,24 @@ export default class CompetitorServiceBase 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 opportunitycompetitorsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_opportunitycompetitors'),'undefined')){
opportunitycompetitorsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_opportunitycompetitors') as any);
if(opportunitycompetitorsData && opportunitycompetitorsData.length && opportunitycompetitorsData.length > 0){
opportunitycompetitorsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.relationshipsid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.opportunitycompetitors = opportunitycompetitorsData;
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/competitors/${context.competitor}/save`,data,isloading); let res:any = await Http.getInstance().post(`/competitors/${context.competitor}/save`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_opportunitycompetitors',JSON.stringify(res.data.opportunitycompetitors));
return res; return res;
} }
...@@ -108,6 +140,7 @@ export default class CompetitorServiceBase extends EntityService { ...@@ -108,6 +140,7 @@ export default class CompetitorServiceBase 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(`/competitors/${context.competitor}`,isloading); let res:any = await Http.getInstance().get(`/competitors/${context.competitor}`,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_opportunitycompetitors',JSON.stringify(res.data.opportunitycompetitors));
return res; return res;
} }
...@@ -123,6 +156,21 @@ export default class CompetitorServiceBase extends EntityService { ...@@ -123,6 +156,21 @@ export default class CompetitorServiceBase 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 opportunitycompetitorsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_opportunitycompetitors'),'undefined')){
opportunitycompetitorsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_opportunitycompetitors') as any);
if(opportunitycompetitorsData && opportunitycompetitorsData.length && opportunitycompetitorsData.length > 0){
opportunitycompetitorsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.relationshipsid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.opportunitycompetitors = opportunitycompetitorsData;
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null; data[this.APPDEKEY] = null;
...@@ -132,6 +180,7 @@ export default class CompetitorServiceBase extends EntityService { ...@@ -132,6 +180,7 @@ export default class CompetitorServiceBase 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(`/competitors`,data,isloading); let res:any = await Http.getInstance().post(`/competitors`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_opportunitycompetitors',JSON.stringify(res.data.opportunitycompetitors));
return res; return res;
} }
...@@ -160,6 +209,7 @@ export default class CompetitorServiceBase extends EntityService { ...@@ -160,6 +209,7 @@ export default class CompetitorServiceBase 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(`/competitors/getdraft`,isloading); let res:any = await Http.getInstance().get(`/competitors/getdraft`,isloading);
res.data.competitor = data.competitor; res.data.competitor = data.competitor;
this.tempStorage.setItem(context.srfsessionkey+'_opportunitycompetitors',JSON.stringify(res.data.opportunitycompetitors));
return res; return res;
} }
......
...@@ -67,6 +67,7 @@ export class EntityServiceRegister { ...@@ -67,6 +67,7 @@ export class EntityServiceRegister {
this.allEntityService.set('quote', () => import('@/service/quote/quote-service')); this.allEntityService.set('quote', () => import('@/service/quote/quote-service'));
this.allEntityService.set('campaignactivity', () => import('@/service/campaign-activity/campaign-activity-service')); this.allEntityService.set('campaignactivity', () => import('@/service/campaign-activity/campaign-activity-service'));
this.allEntityService.set('listlead', () => import('@/service/list-lead/list-lead-service')); this.allEntityService.set('listlead', () => import('@/service/list-lead/list-lead-service'));
this.allEntityService.set('opportunitycompetitor', () => import('@/service/opportunity-competitor/opportunity-competitor-service'));
this.allEntityService.set('contact', () => import('@/service/contact/contact-service')); this.allEntityService.set('contact', () => import('@/service/contact/contact-service'));
this.allEntityService.set('product', () => import('@/service/product/product-service')); this.allEntityService.set('product', () => import('@/service/product/product-service'));
this.allEntityService.set('competitor', () => import('@/service/competitor/competitor-service')); this.allEntityService.set('competitor', () => import('@/service/competitor/competitor-service'));
......
import { Http,Util } from '@/utils';
import OpportunityCompetitorServiceBase from './opportunity-competitor-service-base';
/**
* 商机对手服务对象
*
* @export
* @class OpportunityCompetitorService
* @extends {OpportunityCompetitorServiceBase}
*/
export default class OpportunityCompetitorService extends OpportunityCompetitorServiceBase {
/**
* Creates an instance of OpportunityCompetitorService.
*
* @param {*} [opts={}]
* @memberof OpportunityCompetitorService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -80,6 +80,9 @@ export default class CompetitorUIServiceBase extends UIService { ...@@ -80,6 +80,9 @@ export default class CompetitorUIServiceBase extends UIService {
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'optionview',srfappde:'competitors'}); this.allViewMap.set(':',{viewname:'optionview',srfappde:'competitors'});
this.allViewMap.set(':',{viewname:'info_abstract',srfappde:'competitors'});
this.allViewMap.set(':',{viewname:'dashboardview',srfappde:'competitors'});
this.allViewMap.set(':',{viewname:'tabexpview',srfappde:'competitors'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'competitors'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'competitors'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'competitors'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'competitors'});
} }
......
import OpportunityCompetitorUIServiceBase from './opportunity-competitor-ui-service-base';
/**
* 商机对手UI服务对象
*
* @export
* @class OpportunityCompetitorUIService
*/
export default class OpportunityCompetitorUIService extends OpportunityCompetitorUIServiceBase {
/**
* Creates an instance of OpportunityCompetitorUIService.
*
* @param {*} [opts={}]
* @memberof OpportunityCompetitorUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -67,6 +67,7 @@ export class UIServiceRegister { ...@@ -67,6 +67,7 @@ export class UIServiceRegister {
this.allUIService.set('quote', () => import('@/uiservice/quote/quote-ui-service')); this.allUIService.set('quote', () => import('@/uiservice/quote/quote-ui-service'));
this.allUIService.set('campaignactivity', () => import('@/uiservice/campaign-activity/campaign-activity-ui-service')); this.allUIService.set('campaignactivity', () => import('@/uiservice/campaign-activity/campaign-activity-ui-service'));
this.allUIService.set('listlead', () => import('@/uiservice/list-lead/list-lead-ui-service')); this.allUIService.set('listlead', () => import('@/uiservice/list-lead/list-lead-ui-service'));
this.allUIService.set('opportunitycompetitor', () => import('@/uiservice/opportunity-competitor/opportunity-competitor-ui-service'));
this.allUIService.set('contact', () => import('@/uiservice/contact/contact-ui-service')); this.allUIService.set('contact', () => import('@/uiservice/contact/contact-ui-service'));
this.allUIService.set('product', () => import('@/uiservice/product/product-ui-service')); this.allUIService.set('product', () => import('@/uiservice/product/product-ui-service'));
this.allUIService.set('competitor', () => import('@/uiservice/competitor/competitor-ui-service')); this.allUIService.set('competitor', () => import('@/uiservice/competitor/competitor-ui-service'));
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册