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

lab_gzf 发布系统代码

上级 23ad1679
......@@ -120,7 +120,7 @@
"memo": "系统自动添加"
},
"campaigngridview": {
"title": "市场活动表格视图",
"title": "市场活动信息",
"caption": "市场活动",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Marketing",
......@@ -350,7 +350,7 @@
"memo": "系统自动添加"
},
"ibizlistgridview": {
"title": "市场营销列表表格视图",
"title": "市场营销列表信息",
"caption": "市场营销列表",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Marketing",
......@@ -1149,6 +1149,16 @@
"viewtag": "7FCD2E75-E34A-493C-922E-8AE47BCE08CA",
"memo": ""
},
"campaignquickcreateview": {
"title": "快速新建",
"caption": "市场活动",
"viewtype": "DEOPTVIEW",
"viewmodule": "Marketing",
"viewname": "CampaignQuickCreateView",
"viewfilename": "campaign-quick-create-view",
"viewtag": "8206069d9567cbc0a06e441869343819",
"memo": ""
},
"ibizlistquickcreate": {
"title": "快速新建",
"caption": "快速新建",
......@@ -1860,7 +1870,7 @@
"memo": "系统自动添加"
},
"campaigninfo": {
"title": "市场活动",
"title": "市场活动信息",
"caption": "市场活动",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Marketing",
......
......@@ -58,7 +58,7 @@ export default {
},
gridview: {
caption: "市场活动",
title: "市场活动表格视图",
title: "市场活动信息",
},
info_campagin: {
caption: "活动信息",
......@@ -84,13 +84,17 @@ export default {
caption: "管理信息",
title: "管理信息",
},
quickcreateview: {
caption: "市场活动",
title: "快速新建",
},
summary: {
caption: "市场活动概览",
title: "市场活动概览",
},
info: {
caption: "市场活动",
title: "市场活动",
title: "市场活动信息",
},
info_schedule: {
caption: "日程安排",
......@@ -147,12 +151,10 @@ export default {
campaign_edit_head: "头编辑",
},
},
main_form: {
quickcreate_form: {
details: {
group1: "市场活动",
group1: "市场活动基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "市场活动",
......@@ -165,11 +167,7 @@ export default {
codename: "活动代码",
transactioncurrencyname: "货币",
typecode: "活动类型",
expectedresponse: "预期响应百分比",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
expectedresponse: "预期响应",
transactioncurrencyid: "货币",
campaignid: "市场活动",
},
......@@ -241,6 +239,35 @@ export default {
uiactions: {
},
},
main_form: {
details: {
group1: "市场活动",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "市场活动",
srfmajortext: "活动名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
campaignname: "活动名称",
codename: "活动代码",
transactioncurrencyname: "货币",
typecode: "活动类型",
expectedresponse: "预期响应百分比",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
transactioncurrencyid: "货币",
campaignid: "市场活动",
},
uiactions: {
},
},
main_grid: {
columns: {
campaignname: "活动名称",
......@@ -264,9 +291,13 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
tbitem1_openquickcreateview: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "Edit",
......@@ -301,6 +332,36 @@ export default {
tip: "Filter",
},
},
infotoolbar_toolbar: {
deuiaction4: {
caption: "Edit",
tip: "Edit {0}",
},
seperator4: {
caption: "",
tip: "",
},
deuiaction1: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
},
seperator1: {
caption: "",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
......@@ -339,36 +400,6 @@ export default {
tip: "Copy {0}",
},
},
infotoolbar_toolbar: {
deuiaction4: {
caption: "Edit",
tip: "Edit {0}",
},
seperator4: {
caption: "",
tip: "",
},
deuiaction1: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
},
seperator1: {
caption: "",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
summary_headtoolbar_toolbar: {
deuiaction4: {
caption: "Edit",
......
......@@ -57,7 +57,7 @@ export default {
},
gridview: {
caption: "市场活动",
title: "市场活动表格视图",
title: "市场活动信息",
},
info_campagin: {
caption: "活动信息",
......@@ -83,13 +83,17 @@ export default {
caption: "管理信息",
title: "管理信息",
},
quickcreateview: {
caption: "市场活动",
title: "快速新建",
},
summary: {
caption: "市场活动概览",
title: "市场活动概览",
},
info: {
caption: "市场活动",
title: "市场活动",
title: "市场活动信息",
},
info_schedule: {
caption: "日程安排",
......@@ -146,12 +150,10 @@ export default {
campaign_edit_head: "头编辑",
},
},
main_form: {
quickcreate_form: {
details: {
group1: "市场活动",
group1: "市场活动基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "市场活动",
......@@ -164,11 +166,7 @@ export default {
codename: "活动代码",
transactioncurrencyname: "货币",
typecode: "活动类型",
expectedresponse: "预期响应百分比",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
expectedresponse: "预期响应",
transactioncurrencyid: "货币",
campaignid: "市场活动",
},
......@@ -240,6 +238,35 @@ export default {
uiactions: {
},
},
main_form: {
details: {
group1: "市场活动",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "市场活动",
srfmajortext: "活动名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
campaignname: "活动名称",
codename: "活动代码",
transactioncurrencyname: "货币",
typecode: "活动类型",
expectedresponse: "预期响应百分比",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
transactioncurrencyid: "货币",
campaignid: "市场活动",
},
uiactions: {
},
},
main_grid: {
columns: {
campaignname: "活动名称",
......@@ -263,10 +290,14 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
tbitem1_openquickcreateview: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
......@@ -300,6 +331,36 @@ export default {
tip: "过滤",
},
},
infotoolbar_toolbar: {
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
seperator4: {
caption: "",
tip: "",
},
deuiaction1: {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
},
seperator1: {
caption: "",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
......@@ -338,36 +399,6 @@ export default {
tip: "拷贝",
},
},
infotoolbar_toolbar: {
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
seperator4: {
caption: "",
tip: "",
},
deuiaction1: {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
},
seperator1: {
caption: "",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
summary_headtoolbar_toolbar: {
deuiaction4: {
caption: "编辑",
......
......@@ -45,7 +45,7 @@ export default {
},
gridview: {
caption: "市场营销列表",
title: "市场营销列表表格视图",
title: "市场营销列表信息",
},
info_abstract: {
caption: "市场营销列表",
......@@ -99,8 +99,6 @@ export default {
details: {
group1: "list基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "列表",
......@@ -122,10 +120,6 @@ export default {
ownerid: "负责人",
owneridtype: "负责人类型",
owneridyominame: "负责人",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
transactioncurrencyid: "货币",
listid: "列表",
},
......
......@@ -44,7 +44,7 @@ export default {
},
gridview: {
caption: "市场营销列表",
title: "市场营销列表表格视图",
title: "市场营销列表信息",
},
info_abstract: {
caption: "市场营销列表",
......@@ -98,8 +98,6 @@ export default {
details: {
group1: "list基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "列表",
......@@ -121,10 +119,6 @@ export default {
ownerid: "负责人",
owneridtype: "负责人类型",
owneridyominame: "负责人",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
transactioncurrencyid: "货币",
listid: "列表",
},
......
......@@ -104,7 +104,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "072d39d4184205e68a5c66fabe32b55e"
},
"campaigngridview": {
"title": "市场活动表格视图",
"title": "市场活动信息",
"caption": "市场活动",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Marketing",
......@@ -288,7 +288,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "241c1fe99d6b6b99ad2888762140837a"
},
"ibizlistgridview": {
"title": "市场营销列表表格视图",
"title": "市场营销列表信息",
"caption": "市场营销列表",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Marketing",
......@@ -927,6 +927,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "CenteralPortal",
"viewtag": "7FCD2E75-E34A-493C-922E-8AE47BCE08CA"
},
"campaignquickcreateview": {
"title": "快速新建",
"caption": "市场活动",
"viewtype": "DEOPTVIEW",
"viewmodule": "Marketing",
"viewname": "CampaignQuickCreateView",
"viewtag": "8206069d9567cbc0a06e441869343819"
},
"ibizlistquickcreate": {
"title": "快速新建",
"caption": "快速新建",
......@@ -1496,7 +1504,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "d3692664b9e2e150526e1ce4b969f15b"
},
"campaigninfo": {
"title": "市场活动",
"title": "市场活动信息",
"caption": "市场活动",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Marketing",
......
......@@ -3,11 +3,12 @@ import { Subject } from 'rxjs';
import { GridViewBase } from '@/studio-core';
import CampaignService from '@/service/campaign/campaign-service';
import GridViewEngine from '@engine/view/grid-view-engine';
import CampaignUIService from '@/uiservice/campaign/campaign-ui-service';
import CodeListService from "@service/app/codelist-service";
/**
* 市场活动表格视图视图基类
* 市场活动信息视图基类
*
* @export
* @class CampaignGridViewBase
......@@ -67,8 +68,9 @@ export class CampaignGridViewBase extends GridViewBase {
* @memberof CampaignGridView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' }, class: '' },
tbitem1_openquickcreateview: { name: 'tbitem1_openquickcreateview', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-user-plus', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenQuickCreateView', target: 'NONE' }, class: '' },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' },
......@@ -136,8 +138,8 @@ export class CampaignGridViewBase extends GridViewBase {
* @memberof CampaignGridViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
if (Object.is($event.tag, 'tbitem1_openquickcreateview')) {
this.toolbar_tbitem1_openquickcreateview_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
......@@ -145,12 +147,6 @@ export class CampaignGridViewBase extends GridViewBase {
if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -261,7 +257,7 @@ export class CampaignGridViewBase extends GridViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_tbitem1_openquickcreateview_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -278,7 +274,8 @@ export class CampaignGridViewBase extends GridViewBase {
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"Campaign");
const curUIService:CampaignUIService = new CampaignUIService();
curUIService.Campaign_OpenQuickCreateView(datas,contextJO, paramJO, $event, xData,this,"Campaign");
}
/**
......@@ -337,62 +334,6 @@ export class CampaignGridViewBase extends GridViewBase {
this.Copy(datas, contextJO,paramJO, $event, xData,this,"Campaign");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem24_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"Campaign");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem25_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"Campaign");
}
/**
* 逻辑事件
*
......@@ -530,16 +471,28 @@ export class CampaignGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'campaigns', parameterName: 'campaign' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'campaign-quick-create-view',
height: 0,
width: 0,
title: this.$t('entities.campaign.views.quickcreateview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......@@ -575,26 +528,6 @@ export class CampaignGridViewBase extends GridViewBase {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignGridViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 编辑
*
......@@ -653,42 +586,6 @@ export class CampaignGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignGridViewBase
*/
public ToggleRowEdit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignGridViewBase
*/
public NewRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
const data: any = {};
if (_this.newRow && _this.newRow instanceof Function) {
_this.newRow([{ ...data }], params, $event, xData);
} else if(xData.newRow && xData.newRow instanceof Function) {
xData.newRow([{ ...data }], params, $event, xData);
}else{
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 删除
*
......
<studio-view-style2 viewName="campaigngridview" viewTitle="市场活动表格视图" class='degridview campaign-grid-view'>
<studio-view-style2 viewName="campaigngridview" viewTitle="市场活动信息" class='degridview campaign-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
......
......@@ -7,7 +7,7 @@ import view_grid from '@widgets/campaign/main-grid/main-grid.vue';
import view_searchform from '@widgets/campaign/default-searchform/default-searchform.vue';
/**
* 市场活动表格视图视图
* 市场活动信息视图
*
* @export
* @class CampaignGridView
......
......@@ -4,7 +4,7 @@ import CampaignService from '@/service/campaign/campaign-service';
import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
/**
* 市场活动视图基类
* 市场活动信息视图基类
*
* @export
* @class CampaignInfoBase
......
<studio-view-style2 viewName="campaigninfo" viewTitle="市场活动" class='detabexpview campaign-info'>
<studio-view-style2 viewName="campaigninfo" viewTitle="市场活动信息" class='detabexpview campaign-info'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
......
......@@ -6,7 +6,7 @@ import { CampaignInfoBase } from './campaign-info-base';
import view_tabexppanel from '@widgets/campaign/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue';
/**
* 市场活动视图
* 市场活动信息视图
*
* @export
* @class CampaignInfo
......
<studio-view-style2 viewName="campaignlistgridview" viewTitle="市场活动-营销列表表格视图" class='degridview campaign-list-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import CampaignService from '@/service/campaign/campaign-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 快速新建视图基类
*
* @export
* @class CampaignQuickCreateViewBase
* @extends {OptionViewBase}
*/
export class CampaignQuickCreateViewBase extends OptionViewBase {
/**
* 实体服务对象
*
* @type {CampaignService}
* @memberof CampaignQuickCreateViewBase
*/
protected appEntityService: CampaignService = new CampaignService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof CampaignQuickCreateViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof CampaignQuickCreateViewBase
*/
protected model: any = {
srfCaption: 'entities.campaign.views.quickcreateview.caption',
srfTitle: 'entities.campaign.views.quickcreateview.title',
srfSubTitle: 'entities.campaign.views.quickcreateview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof CampaignQuickCreateViewBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '8206069d9567cbc0a06e441869343819';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof CampaignQuickCreateViewBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof CampaignQuickCreateViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'campaign',
majorPSDEField: 'campaignname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignQuickCreateViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignQuickCreateViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof CampaignQuickCreateViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="campaignquickcreateview" viewTitle="快速新建" class='deoptview campaign-quick-create-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./campaign-quick-create-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { CampaignQuickCreateViewBase } from './campaign-quick-create-view-base';
import view_form from '@widgets/campaign/quick-create-form/quick-create-form.vue';
/**
* 快速新建视图
*
* @export
* @class CampaignQuickCreateView
* @extends {CampaignQuickCreateViewBase}
*/
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class CampaignQuickCreateView extends CampaignQuickCreateViewBase { }
</script>
......@@ -7,7 +7,7 @@ import CodeListService from "@service/app/codelist-service";
/**
* 市场营销列表表格视图视图基类
* 市场营销列表信息视图基类
*
* @export
* @class IBizListGridViewBase
......@@ -547,7 +547,7 @@ export class IBizListGridViewBase extends GridViewBase {
const view: any = {
viewname: 'ibiz-list-quick-create',
height: 0,
width: 450,
width: 0,
title: this.$t('entities.ibizlist.views.quickcreate.title'),
placement: 'DRAWER_RIGHT',
};
......
<studio-view-style2 viewName="ibizlistgridview" viewTitle="市场营销列表表格视图" class='degridview ibiz-list-grid-view'>
<studio-view-style2 viewName="ibizlistgridview" viewTitle="市场营销列表信息" class='degridview ibiz-list-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
......
......@@ -7,7 +7,7 @@ import view_grid from '@widgets/ibiz-list/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibiz-list/default-searchform/default-searchform.vue';
/**
* 市场营销列表表格视图视图
* 市场营销列表信息视图
*
* @export
* @class IBizListGridView
......
......@@ -109,7 +109,6 @@ export const PageComponents = {
Vue.component('sales-literature-info-sal-lit-view', () => import('@pages/sales/sales-literature-info-sal-lit-view/sales-literature-info-sal-lit-view.vue'));
Vue.component('quote-option-view', () => import('@pages/sales/quote-option-view/quote-option-view.vue'));
Vue.component('goal-pickup-view', () => import('@pages/sales/goal-pickup-view/goal-pickup-view.vue'));
Vue.component('campaign-edit-view', () => import('@pages/marketing/campaign-edit-view/campaign-edit-view.vue'));
Vue.component('opportunity-summary', () => import('@pages/sales/opportunity-summary/opportunity-summary.vue'));
Vue.component('goal-pickup-grid-view', () => import('@pages/sales/goal-pickup-grid-view/goal-pickup-grid-view.vue'));
Vue.component('list-contact-inner', () => import('@pages/marketing/list-contact-inner/list-contact-inner.vue'));
......@@ -138,6 +137,7 @@ export const PageComponents = {
Vue.component('ibiz-list-summary', () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'));
Vue.component('sales-literature-item-grid-view', () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue'));
Vue.component('lead-dashboard-view', () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'));
Vue.component('campaign-quick-create-view', () => import('@pages/marketing/campaign-quick-create-view/campaign-quick-create-view.vue'));
Vue.component('discount-type-pickup-grid-view', () => import('@pages/sales/discount-type-pickup-grid-view/discount-type-pickup-grid-view.vue'));
Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'));
Vue.component('campaign-list-edit-view', () => import('@pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue'));
......
......@@ -3058,20 +3058,6 @@ const router = new Router({
},
component: () => import('@pages/base/contact-pickup-view/contact-pickup-view.vue'),
},
{
path: 'campaigns/:campaign?/editview/:editview?',
meta: {
caption: 'entities.campaign.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'campaigns', parameterName: 'campaign' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/campaign-edit-view/campaign-edit-view.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/summary/:summary?',
meta: {
......@@ -3909,6 +3895,20 @@ const router = new Router({
},
component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'),
},
{
path: 'campaigns/:campaign?/quickcreateview/:quickcreateview?',
meta: {
caption: 'entities.campaign.views.quickcreateview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'campaigns', parameterName: 'campaign' },
{ pathName: 'quickcreateview', parameterName: 'quickcreateview' },
],
requireAuth: true,
},
component: () => import('@pages/marketing/campaign-quick-create-view/campaign-quick-create-view.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/conoppgridview/:conoppgridview?',
meta: {
......
......@@ -116,8 +116,8 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'41bf6f27bc4248555f1b51ebcaffad1c',
'd8b664607bd727900320b23da3fafaf2',
'8206069d9567cbc0a06e441869343819',
],
},
{
......@@ -588,16 +588,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '41bf6f27bc4248555f1b51ebcaffad1c',
viewmodule: 'Marketing',
viewname: 'CampaignEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'da3f8c1f20f440f3df54d6c13a8de586',
],
},
{
viewtag: '41e012bf9b91b39e4a30072986b7c11e',
viewmodule: 'Product',
......@@ -1087,6 +1077,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '8206069d9567cbc0a06e441869343819',
viewmodule: 'Marketing',
viewname: 'CampaignQuickCreateView',
viewaction: '',
viewdatachange: false,
refviews: [
'da3f8c1f20f440f3df54d6c13a8de586',
],
},
{
viewtag: '8332d2ba99d5a618d1ab69f45ce689f5',
viewmodule: 'Marketing',
......
......@@ -87,6 +87,7 @@ export default class CampaignUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'summary_head',srfappde:'campaigns'});
this.allViewMap.set(':',{viewname:'edit_head',srfappde:'campaigns'});
this.allViewMap.set(':',{viewname:'info_manager',srfappde:'campaigns'});
this.allViewMap.set(':',{viewname:'quickcreateview',srfappde:'campaigns'});
this.allViewMap.set(':',{viewname:'summary',srfappde:'campaigns'});
this.allViewMap.set(':',{viewname:'info',srfappde:'campaigns'});
this.allViewMap.set(':',{viewname:'info_schedule',srfappde:'campaigns'});
......@@ -100,6 +101,66 @@ export default class CampaignUIServiceBase extends UIService {
public initDeMainStateMap(){
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async Campaign_OpenQuickCreateView(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'NONE';
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'campaigns', parameterName: 'campaign' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = actionContext.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
const _this: any = actionContext;
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
return result.datas;
});
}
const view: any = {
viewname: 'campaign-quick-create-view',
height: 0,
width: 0,
title: actionContext.$t('entities.campaign.views.quickcreateview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 头编辑
*
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import CampaignService from '@/service/campaign/campaign-service';
import QuickCreateService from './quick-create-form-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {QuickCreateEditFormBase}
*/
export class QuickCreateEditFormBase extends EditFormControlBase {
/**
* 建构部件服务对象
*
* @type {QuickCreateService}
* @memberof QuickCreateEditFormBase
*/
public service: QuickCreateService = new QuickCreateService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {CampaignService}
* @memberof QuickCreateEditFormBase
*/
public appEntityService: CampaignService = new CampaignService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof QuickCreateEditFormBase
*/
protected appDeName: string = 'campaign';
/**
* 表单数据对象
*
* @type {*}
* @memberof QuickCreateEditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
campaignname: null,
codename: null,
transactioncurrencyname: null,
typecode: null,
expectedresponse: null,
transactioncurrencyid: null,
campaignid: null,
campaign:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof QuickCreateEditFormBase
*/
public rules: any = {
campaignname: [
{ required: true, type: 'string', message: '活动名称 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '活动名称 值不能为空', trigger: 'blur' },
],
transactioncurrencyname: [
{ required: true, type: 'string', message: '货币 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '货币 值不能为空', trigger: 'blur' },
],
}
/**
* 详情模型集合
*
* @type {*}
* @memberof QuickCreateEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '市场活动基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.campaign.quickcreate_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfkey: new FormItemModel({ caption: '市场活动', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
srfmajortext: new FormItemModel({ caption: '活动名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
campaignname: new FormItemModel({ caption: '活动名称', detailType: 'FORMITEM', name: 'campaignname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
codename: new FormItemModel({ caption: '活动代码', detailType: 'FORMITEM', name: 'codename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
transactioncurrencyname: new FormItemModel({ caption: '货币', detailType: 'FORMITEM', name: 'transactioncurrencyname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
typecode: new FormItemModel({ caption: '活动类型', detailType: 'FORMITEM', name: 'typecode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
expectedresponse: new FormItemModel({ caption: '预期响应', detailType: 'FORMITEM', name: 'expectedresponse', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
transactioncurrencyid: new FormItemModel({ caption: '货币', detailType: 'FORMITEM', name: 'transactioncurrencyid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
campaignid: new FormItemModel({ caption: '市场活动', detailType: 'FORMITEM', name: 'campaignid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
};
}
\ No newline at end of file
/**
* QuickCreate 部件模型
*
* @export
* @class QuickCreateModel
*/
export default class QuickCreateModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof QuickCreateModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'campaignid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'campaignname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'campaignname',
prop: 'campaignname',
dataType: 'TEXT',
},
{
name: 'codename',
prop: 'codename',
dataType: 'TEXT',
},
{
name: 'transactioncurrencyname',
prop: 'currencyname',
dataType: 'PICKUPTEXT',
},
{
name: 'typecode',
prop: 'typecode',
dataType: 'SSCODELIST',
},
{
name: 'expectedresponse',
prop: 'expectedresponse',
dataType: 'INT',
},
{
name: 'transactioncurrencyid',
prop: 'transactioncurrencyid',
dataType: 'PICKUP',
},
{
name: 'campaignid',
prop: 'campaignid',
dataType: 'GUID',
},
{
name: 'campaign',
prop: 'campaignid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-form' ref='form' id='campaign_quickcreate' style="">
<input style="display:none;" />
<row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.campaign.quickcreate_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.campaignname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='campaignname' :itemRules="this.rules.campaignname" class='' :caption="$t('entities.campaign.quickcreate_form.details.campaignname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.campaignname.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.campaignname" @enter="onEnter($event)" unit="" :disabled="detailsModel.campaignname.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.codename.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='codename' :itemRules="this.rules.codename" class='' :caption="$t('entities.campaign.quickcreate_form.details.codename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.codename.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.codename" @enter="onEnter($event)" unit="" :disabled="detailsModel.codename.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.transactioncurrencyname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='transactioncurrencyname' :itemRules="this.rules.transactioncurrencyname" class='' :caption="$t('entities.campaign.quickcreate_form.details.transactioncurrencyname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.transactioncurrencyname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.transactioncurrencyname.disabled"
name='transactioncurrencyname'
deMajorField='currencyname'
deKeyField='transactioncurrency'
:service="service"
:acParams="{ serviceName: 'TransactionCurrencyService', interfaceName: 'FetchDefault'}"
valueitem='transactioncurrencyid'
:value="data.transactioncurrencyname"
editortype=""
:pickupView="{ viewname: 'transaction-currency-pickup-view', title: $t('entities.transactioncurrency.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'transactioncurrencies', parameterName: 'transactioncurrency' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.typecode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='typecode' :itemRules="this.rules.typecode" class='' :caption="$t('entities.campaign.quickcreate_form.details.typecode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.typecode.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.typecode"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.typecode.disabled"
tag='Campaign__TypeCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.expectedresponse.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='expectedresponse' :itemRules="this.rules.expectedresponse" class='' :caption="$t('entities.campaign.quickcreate_form.details.expectedresponse')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.expectedresponse.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.expectedresponse" @enter="onEnter($event)" unit="" :disabled="detailsModel.expectedresponse.disabled" type='number' style=""></input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
<template src="./quick-create-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { QuickCreateEditFormBase } from './quick-create-form-base';
/**
* form部件
*
* @export
* @class QuickCreateEditForm
* @extends {QuickCreateEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class QuickCreateEditForm extends QuickCreateEditFormBase { }
</script>
......@@ -68,10 +68,6 @@ export class QuickCreateEditFormBase extends EditFormControlBase {
ownerid: null,
owneridtype: null,
owneridyominame: null,
createman: null,
createdate: null,
updateman: null,
updatedate: null,
transactioncurrencyid: null,
listid: null,
ibizlist:null,
......@@ -113,14 +109,10 @@ export class QuickCreateEditFormBase extends EditFormControlBase {
* @memberof QuickCreateEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: 'list基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.quickcreate_form', extractMode: 'ITEM', details: [] } }),
group1: new FormGroupPanelModel({ caption: 'list基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.quickcreate_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }),
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', langbase: 'entities.ibizlist.quickcreate_form', extractMode: 'ITEM', details: [] } }),
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
......@@ -163,18 +155,9 @@ export class QuickCreateEditFormBase extends EditFormControlBase {
owneridyominame: new FormItemModel({ caption: '负责人', detailType: 'FORMITEM', name: 'owneridyominame', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
createdate: new FormItemModel({ caption: '建立时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
transactioncurrencyid: new FormItemModel({ caption: '货币', detailType: 'FORMITEM', name: 'transactioncurrencyid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
listid: new FormItemModel({ caption: '列表', detailType: 'FORMITEM', name: 'listid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
};
}
\ No newline at end of file
......@@ -120,26 +120,6 @@ export default class QuickCreateModel {
prop: 'owneridyominame',
dataType: 'TEXT',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
},
{
name: 'createdate',
prop: 'createdate',
dataType: 'DATETIME',
},
{
name: 'updateman',
prop: 'updateman',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'transactioncurrencyid',
prop: 'transactioncurrencyid',
......
<i-form :model="this.data" class='app-form' ref='form' id='ibizlist_quickcreate' style="">
<input style="display:none;" />
<row >
<tabs :animated="false" size="small" name='quickcreate' :value="detailsModel.form.activiedPage"
@on-click="detailsModel.form.clickPage($event)">
<tab-pane v-show="detailsModel.formpage1.visible" name='formpage1' :index="0" tab='quickcreate' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.ibizlist.quickcreate_form.details.formpage1')
])
}">
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizlist.quickcreate_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizlist.quickcreate_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.listname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='listname' :itemRules="this.rules.listname" class='' :caption="$t('entities.ibizlist.quickcreate_form.details.listname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.listname.error" :isEmptyCaption="false" labelPos="LEFT">
......@@ -147,55 +137,5 @@
</i-col>
</tab-pane>
<tab-pane v-show="detailsModel.formpage2.visible" name='formpage2' :index="1" tab='quickcreate' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.ibizlist.quickcreate_form.details.formpage2')
])
}">
<i-col v-show="detailsModel.group2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizlist.quickcreate_form.details.group2')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.createman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createman' :itemRules="this.rules.createman" class='' :caption="$t('entities.ibizlist.quickcreate_form.details.createman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createman' :value="data.createman" tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules.createdate" class='' :caption="$t('entities.ibizlist.quickcreate_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createdate' :value="data.createdate" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.updateman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updateman' :itemRules="this.rules.updateman" class='' :caption="$t('entities.ibizlist.quickcreate_form.details.updateman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updateman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updateman' :value="data.updateman" tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.updatedate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updatedate' :itemRules="this.rules.updatedate" class='' :caption="$t('entities.ibizlist.quickcreate_form.details.updatedate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updatedate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updatedate' :value="data.updatedate" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 18, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container summarydashboard-container1 ' :style="{}">
<div class='portlet-container summarydashboard-container1 portlet-container-no-border' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
......
......@@ -7421,7 +7421,7 @@
<!--输出实体[CAMPAIGN]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-campaign-108-78">
<changeSet author="a_LAB01_e85d8801c" id="tab-campaign-118-78">
<createTable tableName="CAMPAIGN">
<column name="EXPECTEDRESPONSE" remarks="" type="INT">
</column>
......@@ -9933,7 +9933,7 @@
<!--输出实体[LIST]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-list-70-114">
<changeSet author="a_LAB01_e85d8801c" id="tab-list-76-114">
<createTable tableName="LIST">
<column name="OWNERIDTYPE" remarks="" type="VARCHAR(100)">
</column>
......@@ -11435,10 +11435,10 @@
<addForeignKeyConstraint baseColumnNames="BASECURRENCYID" baseTableName="ORGANIZATION" constraintName="DER1N_ORGANIZATION__TRANSACTIO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[CAMPAIGN]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-campaign-108-324">
<changeSet author="a_LAB01_e85d8801c" id="fk-campaign-118-324">
<addForeignKeyConstraint baseColumnNames="PRICELISTID" baseTableName="CAMPAIGN" constraintName="DER1N_CAMPAIGN__PRICELEVEL__PR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-campaign-108-325">
<changeSet author="a_LAB01_e85d8801c" id="fk-campaign-118-325">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="CAMPAIGN" constraintName="DER1N_CAMPAIGN__TRANSACTIONCUR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[BOOKABLERESCHARACTERISTIC]外键关系 -->
......@@ -11684,7 +11684,7 @@
<!--输出实体[POST]外键关系 -->
<!--输出实体[CONTRACTTEMPLATE]外键关系 -->
<!--输出实体[LIST]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-list-70-404">
<changeSet author="a_LAB01_e85d8801c" id="fk-list-76-404">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="LIST" constraintName="DER1N_LIST__TRANSACTIONCURRENC" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[KNOWLEDGEBASERECORD]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册