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

xignzi006 发布系统代码

上级 fb87d4d7
......@@ -309,13 +309,13 @@
"viewtag": "5f8f689d5dccc3db6d2b74a24a8b24ef",
"memo": ""
},
"contactdetailinfoeditview9": {
"contactinfo_detail": {
"title": "联系人编辑视图",
"caption": "联系人",
"viewtype": "DEEDITVIEW9",
"viewmodule": "Base",
"viewname": "ContactDetailInfoEditView9",
"viewfilename": "contact-detail-info-edit-view9",
"viewname": "ContactInfo_Detail",
"viewfilename": "contact-info-detail",
"viewtag": "60093dd36f07238d7a7e72e9ed372942",
"memo": ""
},
......@@ -489,13 +489,13 @@
"viewtag": "9224b0b14d2d99014e051f8035ba5cbf",
"memo": "系统自动添加"
},
"contactabstracteditview9": {
"contactinfo_abstract": {
"title": "联系人编辑视图",
"caption": "联系人",
"viewtype": "DEEDITVIEW9",
"viewmodule": "Base",
"viewname": "ContactAbstractEditView9",
"viewfilename": "contact-abstract-edit-view9",
"viewname": "ContactInfo_Abstract",
"viewfilename": "contact-info-abstract",
"viewtag": "928f354b1e67a8b855b7f19f485299b0",
"memo": ""
},
......
......@@ -215,7 +215,7 @@ export default {
caption: "联系人",
title: '联系人数据看板视图',
},
detailinfoeditview9: {
info_detail: {
caption: "联系人",
title: '联系人编辑视图',
},
......@@ -227,7 +227,7 @@ export default {
caption: "联系人列表",
title: '联系人列表',
},
abstracteditview9: {
info_abstract: {
caption: "联系人",
title: '联系人编辑视图',
},
......@@ -480,7 +480,7 @@ export default {
tip: "Filter",
},
},
abstracteditview9toolbar_toolbar: {
info_abstracttoolbar_toolbar: {
deuiaction2: {
caption: "编辑",
tip: "编辑",
......
......@@ -214,7 +214,7 @@ export default {
caption: '联系人',
title: '联系人数据看板视图',
},
detailinfoeditview9: {
info_detail: {
caption: '联系人',
title: '联系人编辑视图',
},
......@@ -226,7 +226,7 @@ export default {
caption: '联系人列表',
title: '联系人列表',
},
abstracteditview9: {
info_abstract: {
caption: '联系人',
title: '联系人编辑视图',
},
......@@ -479,7 +479,7 @@ export default {
tip: '过滤',
},
},
abstracteditview9toolbar_toolbar: {
info_abstracttoolbar_toolbar: {
deuiaction2: {
caption: '编辑',
tip: '编辑',
......
......@@ -255,12 +255,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "OpportunityGridView",
"viewtag": "5f8f689d5dccc3db6d2b74a24a8b24ef"
},
"contactdetailinfoeditview9": {
"contactinfo_detail": {
"title": "联系人编辑视图",
"caption": "联系人",
"viewtype": "DEEDITVIEW9",
"viewmodule": "Base",
"viewname": "ContactDetailInfoEditView9",
"viewname": "ContactInfo_Detail",
"viewtag": "60093dd36f07238d7a7e72e9ed372942"
},
"goalgridview": {
......@@ -399,12 +399,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactByAccount",
"viewtag": "9224b0b14d2d99014e051f8035ba5cbf"
},
"contactabstracteditview9": {
"contactinfo_abstract": {
"title": "联系人编辑视图",
"caption": "联系人",
"viewtype": "DEEDITVIEW9",
"viewmodule": "Base",
"viewname": "ContactAbstractEditView9",
"viewname": "ContactInfo_Abstract",
"viewtag": "928f354b1e67a8b855b7f19f485299b0"
},
"serviceappointmenteditview": {
......
// 避免空文件,后台不让空文件过
.contact-dashboard-view9 {
--contact-dashboard-view9: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactDashboardView9Base from './contact-dashboard-view9-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 ContactDashboardView9 extends ContactDashboardView9Base {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.contact-info-abstract {
--contact-info-abstract: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactInfo_AbstractBase from './contact-info-abstract-base.vue';
import view_form from '@widgets/contact/abstract-info-form/abstract-info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ContactInfo_Abstract extends ContactInfo_AbstractBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.contact-info-detail {
--contact-info-detail: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactInfo_DetailBase from './contact-info-detail-base.vue';
import view_form from '@widgets/contact/detail-info-form/detail-info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ContactInfo_Detail extends ContactInfo_DetailBase {
}
</script>
\ No newline at end of file
......@@ -19,6 +19,7 @@ export const PageComponents = {
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('account-info-account', () => import('@pages/base/account-info-account/account-info-account.vue'));
Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'));
Vue.component('contact-dashboard-view9', () => import('@pages/base/contact-dashboard-view9/contact-dashboard-view9.vue'));
Vue.component('campaign-info-schedule', () => import('@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue'));
Vue.component('account-info-contact-setting', () => import('@pages/base/account-info-contact-setting/account-info-contact-setting.vue'));
Vue.component('campaign-edit-view', () => import('@pages/marketing/campaign-edit-view/campaign-edit-view.vue'));
......@@ -67,9 +68,9 @@ export const PageComponents = {
Vue.component('incident-grid-view', () => import('@pages/service/incident-grid-view/incident-grid-view.vue'));
Vue.component('account-summary', () => import('@pages/base/account-summary/account-summary.vue'));
Vue.component('campaign-summary-head', () => import('@pages/marketing/campaign-summary-head/campaign-summary-head.vue'));
Vue.component('contact-detail-info-edit-view9', () => import('@pages/base/contact-detail-info-edit-view9/contact-detail-info-edit-view9.vue'));
Vue.component('contact-info-detail', () => import('@pages/base/contact-info-detail/contact-info-detail.vue'));
Vue.component('account-edit-account-info', () => import('@pages/base/account-edit-account-info/account-edit-account-info.vue'));
Vue.component('contact-abstract-edit-view9', () => import('@pages/base/contact-abstract-edit-view9/contact-abstract-edit-view9.vue'));
Vue.component('contact-info-abstract', () => import('@pages/base/contact-info-abstract/contact-info-abstract.vue'));
Vue.component('campaign-summary', () => import('@pages/marketing/campaign-summary/campaign-summary.vue'));
Vue.component('contact-pickup-view', () => import('@pages/base/contact-pickup-view/contact-pickup-view.vue'));
Vue.component('account-edit-address', () => import('@pages/base/account-edit-address/account-edit-address.vue'));
......
......@@ -134,18 +134,18 @@ const router = new Router({
component: () => import('@pages/base/account-edit-view/account-edit-view.vue'),
},
{
path: 'contacts/:contact?/abstracteditview9/:abstracteditview9?',
path: 'contacts/:contact?/info_abstract/:info_abstract?',
meta: {
caption: 'entities.contact.views.abstracteditview9.title',
caption: 'entities.contact.views.info_abstract.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'abstracteditview9', parameterName: 'abstracteditview9' },
{ pathName: 'info_abstract', parameterName: 'info_abstract' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-abstract-edit-view9/contact-abstract-edit-view9.vue'),
component: () => import('@pages/base/contact-info-abstract/contact-info-abstract.vue'),
},
{
path: 'faxes/:fax?/editview/:editview?',
......@@ -343,6 +343,20 @@ const router = new Router({
},
component: () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'),
},
{
path: 'contacts/:contact?/dashboardview9/:dashboardview9?',
meta: {
caption: 'entities.contact.views.dashboardview9.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview9', parameterName: 'dashboardview9' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view9/contact-dashboard-view9.vue'),
},
{
path: 'campaigns/:campaign?/info_schedule/:info_schedule?',
meta: {
......@@ -470,18 +484,18 @@ const router = new Router({
component: () => import('@pages/base/account-info-address/account-info-address.vue'),
},
{
path: 'contacts/:contact?/detailinfoeditview9/:detailinfoeditview9?',
path: 'contacts/:contact?/info_detail/:info_detail?',
meta: {
caption: 'entities.contact.views.detailinfoeditview9.title',
caption: 'entities.contact.views.info_detail.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'detailinfoeditview9', parameterName: 'detailinfoeditview9' },
{ pathName: 'info_detail', parameterName: 'info_detail' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-detail-info-edit-view9/contact-detail-info-edit-view9.vue'),
component: () => import('@pages/base/contact-info-detail/contact-info-detail.vue'),
},
{
path: 'appointments/:appointment?/editview/:editview?',
......@@ -1440,6 +1454,19 @@ const router = new Router({
},
component: () => import('@pages/base/account-grid-view/account-grid-view.vue'),
},
{
path: '/contacts/:contact?/dashboardview9/:dashboardview9?',
meta: {
caption: 'entities.contact.views.dashboardview9.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview9', parameterName: 'dashboardview9' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view9/contact-dashboard-view9.vue'),
},
{
path: '/opportunities/:opportunity?/gridview/:gridview?',
meta: {
......@@ -1454,17 +1481,17 @@ const router = new Router({
component: () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'),
},
{
path: '/contacts/:contact?/detailinfoeditview9/:detailinfoeditview9?',
path: '/contacts/:contact?/info_detail/:info_detail?',
meta: {
caption: 'entities.contact.views.detailinfoeditview9.title',
caption: 'entities.contact.views.info_detail.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'detailinfoeditview9', parameterName: 'detailinfoeditview9' },
{ pathName: 'info_detail', parameterName: 'info_detail' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-detail-info-edit-view9/contact-detail-info-edit-view9.vue'),
component: () => import('@pages/base/contact-info-detail/contact-info-detail.vue'),
},
{
path: '/goals/:goal?/gridview/:gridview?',
......@@ -1661,17 +1688,17 @@ const router = new Router({
component: () => import('@pages/base/contact-by-account/contact-by-account.vue'),
},
{
path: '/contacts/:contact?/abstracteditview9/:abstracteditview9?',
path: '/contacts/:contact?/info_abstract/:info_abstract?',
meta: {
caption: 'entities.contact.views.abstracteditview9.title',
caption: 'entities.contact.views.info_abstract.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'abstracteditview9', parameterName: 'abstracteditview9' },
{ pathName: 'info_abstract', parameterName: 'info_abstract' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-abstract-edit-view9/contact-abstract-edit-view9.vue'),
component: () => import('@pages/base/contact-info-abstract/contact-info-abstract.vue'),
},
{
path: '/serviceappointments/:serviceappointment?/editview/:editview?',
......
......@@ -285,6 +285,16 @@ export const viewstate: any = {
'6e18ac74e5685439110f9b4e534ee005',
],
},
{
viewtag: '5f858bcdc7f62dbe7c0b05a5e3924240',
viewmodule: 'Base',
viewname: 'ContactDashboardView9',
viewaction: '',
viewdatachange: false,
refviews: [
'928f354b1e67a8b855b7f19f485299b0',
],
},
{
viewtag: '5f8f689d5dccc3db6d2b74a24a8b24ef',
viewmodule: 'Sales',
......@@ -298,7 +308,7 @@ export const viewstate: any = {
{
viewtag: '60093dd36f07238d7a7e72e9ed372942',
viewmodule: 'Base',
viewname: 'ContactDetailInfoEditView9',
viewname: 'ContactInfo_Detail',
viewaction: '',
viewdatachange: false,
refviews: [
......@@ -476,7 +486,7 @@ export const viewstate: any = {
{
viewtag: '928f354b1e67a8b855b7f19f485299b0',
viewmodule: 'Base',
viewname: 'ContactAbstractEditView9',
viewname: 'ContactInfo_Abstract',
viewaction: '',
viewdatachange: false,
refviews: [
......@@ -790,7 +800,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'60093dd36f07238d7a7e72e9ed372942',
'928f354b1e67a8b855b7f19f485299b0',
'5f858bcdc7f62dbe7c0b05a5e3924240',
],
},
],
......
......@@ -82,10 +82,10 @@ export default class ContactUIServiceBase extends UIService {
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'abstracteditview9_editmode',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'dashboardview9',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'detailinfoeditview9',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_detail',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'byaccount',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'abstracteditview9',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_abstract',srfappde:'contacts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'contacts'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'optionview',srfappde:'contacts'});
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SummaryBase from './summary-dashboard-base.vue';
import view_dashboard_sysportlet8 from '@widgets/activity-pointer/pt-by-parent-key-portlet/pt-by-parent-key-portlet.vue';
import view_dashboard_sysportlet4 from '@widgets/account/pt-contact-setting-portlet/pt-contact-setting-portlet.vue';
import view_dashboard_sysportlet5 from '@widgets/account/pt-distribution-portlet/pt-distribution-portlet.vue';
import view_dashboard_sysportlet2 from '@widgets/account/pt-address-portlet/pt-address-portlet.vue';
import view_dashboard_sysportlet3 from '@widgets/account/pt-introduction-portlet/pt-introduction-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/account/pt-account-info-portlet/pt-account-info-portlet.vue';
import view_dashboard_sysportlet8 from '@widgets/activity-pointer/list-by-parent-key-portlet/list-by-parent-key-portlet.vue';
import view_dashboard_sysportlet4 from '@widgets/account/view-contact-setting-portlet/view-contact-setting-portlet.vue';
import view_dashboard_sysportlet5 from '@widgets/account/view-distribution-portlet/view-distribution-portlet.vue';
import view_dashboard_sysportlet2 from '@widgets/account/view-address-portlet/view-address-portlet.vue';
import view_dashboard_sysportlet3 from '@widgets/account/view-introduction-portlet/view-introduction-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/account/view-account-info-portlet/view-account-info-portlet.vue';
@Component({
......
<template>
<div class='portlet view-account-info ' :style="{'height': 'auto',}">
<p class='portlet-title'>
<span>
账户信息
</span>
<span class="portlet-action">
<a @click="uiAction('uc040f39', $event)">
<span>编辑</span>
</a>
</span>
</p>
<div class="portlet-with-title">
<account-info-account :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></account-info-account>
</div>
</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 AccountService from '@/service/account/account-service';
import View_AccountInfoService from './view-account-info-portlet-service';
import AccountUIService from '@/uiservice/account/account-ui-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class AccountView_AccountInfoBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof View_AccountInfo
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof View_AccountInfo
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof View_AccountInfo
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof View_AccountInfo
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof View_AccountInfo
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof View_AccountInfo
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof View_AccountInfo
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {View_AccountInfoService}
* @memberof View_AccountInfo
*/
public service: View_AccountInfoService = new View_AccountInfoService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof View_AccountInfo
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public dashboard_sysportlet1_uc040f39_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:AccountUIService = new AccountUIService();
curUIService.Account_Edit_AccountInfo(datas,contextJO, paramJO, $event, xData,this,"Account");
}
/**
* 关闭视图
*
* @param {any} args
* @memberof View_AccountInfo
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof View_AccountInfo
*/
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();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof View_AccountInfo
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof View_AccountInfo
*/
@Prop() public width?: number;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof View_AccountInfoBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof View_AccountInfoBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof View_AccountInfoBase
*/
public getData(): any {
return {};
}
/**
* vue 生命周期
*
* @memberof View_AccountInfoBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof View_AccountInfoBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof View_AccountInfoBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof View_AccountInfoBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 执行界面行为
*
* @memberof View_AccountInfoBase
*/
public uiAction(tag:string,event:any){
if(Object.is(tag,'uc040f39')){
this.dashboard_sysportlet1_uc040f39_click(null,tag,event);
}
}
}
</script>
<style lang='less'>
@import './view-account-info-portlet.less';
</style>
/**
* View_AccountInfo 部件模型
*
* @export
* @class View_AccountInfoModel
*/
export default class View_AccountInfoModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof View_AccountInfoModel
*/
public getDataItems(): any[] {
return [
{
name: 'address1_primarycontactname',
},
{
name: 'openrevenue_date',
},
{
name: 'address2_utcoffset',
},
{
name: 'fax',
},
{
name: 'address1_composite',
},
{
name: 'entityimage',
},
{
name: 'emailaddress1',
},
{
name: 'overriddencreatedon',
},
{
name: 'address1_stateorprovince',
},
{
name: 'openrevenue',
},
{
name: 'address1_upszone',
},
{
name: 'followemail',
},
{
name: 'marketingonly',
},
{
name: 'numberofemployees',
},
{
name: 'telephone1',
},
{
name: 'aging60',
},
{
name: 'sharesoutstanding',
},
{
name: 'address2_freighttermscode',
},
{
name: 'entityimage_timestamp',
},
{
name: 'revenue_base',
},
{
name: 'accountratingcode',
},
{
name: 'donotbulkemail',
},
{
name: 'aging30',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'creditlimit_base',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'customertypecode',
},
{
name: 'address2_longitude',
},
{
name: 'accountname',
},
{
name: 'participatesinworkflow',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'marketcap',
},
{
name: 'address2_telephone1',
},
{
name: 'businesstypecode',
},
{
name: 'entityimageid',
},
{
name: 'address2_city',
},
{
name: 'ownershipcode',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'accountnumber',
},
{
name: 'address1_telephone2',
},
{
name: 'address1_line1',
},
{
name: 'donotphone',
},
{
name: 'address1_telephone3',
},
{
name: 'exchangerate',
},
{
name: 'address2_line2',
},
{
name: 'address2_telephone3',
},
{
name: 'address1_telephone1',
},
{
name: 'address1_fax',
},
{
name: 'address1_freighttermscode',
},
{
name: 'description',
},
{
name: 'merged',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address1_name',
},
{
name: 'aging30_base',
},
{
name: 'address2_telephone2',
},
{
name: 'account',
prop: 'accountid',
},
{
name: 'primarytwitterid',
},
{
name: 'tickersymbol',
},
{
name: 'stockexchange',
},
{
name: 'address2_stateorprovince',
},
{
name: 'ftpsiteurl',
},
{
name: 'statuscode',
},
{
name: 'websiteurl',
},
{
name: 'donotpostalmail',
},
{
name: 'address1_city',
},
{
name: 'address2_fax',
},
{
name: 'aging90_base',
},
{
name: 'opendeals_date',
},
{
name: 'traversedpath',
},
{
name: 'shippingmethodcode',
},
{
name: 'address1_line2',
},
{
name: 'openrevenue_base',
},
{
name: 'updatedate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'address2_line3',
},
{
name: 'address1_postalcode',
},
{
name: 'address2_latitude',
},
{
name: 'ibizprivate',
},
{
name: 'territorycode',
},
{
name: 'teamsfollowed',
},
{
name: 'yominame',
},
{
name: 'address1_latitude',
},
{
name: 'telephone3',
},
{
name: 'ownerid',
},
{
name: 'address2_country',
},
{
name: 'masteraccountidyominame',
},
{
name: 'industrycode',
},
{
name: 'lastonholdtime',
},
{
name: 'address2_addressid',
},
{
name: 'onholdtime',
},
{
name: 'accountclassificationcode',
},
{
name: 'address1_country',
},
{
name: 'address1_addresstypecode',
},
{
name: 'statecode',
},
{
name: 'address2_addresstypecode',
},
{
name: 'accountcategorycode',
},
{
name: 'emailaddress2',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'importsequencenumber',
},
{
name: 'primarysatoriid',
},
{
name: 'customersizecode',
},
{
name: 'opendeals',
},
{
name: 'donotsendmm',
},
{
name: 'processid',
},
{
name: 'paymenttermscode',
},
{
name: 'sic',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_utcoffset',
},
{
name: 'owneridyominame',
},
{
name: 'lastusedincampaign',
},
{
name: 'aging60_base',
},
{
name: 'donotfax',
},
{
name: 'updateman',
},
{
name: 'openrevenue_state',
},
{
name: 'opendeals_state',
},
{
name: 'versionnumber',
},
{
name: 'address1_longitude',
},
{
name: 'aging90',
},
{
name: 'entityimage_url',
},
{
name: 'creditlimit',
},
{
name: 'preferredsystemuserid',
},
{
name: 'revenue',
},
{
name: 'address1_county',
},
{
name: 'address1_line3',
},
{
name: 'stageid',
},
{
name: 'donotemail',
},
{
name: 'address2_postalcode',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'address2_upszone',
},
{
name: 'createdate',
},
{
name: 'address2_county',
},
{
name: 'owneridtype',
},
{
name: 'address2_composite',
},
{
name: 'address2_name',
},
{
name: 'address2_line1',
},
{
name: 'marketcap_base',
},
{
name: 'emailaddress3',
},
{
name: 'telephone2',
},
{
name: 'createman',
},
{
name: 'address1_postofficebox',
},
{
name: 'creditonhold',
},
{
name: 'address1_addressid',
},
{
name: 'address2_postofficebox',
},
{
name: 'slaname',
},
{
name: 'originatingleadid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'defaultpricelevelid',
},
{
name: 'parentaccountid',
},
{
name: 'preferredequipmentid',
},
{
name: 'territoryid',
},
{
name: 'primarycontactid',
},
{
name: 'slaid',
},
{
name: 'preferredserviceid',
},
{
name: 'originatingleadname',
},
{
name: 'defaultpricelevelname',
},
{
name: 'territoryname',
},
{
name: 'parentaccountname',
},
{
name: 'preferredequipmentname',
},
{
name: 'preferredservicename',
},
{
name: 'primarycontactname',
},
{
name: 'transactioncurrencyname',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_AccountInfo 部件服务对象
*
* @export
* @class View_AccountInfoService
*/
export default class View_AccountInfoService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountView_AccountInfoBase from './view-account-info-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountView_AccountInfo extends AccountView_AccountInfoBase {
}
</script>
<template>
<div class='portlet view-address ' :style="{'height': 'auto',}">
<p class='portlet-title'>
<span>
地址信息
</span>
<span class="portlet-action">
<a @click="uiAction('u2ccbfc9', $event)">
<span>编辑</span>
</a>
</span>
</p>
<div class="portlet-with-title">
<account-info-address :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></account-info-address>
</div>
</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 AccountService from '@/service/account/account-service';
import View_AddressService from './view-address-portlet-service';
import AccountUIService from '@/uiservice/account/account-ui-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class AccountView_AddressBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof View_Address
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof View_Address
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof View_Address
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof View_Address
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof View_Address
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof View_Address
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof View_Address
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {View_AddressService}
* @memberof View_Address
*/
public service: View_AddressService = new View_AddressService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof View_Address
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public dashboard_sysportlet2_u2ccbfc9_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
const curUIService:AccountUIService = new AccountUIService();
curUIService.Account_Edit_Address(datas,contextJO, paramJO, $event, xData,this,"Account");
}
/**
* 关闭视图
*
* @param {any} args
* @memberof View_Address
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof View_Address
*/
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();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof View_Address
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof View_Address
*/
@Prop() public width?: number;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof View_AddressBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof View_AddressBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof View_AddressBase
*/
public getData(): any {
return {};
}
/**
* vue 生命周期
*
* @memberof View_AddressBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof View_AddressBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof View_AddressBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof View_AddressBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 执行界面行为
*
* @memberof View_AddressBase
*/
public uiAction(tag:string,event:any){
if(Object.is(tag,'u2ccbfc9')){
this.dashboard_sysportlet2_u2ccbfc9_click(null,tag,event);
}
}
}
</script>
<style lang='less'>
@import './view-address-portlet.less';
</style>
/**
* View_Address 部件模型
*
* @export
* @class View_AddressModel
*/
export default class View_AddressModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof View_AddressModel
*/
public getDataItems(): any[] {
return [
{
name: 'address1_primarycontactname',
},
{
name: 'openrevenue_date',
},
{
name: 'address2_utcoffset',
},
{
name: 'fax',
},
{
name: 'address1_composite',
},
{
name: 'entityimage',
},
{
name: 'emailaddress1',
},
{
name: 'overriddencreatedon',
},
{
name: 'address1_stateorprovince',
},
{
name: 'openrevenue',
},
{
name: 'address1_upszone',
},
{
name: 'followemail',
},
{
name: 'marketingonly',
},
{
name: 'numberofemployees',
},
{
name: 'telephone1',
},
{
name: 'aging60',
},
{
name: 'sharesoutstanding',
},
{
name: 'address2_freighttermscode',
},
{
name: 'entityimage_timestamp',
},
{
name: 'revenue_base',
},
{
name: 'accountratingcode',
},
{
name: 'donotbulkemail',
},
{
name: 'aging30',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'creditlimit_base',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'customertypecode',
},
{
name: 'address2_longitude',
},
{
name: 'accountname',
},
{
name: 'participatesinworkflow',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'marketcap',
},
{
name: 'address2_telephone1',
},
{
name: 'businesstypecode',
},
{
name: 'entityimageid',
},
{
name: 'address2_city',
},
{
name: 'ownershipcode',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'accountnumber',
},
{
name: 'address1_telephone2',
},
{
name: 'address1_line1',
},
{
name: 'donotphone',
},
{
name: 'address1_telephone3',
},
{
name: 'exchangerate',
},
{
name: 'address2_line2',
},
{
name: 'address2_telephone3',
},
{
name: 'address1_telephone1',
},
{
name: 'address1_fax',
},
{
name: 'address1_freighttermscode',
},
{
name: 'description',
},
{
name: 'merged',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address1_name',
},
{
name: 'aging30_base',
},
{
name: 'address2_telephone2',
},
{
name: 'account',
prop: 'accountid',
},
{
name: 'primarytwitterid',
},
{
name: 'tickersymbol',
},
{
name: 'stockexchange',
},
{
name: 'address2_stateorprovince',
},
{
name: 'ftpsiteurl',
},
{
name: 'statuscode',
},
{
name: 'websiteurl',
},
{
name: 'donotpostalmail',
},
{
name: 'address1_city',
},
{
name: 'address2_fax',
},
{
name: 'aging90_base',
},
{
name: 'opendeals_date',
},
{
name: 'traversedpath',
},
{
name: 'shippingmethodcode',
},
{
name: 'address1_line2',
},
{
name: 'openrevenue_base',
},
{
name: 'updatedate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'address2_line3',
},
{
name: 'address1_postalcode',
},
{
name: 'address2_latitude',
},
{
name: 'ibizprivate',
},
{
name: 'territorycode',
},
{
name: 'teamsfollowed',
},
{
name: 'yominame',
},
{
name: 'address1_latitude',
},
{
name: 'telephone3',
},
{
name: 'ownerid',
},
{
name: 'address2_country',
},
{
name: 'masteraccountidyominame',
},
{
name: 'industrycode',
},
{
name: 'lastonholdtime',
},
{
name: 'address2_addressid',
},
{
name: 'onholdtime',
},
{
name: 'accountclassificationcode',
},
{
name: 'address1_country',
},
{
name: 'address1_addresstypecode',
},
{
name: 'statecode',
},
{
name: 'address2_addresstypecode',
},
{
name: 'accountcategorycode',
},
{
name: 'emailaddress2',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'importsequencenumber',
},
{
name: 'primarysatoriid',
},
{
name: 'customersizecode',
},
{
name: 'opendeals',
},
{
name: 'donotsendmm',
},
{
name: 'processid',
},
{
name: 'paymenttermscode',
},
{
name: 'sic',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_utcoffset',
},
{
name: 'owneridyominame',
},
{
name: 'lastusedincampaign',
},
{
name: 'aging60_base',
},
{
name: 'donotfax',
},
{
name: 'updateman',
},
{
name: 'openrevenue_state',
},
{
name: 'opendeals_state',
},
{
name: 'versionnumber',
},
{
name: 'address1_longitude',
},
{
name: 'aging90',
},
{
name: 'entityimage_url',
},
{
name: 'creditlimit',
},
{
name: 'preferredsystemuserid',
},
{
name: 'revenue',
},
{
name: 'address1_county',
},
{
name: 'address1_line3',
},
{
name: 'stageid',
},
{
name: 'donotemail',
},
{
name: 'address2_postalcode',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'address2_upszone',
},
{
name: 'createdate',
},
{
name: 'address2_county',
},
{
name: 'owneridtype',
},
{
name: 'address2_composite',
},
{
name: 'address2_name',
},
{
name: 'address2_line1',
},
{
name: 'marketcap_base',
},
{
name: 'emailaddress3',
},
{
name: 'telephone2',
},
{
name: 'createman',
},
{
name: 'address1_postofficebox',
},
{
name: 'creditonhold',
},
{
name: 'address1_addressid',
},
{
name: 'address2_postofficebox',
},
{
name: 'slaname',
},
{
name: 'originatingleadid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'defaultpricelevelid',
},
{
name: 'parentaccountid',
},
{
name: 'preferredequipmentid',
},
{
name: 'territoryid',
},
{
name: 'primarycontactid',
},
{
name: 'slaid',
},
{
name: 'preferredserviceid',
},
{
name: 'originatingleadname',
},
{
name: 'defaultpricelevelname',
},
{
name: 'territoryname',
},
{
name: 'parentaccountname',
},
{
name: 'preferredequipmentname',
},
{
name: 'preferredservicename',
},
{
name: 'primarycontactname',
},
{
name: 'transactioncurrencyname',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_Address 部件服务对象
*
* @export
* @class View_AddressService
*/
export default class View_AddressService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountView_AddressBase from './view-address-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountView_Address extends AccountView_AddressBase {
}
</script>
<template>
<div class='portlet view-contact-setting ' :style="{'height': 'auto',}">
<p class='portlet-title'>
<span>
联系人选项
</span>
</p>
<div class="portlet-with-title">
<account-info-contact-setting :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></account-info-contact-setting>
</div>
</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 AccountService from '@/service/account/account-service';
import View_ContactSettingService from './view-contact-setting-portlet-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class AccountView_ContactSettingBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof View_ContactSetting
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof View_ContactSetting
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof View_ContactSetting
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof View_ContactSetting
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof View_ContactSetting
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof View_ContactSetting
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof View_ContactSetting
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {View_ContactSettingService}
* @memberof View_ContactSetting
*/
public service: View_ContactSettingService = new View_ContactSettingService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof View_ContactSetting
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof View_ContactSetting
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof View_ContactSetting
*/
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();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof View_ContactSetting
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof View_ContactSetting
*/
@Prop() public width?: number;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof View_ContactSettingBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof View_ContactSettingBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof View_ContactSettingBase
*/
public getData(): any {
return {};
}
/**
* vue 生命周期
*
* @memberof View_ContactSettingBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof View_ContactSettingBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof View_ContactSettingBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof View_ContactSettingBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './view-contact-setting-portlet.less';
</style>
/**
* View_ContactSetting 部件模型
*
* @export
* @class View_ContactSettingModel
*/
export default class View_ContactSettingModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof View_ContactSettingModel
*/
public getDataItems(): any[] {
return [
{
name: 'address1_primarycontactname',
},
{
name: 'openrevenue_date',
},
{
name: 'address2_utcoffset',
},
{
name: 'fax',
},
{
name: 'address1_composite',
},
{
name: 'entityimage',
},
{
name: 'emailaddress1',
},
{
name: 'overriddencreatedon',
},
{
name: 'address1_stateorprovince',
},
{
name: 'openrevenue',
},
{
name: 'address1_upszone',
},
{
name: 'followemail',
},
{
name: 'marketingonly',
},
{
name: 'numberofemployees',
},
{
name: 'telephone1',
},
{
name: 'aging60',
},
{
name: 'sharesoutstanding',
},
{
name: 'address2_freighttermscode',
},
{
name: 'entityimage_timestamp',
},
{
name: 'revenue_base',
},
{
name: 'accountratingcode',
},
{
name: 'donotbulkemail',
},
{
name: 'aging30',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'creditlimit_base',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'customertypecode',
},
{
name: 'address2_longitude',
},
{
name: 'accountname',
},
{
name: 'participatesinworkflow',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'marketcap',
},
{
name: 'address2_telephone1',
},
{
name: 'businesstypecode',
},
{
name: 'entityimageid',
},
{
name: 'address2_city',
},
{
name: 'ownershipcode',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'accountnumber',
},
{
name: 'address1_telephone2',
},
{
name: 'address1_line1',
},
{
name: 'donotphone',
},
{
name: 'address1_telephone3',
},
{
name: 'exchangerate',
},
{
name: 'address2_line2',
},
{
name: 'address2_telephone3',
},
{
name: 'address1_telephone1',
},
{
name: 'address1_fax',
},
{
name: 'address1_freighttermscode',
},
{
name: 'description',
},
{
name: 'merged',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address1_name',
},
{
name: 'aging30_base',
},
{
name: 'address2_telephone2',
},
{
name: 'account',
prop: 'accountid',
},
{
name: 'primarytwitterid',
},
{
name: 'tickersymbol',
},
{
name: 'stockexchange',
},
{
name: 'address2_stateorprovince',
},
{
name: 'ftpsiteurl',
},
{
name: 'statuscode',
},
{
name: 'websiteurl',
},
{
name: 'donotpostalmail',
},
{
name: 'address1_city',
},
{
name: 'address2_fax',
},
{
name: 'aging90_base',
},
{
name: 'opendeals_date',
},
{
name: 'traversedpath',
},
{
name: 'shippingmethodcode',
},
{
name: 'address1_line2',
},
{
name: 'openrevenue_base',
},
{
name: 'updatedate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'address2_line3',
},
{
name: 'address1_postalcode',
},
{
name: 'address2_latitude',
},
{
name: 'ibizprivate',
},
{
name: 'territorycode',
},
{
name: 'teamsfollowed',
},
{
name: 'yominame',
},
{
name: 'address1_latitude',
},
{
name: 'telephone3',
},
{
name: 'ownerid',
},
{
name: 'address2_country',
},
{
name: 'masteraccountidyominame',
},
{
name: 'industrycode',
},
{
name: 'lastonholdtime',
},
{
name: 'address2_addressid',
},
{
name: 'onholdtime',
},
{
name: 'accountclassificationcode',
},
{
name: 'address1_country',
},
{
name: 'address1_addresstypecode',
},
{
name: 'statecode',
},
{
name: 'address2_addresstypecode',
},
{
name: 'accountcategorycode',
},
{
name: 'emailaddress2',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'importsequencenumber',
},
{
name: 'primarysatoriid',
},
{
name: 'customersizecode',
},
{
name: 'opendeals',
},
{
name: 'donotsendmm',
},
{
name: 'processid',
},
{
name: 'paymenttermscode',
},
{
name: 'sic',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_utcoffset',
},
{
name: 'owneridyominame',
},
{
name: 'lastusedincampaign',
},
{
name: 'aging60_base',
},
{
name: 'donotfax',
},
{
name: 'updateman',
},
{
name: 'openrevenue_state',
},
{
name: 'opendeals_state',
},
{
name: 'versionnumber',
},
{
name: 'address1_longitude',
},
{
name: 'aging90',
},
{
name: 'entityimage_url',
},
{
name: 'creditlimit',
},
{
name: 'preferredsystemuserid',
},
{
name: 'revenue',
},
{
name: 'address1_county',
},
{
name: 'address1_line3',
},
{
name: 'stageid',
},
{
name: 'donotemail',
},
{
name: 'address2_postalcode',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'address2_upszone',
},
{
name: 'createdate',
},
{
name: 'address2_county',
},
{
name: 'owneridtype',
},
{
name: 'address2_composite',
},
{
name: 'address2_name',
},
{
name: 'address2_line1',
},
{
name: 'marketcap_base',
},
{
name: 'emailaddress3',
},
{
name: 'telephone2',
},
{
name: 'createman',
},
{
name: 'address1_postofficebox',
},
{
name: 'creditonhold',
},
{
name: 'address1_addressid',
},
{
name: 'address2_postofficebox',
},
{
name: 'slaname',
},
{
name: 'originatingleadid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'defaultpricelevelid',
},
{
name: 'parentaccountid',
},
{
name: 'preferredequipmentid',
},
{
name: 'territoryid',
},
{
name: 'primarycontactid',
},
{
name: 'slaid',
},
{
name: 'preferredserviceid',
},
{
name: 'originatingleadname',
},
{
name: 'defaultpricelevelname',
},
{
name: 'territoryname',
},
{
name: 'parentaccountname',
},
{
name: 'preferredequipmentname',
},
{
name: 'preferredservicename',
},
{
name: 'primarycontactname',
},
{
name: 'transactioncurrencyname',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_ContactSetting 部件服务对象
*
* @export
* @class View_ContactSettingService
*/
export default class View_ContactSettingService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountView_ContactSettingBase from './view-contact-setting-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountView_ContactSetting extends AccountView_ContactSettingBase {
}
</script>
<template>
<div class='portlet view-distribution ' :style="{'height': 'auto',}">
<p class='portlet-title'>
<span>
配送
</span>
</p>
<div class="portlet-with-title">
<account-info-distribution :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></account-info-distribution>
</div>
</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 AccountService from '@/service/account/account-service';
import View_DistributionService from './view-distribution-portlet-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class AccountView_DistributionBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof View_Distribution
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof View_Distribution
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof View_Distribution
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof View_Distribution
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof View_Distribution
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof View_Distribution
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof View_Distribution
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {View_DistributionService}
* @memberof View_Distribution
*/
public service: View_DistributionService = new View_DistributionService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof View_Distribution
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof View_Distribution
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof View_Distribution
*/
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();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof View_Distribution
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof View_Distribution
*/
@Prop() public width?: number;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof View_DistributionBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof View_DistributionBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof View_DistributionBase
*/
public getData(): any {
return {};
}
/**
* vue 生命周期
*
* @memberof View_DistributionBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof View_DistributionBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof View_DistributionBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof View_DistributionBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './view-distribution-portlet.less';
</style>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_Distribution 部件服务对象
*
* @export
* @class View_DistributionService
*/
export default class View_DistributionService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountView_DistributionBase from './view-distribution-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountView_Distribution extends AccountView_DistributionBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_Introduction 部件服务对象
*
* @export
* @class View_IntroductionService
*/
export default class View_IntroductionService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountView_IntroductionBase from './view-introduction-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountView_Introduction extends AccountView_IntroductionBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* List_ByParentKey 部件服务对象
*
* @export
* @class List_ByParentKeyService
*/
export default class List_ByParentKeyService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ActivityPointerList_ByParentKeyBase from './list-by-parent-key-portlet-base.vue';
import view_dashboard_sysportlet8_list from '@widgets/activity-pointer/by-parent-key-list/by-parent-key-list.vue';
@Component({
components: {
view_dashboard_sysportlet8_list,
}
})
export default class ActivityPointerList_ByParentKey extends ActivityPointerList_ByParentKeyBase {
}
</script>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Head_SummaryBase from './head-summary-dashboard-base.vue';
import view_dashboard_sysportlet2 from '@widgets/campaign/pt-info-portlet/pt-info-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/campaign/pt-info-head-portlet/pt-info-head-portlet.vue';
import view_dashboard_sysportlet2 from '@widgets/campaign/view-info-portlet/view-info-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/campaign/view-head-portlet/view-head-portlet.vue';
@Component({
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SummaryBase from './summary-dashboard-base.vue';
import view_dashboard_sysportlet2 from '@widgets/campaign/pt-info-schedule-portlet/pt-info-schedule-portlet.vue';
import view_dashboard_sysportlet3 from '@widgets/campaign/pt-info-manager-portlet/pt-info-manager-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/campaign/pt-info-campagin-portlet/pt-info-campagin-portlet.vue';
import view_dashboard_sysportlet2 from '@widgets/campaign/view-schedule-portlet/view-schedule-portlet.vue';
import view_dashboard_sysportlet3 from '@widgets/campaign/view-manager-portlet/view-manager-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/campaign/view-campagin-portlet/view-campagin-portlet.vue';
@Component({
......
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_Campagin 部件服务对象
*
* @export
* @class View_CampaginService
*/
export default class View_CampaginService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CampaignView_CampaginBase from './view-campagin-portlet-base.vue';
@Component({
components: {
}
})
export default class CampaignView_Campagin extends CampaignView_CampaginBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_Head 部件服务对象
*
* @export
* @class View_HeadService
*/
export default class View_HeadService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CampaignView_HeadBase from './view-head-portlet-base.vue';
@Component({
components: {
}
})
export default class CampaignView_Head extends CampaignView_HeadBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_Info 部件服务对象
*
* @export
* @class View_InfoService
*/
export default class View_InfoService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import CampaignView_InfoBase from './view-info-portlet-base.vue';
@Component({
components: {
}
})
export default class CampaignView_Info extends CampaignView_InfoBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_Manager 部件服务对象
*
* @export
* @class View_ManagerService
*/
export default class View_ManagerService extends ControlService {
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册