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

lab_gzf 发布系统代码

上级 731b5fa3
...@@ -315,9 +315,12 @@ export default { ...@@ -315,9 +315,12 @@ export default {
lead_edit_datapanel: "编辑头部信息", lead_edit_datapanel: "编辑头部信息",
}, },
}, },
qualification_form: { edit_main_form: {
details: { details: {
group1: "潜在顾客基本信息", group1: "潜在顾客基本信息",
grouppanel1: "公司信息",
grouppanel2: "详细信息",
grouppanel3: "市场营销信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -327,25 +330,36 @@ export default { ...@@ -327,25 +330,36 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
parentcontactname: "识别联系人", subject: "主题",
parentaccountname: "识别客户",
purchasetimeframe: "购买时间范围",
budgetamount: "预算金额",
purchaseprocess: "采购程序",
decisionmaker: "决策者?",
description: "说明",
fullname: "姓名", fullname: "姓名",
jobtitle: "职务",
telephone1: "商务电话",
mobilephone: "移动电话",
emailaddress1: "电子邮件",
companyname: "公司名称", companyname: "公司名称",
parentcontactid: "潜在顾客的上司", websiteurl: "网站",
parentaccountid: "潜在顾客的上级单位", address1_postalcode: "邮政编码",
address1_country: "国家/地区",
address1_stateorprovince: "省/直辖市/自治区",
address1_city: "市/县",
address1_line1: "街道",
industrycode: "行业",
revenue: "年收入",
numberofemployees: "员工数",
transactioncurrencyname: "货币",
campaignname: "源市场活动",
donotsendmm: "市场营销资料",
lastusedincampaign: "上次市场活动日期",
transactioncurrencyid: "货币",
campaignid: "源市场活动",
leadid: "潜在顾客", leadid: "潜在顾客",
}, },
uiactions: { uiactions: {
}, },
}, },
quickcreate_form: { qualification_form: {
details: { details: {
group1: "联系人信息", group1: "潜在顾客基本信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -355,26 +369,25 @@ export default { ...@@ -355,26 +369,25 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
subject: "主题", parentcontactname: "识别联系人",
budgetamount: "预算金额", parentaccountname: "识别客户",
purchasetimeframe: "购买时间范围", purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源", budgetamount: "预算金额",
purchaseprocess: "采购程序",
decisionmaker: "决策者?",
description: "说明",
fullname: "姓名", fullname: "姓名",
companyname: "公司名称", companyname: "公司名称",
jobtitle: "职务", parentcontactid: "潜在顾客的上司",
mobilephone: "移动电话", parentaccountid: "潜在顾客的上级单位",
emailaddress1: "电子邮件",
leadid: "潜在顾客", leadid: "潜在顾客",
}, },
uiactions: { uiactions: {
}, },
}, },
edit_main_form: { quickcreate_form: {
details: { details: {
group1: "潜在顾客基本信息", group1: "联系人信息",
grouppanel1: "公司信息",
grouppanel2: "详细信息",
grouppanel3: "市场营销信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -385,27 +398,14 @@ export default { ...@@ -385,27 +398,14 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
subject: "主题", subject: "主题",
budgetamount: "预算金额",
purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源",
fullname: "姓名", fullname: "姓名",
companyname: "公司名称",
jobtitle: "职务", jobtitle: "职务",
telephone1: "商务电话",
mobilephone: "移动电话", mobilephone: "移动电话",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
companyname: "公司名称",
websiteurl: "网站",
address1_postalcode: "邮政编码",
address1_country: "国家/地区",
address1_stateorprovince: "省/直辖市/自治区",
address1_city: "市/县",
address1_line1: "街道",
industrycode: "行业",
revenue: "年收入",
numberofemployees: "员工数",
transactioncurrencyname: "货币",
campaignname: "源市场活动",
donotsendmm: "市场营销资料",
lastusedincampaign: "上次市场活动日期",
transactioncurrencyid: "货币",
campaignid: "源市场活动",
leadid: "潜在顾客", leadid: "潜在顾客",
}, },
uiactions: { uiactions: {
...@@ -498,7 +498,33 @@ export default { ...@@ -498,7 +498,33 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem1: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
infotoolbar_toolbar: { infotoolbar_toolbar: {
tbitem1_editmain: {
caption: "主信息编辑",
tip: "主信息编辑",
},
tbitem1_remove_sep: {
caption: "",
tip: "",
},
tbitem1_remove: {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator4: {
caption: "",
tip: "",
},
tbitem17_qualification: { tbitem17_qualification: {
caption: "授予资格", caption: "授予资格",
tip: "授予资格", tip: "授予资格",
...@@ -620,16 +646,6 @@ export default { ...@@ -620,16 +646,6 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem1: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
ongridviewtoolbar_toolbar: { ongridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
......
...@@ -314,9 +314,12 @@ export default { ...@@ -314,9 +314,12 @@ export default {
lead_edit_datapanel: "编辑头部信息", lead_edit_datapanel: "编辑头部信息",
}, },
}, },
qualification_form: { edit_main_form: {
details: { details: {
group1: "潜在顾客基本信息", group1: "潜在顾客基本信息",
grouppanel1: "公司信息",
grouppanel2: "详细信息",
grouppanel3: "市场营销信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -326,25 +329,36 @@ export default { ...@@ -326,25 +329,36 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
parentcontactname: "识别联系人", subject: "主题",
parentaccountname: "识别客户",
purchasetimeframe: "购买时间范围",
budgetamount: "预算金额",
purchaseprocess: "采购程序",
decisionmaker: "决策者?",
description: "说明",
fullname: "姓名", fullname: "姓名",
jobtitle: "职务",
telephone1: "商务电话",
mobilephone: "移动电话",
emailaddress1: "电子邮件",
companyname: "公司名称", companyname: "公司名称",
parentcontactid: "潜在顾客的上司", websiteurl: "网站",
parentaccountid: "潜在顾客的上级单位", address1_postalcode: "邮政编码",
address1_country: "国家/地区",
address1_stateorprovince: "省/直辖市/自治区",
address1_city: "市/县",
address1_line1: "街道",
industrycode: "行业",
revenue: "年收入",
numberofemployees: "员工数",
transactioncurrencyname: "货币",
campaignname: "源市场活动",
donotsendmm: "市场营销资料",
lastusedincampaign: "上次市场活动日期",
transactioncurrencyid: "货币",
campaignid: "源市场活动",
leadid: "潜在顾客", leadid: "潜在顾客",
}, },
uiactions: { uiactions: {
}, },
}, },
quickcreate_form: { qualification_form: {
details: { details: {
group1: "联系人信息", group1: "潜在顾客基本信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -354,26 +368,25 @@ export default { ...@@ -354,26 +368,25 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
subject: "主题", parentcontactname: "识别联系人",
budgetamount: "预算金额", parentaccountname: "识别客户",
purchasetimeframe: "购买时间范围", purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源", budgetamount: "预算金额",
purchaseprocess: "采购程序",
decisionmaker: "决策者?",
description: "说明",
fullname: "姓名", fullname: "姓名",
companyname: "公司名称", companyname: "公司名称",
jobtitle: "职务", parentcontactid: "潜在顾客的上司",
mobilephone: "移动电话", parentaccountid: "潜在顾客的上级单位",
emailaddress1: "电子邮件",
leadid: "潜在顾客", leadid: "潜在顾客",
}, },
uiactions: { uiactions: {
}, },
}, },
edit_main_form: { quickcreate_form: {
details: { details: {
group1: "潜在顾客基本信息", group1: "联系人信息",
grouppanel1: "公司信息",
grouppanel2: "详细信息",
grouppanel3: "市场营销信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -384,27 +397,14 @@ export default { ...@@ -384,27 +397,14 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
subject: "主题", subject: "主题",
budgetamount: "预算金额",
purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源",
fullname: "姓名", fullname: "姓名",
companyname: "公司名称",
jobtitle: "职务", jobtitle: "职务",
telephone1: "商务电话",
mobilephone: "移动电话", mobilephone: "移动电话",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
companyname: "公司名称",
websiteurl: "网站",
address1_postalcode: "邮政编码",
address1_country: "国家/地区",
address1_stateorprovince: "省/直辖市/自治区",
address1_city: "市/县",
address1_line1: "街道",
industrycode: "行业",
revenue: "年收入",
numberofemployees: "员工数",
transactioncurrencyname: "货币",
campaignname: "源市场活动",
donotsendmm: "市场营销资料",
lastusedincampaign: "上次市场活动日期",
transactioncurrencyid: "货币",
campaignid: "源市场活动",
leadid: "潜在顾客", leadid: "潜在顾客",
}, },
uiactions: { uiactions: {
...@@ -497,7 +497,33 @@ export default { ...@@ -497,7 +497,33 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem1: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
infotoolbar_toolbar: { infotoolbar_toolbar: {
tbitem1_editmain: {
caption: "主信息编辑",
tip: "主信息编辑",
},
tbitem1_remove_sep: {
caption: "",
tip: "",
},
tbitem1_remove: {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator4: {
caption: "",
tip: "",
},
tbitem17_qualification: { tbitem17_qualification: {
caption: "授予资格", caption: "授予资格",
tip: "授予资格", tip: "授予资格",
...@@ -619,16 +645,6 @@ export default { ...@@ -619,16 +645,6 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem1: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
ongridviewtoolbar_toolbar: { ongridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
......
...@@ -121,6 +121,7 @@ export const PageComponents = { ...@@ -121,6 +121,7 @@ export const PageComponents = {
Vue.component('account-usable-grid-view', () => import('@pages/base/account-usable-grid-view/account-usable-grid-view.vue')); Vue.component('account-usable-grid-view', () => import('@pages/base/account-usable-grid-view/account-usable-grid-view.vue'));
Vue.component('sales-order-info-soview', () => import('@pages/sales/sales-order-info-soview/sales-order-info-soview.vue')); Vue.component('sales-order-info-soview', () => import('@pages/sales/sales-order-info-soview/sales-order-info-soview.vue'));
Vue.component('quote-state-tab-view', () => import('@pages/sales/quote-state-tab-view/quote-state-tab-view.vue')); Vue.component('quote-state-tab-view', () => import('@pages/sales/quote-state-tab-view/quote-state-tab-view.vue'));
Vue.component('campaign-pickup-view', () => import('@pages/marketing/campaign-pickup-view/campaign-pickup-view.vue'));
Vue.component('sales-order-summary-view', () => import('@pages/sales/sales-order-summary-view/sales-order-summary-view.vue')); Vue.component('sales-order-summary-view', () => import('@pages/sales/sales-order-summary-view/sales-order-summary-view.vue'));
Vue.component('quote-detail-edit-view', () => import('@pages/sales/quote-detail-edit-view/quote-detail-edit-view.vue')); Vue.component('quote-detail-edit-view', () => import('@pages/sales/quote-detail-edit-view/quote-detail-edit-view.vue'));
Vue.component('product-stop-grid-view', () => import('@pages/product/product-stop-grid-view/product-stop-grid-view.vue')); Vue.component('product-stop-grid-view', () => import('@pages/product/product-stop-grid-view/product-stop-grid-view.vue'));
...@@ -178,6 +179,7 @@ export const PageComponents = { ...@@ -178,6 +179,7 @@ export const PageComponents = {
Vue.component('uom-edit-view', () => import('@pages/base/uom-edit-view/uom-edit-view.vue')); Vue.component('uom-edit-view', () => import('@pages/base/uom-edit-view/uom-edit-view.vue'));
Vue.component('metric-pickup-view', () => import('@pages/base/metric-pickup-view/metric-pickup-view.vue')); Vue.component('metric-pickup-view', () => import('@pages/base/metric-pickup-view/metric-pickup-view.vue'));
Vue.component('lead-status-tab-view', () => import('@pages/sales/lead-status-tab-view/lead-status-tab-view.vue')); Vue.component('lead-status-tab-view', () => import('@pages/sales/lead-status-tab-view/lead-status-tab-view.vue'));
Vue.component('lead-edit-view', () => import('@pages/sales/lead-edit-view/lead-edit-view.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'));
Vue.component('sales-order-quick-create-view', () => import('@pages/sales/sales-order-quick-create-view/sales-order-quick-create-view.vue')); Vue.component('sales-order-quick-create-view', () => import('@pages/sales/sales-order-quick-create-view/sales-order-quick-create-view.vue'));
Vue.component('competitor-pickup-grid-view', () => import('@pages/sales/competitor-pickup-grid-view/competitor-pickup-grid-view.vue')); Vue.component('competitor-pickup-grid-view', () => import('@pages/sales/competitor-pickup-grid-view/competitor-pickup-grid-view.vue'));
...@@ -222,6 +224,7 @@ export const PageComponents = { ...@@ -222,6 +224,7 @@ export const PageComponents = {
Vue.component('account-tree-grid-ex-view', () => import('@pages/base/account-tree-grid-ex-view/account-tree-grid-ex-view.vue')); Vue.component('account-tree-grid-ex-view', () => import('@pages/base/account-tree-grid-ex-view/account-tree-grid-ex-view.vue'));
Vue.component('incident-by-parent-key', () => import('@pages/service/incident-by-parent-key/incident-by-parent-key.vue')); Vue.component('incident-by-parent-key', () => import('@pages/service/incident-by-parent-key/incident-by-parent-key.vue'));
Vue.component('lead-qualification', () => import('@pages/sales/lead-qualification/lead-qualification.vue')); Vue.component('lead-qualification', () => import('@pages/sales/lead-qualification/lead-qualification.vue'));
Vue.component('campaign-pickup-grid-view', () => import('@pages/marketing/campaign-pickup-grid-view/campaign-pickup-grid-view.vue'));
Vue.component('account-status-tab-view', () => import('@pages/base/account-status-tab-view/account-status-tab-view.vue')); Vue.component('account-status-tab-view', () => import('@pages/base/account-status-tab-view/account-status-tab-view.vue'));
Vue.component('sales-literature-item-grid-view', () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue')); Vue.component('sales-literature-item-grid-view', () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue'));
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'));
......
...@@ -5163,6 +5163,20 @@ const router = new Router({ ...@@ -5163,6 +5163,20 @@ const router = new Router({
}, },
component: () => import('@pages/sales/quote-state-tab-view/quote-state-tab-view.vue'), component: () => import('@pages/sales/quote-state-tab-view/quote-state-tab-view.vue'),
}, },
{
path: 'campaigns/:campaign?/pickupview/:pickupview?',
meta: {
caption: 'entities.campaign.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'campaigns', parameterName: 'campaign' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/campaign-pickup-view/campaign-pickup-view.vue'),
},
{ {
path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/quotes/:quote?/salesorders/:salesorder?/summaryview/:summaryview?', path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/quotes/:quote?/salesorders/:salesorder?/summaryview/:summaryview?',
meta: { meta: {
...@@ -7543,6 +7557,81 @@ const router = new Router({ ...@@ -7543,6 +7557,81 @@ const router = new Router({
}, },
component: () => import('@pages/sales/lead-status-tab-view/lead-status-tab-view.vue'), component: () => import('@pages/sales/lead-status-tab-view/lead-status-tab-view.vue'),
}, },
{
path: 'accounts/:account?/contacts/:contact?/leads/:lead?/editview/:editview?',
meta: {
caption: 'entities.lead.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/lead-edit-view/lead-edit-view.vue'),
},
{
path: 'contacts/:contact?/leads/:lead?/editview/:editview?',
meta: {
caption: 'entities.lead.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/lead-edit-view/lead-edit-view.vue'),
},
{
path: 'campaigns/:campaign?/leads/:lead?/editview/:editview?',
meta: {
caption: 'entities.lead.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'campaigns', parameterName: 'campaign' },
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/lead-edit-view/lead-edit-view.vue'),
},
{
path: 'accounts/:account?/leads/:lead?/editview/:editview?',
meta: {
caption: 'entities.lead.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/lead-edit-view/lead-edit-view.vue'),
},
{
path: 'leads/:lead?/editview/:editview?',
meta: {
caption: 'entities.lead.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/lead-edit-view/lead-edit-view.vue'),
},
{ {
path: 'accounts/:account?/contacts/:contact?/leads/:lead?/quickcreate/:quickcreate?', path: 'accounts/:account?/contacts/:contact?/leads/:lead?/quickcreate/:quickcreate?',
meta: { meta: {
...@@ -9136,6 +9225,20 @@ const router = new Router({ ...@@ -9136,6 +9225,20 @@ const router = new Router({
}, },
component: () => import('@pages/sales/competitor-sales-literature-sal-lit-comp-grid-view/competitor-sales-literature-sal-lit-comp-grid-view.vue'), component: () => import('@pages/sales/competitor-sales-literature-sal-lit-comp-grid-view/competitor-sales-literature-sal-lit-comp-grid-view.vue'),
}, },
{
path: 'campaigns/:campaign?/pickupgridview/:pickupgridview?',
meta: {
caption: 'entities.campaign.views.pickupgridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'campaigns', parameterName: 'campaign' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/campaign-pickup-grid-view/campaign-pickup-grid-view.vue'),
},
{ {
path: 'accounts/:account?/statustabview/:statustabview?', path: 'accounts/:account?/statustabview/:statustabview?',
meta: { meta: {
......
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import CampaignService from '@/service/campaign/campaign-service';
import CampaignAuthService from '@/authservice/campaign/campaign-auth-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
import CampaignUIService from '@/uiservice/campaign/campaign-ui-service';
/**
* 市场活动选择表格视图视图基类
*
* @export
* @class CampaignPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class CampaignPickupGridViewBase extends PickupGridViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof CampaignPickupGridViewBase
*/
protected appDeName: string = 'campaign';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof CampaignPickupGridViewBase
*/
protected appDeKey: string = 'campaignid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof CampaignPickupGridViewBase
*/
protected appDeMajor: string = 'campaignname';
/**
* 实体服务对象
*
* @type {CampaignService}
* @memberof CampaignPickupGridViewBase
*/
protected appEntityService: CampaignService = new CampaignService;
/**
* 实体权限服务对象
*
* @type CampaignUIService
* @memberof CampaignPickupGridViewBase
*/
public appUIService: CampaignUIService = new CampaignUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof CampaignPickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof CampaignPickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.campaign.views.pickupgridview.caption',
srfTitle: 'entities.campaign.views.pickupgridview.title',
srfSubTitle: 'entities.campaign.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof CampaignPickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'dc5bae3226c2f115b2f040b61c1fd876';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof CampaignPickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof CampaignPickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'campaign',
majorPSDEField: 'campaignname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof CampaignPickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="campaignpickupgridview" viewTitle="市场活动选择表格视图" class='depickupgridview campaign-pickup-grid-view'>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:selectedData="selectedData"
:showBusyIndicator="true"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./campaign-pickup-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { CampaignPickupGridViewBase } from './campaign-pickup-grid-view-base';
import view_grid from '@widgets/campaign/main-grid/main-grid.vue';
import view_searchform from '@widgets/campaign/default-searchform/default-searchform.vue';
/**
* 市场活动选择表格视图视图
*
* @export
* @class CampaignPickupGridView
* @extends {CampaignPickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class CampaignPickupGridView extends CampaignPickupGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import CampaignService from '@/service/campaign/campaign-service';
import CampaignAuthService from '@/authservice/campaign/campaign-auth-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
import CampaignUIService from '@/uiservice/campaign/campaign-ui-service';
/**
* 市场活动数据选择视图视图基类
*
* @export
* @class CampaignPickupViewBase
* @extends {PickupViewBase}
*/
export class CampaignPickupViewBase extends PickupViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof CampaignPickupViewBase
*/
protected appDeName: string = 'campaign';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof CampaignPickupViewBase
*/
protected appDeKey: string = 'campaignid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof CampaignPickupViewBase
*/
protected appDeMajor: string = 'campaignname';
/**
* 实体服务对象
*
* @type {CampaignService}
* @memberof CampaignPickupViewBase
*/
protected appEntityService: CampaignService = new CampaignService;
/**
* 实体权限服务对象
*
* @type CampaignUIService
* @memberof CampaignPickupViewBase
*/
public appUIService: CampaignUIService = new CampaignUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof CampaignPickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof CampaignPickupViewBase
*/
protected model: any = {
srfCaption: 'entities.campaign.views.pickupview.caption',
srfTitle: 'entities.campaign.views.pickupview.title',
srfSubTitle: 'entities.campaign.views.pickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof CampaignPickupViewBase
*/
protected containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '24e3f383fc03eebe06a2d7fb26b2d2e5';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof CampaignPickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof CampaignPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'campaign',
majorPSDEField: 'campaignname',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="campaignpickupview" viewTitle="市场活动数据选择视图" class='depickupview campaign-pickup-view'>
<div class="content-container pickup-view">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<template slot="footer">
<div v-if="isShowButton" :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk.apply(_self, arguments)">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{this.containerModel.view_cancelbtn.text}}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./campaign-pickup-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { CampaignPickupViewBase } from './campaign-pickup-view-base';
import view_pickupviewpanel from '@widgets/campaign/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 市场活动数据选择视图视图
*
* @export
* @class CampaignPickupView
* @extends {CampaignPickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
}
})
@VueLifeCycleProcessing()
export default class CampaignPickupView extends CampaignPickupViewBase { }
</script>
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import LeadService from '@/service/lead/lead-service';
import LeadAuthService from '@/authservice/lead/lead-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import LeadUIService from '@/uiservice/lead/lead-ui-service';
/**
* 潜在顾客编辑视图基类
*
* @export
* @class LeadEditViewBase
* @extends {EditViewBase}
*/
export class LeadEditViewBase extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof LeadEditViewBase
*/
protected appDeName: string = 'lead';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof LeadEditViewBase
*/
protected appDeKey: string = 'leadid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof LeadEditViewBase
*/
protected appDeMajor: string = 'fullname';
/**
* 实体服务对象
*
* @type {LeadService}
* @memberof LeadEditViewBase
*/
protected appEntityService: LeadService = new LeadService;
/**
* 实体权限服务对象
*
* @type LeadUIService
* @memberof LeadEditViewBase
*/
public appUIService: LeadUIService = new LeadUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof LeadEditViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof LeadEditViewBase
*/
protected model: any = {
srfCaption: 'entities.lead.views.editview.caption',
srfTitle: 'entities.lead.views.editview.title',
srfSubTitle: 'entities.lead.views.editview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof LeadEditViewBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof LeadEditView
*/
public toolBarModels: any = {
tbitem1: { name: 'tbitem1', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
tbitem2: { name: 'tbitem2', caption: '关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Exit', target: '', class: '' } },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '2e17cb1d009dd49ac529319ac15319cd';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof LeadEditViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof LeadEditViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'lead',
majorPSDEField: 'fullname',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof LeadEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof LeadEditViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof LeadEditViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof LeadEditViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Lead");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Exit(datas, contextJO,paramJO, $event, xData,this,"Lead");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof LeadEditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof LeadEditViewBase
*/
public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args);
if(window.parent){
window.parent.postMessage([{ ...args }],'*');
}
}
}
\ No newline at end of file
<studio-view-style2 viewName="leadeditview" viewTitle="潜在顾客编辑" class='deeditview lead-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<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>
\ No newline at end of file
<template src="./lead-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { LeadEditViewBase } from './lead-edit-view-base';
import view_form from '@widgets/lead/edit-main-form/edit-main-form.vue';
/**
* 潜在顾客编辑视图
*
* @export
* @class LeadEditView
* @extends {LeadEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class LeadEditView extends LeadEditViewBase { }
</script>
...@@ -112,6 +112,12 @@ export class LeadInfoBase extends TabExpViewBase { ...@@ -112,6 +112,12 @@ export class LeadInfoBase extends TabExpViewBase {
* @memberof LeadInfo * @memberof LeadInfo
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem1_editmain: { name: 'tbitem1_editmain', caption: '主信息编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '主信息编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'EditMain', target: 'SINGLEKEY', class: '' } },
tbitem1_remove_sep: { name: 'tbitem1_remove_sep', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem1_remove: { name: 'tbitem1_remove', caption: '删除并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除并关闭', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'SINGLEKEY', class: '' } },
seperator4: { name: 'seperator4', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem17_qualification: { name: 'tbitem17_qualification', caption: '授予资格', 'isShowCaption': true, 'isShowIcon': true, tooltip: '授予资格', iconcls: 'fa fa-check', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Qualification', target: 'SINGLEKEY', class: '' } }, tbitem17_qualification: { name: 'tbitem17_qualification', caption: '授予资格', 'isShowCaption': true, 'isShowIcon': true, tooltip: '授予资格', iconcls: 'fa fa-check', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Qualification', target: 'SINGLEKEY', class: '' } },
tbitem17_disqualification_sep: { name: 'tbitem17_disqualification_sep', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem17_disqualification_sep: { name: 'tbitem17_disqualification_sep', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
...@@ -188,6 +194,12 @@ export class LeadInfoBase extends TabExpViewBase { ...@@ -188,6 +194,12 @@ export class LeadInfoBase extends TabExpViewBase {
* @memberof LeadInfoBase * @memberof LeadInfoBase
*/ */
public toolbar_click($event: any, $event2?: any): void { public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1_editmain')) {
this.toolbar_tbitem1_editmain_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem1_remove')) {
this.toolbar_tbitem1_remove_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem17_qualification')) { if (Object.is($event.tag, 'tbitem17_qualification')) {
this.toolbar_tbitem17_qualification_click(null, '', $event2); this.toolbar_tbitem17_qualification_click(null, '', $event2);
} }
...@@ -205,6 +217,62 @@ export class LeadInfoBase extends TabExpViewBase { ...@@ -205,6 +217,62 @@ export class LeadInfoBase extends TabExpViewBase {
} }
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_editmain_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:LeadUIService = new LeadUIService();
curUIService.Lead_EditMain(datas,contextJO, paramJO, $event, xData,this,"Lead");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_remove_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:LeadUIService = new LeadUIService();
curUIService.Lead_Remove(datas,contextJO, paramJO, $event, xData,this,"Lead");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
......
...@@ -502,6 +502,16 @@ export const viewstate: any = { ...@@ -502,6 +502,16 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '24e3f383fc03eebe06a2d7fb26b2d2e5',
viewmodule: 'Marketing',
viewname: 'CampaignPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'dc5bae3226c2f115b2f040b61c1fd876',
],
},
{ {
viewtag: '25bf5f8c2ebd1ce2be6d06717ed08a96', viewtag: '25bf5f8c2ebd1ce2be6d06717ed08a96',
viewmodule: 'Base', viewmodule: 'Base',
...@@ -630,6 +640,17 @@ export const viewstate: any = { ...@@ -630,6 +640,17 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '2e17cb1d009dd49ac529319ac15319cd',
viewmodule: 'Sales',
viewname: 'LeadEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'24e3f383fc03eebe06a2d7fb26b2d2e5',
'da3f8c1f20f440f3df54d6c13a8de586',
],
},
{ {
viewtag: '2e9c7792c3a728896ca8902634f71983', viewtag: '2e9c7792c3a728896ca8902634f71983',
viewmodule: 'Base', viewmodule: 'Base',
...@@ -751,6 +772,7 @@ export const viewstate: any = { ...@@ -751,6 +772,7 @@ export const viewstate: any = {
'2e9c7792c3a728896ca8902634f71983', '2e9c7792c3a728896ca8902634f71983',
'bae77557d2f7a7852b634dc5d5a93435', 'bae77557d2f7a7852b634dc5d5a93435',
'b5ff54b0672efd3222a44d81f4e7362e', 'b5ff54b0672efd3222a44d81f4e7362e',
'2e17cb1d009dd49ac529319ac15319cd',
'44f1244c0a9e78981a151dc7f247e867', '44f1244c0a9e78981a151dc7f247e867',
'fcdb236b65d78c4a8ae64e74f9483a63', 'fcdb236b65d78c4a8ae64e74f9483a63',
], ],
...@@ -2661,6 +2683,15 @@ export const viewstate: any = { ...@@ -2661,6 +2683,15 @@ export const viewstate: any = {
'6d8a2615030eed5779caea69f7f001aa', '6d8a2615030eed5779caea69f7f001aa',
], ],
}, },
{
viewtag: 'dc5bae3226c2f115b2f040b61c1fd876',
viewmodule: 'Marketing',
viewname: 'CampaignPickupGridView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: 'dd0334d4dac239bca7b007cb50d8b640', viewtag: 'dd0334d4dac239bca7b007cb50d8b640',
viewmodule: 'Sales', viewmodule: 'Sales',
......
...@@ -265,6 +265,74 @@ export default class LeadUIServiceBase extends UIService { ...@@ -265,6 +265,74 @@ export default class LeadUIServiceBase extends UIService {
openDrawer(view, data); openDrawer(view, data);
} }
/**
* 删除并关闭
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async Lead_Remove(args: any[],context:any = {}, params:any = {}, $event?: any, xData?: any,actionContext?: any,srfParentDeName?:string){
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { lead: '%lead%' });
Object.assign(params, { leadid: '%lead%' });
Object.assign(params, { fullname: '%fullname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
// 直接调实体服务需要转换的数据
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
actionContext.closeView(null);
const backend = () => {
const curService:LeadService = new LeadService();
curService.Remove(context,data, true).then((response: any) => {
if (!response || response.status !== 200) {
actionContext.$Notice.error({ title: '错误', desc: response.message });
return;
}
actionContext.$Notice.success({ title: '成功', desc: '删除并关闭成功!' });
const _this: any = actionContext;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return response;
}).catch((response: any) => {
if (!response || !response.status || !response.data) {
actionContext.$Notice.error({ title: '错误', desc: '系统异常!' });
return;
}
if (response.status === 401) {
return;
}
return response;
});
};
backend();
}
/** /**
* 编辑头部信息 * 编辑头部信息
* *
...@@ -401,6 +469,59 @@ export default class LeadUIServiceBase extends UIService { ...@@ -401,6 +469,59 @@ export default class LeadUIServiceBase extends UIService {
backend(); backend();
} }
/**
* 主信息编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async Lead_EditMain(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { lead: '%lead%' });
Object.assign(params, { leadid: '%lead%' });
Object.assign(params, { fullname: '%fullname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
if(context.account && true){
deResParameters = [
{ pathName: 'accounts', parameterName: 'account' },
]
}
const parameters: any[] = [
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'editview', parameterName: 'editview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
}
openIndexViewTab(data);
}
/** /**
* 无法联系 * 无法联系
* *
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import CampaignService from '@/service/campaign/campaign-service';
import PickupViewpickupviewpanelService from './pickup-viewpickupviewpanel-pickupviewpanel-service';
import CampaignUIService from '@/uiservice/campaign/campaign-ui-service';
import PickupViewpickupviewpanelModel from './pickup-viewpickupviewpanel-pickupviewpanel-model';
/**
* pickupviewpanel部件基类
*
* @export
* @class MainControlBase
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
export class PickupViewpickupviewpanelPickupviewpanelBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected controlType: string = 'PICKUPVIEWPANEL';
/**
* 建构部件服务对象
*
* @type {PickupViewpickupviewpanelService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public service: PickupViewpickupviewpanelService = new PickupViewpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {CampaignService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public appEntityService: CampaignService = new CampaignService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected appDeName: string = 'campaign';
/**
* 选中数据字符串
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanel
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PickupViewpickupviewpanel
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public view: any = {
viewname: 'campaign-pickup-grid-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item['campaignname'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(Object.assign(data, this.viewparams));
this.inited = true;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof PickupViewpickupviewpanel
*/
public initNavParam(){
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
/**
* PickupViewpickupviewpanel 部件模型
*
* @export
* @class PickupViewpickupviewpanelModel
*/
export default class PickupViewpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'expectedresponse',
},
{
name: 'typecode',
},
{
name: 'budgetedcost',
},
{
name: 'createdate',
},
{
name: 'totalactualcost',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'importsequencenumber',
},
{
name: 'othercost',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'campaignname',
},
{
name: 'entityimage_url',
},
{
name: 'statecode',
},
{
name: 'template',
},
{
name: 'exchangerate',
},
{
name: 'campaign',
prop: 'campaignid',
},
{
name: 'createman',
},
{
name: 'objective',
},
{
name: 'budgetedcost_base',
},
{
name: 'updateman',
},
{
name: 'expectedrevenue_base',
},
{
name: 'entityimage_timestamp',
},
{
name: 'ownertype',
},
{
name: 'traversedpath',
},
{
name: 'othercost_base',
},
{
name: 'proposedend',
},
{
name: 'versionnumber',
},
{
name: 'entityimage',
},
{
name: 'codename',
},
{
name: 'description',
},
{
name: 'actualend',
},
{
name: 'expectedrevenue',
},
{
name: 'pricelistname',
},
{
name: 'entityimageid',
},
{
name: 'processid',
},
{
name: 'actualstart',
},
{
name: 'updatedate',
},
{
name: 'ownerid',
},
{
name: 'message',
},
{
name: 'ownername',
},
{
name: 'stageid',
},
{
name: 'statuscode',
},
{
name: 'overriddencreatedon',
},
{
name: 'proposedstart',
},
{
name: 'totalactualcost_base',
},
{
name: 'emailaddress',
},
{
name: 'promotioncodename',
},
{
name: 'pricelistid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'currencyname',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* PickupViewpickupviewpanel 部件服务对象
*
* @export
* @class PickupViewpickupviewpanelService
*/
export default class PickupViewpickupviewpanelService extends ControlService {
}
\ No newline at end of file
<div class='pickupviewpanel'>
<component
v-if="inited && view.viewname && !Object.is(view.viewname, '')"
:is="view.viewname"
class="viewcontainer3"
:viewdata="viewdata"
:viewparam="viewparam"
:viewDefaultUsage="false"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
@viewdataschange="onViewDatasChange.apply(_self, arguments)"
@viewdatasactivated="viewDatasActivated.apply(_self, arguments)"
@viewload="onViewLoad.apply(_self, arguments)">
</component>
</div>
\ No newline at end of file
<template src="./pickup-viewpickupviewpanel-pickupviewpanel.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { PickupViewpickupviewpanelPickupviewpanelBase } from './pickup-viewpickupviewpanel-pickupviewpanel-base';
/**
* pickupviewpanel部件
*
* @export
* @class PickupViewpickupviewpanelPickupviewpanel
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class PickupViewpickupviewpanelPickupviewpanel extends PickupViewpickupviewpanelPickupviewpanelBase { }
</script>
/**
* Edit_Main 部件模型
*
* @export
* @class Edit_MainModel
*/
export default class Edit_MainModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Edit_MainModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'leadid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'fullname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'subject',
prop: 'subject',
dataType: 'TEXT',
},
{
name: 'fullname',
prop: 'fullname',
dataType: 'TEXT',
},
{
name: 'jobtitle',
prop: 'jobtitle',
dataType: 'TEXT',
},
{
name: 'telephone1',
prop: 'telephone1',
dataType: 'TEXT',
},
{
name: 'mobilephone',
prop: 'mobilephone',
dataType: 'TEXT',
},
{
name: 'emailaddress1',
prop: 'emailaddress1',
dataType: 'TEXT',
},
{
name: 'companyname',
prop: 'companyname',
dataType: 'TEXT',
},
{
name: 'websiteurl',
prop: 'websiteurl',
dataType: 'TEXT',
},
{
name: 'address1_postalcode',
prop: 'address1_postalcode',
dataType: 'TEXT',
},
{
name: 'address1_country',
prop: 'address1_country',
dataType: 'TEXT',
},
{
name: 'address1_stateorprovince',
prop: 'address1_stateorprovince',
dataType: 'TEXT',
},
{
name: 'address1_city',
prop: 'address1_city',
dataType: 'TEXT',
},
{
name: 'address1_line1',
prop: 'address1_line1',
dataType: 'TEXT',
},
{
name: 'industrycode',
prop: 'industrycode',
dataType: 'SSCODELIST',
},
{
name: 'revenue',
prop: 'revenue',
dataType: 'BIGDECIMAL',
},
{
name: 'numberofemployees',
prop: 'numberofemployees',
dataType: 'INT',
},
{
name: 'transactioncurrencyname',
prop: 'transactioncurrencyname',
dataType: 'PICKUPTEXT',
},
{
name: 'campaignname',
prop: 'campaignname',
dataType: 'PICKUPTEXT',
},
{
name: 'donotsendmm',
prop: 'donotsendmm',
dataType: 'YESNO',
},
{
name: 'lastusedincampaign',
prop: 'lastusedincampaign',
dataType: 'DATETIME',
},
{
name: 'transactioncurrencyid',
prop: 'transactioncurrencyid',
dataType: 'PICKUP',
},
{
name: 'campaignid',
prop: 'campaignid',
dataType: 'PICKUP',
},
{
name: 'leadid',
prop: 'leadid',
dataType: 'GUID',
},
{
name: 'lead',
prop: 'leadid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<template src="./edit-main-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Edit_MainEditFormBase } from './edit-main-form-base';
/**
* form部件
*
* @export
* @class Edit_MainEditForm
* @extends {Edit_MainEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Edit_MainEditForm extends Edit_MainEditFormBase { }
</script>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册