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

xignzi006 发布系统代码

上级 0e0fd549
...@@ -160,6 +160,43 @@ ...@@ -160,6 +160,43 @@
} }
] ]
}, },
{
"srfkey": "List__MemberType",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "Account",
"label": "客户",
"text": "客户",
"data":"",
"codename":"Account",
"value": "Account",
"disabled": false
}
, {
"id": "Lead",
"label": "潜在客户",
"text": "潜在客户",
"data":"",
"codename":"Lead",
"value": "Lead",
"disabled": false
}
, {
"id": "Contact",
"label": "联系人",
"text": "联系人",
"data":"",
"codename":"Contact",
"value": "Contact",
"disabled": false
}
]
},
{ {
"srfkey": "Lead__IndustryCode", "srfkey": "Lead__IndustryCode",
"emptytext": "未定义", "emptytext": "未定义",
......
...@@ -919,6 +919,16 @@ ...@@ -919,6 +919,16 @@
"viewtag": "aa79d35850f36fbc1a5085353ecd5af5", "viewtag": "aa79d35850f36fbc1a5085353ecd5af5",
"memo": "" "memo": ""
}, },
"listcontactinner": {
"title": "营销列表-联系人表格视图",
"caption": "联系人",
"viewtype": "DEGRIDVIEW9",
"viewmodule": "Marketing",
"viewname": "ListContactInner",
"viewfilename": "list-contact-inner",
"viewtag": "aaa875342bd9286a39c2d193a150afc4",
"memo": ""
},
"quoteeditview": { "quoteeditview": {
"title": "报价单编辑视图", "title": "报价单编辑视图",
"caption": "报价单", "caption": "报价单",
......
...@@ -22,6 +22,12 @@ export default { ...@@ -22,6 +22,12 @@ export default {
'2': "Inactive", '2': "Inactive",
empty: "", empty: "",
}, },
List__MemberType: {
'Account': "客户",
'Lead': "潜在客户",
'Contact': "联系人",
empty: "",
},
Lead__IndustryCode: { Lead__IndustryCode: {
'1': "Accounting", '1': "Accounting",
'2': "Agriculture and Non-petrol Natural Resource Extraction", '2': "Agriculture and Non-petrol Natural Resource Extraction",
......
...@@ -22,6 +22,12 @@ export default { ...@@ -22,6 +22,12 @@ export default {
'2': "Inactive", '2': "Inactive",
empty: "", empty: "",
}, },
List__MemberType: {
'Account': "客户",
'Lead': "潜在客户",
'Contact': "联系人",
empty: "",
},
Lead__IndustryCode: { Lead__IndustryCode: {
'1': "Accounting", '1': "Accounting",
'2': "Agriculture and Non-petrol Natural Resource Extraction", '2': "Agriculture and Non-petrol Natural Resource Extraction",
......
...@@ -134,7 +134,13 @@ export default { ...@@ -134,7 +134,13 @@ export default {
}, },
abstractinfo_form: { abstractinfo_form: {
details: { details: {
group1: "市场营销列表基本信息", group1: "列表信息",
druipart1: "",
grouppanel1: "成员",
druipart2: "",
grouppanel2: "成员",
druipart3: "",
grouppanel3: "成员",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
......
...@@ -133,7 +133,13 @@ export default { ...@@ -133,7 +133,13 @@ export default {
}, },
abstractinfo_form: { abstractinfo_form: {
details: { details: {
group1: '市场营销列表基本信息', group1: '列表信息',
druipart1: '',
grouppanel1: '成员',
druipart2: '',
grouppanel2: '成员',
druipart3: '',
grouppanel3: '成员',
formpage1: '基本信息', formpage1: '基本信息',
srfupdatedate: '更新时间', srfupdatedate: '更新时间',
srforikey: '', srforikey: '',
......
...@@ -35,10 +35,12 @@ export default { ...@@ -35,10 +35,12 @@ export default {
title: '查找客户', title: '查找客户',
}, },
}, },
quickcreatebylist_form: { main_form: {
details: { details: {
group1: "营销列表-账户基本信息", group1: "营销列表-账户基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "关系标识", srfkey: "关系标识",
...@@ -47,19 +49,15 @@ export default { ...@@ -47,19 +49,15 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "选择客户:",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
}, },
}, },
main_form: { quickcreatebylist_form: {
details: { details: {
group1: "营销列表-账户基本信息", group1: "营销列表-账户基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "关系标识", srfkey: "关系标识",
...@@ -68,6 +66,8 @@ export default { ...@@ -68,6 +66,8 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "选择客户:",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
...@@ -90,6 +90,24 @@ export default { ...@@ -90,6 +90,24 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
bylisttoolbar_toolbar: { bylisttoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "New", caption: "New",
...@@ -128,22 +146,4 @@ export default { ...@@ -128,22 +146,4 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
}; };
\ No newline at end of file
...@@ -34,10 +34,12 @@ export default { ...@@ -34,10 +34,12 @@ export default {
title: '查找客户', title: '查找客户',
}, },
}, },
quickcreatebylist_form: { main_form: {
details: { details: {
group1: '营销列表-账户基本信息', group1: '营销列表-账户基本信息',
formpage1: '基本信息', formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间', srfupdatedate: '更新时间',
srforikey: '', srforikey: '',
srfkey: '关系标识', srfkey: '关系标识',
...@@ -46,19 +48,15 @@ export default { ...@@ -46,19 +48,15 @@ export default {
srfuf: '', srfuf: '',
srfdeid: '', srfdeid: '',
srfsourcekey: '', srfsourcekey: '',
entity2name: '选择客户:',
entity2id: '客户',
relationshipsid: '关系标识', relationshipsid: '关系标识',
}, },
uiactions: { uiactions: {
}, },
}, },
main_form: { quickcreatebylist_form: {
details: { details: {
group1: '营销列表-账户基本信息', group1: '营销列表-账户基本信息',
formpage1: '基本信息', formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间', srfupdatedate: '更新时间',
srforikey: '', srforikey: '',
srfkey: '关系标识', srfkey: '关系标识',
...@@ -67,6 +65,8 @@ export default { ...@@ -67,6 +65,8 @@ export default {
srfuf: '', srfuf: '',
srfdeid: '', srfdeid: '',
srfsourcekey: '', srfsourcekey: '',
entity2name: '选择客户:',
entity2id: '客户',
relationshipsid: '关系标识', relationshipsid: '关系标识',
}, },
uiactions: { uiactions: {
...@@ -89,6 +89,24 @@ export default { ...@@ -89,6 +89,24 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '关闭',
tip: '关闭',
},
},
bylisttoolbar_toolbar: { bylisttoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: '新建', caption: '新建',
...@@ -127,22 +145,4 @@ export default { ...@@ -127,22 +145,4 @@ export default {
tip: '过滤', tip: '过滤',
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '关闭',
tip: '关闭',
},
},
}; };
\ No newline at end of file
...@@ -20,6 +20,10 @@ export default { ...@@ -20,6 +20,10 @@ export default {
views: { views: {
gridview: { gridview: {
caption: "营销列表-联系人", caption: "营销列表-联系人",
title: '营销列表-联系人表格视图',
},
inner: {
caption: "联系人",
title: '营销列表-联系人表格视图', title: '营销列表-联系人表格视图',
}, },
editview: { editview: {
...@@ -46,6 +50,17 @@ export default { ...@@ -46,6 +50,17 @@ export default {
uiactions: { uiactions: {
}, },
}, },
inner_grid: {
columns: {
entity2name: "联系人",
emailaddress1: "电子邮件",
parentcustomerid: "公司名称",
telephone1: "商务电话",
statecode: "状态",
},
uiactions: {
},
},
main_grid: { main_grid: {
columns: { columns: {
entity2name: "联系人", entity2name: "联系人",
...@@ -64,6 +79,26 @@ export default { ...@@ -64,6 +79,26 @@ export default {
uiactions: { uiactions: {
}, },
}, },
innertoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "New", caption: "New",
...@@ -102,22 +137,4 @@ export default { ...@@ -102,22 +137,4 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
}; };
\ No newline at end of file
...@@ -19,6 +19,10 @@ export default { ...@@ -19,6 +19,10 @@ export default {
views: { views: {
gridview: { gridview: {
caption: '营销列表-联系人', caption: '营销列表-联系人',
title: '营销列表-联系人表格视图',
},
inner: {
caption: '联系人',
title: '营销列表-联系人表格视图', title: '营销列表-联系人表格视图',
}, },
editview: { editview: {
...@@ -45,6 +49,17 @@ export default { ...@@ -45,6 +49,17 @@ export default {
uiactions: { uiactions: {
}, },
}, },
inner_grid: {
columns: {
entity2name: '联系人',
emailaddress1: '电子邮件',
parentcustomerid: '公司名称',
telephone1: '商务电话',
statecode: '状态',
},
uiactions: {
},
},
main_grid: { main_grid: {
columns: { columns: {
entity2name: '联系人', entity2name: '联系人',
...@@ -63,6 +78,26 @@ export default { ...@@ -63,6 +78,26 @@ export default {
uiactions: { uiactions: {
}, },
}, },
innertoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '关闭',
tip: '关闭',
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: '新建', caption: '新建',
...@@ -101,22 +136,4 @@ export default { ...@@ -101,22 +136,4 @@ export default {
tip: '过滤', tip: '过滤',
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '关闭',
tip: '关闭',
},
},
}; };
\ No newline at end of file
...@@ -56,14 +56,6 @@ export default { ...@@ -56,14 +56,6 @@ export default {
uiactions: { uiactions: {
}, },
}, },
default_searchform: {
details: {
formpage1: "常规条件",
n_entity2name_like: "潜在顾客(%)",
},
uiactions: {
},
},
bylisttoolbar_toolbar: { bylisttoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "New", caption: "New",
...@@ -93,13 +85,5 @@ export default { ...@@ -93,13 +85,5 @@ export default {
caption: "Export", caption: "Export",
tip: "Export {0} Data To Excel", tip: "Export {0} Data To Excel",
}, },
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
}, },
}; };
\ No newline at end of file
...@@ -55,14 +55,6 @@ export default { ...@@ -55,14 +55,6 @@ export default {
uiactions: { uiactions: {
}, },
}, },
default_searchform: {
details: {
formpage1: '常规条件',
n_entity2name_like: '潜在顾客(%)',
},
uiactions: {
},
},
bylisttoolbar_toolbar: { bylisttoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: '新建', caption: '新建',
...@@ -92,13 +84,5 @@ export default { ...@@ -92,13 +84,5 @@ export default {
caption: '导出', caption: '导出',
tip: '导出', tip: '导出',
}, },
tbitem10: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
}, },
}; };
\ No newline at end of file
...@@ -168,6 +168,43 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -168,6 +168,43 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
}, },
] ]
}, },
{
srfkey: 'List__MemberType',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: 'Account',
label: "客户",
text: "客户",
"data":"",
"codename":"Account",
value: 'Account',
disabled: false,
},
{
id: 'Lead',
label: "潜在客户",
text: "潜在客户",
"data":"",
"codename":"Lead",
value: 'Lead',
disabled: false,
},
{
id: 'Contact',
label: "联系人",
text: "联系人",
"data":"",
"codename":"Contact",
value: 'Contact',
disabled: false,
},
]
},
{ {
srfkey: 'Lead__IndustryCode', srfkey: 'Lead__IndustryCode',
emptytext: '未定义', emptytext: '未定义',
......
...@@ -743,6 +743,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -743,6 +743,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AppointmentQuickCreate", "viewname": "AppointmentQuickCreate",
"viewtag": "aa79d35850f36fbc1a5085353ecd5af5" "viewtag": "aa79d35850f36fbc1a5085353ecd5af5"
}, },
"listcontactinner": {
"title": "营销列表-联系人表格视图",
"caption": "联系人",
"viewtype": "DEGRIDVIEW9",
"viewmodule": "Marketing",
"viewname": "ListContactInner",
"viewtag": "aaa875342bd9286a39c2d193a150afc4"
},
"quoteeditview": { "quoteeditview": {
"title": "报价单编辑视图", "title": "报价单编辑视图",
"caption": "报价单", "caption": "报价单",
......
<template>
<studio-embed-view-style2 viewName="listaccountinner" viewTitle="营销列表-账户表格视图" class='degridview9 list-account-inner'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata"
:opendata="opendata"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-embed-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, GridView9Base } from '@/studio-core';
import ListAccountService from '@/service/list-account/list-account-service';
import GridView9Engine from '@engine/view/grid-view9-engine';
import CodeListService from "@service/app/codelist-service";
/**
* 营销列表-账户表格视图视图基类
*
* @export
* @class ListAccountInnerBase
* @extends {GridView9Base}
*/
@Component({})
@VueLifeCycleProcessing()
export default class ListAccountInnerBase extends GridView9Base {
/**
* 实体服务对象
*
* @type {ListAccountService}
* @memberof ListAccountInnerBase
*/
protected appEntityService: ListAccountService = new ListAccountService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof ListAccountInnerBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof ListAccountInnerBase
*/
protected customViewNavContexts: any = {
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof ListAccountInnerBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ListAccountInnerBase
*/
protected model: any = {
srfCaption: 'entities.listaccount.views.inner.caption',
srfTitle: 'entities.listaccount.views.inner.title',
srfSubTitle: 'entities.listaccount.views.inner.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof ListAccountInnerBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof ListAccountInnerBase
*/
public engine: GridView9Engine = new GridView9Engine();
/**
* 引擎初始化
*
* @public
* @memberof ListAccountInnerBase
*/
public engineInit(): void {
this.engine.init({
view: this,
opendata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.opendata(args,fullargs, params, $event, xData);
},
newdata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.newdata(args,fullargs, params, $event, xData);
},
grid: this.$refs.grid,
keyPSDEField: 'listaccount',
majorPSDEField: 'relationshipsname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListAccountInnerBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListAccountInnerBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListAccountInnerBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListAccountInnerBase
*/
public grid_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'remove', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListAccountInnerBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof ListAccountInner
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof ListAccountInner
*/
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
const data: any = {};
let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.account && true){
deResParameters = [
{ pathName: 'accounts', parameterName: 'account' },
]
}
const parameters: any[] = [
{ pathName: 'listaccounts', parameterName: 'listaccount' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
}
openIndexViewTab(data);
}
/**
* 是否单选
*
* @type {boolean}
* @memberof ListAccountInnerBase
*/
public isSingleSelect: boolean = false;
/**
* 是否嵌入关系界面
*
* @type {boolean}
* @memberof ListAccountInnerBase
*/
@Prop({default:false}) public isformDruipart?: boolean;
/**
* 界面关系通讯对象
*
* @type {Subject<ViewState>}
* @memberof ListAccountInnerBase
*/
@Prop() public formDruipart?: Subject<ViewState>;
/**
* 搜索值
*
* @type {string}
* @memberof ListAccountInnerBase
*/
public query: string = '';
/**
* 是否展开搜索表单
*
* @type {boolean}
* @memberof ListAccountInnerBase
*/
public isExpandSearchForm: boolean = false;
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @type {(number | 0 | 1 | 2)}
* @memberof ListAccountInnerBase
*/
public gridRowActiveMode: number | 0 | 1 | 2 = 2;
/**
* 快速搜索
*
* @param {*} $event
* @memberof ListAccountInnerBase
*/
public onSearch($event: any): void {
const grid: any = this.$refs.grid;
if (grid) {
grid.load(this.context, true);
}
}
/**
* grid 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ENTITYTEST1Usr2GridViewBase
*/
public onSave($event: any) {
this.$emit('drdatasaved', $event);
}
/**
* 刷新数据
*
* @readonly
* @type {(number | null)}
* @memberof ListAccountInnerBase
*/
get refreshdata(): number | null {
return this.$store.getters['viewaction/getRefreshData'](this.viewtag);
}
/**
* 监控数据变化
*
* @param {*} newVal
* @param {*} oldVal
* @returns
* @memberof ListAccountInnerBase
*/
@Watch('refreshdata')
onRefreshData(newVal: any, oldVal: any) {
if (newVal === null || newVal === undefined) {
return;
}
if (newVal === 0) {
return;
}
const grid: any = this.$refs.grid;
if (grid) {
grid.load({});
}
}
}
</script>
<style lang='less'>
@import './list-account-inner.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-account-inner {
--list-account-inner: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListAccountInnerBase from './list-account-inner-base.vue';
import view_grid from '@widgets/list-account/main-grid/main-grid.vue';
@Component({
components: {
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ListAccountInner extends ListAccountInnerBase {
}
</script>
\ No newline at end of file
<template>
<studio-embed-view-style2 viewName="listcontactinner" viewTitle="营销列表-联系人表格视图" class='degridview9 list-contact-inner'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click"/> </template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata"
:opendata="opendata"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-embed-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, GridView9Base } from '@/studio-core';
import ListContactService from '@/service/list-contact/list-contact-service';
import GridView9Engine from '@engine/view/grid-view9-engine';
import CodeListService from "@service/app/codelist-service";
/**
* 营销列表-联系人表格视图视图基类
*
* @export
* @class ListContactInnerBase
* @extends {GridView9Base}
*/
@Component({})
@VueLifeCycleProcessing()
export default class ListContactInnerBase extends GridView9Base {
/**
* 实体服务对象
*
* @type {ListContactService}
* @memberof ListContactInnerBase
*/
protected appEntityService: ListContactService = new ListContactService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof ListContactInnerBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof ListContactInnerBase
*/
protected customViewNavContexts: any = {
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof ListContactInnerBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ListContactInnerBase
*/
protected model: any = {
srfCaption: 'entities.listcontact.views.inner.caption',
srfTitle: 'entities.listcontact.views.inner.title',
srfSubTitle: 'entities.listcontact.views.inner.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof ListContactInnerBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_grid: { name: 'grid', type: 'GRID' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof ListContactInner
*/
public toolBarModels: any = {
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof ListContactInnerBase
*/
public engine: GridView9Engine = new GridView9Engine();
/**
* 引擎初始化
*
* @public
* @memberof ListContactInnerBase
*/
public engineInit(): void {
this.engine.init({
view: this,
opendata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.opendata(args,fullargs, params, $event, xData);
},
newdata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.newdata(args,fullargs, params, $event, xData);
},
grid: this.$refs.grid,
keyPSDEField: 'listcontact',
majorPSDEField: 'relationshipsname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListContactInnerBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListContactInnerBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListContactInnerBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListContactInnerBase
*/
public grid_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'remove', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListContactInnerBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof ListContactInner
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof ListContactInner
*/
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
const data: any = {};
let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.contact && true){
deResParameters = [
{ pathName: 'contacts', parameterName: 'contact' },
]
}
const parameters: any[] = [
{ pathName: 'listcontacts', parameterName: 'listcontact' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
}
openIndexViewTab(data);
}
/**
* 是否单选
*
* @type {boolean}
* @memberof ListContactInnerBase
*/
public isSingleSelect: boolean = false;
/**
* 是否嵌入关系界面
*
* @type {boolean}
* @memberof ListContactInnerBase
*/
@Prop({default:false}) public isformDruipart?: boolean;
/**
* 界面关系通讯对象
*
* @type {Subject<ViewState>}
* @memberof ListContactInnerBase
*/
@Prop() public formDruipart?: Subject<ViewState>;
/**
* 搜索值
*
* @type {string}
* @memberof ListContactInnerBase
*/
public query: string = '';
/**
* 是否展开搜索表单
*
* @type {boolean}
* @memberof ListContactInnerBase
*/
public isExpandSearchForm: boolean = false;
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @type {(number | 0 | 1 | 2)}
* @memberof ListContactInnerBase
*/
public gridRowActiveMode: number | 0 | 1 | 2 = 2;
/**
* 快速搜索
*
* @param {*} $event
* @memberof ListContactInnerBase
*/
public onSearch($event: any): void {
const grid: any = this.$refs.grid;
if (grid) {
grid.load(this.context, true);
}
}
/**
* grid 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ENTITYTEST1Usr2GridViewBase
*/
public onSave($event: any) {
this.$emit('drdatasaved', $event);
}
/**
* 刷新数据
*
* @readonly
* @type {(number | null)}
* @memberof ListContactInnerBase
*/
get refreshdata(): number | null {
return this.$store.getters['viewaction/getRefreshData'](this.viewtag);
}
/**
* 监控数据变化
*
* @param {*} newVal
* @param {*} oldVal
* @returns
* @memberof ListContactInnerBase
*/
@Watch('refreshdata')
onRefreshData(newVal: any, oldVal: any) {
if (newVal === null || newVal === undefined) {
return;
}
if (newVal === 0) {
return;
}
const grid: any = this.$refs.grid;
if (grid) {
grid.load({});
}
}
}
</script>
<style lang='less'>
@import './list-contact-inner.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.list-contact-inner {
--list-contact-inner: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ListContactInnerBase from './list-contact-inner-base.vue';
import view_grid from '@widgets/list-contact/inner-grid/inner-grid.vue';
@Component({
components: {
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ListContactInner extends ListContactInnerBase {
}
</script>
\ No newline at end of file
<template> <template>
<studio-view-style2 viewName="listleadbylist" viewTitle="营销列表-潜在客户(根据营销列表)" class='degridview list-lead-by-list'> <studio-view-style2 viewName="listleadbylist" viewTitle="营销列表-潜在客户(根据营销列表)" class='degridview list-lead-by-list'>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/> <i-input slot="quickSearch" v-model="query" search @on-search="onSearch($event)"/>
<template slot="toolbar"> <template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click"/> </template> <view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid <view_grid
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -136,7 +118,6 @@ export default class ListLeadByListBase extends GridViewBase { ...@@ -136,7 +118,6 @@ export default class ListLeadByListBase extends GridViewBase {
protected containerModel: any = { protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' }, view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_grid: { name: 'grid', type: 'GRID' }, view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
}; };
/** /**
...@@ -158,9 +139,6 @@ export default class ListLeadByListBase extends GridViewBase { ...@@ -158,9 +139,6 @@ export default class ListLeadByListBase extends GridViewBase {
tbitem9: { name: 'tbitem9', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem9: { name: 'tbitem9', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem13: { name: 'tbitem13', caption: '导出','isShowCaption':true,'isShowIcon':true, tooltip: '导出', iconcls: 'fa fa-file-excel-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000, class: '' }, tbitem13: { name: 'tbitem13', caption: '导出','isShowCaption':true,'isShowIcon':true, tooltip: '导出', iconcls: 'fa fa-file-excel-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000, class: '' },
tbitem10: { name: 'tbitem10', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem19: { name: 'tbitem19', caption: '过滤','isShowCaption':true,'isShowIcon':true, tooltip: '过滤', iconcls: 'fa fa-filter', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' }, class: '' },
}; };
...@@ -192,7 +170,6 @@ export default class ListLeadByListBase extends GridViewBase { ...@@ -192,7 +170,6 @@ export default class ListLeadByListBase extends GridViewBase {
this.newdata(args,fullargs, params, $event, xData); this.newdata(args,fullargs, params, $event, xData);
}, },
grid: this.$refs.grid, grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'listlead', keyPSDEField: 'listlead',
majorPSDEField: 'relationshipsname', majorPSDEField: 'relationshipsname',
isLoadDefault: true, isLoadDefault: true,
...@@ -291,39 +268,6 @@ export default class ListLeadByListBase extends GridViewBase { ...@@ -291,39 +268,6 @@ export default class ListLeadByListBase extends GridViewBase {
this.engine.onCtrlEvent('grid', 'load', $event); this.engine.onCtrlEvent('grid', 'load', $event);
} }
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListLeadByListBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListLeadByListBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ListLeadByListBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/** /**
* 逻辑事件 * 逻辑事件
* *
......
...@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator'; ...@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import ListLeadByListBase from './list-lead-by-list-base.vue'; import ListLeadByListBase from './list-lead-by-list-base.vue';
import view_grid from '@widgets/list-lead/main-grid/main-grid.vue'; import view_grid from '@widgets/list-lead/main-grid/main-grid.vue';
import view_searchform from '@widgets/list-lead/default-searchform/default-searchform.vue';
@Component({ @Component({
components: { components: {
view_grid, view_grid,
view_searchform,
}, },
beforeRouteEnter: (to: any, from: any, next: any) => { beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => { next((vm: any) => {
......
...@@ -61,9 +61,11 @@ export const PageComponents = { ...@@ -61,9 +61,11 @@ export const PageComponents = {
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue')); Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue')); Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'));
Vue.component('campaign-edit-view', () => import('@pages/marketing/campaign-edit-view/campaign-edit-view.vue')); Vue.component('campaign-edit-view', () => import('@pages/marketing/campaign-edit-view/campaign-edit-view.vue'));
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('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('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-tab-exp-view', () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'));
Vue.component('list-account-edit-view', () => import('@pages/marketing/list-account-edit-view/list-account-edit-view.vue'));
Vue.component('service-appointment-edit-view', () => import('@pages/service/service-appointment-edit-view/service-appointment-edit-view.vue')); Vue.component('service-appointment-edit-view', () => import('@pages/service/service-appointment-edit-view/service-appointment-edit-view.vue'));
Vue.component('contact-grid-view', () => import('@pages/base/contact-grid-view/contact-grid-view.vue')); Vue.component('contact-grid-view', () => import('@pages/base/contact-grid-view/contact-grid-view.vue'));
Vue.component('transaction-currency-pickup-grid-view', () => import('@pages/base/transaction-currency-pickup-grid-view/transaction-currency-pickup-grid-view.vue')); Vue.component('transaction-currency-pickup-grid-view', () => import('@pages/base/transaction-currency-pickup-grid-view/transaction-currency-pickup-grid-view.vue'));
...@@ -85,6 +87,7 @@ export const PageComponents = { ...@@ -85,6 +87,7 @@ export const PageComponents = {
Vue.component('account-info-all', () => import('@pages/base/account-info-all/account-info-all.vue')); Vue.component('account-info-all', () => import('@pages/base/account-info-all/account-info-all.vue'));
Vue.component('activity-pointer-by-parent-key', () => import('@pages/base/activity-pointer-by-parent-key/activity-pointer-by-parent-key.vue')); Vue.component('activity-pointer-by-parent-key', () => import('@pages/base/activity-pointer-by-parent-key/activity-pointer-by-parent-key.vue'));
Vue.component('contact-edit-abstract', () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue')); Vue.component('contact-edit-abstract', () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue'));
Vue.component('list-account-inner', () => import('@pages/marketing/list-account-inner/list-account-inner.vue'));
Vue.component('contact-dashboard-view', () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue')); Vue.component('contact-dashboard-view', () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'));
Vue.component('task-edit-view', () => import('@pages/base/task-edit-view/task-edit-view.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('contact-info-market', () => import('@pages/base/contact-info-market/contact-info-market.vue'));
......
...@@ -251,6 +251,9 @@ export const viewstate: any = { ...@@ -251,6 +251,9 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'2c6be792e84450585986e22f75dffa52',
'aaa875342bd9286a39c2d193a150afc4',
'44a690a1d62a390708480cb43f67d98b',
], ],
}, },
{ {
...@@ -344,6 +347,16 @@ export const viewstate: any = { ...@@ -344,6 +347,16 @@ export const viewstate: any = {
'da3f8c1f20f440f3df54d6c13a8de586', 'da3f8c1f20f440f3df54d6c13a8de586',
], ],
}, },
{
viewtag: '44a690a1d62a390708480cb43f67d98b',
viewmodule: 'Marketing',
viewname: 'ListAccountInner',
viewaction: '',
viewdatachange: false,
refviews: [
'49dc1a714631338858cd0441f6c720ca',
],
},
{ {
viewtag: '45fdc8ee4d1401d2d625e80177395ddc', viewtag: '45fdc8ee4d1401d2d625e80177395ddc',
viewmodule: 'Base', viewmodule: 'Base',
...@@ -381,6 +394,15 @@ export const viewstate: any = { ...@@ -381,6 +394,15 @@ export const viewstate: any = {
'a1b44c891ef0bbc073c82693d8489de6', 'a1b44c891ef0bbc073c82693d8489de6',
], ],
}, },
{
viewtag: '49dc1a714631338858cd0441f6c720ca',
viewmodule: 'Marketing',
viewname: 'ListAccountEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: '49e5e89fb51fa9929925b532841b2549', viewtag: '49e5e89fb51fa9929925b532841b2549',
viewmodule: 'Sales', viewmodule: 'Sales',
...@@ -826,6 +848,16 @@ export const viewstate: any = { ...@@ -826,6 +848,16 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: 'aaa875342bd9286a39c2d193a150afc4',
viewmodule: 'Marketing',
viewname: 'ListContactInner',
viewaction: '',
viewdatachange: false,
refviews: [
'c7d0ca0f6fa1b27bbd1b5c422d1a108d',
],
},
{ {
viewtag: 'ad6abf83dc1bc466b988194cd868d98a', viewtag: 'ad6abf83dc1bc466b988194cd868d98a',
viewmodule: 'Sales', viewmodule: 'Sales',
......
...@@ -80,6 +80,7 @@ export default class ListContactUIServiceBase extends UIService { ...@@ -80,6 +80,7 @@ export default class ListContactUIServiceBase extends UIService {
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'listcontacts'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'listcontacts'});
this.allViewMap.set(':',{viewname:'inner',srfappde:'listcontacts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'listcontacts'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'listcontacts'});
} }
......
...@@ -525,10 +525,10 @@ export default class AbstractEditBase extends Vue implements ControlInterface { ...@@ -525,10 +525,10 @@ export default class AbstractEditBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: '用途 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '用途 值不能为空', trigger: 'blur' },
], ],
membertype: [ membertype: [
{ type: 'number', message: '目标对象 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '目标对象 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '目标对象 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '目标对象 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'number', message: '目标对象 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '目标对象 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '目标对象 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '目标对象 值不能为空', trigger: 'blur' },
], ],
source: [ source: [
{ type: 'string', message: '来源 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '来源 值必须为字符串类型', trigger: 'change' },
......
...@@ -618,10 +618,10 @@ export default class QuickCreateBase extends Vue implements ControlInterface { ...@@ -618,10 +618,10 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
{ required: true, type: 'string', message: '名称 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '名称 值不能为空', trigger: 'blur' },
], ],
membertype: [ membertype: [
{ type: 'number', message: '目标对象 值必须为数值类型', trigger: 'change' }, { type: 'string', message: '目标对象 值必须为字符串类型', trigger: 'change' },
{ type: 'number', message: '目标对象 值必须为数值类型', trigger: 'blur' }, { type: 'string', message: '目标对象 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'number', message: '目标对象 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '目标对象 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '目标对象 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '目标对象 值不能为空', trigger: 'blur' },
], ],
type: [ type: [
{ type: 'number', message: '类型 值必须为数值类型', trigger: 'change' }, { type: 'number', message: '类型 值必须为数值类型', trigger: 'change' },
......
/**
* Inner 部件模型
*
* @export
* @class InnerModel
*/
export default class InnerModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof InnerGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof InnerGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'telephone1',
prop: 'telephone1',
dataType: 'PICKUPDATA',
},
{
name: 'entity2id',
prop: 'entity2id',
dataType: 'PICKUP',
},
{
name: 'statecode',
prop: 'statecode',
dataType: 'PICKUPDATA',
},
{
name: 'emailaddress1',
prop: 'emailaddress1',
dataType: 'PICKUPDATA',
},
{
name: 'entityid',
prop: 'entityid',
dataType: 'PICKUP',
},
{
name: 'parentcustomerid',
prop: 'parentcustomerid',
dataType: 'PICKUPDATA',
},
{
name: 'srfmajortext',
prop: 'relationshipsname',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'relationshipsid',
dataType: 'GUID',
},
{
name: 'srfkey',
prop: 'relationshipsid',
dataType: 'GUID',
},
{
name: 'entity2name',
prop: 'entity2name',
dataType: 'PICKUPTEXT',
},
{
name: 'listcontact',
prop: 'relationshipsid',
},
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'page',
prop:'page'
},
{
name:'sort',
prop:'sort'
},
{
name:'srfparentdata',
prop:'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import InnerBase from './inner-grid-base.vue';
@Component({
components: {
}
})
export default class Inner extends InnerBase {
}
</script>
\ No newline at end of file
...@@ -75,12 +75,6 @@ export default class MainModel { ...@@ -75,12 +75,6 @@ export default class MainModel {
name: 'listlead', name: 'listlead',
prop: 'relationshipsid', prop: 'relationshipsid',
}, },
{
name: 'n_entity2name_like',
prop: 'n_entity2name_like',
dataType: 'PICKUPTEXT',
},
{ {
name:'size', name:'size',
prop:'size' prop:'size'
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册