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

xignzi006 发布系统代码

上级 deba2fe6
......@@ -1668,6 +1668,130 @@
}
]
},
{
"srfkey": "Quote__ShippingMethodCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "Airborne",
"text": "Airborne",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "2",
"label": "DHL",
"text": "DHL",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "3",
"label": "FedEx",
"text": "FedEx",
"data":"",
"codename":"Item_3",
"value": "3",
"disabled": false
}
, {
"id": "6",
"label": "Full Load",
"text": "Full Load",
"data":"",
"codename":"Item_6",
"value": "6",
"disabled": false
}
, {
"id": "5",
"label": "Postal Mail",
"text": "Postal Mail",
"data":"",
"codename":"Item_5",
"value": "5",
"disabled": false
}
, {
"id": "4",
"label": "UPS",
"text": "UPS",
"data":"",
"codename":"Item_4",
"value": "4",
"disabled": false
}
, {
"id": "7",
"label": "Will Call",
"text": "Will Call",
"data":"",
"codename":"Item_7",
"value": "7",
"disabled": false
}
]
},
{
"srfkey": "Quote__PaymentTermsCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "2% 10, Net 30",
"text": "2% 10, Net 30",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "Net 30",
"text": "Net 30",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "3",
"label": "Net 45",
"text": "Net 45",
"data":"",
"codename":"Item_3",
"value": "3",
"disabled": false
}
, {
"id": "4",
"label": "Net 60",
"text": "Net 60",
"data":"",
"codename":"Item_4",
"value": "4",
"disabled": false
}
]
},
{
"srfkey": "Account__CustomerTypeCode",
"emptytext": "未定义",
......@@ -2151,6 +2275,33 @@
}
]
},
{
"srfkey": "Quote__FreightTermsCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "FOB",
"text": "FOB",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "2",
"label": "No Charge",
"text": "No Charge",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
]
},
{
"srfkey": "Opportunity__PurchaseTimeframe",
"emptytext": "未定义",
......
......@@ -399,6 +399,16 @@
"viewtag": "3f78dcc732a7a8ba6d959dcf6007b225",
"memo": "系统自动添加"
},
"quoteinfoabstract": {
"title": "报价单编辑视图",
"caption": "报价单",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "QuoteInfoAbstract",
"viewfilename": "quote-info-abstract",
"viewtag": "4024b6fdff9a452e0ff55401498fbb51",
"memo": ""
},
"campaigneditview": {
"title": "市场活动编辑视图",
"caption": "市场活动",
......@@ -569,13 +579,13 @@
"viewtag": "615ceb2945e3cfe7404850aeadae188d",
"memo": ""
},
"contactdashboardview": {
"contactsummary": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Base",
"viewname": "ContactDashboardView",
"viewfilename": "contact-dashboard-view",
"viewname": "ContactSummary",
"viewfilename": "contact-summary",
"viewtag": "6168a7e787ead13b1e0f9a55007bc68c",
"memo": ""
},
......@@ -1399,13 +1409,13 @@
"viewtag": "fc2117de593df9cc982bd802cbdb2154",
"memo": "系统自动添加"
},
"contacttabexpview": {
"contactinfo": {
"title": "联系人信息",
"caption": "联系人",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Base",
"viewname": "ContactTabExpView",
"viewfilename": "contact-tab-exp-view",
"viewname": "ContactInfo",
"viewfilename": "contact-info",
"viewtag": "fcdb236b65d78c4a8ae64e74f9483a63",
"memo": ""
}
......
......@@ -221,6 +221,23 @@ export default {
'4': "Widowed",
empty: "",
},
Quote__ShippingMethodCode: {
'1': "Airborne",
'2': "DHL",
'3': "FedEx",
'6': "Full Load",
'5': "Postal Mail",
'4': "UPS",
'7': "Will Call",
empty: "",
},
Quote__PaymentTermsCode: {
'2': "2% 10, Net 30",
'1': "Net 30",
'3': "Net 45",
'4': "Net 60",
empty: "",
},
Account__CustomerTypeCode: {
'1': "Competitor",
'2': "Consultant",
......@@ -290,6 +307,11 @@ export default {
'3': "Phone",
empty: "",
},
Quote__FreightTermsCode: {
'1': "FOB",
'2': "No Charge",
empty: "",
},
Opportunity__PurchaseTimeframe: {
'0': "Immediate",
'2': "Next Quarter",
......
......@@ -221,6 +221,23 @@ export default {
'4': "Widowed",
empty: "",
},
Quote__ShippingMethodCode: {
'1': "Airborne",
'2': "DHL",
'3': "FedEx",
'6': "Full Load",
'5': "Postal Mail",
'4': "UPS",
'7': "Will Call",
empty: "",
},
Quote__PaymentTermsCode: {
'2': "2% 10, Net 30",
'1': "Net 30",
'3': "Net 45",
'4': "Net 60",
empty: "",
},
Account__CustomerTypeCode: {
'1': "Competitor",
'2': "Consultant",
......@@ -290,6 +307,11 @@ export default {
'3': "Phone",
empty: "",
},
Quote__FreightTermsCode: {
'1': "FOB",
'2': "No Charge",
empty: "",
},
Opportunity__PurchaseTimeframe: {
'0': "Immediate",
'2': "Next Quarter",
......
......@@ -233,7 +233,7 @@ export default {
caption: "联系人",
title: '联系人编辑视图',
},
dashboardview: {
summary: {
caption: "联系人",
title: '联系人数据看板视图',
},
......@@ -273,7 +273,7 @@ export default {
caption: "个人信息",
title: '联系人选项操作视图',
},
tabexpview: {
info: {
caption: "联系人",
title: '联系人信息',
},
......@@ -585,6 +585,36 @@ export default {
uiactions: {
},
},
infotoolbar_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: "关闭",
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: "新建",
......
......@@ -232,7 +232,7 @@ export default {
caption: '联系人',
title: '联系人编辑视图',
},
dashboardview: {
summary: {
caption: '联系人',
title: '联系人数据看板视图',
},
......@@ -272,7 +272,7 @@ export default {
caption: '个人信息',
title: '联系人选项操作视图',
},
tabexpview: {
info: {
caption: '联系人',
title: '联系人信息',
},
......@@ -584,6 +584,36 @@ export default {
uiactions: {
},
},
infotoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
deuiaction1: {
caption: '删除并关闭',
tip: '删除并关闭',
},
deuiaction2: {
caption: '刷新',
tip: '刷新',
},
seperator1: {
caption: '',
tip: '',
},
tbitem12: {
caption: '关闭',
tip: '关闭',
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: '新建',
......
......@@ -101,6 +101,10 @@ export default {
gridview: {
caption: "报价单",
title: '报价单表格视图',
},
infoabstract: {
caption: "报价单",
title: '报价单编辑视图',
},
oppquagridview: {
caption: "报价单",
......@@ -166,6 +170,47 @@ export default {
uiactions: {
},
},
abstractinfo_form: {
details: {
group1: "概要信息",
grouppanel1: "详细信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "报价单",
srfmajortext: "报价名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
quotenumber: "报价单 ID",
revisionnumber: "修订 ID",
quotename: "报价名称",
transactioncurrencyname: "货币",
opportunityname: "商机",
customerid: "潜在客户",
pricelevelname: "价目表",
statecode: "状态",
description: "说明",
paymenttermscode: "付款条件",
freighttermscode: "货运条款",
billto_postalcode: "帐单寄往地邮政编码",
formitem: "",
billto_country: "帐单寄往国家/地区",
billto_stateorprovince: "帐单寄往省/市/自治区",
billto_city: "帐单寄往市/县",
billto_line1: "帐单寄往街道",
shippingmethodcode: "送货方式",
shipto_postalcode: "送货地的邮政编码",
willcall: "送货地址",
transactioncurrencyid: "货币",
opportunityid: "商机",
pricelevelid: "价目表",
quoteid: "报价单",
},
uiactions: {
},
},
main_grid: {
columns: {
quotename: "报价名称",
......
......@@ -100,6 +100,10 @@ export default {
gridview: {
caption: '报价单',
title: '报价单表格视图',
},
infoabstract: {
caption: '报价单',
title: '报价单编辑视图',
},
oppquagridview: {
caption: '报价单',
......@@ -165,6 +169,47 @@ export default {
uiactions: {
},
},
abstractinfo_form: {
details: {
group1: '概要信息',
grouppanel1: '详细信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '报价单',
srfmajortext: '报价名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
quotenumber: '报价单 ID',
revisionnumber: '修订 ID',
quotename: '报价名称',
transactioncurrencyname: '货币',
opportunityname: '商机',
customerid: '潜在客户',
pricelevelname: '价目表',
statecode: '状态',
description: '说明',
paymenttermscode: '付款条件',
freighttermscode: '货运条款',
billto_postalcode: '帐单寄往地邮政编码',
formitem: '',
billto_country: '帐单寄往国家/地区',
billto_stateorprovince: '帐单寄往省/市/自治区',
billto_city: '帐单寄往市/县',
billto_line1: '帐单寄往街道',
shippingmethodcode: '送货方式',
shipto_postalcode: '送货地的邮政编码',
willcall: '送货地址',
transactioncurrencyid: '货币',
opportunityid: '商机',
pricelevelid: '价目表',
quoteid: '报价单',
},
uiactions: {
},
},
main_grid: {
columns: {
quotename: '报价名称',
......
......@@ -1676,6 +1676,130 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: 'Quote__ShippingMethodCode',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '1',
label: "Airborne",
text: "Airborne",
"data":"",
"codename":"Item_1",
value: '1',
disabled: false,
},
{
id: '2',
label: "DHL",
text: "DHL",
"data":"",
"codename":"Item_2",
value: '2',
disabled: false,
},
{
id: '3',
label: "FedEx",
text: "FedEx",
"data":"",
"codename":"Item_3",
value: '3',
disabled: false,
},
{
id: '6',
label: "Full Load",
text: "Full Load",
"data":"",
"codename":"Item_6",
value: '6',
disabled: false,
},
{
id: '5',
label: "Postal Mail",
text: "Postal Mail",
"data":"",
"codename":"Item_5",
value: '5',
disabled: false,
},
{
id: '4',
label: "UPS",
text: "UPS",
"data":"",
"codename":"Item_4",
value: '4',
disabled: false,
},
{
id: '7',
label: "Will Call",
text: "Will Call",
"data":"",
"codename":"Item_7",
value: '7',
disabled: false,
},
]
},
{
srfkey: 'Quote__PaymentTermsCode',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '2',
label: "2% 10, Net 30",
text: "2% 10, Net 30",
"data":"",
"codename":"Item_2",
value: '2',
disabled: false,
},
{
id: '1',
label: "Net 30",
text: "Net 30",
"data":"",
"codename":"Item_1",
value: '1',
disabled: false,
},
{
id: '3',
label: "Net 45",
text: "Net 45",
"data":"",
"codename":"Item_3",
value: '3',
disabled: false,
},
{
id: '4',
label: "Net 60",
text: "Net 60",
"data":"",
"codename":"Item_4",
value: '4',
disabled: false,
},
]
},
{
srfkey: 'Account__CustomerTypeCode',
emptytext: '未定义',
......@@ -2159,6 +2283,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: 'Quote__FreightTermsCode',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '1',
label: "FOB",
text: "FOB",
"data":"",
"codename":"Item_1",
value: '1',
disabled: false,
},
{
id: '2',
label: "No Charge",
text: "No Charge",
"data":"",
"codename":"Item_2",
value: '2',
disabled: false,
},
]
},
{
srfkey: 'Opportunity__PurchaseTimeframe',
emptytext: '未定义',
......
......@@ -327,6 +327,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "FaxEditView",
"viewtag": "3f78dcc732a7a8ba6d959dcf6007b225"
},
"quoteinfoabstract": {
"title": "报价单编辑视图",
"caption": "报价单",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "QuoteInfoAbstract",
"viewtag": "4024b6fdff9a452e0ff55401498fbb51"
},
"campaigneditview": {
"title": "市场活动编辑视图",
"caption": "市场活动",
......@@ -463,12 +471,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactInfo_Market",
"viewtag": "615ceb2945e3cfe7404850aeadae188d"
},
"contactdashboardview": {
"contactsummary": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Base",
"viewname": "ContactDashboardView",
"viewname": "ContactSummary",
"viewtag": "6168a7e787ead13b1e0f9a55007bc68c"
},
"goalgridview": {
......@@ -1127,12 +1135,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "CompetitorEditView",
"viewtag": "fc2117de593df9cc982bd802cbdb2154"
},
"contacttabexpview": {
"contactinfo": {
"title": "联系人信息",
"caption": "联系人",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Base",
"viewname": "ContactTabExpView",
"viewname": "ContactInfo",
"viewtag": "fcdb236b65d78c4a8ae64e74f9483a63"
}
}];
......
......@@ -284,7 +284,7 @@ export default class ContactByAccountBase extends GridViewBase {
}
const parameters: any[] = [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
......@@ -599,7 +599,7 @@ export default class ContactGridViewBase extends GridViewBase {
}
const parameters: any[] = [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
<template>
<studio-view-style2 viewName="contactinfo" viewTitle="联系人信息" class='detabexpview contact-info'>
<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"/> </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 ContactService from '@/service/contact/contact-service';
import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
/**
* 联系人信息视图基类
*
* @export
* @class ContactInfoBase
* @extends {TabExpViewBase}
*/
@Component({})
@VueLifeCycleProcessing()
export default class ContactInfoBase extends TabExpViewBase {
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof ContactInfoBase
*/
protected appEntityService: ContactService = new ContactService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof ContactInfoBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof ContactInfoBase
*/
protected customViewNavContexts: any = {
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof ContactInfoBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ContactInfoBase
*/
protected model: any = {
srfCaption: 'entities.contact.views.info.caption',
srfTitle: 'entities.contact.views.info.title',
srfSubTitle: 'entities.contact.views.info.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof ContactInfoBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof ContactInfo
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem12: { name: 'tbitem12', caption: '关闭','isShowCaption':true,'isShowIcon':true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Exit', target: '' }, class: '' },
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof ContactInfoBase
*/
public engine: TabExpViewEngine = new TabExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof ContactInfoBase
*/
public engineInit(): void {
this.engine.init({
view: this,
keyPSDEField: 'contact',
majorPSDEField: 'fullname',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ContactInfoBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.toolbar_deuiaction2_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click(null, '', $event2);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_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];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_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];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_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];
}
// 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction2_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];
}
// 界面行为
this.Refresh(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem12_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];
}
// 界面行为
this.Exit(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactInfoBase
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactInfoBase
*/
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 ContactInfoBase
*/
public RemoveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.removeAndExit instanceof Function) {
xData.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.removeAndExit && _this.removeAndExit instanceof Function) {
_this.removeAndExit().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 ContactInfoBase
*/
public Refresh(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
} else if (_this.refresh && _this.refresh instanceof Function) {
_this.refresh(args);
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactInfoBase
*/
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 }],'*');
}
}
/**
* 加载模型
*
* @protected
* @memberof ContactInfoBase
*/
protected async loadModel(): Promise<any> {
if(this.context.contact){
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.fullname) {
Object.assign(this.model, { dataInfo: _data.fullname });
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 './contact-info.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.contact-info {
--contact-info: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactInfoBase from './contact-info-base.vue';
import view_tabexppanel from '@widgets/contact/infotabexppanel-tabexppanel/infotabexppanel-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 ContactInfo extends ContactInfoBase {
}
</script>
\ No newline at end of file
<template>
<studio-view-style2 viewName="contactsummary" viewTitle="联系人数据看板视图" class='deportalview contact-summary'>
<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 ContactService from '@/service/contact/contact-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
/**
* 联系人数据看板视图视图基类
*
* @export
* @class ContactSummaryBase
* @extends {DashboardViewBase}
*/
@Component({})
@VueLifeCycleProcessing()
export default class ContactSummaryBase extends DashboardViewBase {
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof ContactSummaryBase
*/
protected appEntityService: ContactService = new ContactService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof ContactSummaryBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected customViewNavContexts: any = {
'REGARDINGOBJECTID': { isRawValue: false, value: 'contact' },
'REGARDINGOBJECTTYPECODE': { isRawValue: true, value: 'CONTACT' }
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected model: any = {
srfCaption: 'entities.contact.views.summary.caption',
srfTitle: 'entities.contact.views.summary.title',
srfSubTitle: 'entities.contact.views.summary.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof ContactSummaryBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof ContactSummaryBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'contact',
majorPSDEField: 'fullname',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ContactSummaryBase
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
</script>
<style lang='less'>
@import './contact-summary.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.contact-summary {
--contact-summary: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactSummaryBase from './contact-summary-base.vue';
import view_dashboard from '@widgets/contact/con-abs-dashboard/con-abs-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 ContactSummary extends ContactSummaryBase {
}
</script>
\ No newline at end of file
......@@ -543,16 +543,28 @@ export default class CompetitorGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'competitors', parameterName: 'competitor' },
{ pathName: 'optionview', parameterName: 'optionview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
openIndexViewTab(data);
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
const view: any = {
viewname: 'competitor-option-view',
height: 0,
width: 0,
title: this.$t('entities.competitor.views.optionview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
<template>
<studio-view-style2 viewName="opportunityoppprodashboardview" viewTitle="商机数据看板视图" class='deportalview opportunity-opp-pro-dashboard-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_dashboard
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -74,7 +74,7 @@ export const PageComponents = {
Vue.component('list-contact-inner', () => import('@pages/marketing/list-contact-inner/list-contact-inner.vue'));
Vue.component('campaign-info-campagin', () => import('@pages/marketing/campaign-info-campagin/campaign-info-campagin.vue'));
Vue.component('appointment-edit-view', () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'));
Vue.component('contact-tab-exp-view', () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'));
Vue.component('contact-info', () => import('@pages/base/contact-info/contact-info.vue'));
Vue.component('contact-pickup-grid-view', () => import('@pages/base/contact-pickup-grid-view/contact-pickup-grid-view.vue'));
Vue.component('list-account-edit-view', () => import('@pages/marketing/list-account-edit-view/list-account-edit-view.vue'));
Vue.component('opportunity-info', () => import('@pages/sales/opportunity-info/opportunity-info.vue'));
......@@ -104,7 +104,7 @@ export const PageComponents = {
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('list-account-inner', () => import('@pages/marketing/list-account-inner/list-account-inner.vue'));
Vue.component('contact-dashboard-view', () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'));
Vue.component('contact-summary', () => import('@pages/base/contact-summary/contact-summary.vue'));
Vue.component('task-edit-view', () => import('@pages/base/task-edit-view/task-edit-view.vue'));
Vue.component('contact-info-market', () => import('@pages/base/contact-info-market/contact-info-market.vue'));
Vue.component('quote-edit-view', () => import('@pages/sales/quote-edit-view/quote-edit-view.vue'));
......
......@@ -2256,33 +2256,33 @@ const router = new Router({
component: () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/tabexpview/:tabexpview?',
path: 'accounts/:account?/contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
{
path: 'contacts/:contact?/tabexpview/:tabexpview?',
path: 'contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/pickupgridview/:pickupgridview?',
......@@ -3362,33 +3362,33 @@ const router = new Router({
component: () => import('@pages/base/account-edit-introduction/account-edit-introduction.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/dashboardview/:dashboardview?',
path: 'accounts/:account?/contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: 'contacts/:contact?/dashboardview/:dashboardview?',
path: 'contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: 'tasks/:task?/editview/:editview?',
......@@ -5009,31 +5009,31 @@ const router = new Router({
component: () => import('@pages/base/contact-info-market/contact-info-market.vue'),
},
{
path: '/accounts/:account?/contacts/:contact?/dashboardview/:dashboardview?',
path: '/accounts/:account?/contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: '/contacts/:contact?/dashboardview/:dashboardview?',
path: '/contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: '/goals/:goal?/gridview/:gridview?',
......@@ -6929,31 +6929,31 @@ const router = new Router({
component: () => import('@pages/base/account-info-major-contact/account-info-major-contact.vue'),
},
{
path: '/accounts/:account?/contacts/:contact?/tabexpview/:tabexpview?',
path: '/accounts/:account?/contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
{
path: '/contacts/:contact?/tabexpview/:tabexpview?',
path: '/contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
...globalRoutes,
{
......
......@@ -545,7 +545,7 @@ export const viewstate: any = {
{
viewtag: '6168a7e787ead13b1e0f9a55007bc68c',
viewmodule: 'Base',
viewname: 'ContactDashboardView',
viewname: 'ContactSummary',
viewaction: '',
viewdatachange: false,
refviews: [
......@@ -1313,7 +1313,7 @@ export const viewstate: any = {
{
viewtag: 'fcdb236b65d78c4a8ae64e74f9483a63',
viewmodule: 'Base',
viewname: 'ContactTabExpView',
viewname: 'ContactInfo',
viewaction: '',
viewdatachange: false,
refviews: [
......
......@@ -130,14 +130,29 @@ export default class CompetitorUIServiceBase extends UIService {
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'competitors', parameterName: 'competitor' },
{ pathName: 'optionview', parameterName: 'optionview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = actionContext.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
const _this: any = actionContext;
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
return result.datas;
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'competitor-option-view',
height: 0,
width: 0,
title: actionContext.$t('entities.competitor.views.optionview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
......@@ -86,7 +86,7 @@ export default class ContactUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'info_book',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_abstract',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_market',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'dashboardview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'summary',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'editaddress',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'byaccount',srfappde:'contacts'});
......@@ -96,7 +96,7 @@ export default class ContactUIServiceBase extends UIService {
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'quickcreate',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'editperson',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'tabexpview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info',srfappde:'contacts'});
}
/**
......
......@@ -80,6 +80,7 @@ export default class QuoteUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'quotes'});
this.allViewMap.set(':',{viewname:'infoabstract',srfappde:'quotes'});
this.allViewMap.set(':',{viewname:'oppquagridview',srfappde:'quotes'});
this.allViewMap.set(':',{viewname:'optionview',srfappde:'quotes'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'quotes'});
......
......@@ -7,7 +7,7 @@
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 18, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container dashboard-viewdashboard-container1 ' :style="{}">
<div class='portlet-container summarydashboard-container1 ' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
......@@ -97,7 +97,7 @@
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container dashboard-viewdashboard-container2 ' :style="{}">
<div class='portlet-container summarydashboard-container2 ' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
......
<template>
<div class='tabviewpanel'>
<tabs :value="activiedTabViewPanel" :animated="false" class='tabexppanel' name='infotabexppanel' @on-click="tabPanelClick">
<tab-pane :index="0" name='tabviewpanel' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-info-circle',
style:{
'margin-right' : '2px'
}
}),
h('span', '摘要'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel"
name="tabviewpanel"
ref='tabviewpanel'
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel>
</tab-pane>
<tab-pane :index="1" name='tabviewpanel4' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-paper-plane',
style:{
'margin-right' : '2px'
}
}),
h('span', '活动'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel4
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel4"
name="tabviewpanel4"
ref='tabviewpanel4'
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel4>
</tab-pane>
<tab-pane :index="2" name='tabviewpanel2' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-sort-amount-asc',
style:{
'margin-right' : '2px'
}
}),
h('span', '潜在顾客'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel2
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel2"
name="tabviewpanel2"
ref='tabviewpanel2'
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel2>
</tab-pane>
<tab-pane :index="3" name='tabviewpanel3' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-question',
style:{
'margin-right' : '2px'
}
}),
h('span', '商机'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel3
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel3"
name="tabviewpanel3"
ref='tabviewpanel3'
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel3>
</tab-pane>
</tabs>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import InfotabexppanelService from './infotabexppanel-tabexppanel-service';
@Component({
components: {
}
})
export default class InfotabexppanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabexppanel
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabexppanel
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabexppanel
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabexppanel
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabexppanel
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabexppanel
*/
public getControlType(): string {
return 'TABEXPPANEL'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Infotabexppanel
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {InfotabexppanelService}
* @memberof Infotabexppanel
*/
public service: InfotabexppanelService = new InfotabexppanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabexppanel
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabexppanel
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabexppanel
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 是否初始化
*
* @returns {any}
* @memberof Infotabexppanel
*/
public isInit: any = {
tabviewpanel: true ,
tabviewpanel4: false ,
tabviewpanel2: false ,
tabviewpanel3: false ,
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabexppanel
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabexppanel
*/
public getData(): any {
return null;
}
/**
* 行为参数
*
* @public
* @type {*}
* @memberof Infotabexppanel
*/
public action:any = '';
/**
* 被激活的分页面板
*
* @type {string}
* @memberof Infotabexppanel
*/
public activiedTabViewPanel: string = 'tabviewpanel';
/**
* 分页视图面板数据变更
*
* @memberof Infotabexppanel
*/
public tabViewPanelDatasChange(){
this.counterRefresh();
}
/**
* vue 生命周期
*
* @returns
* @memberof Infotabexppanel
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabexppanel
*/
public afterCreated(){
//设置分页导航srfparentdename和srfparentkey
if (this.context.contact) {
Object.assign(this.context, { srfparentdename: 'Contact', srfparentkey: this.context.contact });
}
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.action = action;
this.viewState.next({ tag: this.activiedTabViewPanel, action: action, data: data });
this.$forceUpdate();
});
}
}
/**
* 组件加载完毕
*
* @memberof Infotabexppanel
*/
public mounted(): void {
if (this.viewparams) {
const activate = this.viewparams.srftabactivate;
if (activate && this.isInit[activate] !== undefined) {
for (const key in this.isInit) {
if (this.isInit.hasOwnProperty(key)) {
this.isInit[key] = false;
}
}
this.$nextTick(() => {
this.tabPanelClick(activate);
});
}
}
}
/**
* vue 生命周期
*
* @memberof Infotabexppanel
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabexppanel
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 分页面板选中
*
* @param {*} $event
* @returns
* @memberof Infotabexppanel
*/
public tabPanelClick($event: any) {
if (!$event) {
return;
}
this.isInit[$event] = true;
if (!this.viewState) {
return;
}
this.activiedTabViewPanel = $event;
this.viewState.next({ tag: this.activiedTabViewPanel, action: this.action, data: {}});
}
}
</script>
<style lang='less'>
@import './infotabexppanel-tabexppanel.less';
</style>
\ No newline at end of file
/**
* Infotabexppanel 部件模型
*
* @export
* @class InfotabexppanelModel
*/
export default class InfotabexppanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof InfotabexppanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'address1_freighttermscode',
},
{
name: 'address3_city',
},
{
name: 'department',
},
{
name: 'parentcustomeridtype',
},
{
name: 'address1_stateorprovince',
},
{
name: 'aging90_base',
},
{
name: 'accountidyominame',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'managername',
},
{
name: 'donotpostalmail',
},
{
name: 'spousesname',
},
{
name: 'familystatuscode',
},
{
name: 'owneridtype',
},
{
name: 'address3_composite',
},
{
name: 'address3_shippingmethodcode',
},
{
name: 'lastname',
},
{
name: 'lastonholdtime',
},
{
name: 'educationcode',
},
{
name: 'address2_line1',
},
{
name: 'birthdate',
},
{
name: 'owneridyominame',
},
{
name: 'haschildrencode',
},
{
name: 'company',
},
{
name: 'address2_fax',
},
{
name: 'assistantphone',
},
{
name: 'callback',
},
{
name: 'paymenttermscode',
},
{
name: 'address2_telephone1',
},
{
name: 'marketingonly',
},
{
name: 'address2_utcoffset',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'traversedpath',
},
{
name: 'employeeid',
},
{
name: 'creditlimit_base',
},
{
name: 'followemail',
},
{
name: 'address3_postalcode',
},
{
name: 'merged',
},
{
name: 'jobtitle',
},
{
name: 'address1_telephone1',
},
{
name: 'customersizecode',
},
{
name: 'address3_addresstypecode',
},
{
name: 'pager',
},
{
name: 'assistantname',
},
{
name: 'address1_composite',
},
{
name: 'address1_line1',
},
{
name: 'yomimiddlename',
},
{
name: 'address1_telephone3',
},
{
name: 'telephone2',
},
{
name: 'address2_addressid',
},
{
name: 'parentcontactidyominame',
},
{
name: 'leadsourcecode',
},
{
name: 'statecode',
},
{
name: 'address2_freighttermscode',
},
{
name: 'emailaddress1',
},
{
name: 'entityimage_timestamp',
},
{
name: 'address3_line1',
},
{
name: 'salutation',
},
{
name: 'address1_line3',
},
{
name: 'address3_primarycontactname',
},
{
name: 'ibizprivate',
},
{
name: 'donotfax',
},
{
name: 'createdate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'updatedate',
},
{
name: 'address3_stateorprovince',
},
{
name: 'address3_line3',
},
{
name: 'creditlimit',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'parentcustomerid',
},
{
name: 'childrensnames',
},
{
name: 'address1_addresstypecode',
},
{
name: 'accountrolecode',
},
{
name: 'donotphone',
},
{
name: 'managerphone',
},
{
name: 'creditonhold',
},
{
name: 'updateman',
},
{
name: 'address2_postalcode',
},
{
name: 'address1_line2',
},
{
name: 'nickname',
},
{
name: 'versionnumber',
},
{
name: 'yomifullname',
},
{
name: 'entityimage',
},
{
name: 'shippingmethodcode',
},
{
name: 'customertypecode',
},
{
name: 'address2_county',
},
{
name: 'aging90',
},
{
name: 'address2_stateorprovince',
},
{
name: 'address3_utcoffset',
},
{
name: 'fullname',
},
{
name: 'participatesinworkflow',
},
{
name: 'websiteurl',
},
{
name: 'description',
},
{
name: 'address3_telephone1',
},
{
name: 'address2_upszone',
},
{
name: 'address3_county',
},
{
name: 'entityimage_url',
},
{
name: 'address3_upszone',
},
{
name: 'address1_name',
},
{
name: 'mastercontactidyominame',
},
{
name: 'autocreate',
},
{
name: 'backofficecustomer',
},
{
name: 'address2_longitude',
},
{
name: 'address1_fax',
},
{
name: 'exchangerate',
},
{
name: 'address1_city',
},
{
name: 'entityimageid',
},
{
name: 'address1_telephone2',
},
{
name: 'address2_composite',
},
{
name: 'importsequencenumber',
},
{
name: 'gendercode',
},
{
name: 'annualincome',
},
{
name: 'subscriptionid',
},
{
name: 'territorycode',
},
{
name: 'firstname',
},
{
name: 'overriddencreatedon',
},
{
name: 'address3_country',
},
{
name: 'yomilastname',
},
{
name: 'donotbulkemail',
},
{
name: 'address3_telephone2',
},
{
name: 'ownerid',
},
{
name: 'externaluseridentifier',
},
{
name: 'teamsfollowed',
},
{
name: 'donotemail',
},
{
name: 'anniversary',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'middlename',
},
{
name: 'emailaddress3',
},
{
name: 'address2_telephone2',
},
{
name: 'fax',
},
{
name: 'mobilephone',
},
{
name: 'home2',
},
{
name: 'createman',
},
{
name: 'onholdtime',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'statuscode',
},
{
name: 'governmentid',
},
{
name: 'address3_telephone3',
},
{
name: 'business2',
},
{
name: 'preferredsystemuserid',
},
{
name: 'address1_upszone',
},
{
name: 'aging60',
},
{
name: 'yomifirstname',
},
{
name: 'address3_postofficebox',
},
{
name: 'address2_city',
},
{
name: 'processid',
},
{
name: 'annualincome_base',
},
{
name: 'address3_addressid',
},
{
name: 'parentcustomeridyominame',
},
{
name: 'contact',
prop: 'contactid',
},
{
name: 'aging60_base',
},
{
name: 'address3_latitude',
},
{
name: 'telephone3',
},
{
name: 'address1_primarycontactname',
},
{
name: 'address3_fax',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'address1_utcoffset',
},
{
name: 'donotsendmm',
},
{
name: 'address2_telephone3',
},
{
name: 'address2_country',
},
{
name: 'aging30',
},
{
name: 'address2_postofficebox',
},
{
name: 'telephone1',
},
{
name: 'address3_longitude',
},
{
name: 'lastusedincampaign',
},
{
name: 'ftpsiteurl',
},
{
name: 'aging30_base',
},
{
name: 'address2_name',
},
{
name: 'suffix',
},
{
name: 'address1_county',
},
{
name: 'address2_addresstypecode',
},
{
name: 'address1_longitude',
},
{
name: 'address3_line2',
},
{
name: 'address1_addressid',
},
{
name: 'address2_line3',
},
{
name: 'address2_latitude',
},
{
name: 'address2_line2',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address3_freighttermscode',
},
{
name: 'address1_postofficebox',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'address3_name',
},
{
name: 'address1_latitude',
},
{
name: 'numberofchildren',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_postalcode',
},
{
name: 'stageid',
},
{
name: 'address1_country',
},
{
name: 'emailaddress2',
},
{
name: 'slaname',
},
{
name: 'defaultpricelevelid',
},
{
name: 'preferredequipmentid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'slaid',
},
{
name: 'originatingleadid',
},
{
name: 'preferredserviceid',
},
{
name: 'defaultpricelevelname',
},
{
name: 'originatingleadname',
},
{
name: 'transactioncurrencyname',
},
{
name: 'preferredservicename',
},
{
name: 'preferredequipmentname',
},
{
name: 'customerid',
},
{
name: 'cusomername',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import ContactService from '@/service/contact/contact-service';
import InfotabexppanelModel from './infotabexppanel-tabexppanel-model';
/**
* Infotabexppanel 部件服务对象
*
* @export
* @class InfotabexppanelService
*/
export default class InfotabexppanelService extends ControlService {
/**
* 联系人服务对象
*
* @type {ContactService}
* @memberof InfotabexppanelService
*/
public appEntityService: ContactService = new ContactService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof InfotabexppanelService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of InfotabexppanelService.
*
* @param {*} [opts={}]
* @memberof InfotabexppanelService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new InfotabexppanelModel();
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import InfotabexppanelBase from './infotabexppanel-tabexppanel-base.vue';
import view_tabviewpanel from '@widgets/contact/infotabviewpanel-tabviewpanel/infotabviewpanel-tabviewpanel.vue';
import view_tabviewpanel4 from '@widgets/contact/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.vue';
import view_tabviewpanel2 from '@widgets/contact/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.vue';
import view_tabviewpanel3 from '@widgets/contact/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.vue';
@Component({
components: {
view_tabviewpanel,
view_tabviewpanel4,
view_tabviewpanel2,
view_tabviewpanel3,
}
})
export default class Infotabexppanel extends InfotabexppanelBase {
}
</script>
\ No newline at end of file
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<contact-summary
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</contact-summary>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import InfotabviewpanelService from './infotabviewpanel-tabviewpanel-service';
@Component({
components: {
}
})
export default class InfotabviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabviewpanel
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabviewpanel
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabviewpanel
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabviewpanel
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabviewpanel
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabviewpanel
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {InfotabviewpanelService}
* @memberof Infotabviewpanel
*/
public service: InfotabviewpanelService = new InfotabviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabviewpanel
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabviewpanel
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof Infotabviewpanel
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof Infotabviewpanel
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
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);
}
/**
* 视图数据变化
*
* @memberof Infotabviewpanel
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './infotabviewpanel-tabviewpanel.less';
</style>
\ No newline at end of file
/**
* Infotabviewpanel 部件模型
*
* @export
* @class InfotabviewpanelModel
*/
export default class InfotabviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof InfotabviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'address1_freighttermscode',
},
{
name: 'address3_city',
},
{
name: 'department',
},
{
name: 'parentcustomeridtype',
},
{
name: 'address1_stateorprovince',
},
{
name: 'aging90_base',
},
{
name: 'accountidyominame',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'managername',
},
{
name: 'donotpostalmail',
},
{
name: 'spousesname',
},
{
name: 'familystatuscode',
},
{
name: 'owneridtype',
},
{
name: 'address3_composite',
},
{
name: 'address3_shippingmethodcode',
},
{
name: 'lastname',
},
{
name: 'lastonholdtime',
},
{
name: 'educationcode',
},
{
name: 'address2_line1',
},
{
name: 'birthdate',
},
{
name: 'owneridyominame',
},
{
name: 'haschildrencode',
},
{
name: 'company',
},
{
name: 'address2_fax',
},
{
name: 'assistantphone',
},
{
name: 'callback',
},
{
name: 'paymenttermscode',
},
{
name: 'address2_telephone1',
},
{
name: 'marketingonly',
},
{
name: 'address2_utcoffset',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'traversedpath',
},
{
name: 'employeeid',
},
{
name: 'creditlimit_base',
},
{
name: 'followemail',
},
{
name: 'address3_postalcode',
},
{
name: 'merged',
},
{
name: 'jobtitle',
},
{
name: 'address1_telephone1',
},
{
name: 'customersizecode',
},
{
name: 'address3_addresstypecode',
},
{
name: 'pager',
},
{
name: 'assistantname',
},
{
name: 'address1_composite',
},
{
name: 'address1_line1',
},
{
name: 'yomimiddlename',
},
{
name: 'address1_telephone3',
},
{
name: 'telephone2',
},
{
name: 'address2_addressid',
},
{
name: 'parentcontactidyominame',
},
{
name: 'leadsourcecode',
},
{
name: 'statecode',
},
{
name: 'address2_freighttermscode',
},
{
name: 'emailaddress1',
},
{
name: 'entityimage_timestamp',
},
{
name: 'address3_line1',
},
{
name: 'salutation',
},
{
name: 'address1_line3',
},
{
name: 'address3_primarycontactname',
},
{
name: 'ibizprivate',
},
{
name: 'donotfax',
},
{
name: 'createdate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'updatedate',
},
{
name: 'address3_stateorprovince',
},
{
name: 'address3_line3',
},
{
name: 'creditlimit',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'parentcustomerid',
},
{
name: 'childrensnames',
},
{
name: 'address1_addresstypecode',
},
{
name: 'accountrolecode',
},
{
name: 'donotphone',
},
{
name: 'managerphone',
},
{
name: 'creditonhold',
},
{
name: 'updateman',
},
{
name: 'address2_postalcode',
},
{
name: 'address1_line2',
},
{
name: 'nickname',
},
{
name: 'versionnumber',
},
{
name: 'yomifullname',
},
{
name: 'entityimage',
},
{
name: 'shippingmethodcode',
},
{
name: 'customertypecode',
},
{
name: 'address2_county',
},
{
name: 'aging90',
},
{
name: 'address2_stateorprovince',
},
{
name: 'address3_utcoffset',
},
{
name: 'fullname',
},
{
name: 'participatesinworkflow',
},
{
name: 'websiteurl',
},
{
name: 'description',
},
{
name: 'address3_telephone1',
},
{
name: 'address2_upszone',
},
{
name: 'address3_county',
},
{
name: 'entityimage_url',
},
{
name: 'address3_upszone',
},
{
name: 'address1_name',
},
{
name: 'mastercontactidyominame',
},
{
name: 'autocreate',
},
{
name: 'backofficecustomer',
},
{
name: 'address2_longitude',
},
{
name: 'address1_fax',
},
{
name: 'exchangerate',
},
{
name: 'address1_city',
},
{
name: 'entityimageid',
},
{
name: 'address1_telephone2',
},
{
name: 'address2_composite',
},
{
name: 'importsequencenumber',
},
{
name: 'gendercode',
},
{
name: 'annualincome',
},
{
name: 'subscriptionid',
},
{
name: 'territorycode',
},
{
name: 'firstname',
},
{
name: 'overriddencreatedon',
},
{
name: 'address3_country',
},
{
name: 'yomilastname',
},
{
name: 'donotbulkemail',
},
{
name: 'address3_telephone2',
},
{
name: 'ownerid',
},
{
name: 'externaluseridentifier',
},
{
name: 'teamsfollowed',
},
{
name: 'donotemail',
},
{
name: 'anniversary',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'middlename',
},
{
name: 'emailaddress3',
},
{
name: 'address2_telephone2',
},
{
name: 'fax',
},
{
name: 'mobilephone',
},
{
name: 'home2',
},
{
name: 'createman',
},
{
name: 'onholdtime',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'statuscode',
},
{
name: 'governmentid',
},
{
name: 'address3_telephone3',
},
{
name: 'business2',
},
{
name: 'preferredsystemuserid',
},
{
name: 'address1_upszone',
},
{
name: 'aging60',
},
{
name: 'yomifirstname',
},
{
name: 'address3_postofficebox',
},
{
name: 'address2_city',
},
{
name: 'processid',
},
{
name: 'annualincome_base',
},
{
name: 'address3_addressid',
},
{
name: 'parentcustomeridyominame',
},
{
name: 'contact',
prop: 'contactid',
},
{
name: 'aging60_base',
},
{
name: 'address3_latitude',
},
{
name: 'telephone3',
},
{
name: 'address1_primarycontactname',
},
{
name: 'address3_fax',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'address1_utcoffset',
},
{
name: 'donotsendmm',
},
{
name: 'address2_telephone3',
},
{
name: 'address2_country',
},
{
name: 'aging30',
},
{
name: 'address2_postofficebox',
},
{
name: 'telephone1',
},
{
name: 'address3_longitude',
},
{
name: 'lastusedincampaign',
},
{
name: 'ftpsiteurl',
},
{
name: 'aging30_base',
},
{
name: 'address2_name',
},
{
name: 'suffix',
},
{
name: 'address1_county',
},
{
name: 'address2_addresstypecode',
},
{
name: 'address1_longitude',
},
{
name: 'address3_line2',
},
{
name: 'address1_addressid',
},
{
name: 'address2_line3',
},
{
name: 'address2_latitude',
},
{
name: 'address2_line2',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address3_freighttermscode',
},
{
name: 'address1_postofficebox',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'address3_name',
},
{
name: 'address1_latitude',
},
{
name: 'numberofchildren',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_postalcode',
},
{
name: 'stageid',
},
{
name: 'address1_country',
},
{
name: 'emailaddress2',
},
{
name: 'slaname',
},
{
name: 'defaultpricelevelid',
},
{
name: 'preferredequipmentid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'slaid',
},
{
name: 'originatingleadid',
},
{
name: 'preferredserviceid',
},
{
name: 'defaultpricelevelname',
},
{
name: 'originatingleadname',
},
{
name: 'transactioncurrencyname',
},
{
name: 'preferredservicename',
},
{
name: 'preferredequipmentname',
},
{
name: 'customerid',
},
{
name: 'cusomername',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel 部件服务对象
*
* @export
* @class InfotabviewpanelService
*/
export default class InfotabviewpanelService extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import InfotabviewpanelBase from './infotabviewpanel-tabviewpanel-base.vue';
@Component({
components: {
}
})
export default class Infotabviewpanel extends InfotabviewpanelBase {
}
</script>
\ No newline at end of file
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<lead-grid-view
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</lead-grid-view>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import Infotabviewpanel2Service from './infotabviewpanel2-tabviewpanel-service';
@Component({
components: {
}
})
export default class Infotabviewpanel2Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabviewpanel2
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabviewpanel2
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabviewpanel2
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabviewpanel2
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {Infotabviewpanel2Service}
* @memberof Infotabviewpanel2
*/
public service: Infotabviewpanel2Service = new Infotabviewpanel2Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel2
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabviewpanel2
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabviewpanel2
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel2
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel2
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel2
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel2
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel2
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof Infotabviewpanel2
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel2
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel2
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof Infotabviewpanel2
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
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);
}
/**
* 视图数据变化
*
* @memberof Infotabviewpanel2
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel2
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel2
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './infotabviewpanel2-tabviewpanel.less';
</style>
\ No newline at end of file
/**
* Infotabviewpanel2 部件模型
*
* @export
* @class Infotabviewpanel2Model
*/
export default class Infotabviewpanel2Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Infotabviewpanel2Model
*/
public getDataItems(): any[] {
return [
{
name: 'address1_freighttermscode',
},
{
name: 'address3_city',
},
{
name: 'department',
},
{
name: 'parentcustomeridtype',
},
{
name: 'address1_stateorprovince',
},
{
name: 'aging90_base',
},
{
name: 'accountidyominame',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'managername',
},
{
name: 'donotpostalmail',
},
{
name: 'spousesname',
},
{
name: 'familystatuscode',
},
{
name: 'owneridtype',
},
{
name: 'address3_composite',
},
{
name: 'address3_shippingmethodcode',
},
{
name: 'lastname',
},
{
name: 'lastonholdtime',
},
{
name: 'educationcode',
},
{
name: 'address2_line1',
},
{
name: 'birthdate',
},
{
name: 'owneridyominame',
},
{
name: 'haschildrencode',
},
{
name: 'company',
},
{
name: 'address2_fax',
},
{
name: 'assistantphone',
},
{
name: 'callback',
},
{
name: 'paymenttermscode',
},
{
name: 'address2_telephone1',
},
{
name: 'marketingonly',
},
{
name: 'address2_utcoffset',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'traversedpath',
},
{
name: 'employeeid',
},
{
name: 'creditlimit_base',
},
{
name: 'followemail',
},
{
name: 'address3_postalcode',
},
{
name: 'merged',
},
{
name: 'jobtitle',
},
{
name: 'address1_telephone1',
},
{
name: 'customersizecode',
},
{
name: 'address3_addresstypecode',
},
{
name: 'pager',
},
{
name: 'assistantname',
},
{
name: 'address1_composite',
},
{
name: 'address1_line1',
},
{
name: 'yomimiddlename',
},
{
name: 'address1_telephone3',
},
{
name: 'telephone2',
},
{
name: 'address2_addressid',
},
{
name: 'parentcontactidyominame',
},
{
name: 'leadsourcecode',
},
{
name: 'statecode',
},
{
name: 'address2_freighttermscode',
},
{
name: 'emailaddress1',
},
{
name: 'entityimage_timestamp',
},
{
name: 'address3_line1',
},
{
name: 'salutation',
},
{
name: 'address1_line3',
},
{
name: 'address3_primarycontactname',
},
{
name: 'ibizprivate',
},
{
name: 'donotfax',
},
{
name: 'createdate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'updatedate',
},
{
name: 'address3_stateorprovince',
},
{
name: 'address3_line3',
},
{
name: 'creditlimit',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'parentcustomerid',
},
{
name: 'childrensnames',
},
{
name: 'address1_addresstypecode',
},
{
name: 'accountrolecode',
},
{
name: 'donotphone',
},
{
name: 'managerphone',
},
{
name: 'creditonhold',
},
{
name: 'updateman',
},
{
name: 'address2_postalcode',
},
{
name: 'address1_line2',
},
{
name: 'nickname',
},
{
name: 'versionnumber',
},
{
name: 'yomifullname',
},
{
name: 'entityimage',
},
{
name: 'shippingmethodcode',
},
{
name: 'customertypecode',
},
{
name: 'address2_county',
},
{
name: 'aging90',
},
{
name: 'address2_stateorprovince',
},
{
name: 'address3_utcoffset',
},
{
name: 'fullname',
},
{
name: 'participatesinworkflow',
},
{
name: 'websiteurl',
},
{
name: 'description',
},
{
name: 'address3_telephone1',
},
{
name: 'address2_upszone',
},
{
name: 'address3_county',
},
{
name: 'entityimage_url',
},
{
name: 'address3_upszone',
},
{
name: 'address1_name',
},
{
name: 'mastercontactidyominame',
},
{
name: 'autocreate',
},
{
name: 'backofficecustomer',
},
{
name: 'address2_longitude',
},
{
name: 'address1_fax',
},
{
name: 'exchangerate',
},
{
name: 'address1_city',
},
{
name: 'entityimageid',
},
{
name: 'address1_telephone2',
},
{
name: 'address2_composite',
},
{
name: 'importsequencenumber',
},
{
name: 'gendercode',
},
{
name: 'annualincome',
},
{
name: 'subscriptionid',
},
{
name: 'territorycode',
},
{
name: 'firstname',
},
{
name: 'overriddencreatedon',
},
{
name: 'address3_country',
},
{
name: 'yomilastname',
},
{
name: 'donotbulkemail',
},
{
name: 'address3_telephone2',
},
{
name: 'ownerid',
},
{
name: 'externaluseridentifier',
},
{
name: 'teamsfollowed',
},
{
name: 'donotemail',
},
{
name: 'anniversary',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'middlename',
},
{
name: 'emailaddress3',
},
{
name: 'address2_telephone2',
},
{
name: 'fax',
},
{
name: 'mobilephone',
},
{
name: 'home2',
},
{
name: 'createman',
},
{
name: 'onholdtime',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'statuscode',
},
{
name: 'governmentid',
},
{
name: 'address3_telephone3',
},
{
name: 'business2',
},
{
name: 'preferredsystemuserid',
},
{
name: 'address1_upszone',
},
{
name: 'aging60',
},
{
name: 'yomifirstname',
},
{
name: 'address3_postofficebox',
},
{
name: 'address2_city',
},
{
name: 'processid',
},
{
name: 'annualincome_base',
},
{
name: 'address3_addressid',
},
{
name: 'parentcustomeridyominame',
},
{
name: 'contact',
prop: 'contactid',
},
{
name: 'aging60_base',
},
{
name: 'address3_latitude',
},
{
name: 'telephone3',
},
{
name: 'address1_primarycontactname',
},
{
name: 'address3_fax',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'address1_utcoffset',
},
{
name: 'donotsendmm',
},
{
name: 'address2_telephone3',
},
{
name: 'address2_country',
},
{
name: 'aging30',
},
{
name: 'address2_postofficebox',
},
{
name: 'telephone1',
},
{
name: 'address3_longitude',
},
{
name: 'lastusedincampaign',
},
{
name: 'ftpsiteurl',
},
{
name: 'aging30_base',
},
{
name: 'address2_name',
},
{
name: 'suffix',
},
{
name: 'address1_county',
},
{
name: 'address2_addresstypecode',
},
{
name: 'address1_longitude',
},
{
name: 'address3_line2',
},
{
name: 'address1_addressid',
},
{
name: 'address2_line3',
},
{
name: 'address2_latitude',
},
{
name: 'address2_line2',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address3_freighttermscode',
},
{
name: 'address1_postofficebox',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'address3_name',
},
{
name: 'address1_latitude',
},
{
name: 'numberofchildren',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_postalcode',
},
{
name: 'stageid',
},
{
name: 'address1_country',
},
{
name: 'emailaddress2',
},
{
name: 'slaname',
},
{
name: 'defaultpricelevelid',
},
{
name: 'preferredequipmentid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'slaid',
},
{
name: 'originatingleadid',
},
{
name: 'preferredserviceid',
},
{
name: 'defaultpricelevelname',
},
{
name: 'originatingleadname',
},
{
name: 'transactioncurrencyname',
},
{
name: 'preferredservicename',
},
{
name: 'preferredequipmentname',
},
{
name: 'customerid',
},
{
name: 'cusomername',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel2 部件服务对象
*
* @export
* @class Infotabviewpanel2Service
*/
export default class Infotabviewpanel2Service extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Infotabviewpanel2Base from './infotabviewpanel2-tabviewpanel-base.vue';
@Component({
components: {
}
})
export default class Infotabviewpanel2 extends Infotabviewpanel2Base {
}
</script>
\ No newline at end of file
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<opportunity-grid-view
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</opportunity-grid-view>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import Infotabviewpanel3Service from './infotabviewpanel3-tabviewpanel-service';
@Component({
components: {
}
})
export default class Infotabviewpanel3Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabviewpanel3
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabviewpanel3
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabviewpanel3
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabviewpanel3
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {Infotabviewpanel3Service}
* @memberof Infotabviewpanel3
*/
public service: Infotabviewpanel3Service = new Infotabviewpanel3Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel3
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabviewpanel3
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabviewpanel3
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel3
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel3
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel3
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel3
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel3
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof Infotabviewpanel3
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel3
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel3
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof Infotabviewpanel3
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
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);
}
/**
* 视图数据变化
*
* @memberof Infotabviewpanel3
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel3
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel3
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './infotabviewpanel3-tabviewpanel.less';
</style>
\ No newline at end of file
/**
* Infotabviewpanel3 部件模型
*
* @export
* @class Infotabviewpanel3Model
*/
export default class Infotabviewpanel3Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Infotabviewpanel3Model
*/
public getDataItems(): any[] {
return [
{
name: 'address1_freighttermscode',
},
{
name: 'address3_city',
},
{
name: 'department',
},
{
name: 'parentcustomeridtype',
},
{
name: 'address1_stateorprovince',
},
{
name: 'aging90_base',
},
{
name: 'accountidyominame',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'managername',
},
{
name: 'donotpostalmail',
},
{
name: 'spousesname',
},
{
name: 'familystatuscode',
},
{
name: 'owneridtype',
},
{
name: 'address3_composite',
},
{
name: 'address3_shippingmethodcode',
},
{
name: 'lastname',
},
{
name: 'lastonholdtime',
},
{
name: 'educationcode',
},
{
name: 'address2_line1',
},
{
name: 'birthdate',
},
{
name: 'owneridyominame',
},
{
name: 'haschildrencode',
},
{
name: 'company',
},
{
name: 'address2_fax',
},
{
name: 'assistantphone',
},
{
name: 'callback',
},
{
name: 'paymenttermscode',
},
{
name: 'address2_telephone1',
},
{
name: 'marketingonly',
},
{
name: 'address2_utcoffset',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'traversedpath',
},
{
name: 'employeeid',
},
{
name: 'creditlimit_base',
},
{
name: 'followemail',
},
{
name: 'address3_postalcode',
},
{
name: 'merged',
},
{
name: 'jobtitle',
},
{
name: 'address1_telephone1',
},
{
name: 'customersizecode',
},
{
name: 'address3_addresstypecode',
},
{
name: 'pager',
},
{
name: 'assistantname',
},
{
name: 'address1_composite',
},
{
name: 'address1_line1',
},
{
name: 'yomimiddlename',
},
{
name: 'address1_telephone3',
},
{
name: 'telephone2',
},
{
name: 'address2_addressid',
},
{
name: 'parentcontactidyominame',
},
{
name: 'leadsourcecode',
},
{
name: 'statecode',
},
{
name: 'address2_freighttermscode',
},
{
name: 'emailaddress1',
},
{
name: 'entityimage_timestamp',
},
{
name: 'address3_line1',
},
{
name: 'salutation',
},
{
name: 'address1_line3',
},
{
name: 'address3_primarycontactname',
},
{
name: 'ibizprivate',
},
{
name: 'donotfax',
},
{
name: 'createdate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'updatedate',
},
{
name: 'address3_stateorprovince',
},
{
name: 'address3_line3',
},
{
name: 'creditlimit',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'parentcustomerid',
},
{
name: 'childrensnames',
},
{
name: 'address1_addresstypecode',
},
{
name: 'accountrolecode',
},
{
name: 'donotphone',
},
{
name: 'managerphone',
},
{
name: 'creditonhold',
},
{
name: 'updateman',
},
{
name: 'address2_postalcode',
},
{
name: 'address1_line2',
},
{
name: 'nickname',
},
{
name: 'versionnumber',
},
{
name: 'yomifullname',
},
{
name: 'entityimage',
},
{
name: 'shippingmethodcode',
},
{
name: 'customertypecode',
},
{
name: 'address2_county',
},
{
name: 'aging90',
},
{
name: 'address2_stateorprovince',
},
{
name: 'address3_utcoffset',
},
{
name: 'fullname',
},
{
name: 'participatesinworkflow',
},
{
name: 'websiteurl',
},
{
name: 'description',
},
{
name: 'address3_telephone1',
},
{
name: 'address2_upszone',
},
{
name: 'address3_county',
},
{
name: 'entityimage_url',
},
{
name: 'address3_upszone',
},
{
name: 'address1_name',
},
{
name: 'mastercontactidyominame',
},
{
name: 'autocreate',
},
{
name: 'backofficecustomer',
},
{
name: 'address2_longitude',
},
{
name: 'address1_fax',
},
{
name: 'exchangerate',
},
{
name: 'address1_city',
},
{
name: 'entityimageid',
},
{
name: 'address1_telephone2',
},
{
name: 'address2_composite',
},
{
name: 'importsequencenumber',
},
{
name: 'gendercode',
},
{
name: 'annualincome',
},
{
name: 'subscriptionid',
},
{
name: 'territorycode',
},
{
name: 'firstname',
},
{
name: 'overriddencreatedon',
},
{
name: 'address3_country',
},
{
name: 'yomilastname',
},
{
name: 'donotbulkemail',
},
{
name: 'address3_telephone2',
},
{
name: 'ownerid',
},
{
name: 'externaluseridentifier',
},
{
name: 'teamsfollowed',
},
{
name: 'donotemail',
},
{
name: 'anniversary',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'middlename',
},
{
name: 'emailaddress3',
},
{
name: 'address2_telephone2',
},
{
name: 'fax',
},
{
name: 'mobilephone',
},
{
name: 'home2',
},
{
name: 'createman',
},
{
name: 'onholdtime',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'statuscode',
},
{
name: 'governmentid',
},
{
name: 'address3_telephone3',
},
{
name: 'business2',
},
{
name: 'preferredsystemuserid',
},
{
name: 'address1_upszone',
},
{
name: 'aging60',
},
{
name: 'yomifirstname',
},
{
name: 'address3_postofficebox',
},
{
name: 'address2_city',
},
{
name: 'processid',
},
{
name: 'annualincome_base',
},
{
name: 'address3_addressid',
},
{
name: 'parentcustomeridyominame',
},
{
name: 'contact',
prop: 'contactid',
},
{
name: 'aging60_base',
},
{
name: 'address3_latitude',
},
{
name: 'telephone3',
},
{
name: 'address1_primarycontactname',
},
{
name: 'address3_fax',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'address1_utcoffset',
},
{
name: 'donotsendmm',
},
{
name: 'address2_telephone3',
},
{
name: 'address2_country',
},
{
name: 'aging30',
},
{
name: 'address2_postofficebox',
},
{
name: 'telephone1',
},
{
name: 'address3_longitude',
},
{
name: 'lastusedincampaign',
},
{
name: 'ftpsiteurl',
},
{
name: 'aging30_base',
},
{
name: 'address2_name',
},
{
name: 'suffix',
},
{
name: 'address1_county',
},
{
name: 'address2_addresstypecode',
},
{
name: 'address1_longitude',
},
{
name: 'address3_line2',
},
{
name: 'address1_addressid',
},
{
name: 'address2_line3',
},
{
name: 'address2_latitude',
},
{
name: 'address2_line2',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address3_freighttermscode',
},
{
name: 'address1_postofficebox',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'address3_name',
},
{
name: 'address1_latitude',
},
{
name: 'numberofchildren',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_postalcode',
},
{
name: 'stageid',
},
{
name: 'address1_country',
},
{
name: 'emailaddress2',
},
{
name: 'slaname',
},
{
name: 'defaultpricelevelid',
},
{
name: 'preferredequipmentid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'slaid',
},
{
name: 'originatingleadid',
},
{
name: 'preferredserviceid',
},
{
name: 'defaultpricelevelname',
},
{
name: 'originatingleadname',
},
{
name: 'transactioncurrencyname',
},
{
name: 'preferredservicename',
},
{
name: 'preferredequipmentname',
},
{
name: 'customerid',
},
{
name: 'cusomername',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel3 部件服务对象
*
* @export
* @class Infotabviewpanel3Service
*/
export default class Infotabviewpanel3Service extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Infotabviewpanel3Base from './infotabviewpanel3-tabviewpanel-base.vue';
@Component({
components: {
}
})
export default class Infotabviewpanel3 extends Infotabviewpanel3Base {
}
</script>
\ No newline at end of file
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<activity-pointer-by-parent-key
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</activity-pointer-by-parent-key>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import Infotabviewpanel4Service from './infotabviewpanel4-tabviewpanel-service';
@Component({
components: {
}
})
export default class Infotabviewpanel4Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabviewpanel4
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabviewpanel4
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabviewpanel4
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabviewpanel4
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabviewpanel4
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabviewpanel4
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {Infotabviewpanel4Service}
* @memberof Infotabviewpanel4
*/
public service: Infotabviewpanel4Service = new Infotabviewpanel4Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel4
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabviewpanel4
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabviewpanel4
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel4
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel4
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel4
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel4
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel4
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof Infotabviewpanel4
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel4
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel4
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof Infotabviewpanel4
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
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);
}
/**
* 视图数据变化
*
* @memberof Infotabviewpanel4
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel4
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel4
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './infotabviewpanel4-tabviewpanel.less';
</style>
\ No newline at end of file
/**
* Infotabviewpanel4 部件模型
*
* @export
* @class Infotabviewpanel4Model
*/
export default class Infotabviewpanel4Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Infotabviewpanel4Model
*/
public getDataItems(): any[] {
return [
{
name: 'address1_freighttermscode',
},
{
name: 'address3_city',
},
{
name: 'department',
},
{
name: 'parentcustomeridtype',
},
{
name: 'address1_stateorprovince',
},
{
name: 'aging90_base',
},
{
name: 'accountidyominame',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'managername',
},
{
name: 'donotpostalmail',
},
{
name: 'spousesname',
},
{
name: 'familystatuscode',
},
{
name: 'owneridtype',
},
{
name: 'address3_composite',
},
{
name: 'address3_shippingmethodcode',
},
{
name: 'lastname',
},
{
name: 'lastonholdtime',
},
{
name: 'educationcode',
},
{
name: 'address2_line1',
},
{
name: 'birthdate',
},
{
name: 'owneridyominame',
},
{
name: 'haschildrencode',
},
{
name: 'company',
},
{
name: 'address2_fax',
},
{
name: 'assistantphone',
},
{
name: 'callback',
},
{
name: 'paymenttermscode',
},
{
name: 'address2_telephone1',
},
{
name: 'marketingonly',
},
{
name: 'address2_utcoffset',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'traversedpath',
},
{
name: 'employeeid',
},
{
name: 'creditlimit_base',
},
{
name: 'followemail',
},
{
name: 'address3_postalcode',
},
{
name: 'merged',
},
{
name: 'jobtitle',
},
{
name: 'address1_telephone1',
},
{
name: 'customersizecode',
},
{
name: 'address3_addresstypecode',
},
{
name: 'pager',
},
{
name: 'assistantname',
},
{
name: 'address1_composite',
},
{
name: 'address1_line1',
},
{
name: 'yomimiddlename',
},
{
name: 'address1_telephone3',
},
{
name: 'telephone2',
},
{
name: 'address2_addressid',
},
{
name: 'parentcontactidyominame',
},
{
name: 'leadsourcecode',
},
{
name: 'statecode',
},
{
name: 'address2_freighttermscode',
},
{
name: 'emailaddress1',
},
{
name: 'entityimage_timestamp',
},
{
name: 'address3_line1',
},
{
name: 'salutation',
},
{
name: 'address1_line3',
},
{
name: 'address3_primarycontactname',
},
{
name: 'ibizprivate',
},
{
name: 'donotfax',
},
{
name: 'createdate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'updatedate',
},
{
name: 'address3_stateorprovince',
},
{
name: 'address3_line3',
},
{
name: 'creditlimit',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'parentcustomerid',
},
{
name: 'childrensnames',
},
{
name: 'address1_addresstypecode',
},
{
name: 'accountrolecode',
},
{
name: 'donotphone',
},
{
name: 'managerphone',
},
{
name: 'creditonhold',
},
{
name: 'updateman',
},
{
name: 'address2_postalcode',
},
{
name: 'address1_line2',
},
{
name: 'nickname',
},
{
name: 'versionnumber',
},
{
name: 'yomifullname',
},
{
name: 'entityimage',
},
{
name: 'shippingmethodcode',
},
{
name: 'customertypecode',
},
{
name: 'address2_county',
},
{
name: 'aging90',
},
{
name: 'address2_stateorprovince',
},
{
name: 'address3_utcoffset',
},
{
name: 'fullname',
},
{
name: 'participatesinworkflow',
},
{
name: 'websiteurl',
},
{
name: 'description',
},
{
name: 'address3_telephone1',
},
{
name: 'address2_upszone',
},
{
name: 'address3_county',
},
{
name: 'entityimage_url',
},
{
name: 'address3_upszone',
},
{
name: 'address1_name',
},
{
name: 'mastercontactidyominame',
},
{
name: 'autocreate',
},
{
name: 'backofficecustomer',
},
{
name: 'address2_longitude',
},
{
name: 'address1_fax',
},
{
name: 'exchangerate',
},
{
name: 'address1_city',
},
{
name: 'entityimageid',
},
{
name: 'address1_telephone2',
},
{
name: 'address2_composite',
},
{
name: 'importsequencenumber',
},
{
name: 'gendercode',
},
{
name: 'annualincome',
},
{
name: 'subscriptionid',
},
{
name: 'territorycode',
},
{
name: 'firstname',
},
{
name: 'overriddencreatedon',
},
{
name: 'address3_country',
},
{
name: 'yomilastname',
},
{
name: 'donotbulkemail',
},
{
name: 'address3_telephone2',
},
{
name: 'ownerid',
},
{
name: 'externaluseridentifier',
},
{
name: 'teamsfollowed',
},
{
name: 'donotemail',
},
{
name: 'anniversary',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'middlename',
},
{
name: 'emailaddress3',
},
{
name: 'address2_telephone2',
},
{
name: 'fax',
},
{
name: 'mobilephone',
},
{
name: 'home2',
},
{
name: 'createman',
},
{
name: 'onholdtime',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'statuscode',
},
{
name: 'governmentid',
},
{
name: 'address3_telephone3',
},
{
name: 'business2',
},
{
name: 'preferredsystemuserid',
},
{
name: 'address1_upszone',
},
{
name: 'aging60',
},
{
name: 'yomifirstname',
},
{
name: 'address3_postofficebox',
},
{
name: 'address2_city',
},
{
name: 'processid',
},
{
name: 'annualincome_base',
},
{
name: 'address3_addressid',
},
{
name: 'parentcustomeridyominame',
},
{
name: 'contact',
prop: 'contactid',
},
{
name: 'aging60_base',
},
{
name: 'address3_latitude',
},
{
name: 'telephone3',
},
{
name: 'address1_primarycontactname',
},
{
name: 'address3_fax',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'address1_utcoffset',
},
{
name: 'donotsendmm',
},
{
name: 'address2_telephone3',
},
{
name: 'address2_country',
},
{
name: 'aging30',
},
{
name: 'address2_postofficebox',
},
{
name: 'telephone1',
},
{
name: 'address3_longitude',
},
{
name: 'lastusedincampaign',
},
{
name: 'ftpsiteurl',
},
{
name: 'aging30_base',
},
{
name: 'address2_name',
},
{
name: 'suffix',
},
{
name: 'address1_county',
},
{
name: 'address2_addresstypecode',
},
{
name: 'address1_longitude',
},
{
name: 'address3_line2',
},
{
name: 'address1_addressid',
},
{
name: 'address2_line3',
},
{
name: 'address2_latitude',
},
{
name: 'address2_line2',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address3_freighttermscode',
},
{
name: 'address1_postofficebox',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'address3_name',
},
{
name: 'address1_latitude',
},
{
name: 'numberofchildren',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_postalcode',
},
{
name: 'stageid',
},
{
name: 'address1_country',
},
{
name: 'emailaddress2',
},
{
name: 'slaname',
},
{
name: 'defaultpricelevelid',
},
{
name: 'preferredequipmentid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'slaid',
},
{
name: 'originatingleadid',
},
{
name: 'preferredserviceid',
},
{
name: 'defaultpricelevelname',
},
{
name: 'originatingleadname',
},
{
name: 'transactioncurrencyname',
},
{
name: 'preferredservicename',
},
{
name: 'preferredequipmentname',
},
{
name: 'customerid',
},
{
name: 'cusomername',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel4 部件服务对象
*
* @export
* @class Infotabviewpanel4Service
*/
export default class Infotabviewpanel4Service extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Infotabviewpanel4Base from './infotabviewpanel4-tabviewpanel-base.vue';
@Component({
components: {
}
})
export default class Infotabviewpanel4 extends Infotabviewpanel4Base {
}
</script>
\ No newline at end of file
......@@ -3182,7 +3182,7 @@
<!--输出实体[CONTACT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-230-43">
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-233-43">
<createTable tableName="CONTACT">
<column name="ADDRESS1_FREIGHTTERMSCODE" remarks="" type="VARCHAR(30)">
</column>
......@@ -3708,7 +3708,7 @@
<!--输出实体[QUOTE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-quote-23-46">
<changeSet author="a_LAB01_e85d8801c" id="tab-quote-27-46">
<createTable tableName="QUOTE">
<column name="BILLTO_COUNTRY" remarks="" type="VARCHAR(80)">
</column>
......@@ -4514,7 +4514,7 @@
<!--输出实体[ACCOUNT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-account-308-54">
<changeSet author="a_LAB01_e85d8801c" id="tab-account-311-54">
<createTable tableName="ACCOUNT">
<column name="ADDRESS1_PRIMARYCONTACTNAME" remarks="" type="VARCHAR(100)">
</column>
......@@ -8085,7 +8085,7 @@
<!--输出实体[COMPETITOR]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-competitor-32-89">
<changeSet author="a_LAB01_e85d8801c" id="tab-competitor-33-89">
<createTable tableName="COMPETITOR">
<column name="ENTITYIMAGE" remarks="" type="VARCHAR(100)">
</column>
......@@ -10400,7 +10400,7 @@
<!--输出实体[OPPORTUNITY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-opportunity-69-121">
<changeSet author="a_LAB01_e85d8801c" id="tab-opportunity-70-121">
<createTable tableName="OPPORTUNITY">
<column name="DECISIONMAKER" remarks="" type="INT">
</column>
......@@ -11031,25 +11031,25 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="MONTHLYFISCALCALENDAR" constraintName="DER1N_MONTHLYFISCALCALENDAR__T" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[CONTACT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-230-214">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-233-214">
<addForeignKeyConstraint baseColumnNames="CUSTOMERID" baseTableName="CONTACT" constraintName="DER1N_CONTACT_ACCOUNT_CUSTOMER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-230-215">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-233-215">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-230-216">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-233-216">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-230-217">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-233-217">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-230-218">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-233-218">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-230-219">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-233-219">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-230-220">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-233-220">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[TEAM]外键关系 -->
......@@ -11070,19 +11070,19 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="PRICELEVEL" constraintName="DER1N_PRICELEVEL__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[QUOTE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-23-226">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-27-226">
<addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__CAMPAIGN__CAMPAIG" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-23-227">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-27-227">
<addForeignKeyConstraint baseColumnNames="OPPORTUNITYID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__OPPORTUNITY__OPPO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="OPPORTUNITYID" referencedTableName="OPPORTUNITY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-23-228">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-27-228">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__PRICELEVEL__PRICE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-23-229">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-27-229">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-23-230">
<changeSet author="a_LAB01_e85d8801c" id="fk-quote-27-230">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="QUOTE" constraintName="DER1N_QUOTE__TRANSACTIONCURREN" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[BULKDELETEOPERATION]外键关系 -->
......@@ -11135,31 +11135,31 @@
<addForeignKeyConstraint baseColumnNames="METRICID" baseTableName="GOAL" constraintName="DER1N_GOAL__METRIC__METRICID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="METRICID" referencedTableName="METRIC" validate="true"/>
</changeSet>
<!--输出实体[ACCOUNT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-255">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-255">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__ACCOUNT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-256">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-256">
<addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__CONTACT__PRIMAR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-257">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-257">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-258">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-258">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-259">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-259">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-260">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-260">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-261">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-261">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-262">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-262">
<addForeignKeyConstraint baseColumnNames="TERRITORYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TERRITORY__TERR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TERRITORYID" referencedTableName="TERRITORY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-308-263">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-311-263">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[KNOWLEDGEARTICLEVIEWS]外键关系 -->
......@@ -11419,7 +11419,7 @@
<!--输出实体[CAMPAIGNLIST]外键关系 -->
<!--输出实体[LISTCONTACT]外键关系 -->
<!--输出实体[COMPETITOR]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-competitor-32-346">
<changeSet author="a_LAB01_e85d8801c" id="fk-competitor-33-346">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="COMPETITOR" constraintName="DER1N_COMPETITOR__TRANSACTIONC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[PRODUCT]外键关系 -->
......@@ -11619,25 +11619,25 @@
<!--输出实体[RELATIONSHIPS]外键关系 -->
<!--输出实体[CONNECTIONROLE]外键关系 -->
<!--输出实体[OPPORTUNITY]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-69-406">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-70-406">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__ACCOUNT__PA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-69-407">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-70-407">
<addForeignKeyConstraint baseColumnNames="CAMPAIGNID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__CAMPAIGN__C" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CAMPAIGNID" referencedTableName="CAMPAIGN" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-69-408">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-70-408">
<addForeignKeyConstraint baseColumnNames="PARENTCONTACTID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__CONTACT__PA" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-69-409">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-70-409">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__LEAD__ORIGI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-69-410">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-70-410">
<addForeignKeyConstraint baseColumnNames="PRICELEVELID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__PRICELEVEL_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-69-411">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-70-411">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-69-412">
<changeSet author="a_LAB01_e85d8801c" id="fk-opportunity-70-412">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="OPPORTUNITY" constraintName="DER1N_OPPORTUNITY__TRANSACTION" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[OPPORTUNITYCOMPETITOR]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册