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

xignzi006 发布系统代码

上级 fe63ce95
......@@ -269,6 +269,16 @@
"viewtag": "21eb3cee3363f2590cf0cf6af8446300",
"memo": ""
},
"uomschedulepickupview": {
"title": "计价单位组数据选择视图",
"caption": "计价单位组",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "UomSchedulePickupView",
"viewfilename": "uom-schedule-pickup-view",
"viewtag": "241c1fe99d6b6b99ad2888762140837a",
"memo": "系统自动添加"
},
"ibizlistgridview": {
"title": "市场营销列表表格视图",
"caption": "市场营销列表",
......@@ -949,6 +959,16 @@
"viewtag": "7d6cff9fab81efce5b7dbc0ae11d3c15",
"memo": ""
},
"uomschedulepickupgridview": {
"title": "计价单位组选择表格视图",
"caption": "计价单位组",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "UomSchedulePickupGridView",
"viewfilename": "uom-schedule-pickup-grid-view",
"viewtag": "7decb196037249b909762c9142adfe91",
"memo": "系统自动添加"
},
"centeralportal": {
"title": "仪表盘",
"caption": "仪表盘",
......
/**
* 计价单位组
*
* @export
* @interface UomSchedule
*/
export interface UomSchedule {
/**
* Import Sequence Number
*
* @returns {*}
* @memberof UomSchedule
*/
importsequencenumber?: any;
/**
* Time Zone Rule Version Number
*
* @returns {*}
* @memberof UomSchedule
*/
timezoneruleversionnumber?: any;
/**
* 建立人
*
* @returns {*}
* @memberof UomSchedule
*/
createman?: any;
/**
* 说明
*
* @returns {*}
* @memberof UomSchedule
*/
description?: any;
/**
* 基础单位名称
*
* @returns {*}
* @memberof UomSchedule
*/
baseuomname?: any;
/**
* 更新人
*
* @returns {*}
* @memberof UomSchedule
*/
updateman?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof UomSchedule
*/
updatedate?: any;
/**
* Version Number
*
* @returns {*}
* @memberof UomSchedule
*/
versionnumber?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof UomSchedule
*/
createdate?: any;
/**
* UTC Conversion Time Zone Code
*
* @returns {*}
* @memberof UomSchedule
*/
utcconversiontimezonecode?: any;
/**
* 状态
*
* @returns {*}
* @memberof UomSchedule
*/
statecode?: any;
/**
* 状态描述
*
* @returns {*}
* @memberof UomSchedule
*/
statuscode?: any;
/**
* Record Created On
*
* @returns {*}
* @memberof UomSchedule
*/
overriddencreatedon?: any;
/**
* 单位进度表名称
*
* @returns {*}
* @memberof UomSchedule
*/
uomschedulename?: any;
/**
* 计价单位组
*
* @returns {*}
* @memberof UomSchedule
*/
uomscheduleid?: any;
}
\ No newline at end of file
......@@ -15,6 +15,7 @@ import campaign_en_US from '@locale/lanres/entities/campaign/campaign_en_US';
import lead_en_US from '@locale/lanres/entities/lead/lead_en_US';
import incident_en_US from '@locale/lanres/entities/incident/incident_en_US';
import ibizservice_en_US from '@locale/lanres/entities/ibiz-service/ibiz-service_en_US';
import uomschedule_en_US from '@locale/lanres/entities/uom-schedule/uom-schedule_en_US';
import ibizlist_en_US from '@locale/lanres/entities/ibiz-list/ibiz-list_en_US';
import campaignresponse_en_US from '@locale/lanres/entities/campaign-response/campaign-response_en_US';
import phonecall_en_US from '@locale/lanres/entities/phone-call/phone-call_en_US';
......@@ -162,6 +163,7 @@ export default {
lead: lead_en_US,
incident: incident_en_US,
ibizservice: ibizservice_en_US,
uomschedule: uomschedule_en_US,
ibizlist: ibizlist_en_US,
campaignresponse: campaignresponse_en_US,
phonecall: phonecall_en_US,
......
......@@ -15,6 +15,7 @@ import campaign_zh_CN from '@locale/lanres/entities/campaign/campaign_zh_CN';
import lead_zh_CN from '@locale/lanres/entities/lead/lead_zh_CN';
import incident_zh_CN from '@locale/lanres/entities/incident/incident_zh_CN';
import ibizservice_zh_CN from '@locale/lanres/entities/ibiz-service/ibiz-service_zh_CN';
import uomschedule_zh_CN from '@locale/lanres/entities/uom-schedule/uom-schedule_zh_CN';
import ibizlist_zh_CN from '@locale/lanres/entities/ibiz-list/ibiz-list_zh_CN';
import campaignresponse_zh_CN from '@locale/lanres/entities/campaign-response/campaign-response_zh_CN';
import phonecall_zh_CN from '@locale/lanres/entities/phone-call/phone-call_zh_CN';
......@@ -162,6 +163,7 @@ export default {
lead: lead_zh_CN,
incident: incident_zh_CN,
ibizservice: ibizservice_zh_CN,
uomschedule: uomschedule_zh_CN,
ibizlist: ibizlist_zh_CN,
campaignresponse: campaignresponse_zh_CN,
phonecall: phonecall_zh_CN,
......
......@@ -274,27 +274,6 @@ export default {
uiactions: {
},
},
edit_introduction_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
industrycode: "行业",
sic: "行业编码",
ownershipcode: "所有权",
description: "说明",
accountid: "客户",
},
uiactions: {
},
},
edit_address_form: {
details: {
group1: "客户基本信息",
......@@ -322,7 +301,6 @@ export default {
info_all_form: {
details: {
group1: "账户信息",
grouppanel3: "简介",
grouppanel1: "地址信息",
druipart1: "",
grouppanel4: "联系人",
......@@ -337,16 +315,16 @@ export default {
srfdeid: "",
srfsourcekey: "",
accountname: "客户名称",
customertypecode: "关系类型",
telephone1: "主要电话",
industrycode: "行业",
sic: "行业编码",
fax: "传真",
websiteurl: "网站",
parentaccountname: "上级单位",
tickersymbol: "股票代号",
customertypecode: "关系类型",
defaultpricelevelname: "价目表",
industrycode: "行业",
sic: "行业编码",
ownershipcode: "所有权",
defaultpricelevelname: "价目表",
description: "说明",
address1_addressid: "地址 1: ID",
address1_name: "地址 1: 名称",
......@@ -370,7 +348,6 @@ export default {
},
uiactions: {
account_edit_accountinfo: "编辑",
account_edit_introduction: "编辑",
account_edit_address: "编辑",
contact_openquickcreateview: "新建",
},
......@@ -519,6 +496,27 @@ export default {
uiactions: {
},
},
edit_introduction_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
industrycode: "行业",
sic: "行业编码",
ownershipcode: "所有权",
description: "说明",
accountid: "客户",
},
uiactions: {
},
},
info_address_form: {
details: {
group1: "客户基本信息",
......@@ -673,19 +671,15 @@ export default {
caption: "编辑",
tip: "编辑",
},
tbitem2: {
caption: "-",
seperator3: {
caption: "",
tip: "",
},
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -693,6 +687,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -273,27 +273,6 @@ export default {
uiactions: {
},
},
edit_introduction_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
industrycode: "行业",
sic: "行业编码",
ownershipcode: "所有权",
description: "说明",
accountid: "客户",
},
uiactions: {
},
},
edit_address_form: {
details: {
group1: "客户基本信息",
......@@ -321,7 +300,6 @@ export default {
info_all_form: {
details: {
group1: "账户信息",
grouppanel3: "简介",
grouppanel1: "地址信息",
druipart1: "",
grouppanel4: "联系人",
......@@ -336,16 +314,16 @@ export default {
srfdeid: "",
srfsourcekey: "",
accountname: "客户名称",
customertypecode: "关系类型",
telephone1: "主要电话",
industrycode: "行业",
sic: "行业编码",
fax: "传真",
websiteurl: "网站",
parentaccountname: "上级单位",
tickersymbol: "股票代号",
customertypecode: "关系类型",
defaultpricelevelname: "价目表",
industrycode: "行业",
sic: "行业编码",
ownershipcode: "所有权",
defaultpricelevelname: "价目表",
description: "说明",
address1_addressid: "地址 1: ID",
address1_name: "地址 1: 名称",
......@@ -369,7 +347,6 @@ export default {
},
uiactions: {
account_edit_accountinfo: "编辑",
account_edit_introduction: "编辑",
account_edit_address: "编辑",
contact_openquickcreateview: "新建",
},
......@@ -518,6 +495,27 @@ export default {
uiactions: {
},
},
edit_introduction_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
industrycode: "行业",
sic: "行业编码",
ownershipcode: "所有权",
description: "说明",
accountid: "客户",
},
uiactions: {
},
},
info_address_form: {
details: {
group1: "客户基本信息",
......@@ -672,19 +670,15 @@ export default {
caption: "编辑",
tip: "编辑",
},
tbitem2: {
caption: "-",
seperator3: {
caption: "",
tip: "",
},
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -692,6 +686,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -94,15 +94,11 @@ export default {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -110,6 +106,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -93,15 +93,11 @@ export default {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -109,6 +105,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -340,15 +340,11 @@ export default {
},
},
infotoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -356,6 +352,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......@@ -370,15 +370,11 @@ export default {
},
},
summary_headtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -386,6 +382,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -339,15 +339,11 @@ export default {
},
},
infotoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -355,6 +351,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......@@ -369,15 +369,11 @@ export default {
},
},
summary_headtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -385,6 +381,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -585,15 +585,11 @@ export default {
},
},
infotoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -601,6 +597,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -584,15 +584,11 @@ export default {
},
},
infotoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -600,6 +596,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -91,15 +91,11 @@ export default {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -107,6 +103,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -90,15 +90,11 @@ export default {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -106,6 +102,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -82,15 +82,11 @@ export default {
innertoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -98,6 +94,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -81,15 +81,11 @@ export default {
innertoolbar_toolbar: {
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -97,6 +93,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -102,15 +102,11 @@ export default {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -118,6 +114,10 @@ export default {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -101,15 +101,11 @@ export default {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
deuiaction4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
tbitem2: {
caption: "-",
tip: "",
},
......@@ -117,6 +113,10 @@ export default {
caption: "删除并关闭",
tip: "删除并关闭",
},
seperator2: {
caption: "",
tip: "",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
......
......@@ -95,6 +95,7 @@ export default {
proinfo_form: {
details: {
group1: "产品基本信息",
grouppanel1: "详细信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
......@@ -109,7 +110,16 @@ export default {
validfromdate: "有效期的开始日期",
validtodate: "有效期的结束日期",
description: "说明",
defaultuomschedulename: "计价单位组",
defaultuomname: "默认计价单位",
pricelevelname: "默认价目表",
quantitydecimal: "支持小数",
subjectname: "主题",
defaultuomid: "默认计价单位",
productid: "产品",
defaultuomscheduleid: "计价单位组",
subjectid: "主题",
pricelevelid: "默认价目表",
},
uiactions: {
},
......
......@@ -94,6 +94,7 @@ export default {
proinfo_form: {
details: {
group1: "产品基本信息",
grouppanel1: "详细信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
......@@ -108,7 +109,16 @@ export default {
validfromdate: "有效期的开始日期",
validtodate: "有效期的结束日期",
description: "说明",
defaultuomschedulename: "计价单位组",
defaultuomname: "默认计价单位",
pricelevelname: "默认价目表",
quantitydecimal: "支持小数",
subjectname: "主题",
defaultuomid: "默认计价单位",
productid: "产品",
defaultuomscheduleid: "计价单位组",
subjectid: "主题",
pricelevelid: "默认价目表",
},
uiactions: {
},
......
export default {
fields: {
importsequencenumber: "Import Sequence Number",
timezoneruleversionnumber: "Time Zone Rule Version Number",
createman: "建立人",
description: "说明",
baseuomname: "基础单位名称",
updateman: "更新人",
updatedate: "更新时间",
versionnumber: "Version Number",
createdate: "建立时间",
utcconversiontimezonecode: "UTC Conversion Time Zone Code",
statecode: "状态",
statuscode: "状态描述",
overriddencreatedon: "Record Created On",
uomschedulename: "单位进度表名称",
uomscheduleid: "计价单位组",
},
views: {
pickupview: {
caption: "计价单位组",
title: "计价单位组数据选择视图",
},
pickupgridview: {
caption: "计价单位组",
title: "计价单位组选择表格视图",
},
},
main_grid: {
columns: {
uomschedulename: "单位进度表名称",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
};
\ No newline at end of file
export default {
fields: {
importsequencenumber: "Import Sequence Number",
timezoneruleversionnumber: "Time Zone Rule Version Number",
createman: "建立人",
description: "说明",
baseuomname: "基础单位名称",
updateman: "更新人",
updatedate: "更新时间",
versionnumber: "Version Number",
createdate: "建立时间",
utcconversiontimezonecode: "UTC Conversion Time Zone Code",
statecode: "状态",
statuscode: "状态描述",
overriddencreatedon: "Record Created On",
uomschedulename: "单位进度表名称",
uomscheduleid: "计价单位组",
},
views: {
pickupview: {
caption: "计价单位组",
title: "计价单位组数据选择视图",
},
pickupgridview: {
caption: "计价单位组",
title: "计价单位组选择表格视图",
},
},
main_grid: {
columns: {
uomschedulename: "单位进度表名称",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
};
\ No newline at end of file
此差异已折叠。
......@@ -24,6 +24,7 @@ import './entity/campaigns/campaigns';
import './entity/leads/leads';
import './entity/incidents/incidents';
import './entity/ibiz-services/ibiz-services';
import './entity/uom-schedules/uom-schedules';
import './entity/ibiz-lists/ibiz-lists';
import './entity/campaign-responses/campaign-responses';
import './entity/phone-calls/phone-calls';
......
......@@ -223,6 +223,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactInfo_Person",
"viewtag": "21eb3cee3363f2590cf0cf6af8446300"
},
"uomschedulepickupview": {
"title": "计价单位组数据选择视图",
"caption": "计价单位组",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "UomSchedulePickupView",
"viewtag": "241c1fe99d6b6b99ad2888762140837a"
},
"ibizlistgridview": {
"title": "市场营销列表表格视图",
"caption": "市场营销列表",
......@@ -767,6 +775,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ProductSummaryView",
"viewtag": "7d6cff9fab81efce5b7dbc0ae11d3c15"
},
"uomschedulepickupgridview": {
"title": "计价单位组选择表格视图",
"caption": "计价单位组",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "UomSchedulePickupGridView",
"viewtag": "7decb196037249b909762c9142adfe91"
},
"centeralportal": {
"title": "仪表盘",
"caption": "仪表盘",
......
......@@ -66,14 +66,13 @@ export class AccountInfoBase extends TabExpViewBase {
public toolBarModels: any = {
tbitem1_openmaineditview: { name: 'tbitem1_openmaineditview', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenMainEditView', target: 'SINGLEKEY' }, class: '' },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
seperator3: { name: 'seperator3', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -128,11 +127,8 @@ export class AccountInfoBase extends TabExpViewBase {
if (Object.is($event.tag, 'tbitem1_openmaineditview')) {
this.toolbar_tbitem1_openmaineditview_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -181,7 +177,7 @@ export class AccountInfoBase extends TabExpViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -197,34 +193,7 @@ export class AccountInfoBase extends TabExpViewBase {
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Account");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"Account");
}
/**
......@@ -309,64 +278,72 @@ export class AccountInfoBase extends TabExpViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountInfoBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof AccountInfoBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'account-info-edit-mode',
height: 0,
width: 0,
title: '客户信息',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -63,13 +63,12 @@ export class ContactInfoBase extends TabExpViewBase {
* @memberof ContactInfo
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -121,11 +120,8 @@ export class ContactInfoBase extends TabExpViewBase {
* @memberof ContactInfoBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -146,34 +142,7 @@ export class ContactInfoBase extends TabExpViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -189,7 +158,7 @@ export class ContactInfoBase extends TabExpViewBase {
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Contact");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"Contact");
}
/**
......@@ -274,64 +243,72 @@ export class ContactInfoBase extends TabExpViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactInfoBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ContactInfoBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'contact-info-edit-mode',
height: 0,
width: 0,
title: '联系人信息',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -63,13 +63,12 @@ export class CampaignInfoBase extends TabExpViewBase {
* @memberof CampaignInfo
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -121,11 +120,8 @@ export class CampaignInfoBase extends TabExpViewBase {
* @memberof CampaignInfoBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -146,34 +142,7 @@ export class CampaignInfoBase extends TabExpViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"Campaign");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -189,7 +158,7 @@ export class CampaignInfoBase extends TabExpViewBase {
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Campaign");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"Campaign");
}
/**
......@@ -274,64 +243,72 @@ export class CampaignInfoBase extends TabExpViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignInfoBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignInfoBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'campaign-info-edit-mode',
height: 0,
width: 0,
title: '市场活动',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -63,13 +63,12 @@ export class CampaignListEditViewBase extends EditViewBase {
* @memberof CampaignListEditView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -123,11 +122,8 @@ export class CampaignListEditViewBase extends EditViewBase {
* @memberof CampaignListEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -181,7 +177,7 @@ export class CampaignListEditViewBase extends EditViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -198,35 +194,7 @@ export class CampaignListEditViewBase extends EditViewBase {
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"CampaignList");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"CampaignList");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"CampaignList");
}
/**
......@@ -314,64 +282,72 @@ export class CampaignListEditViewBase extends EditViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignListEditViewBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignListEditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'campaign-list-edit-view-edit-mode',
height: 0,
width: 0,
title: '市场活动-营销列表编辑视图',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -63,13 +63,12 @@ export class CampaignSummary_HeadBase extends DashboardViewBase {
* @memberof CampaignSummary_Head
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -122,11 +121,8 @@ export class CampaignSummary_HeadBase extends DashboardViewBase {
* @memberof CampaignSummary_HeadBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -158,34 +154,7 @@ export class CampaignSummary_HeadBase extends DashboardViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"Campaign");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -201,7 +170,7 @@ export class CampaignSummary_HeadBase extends DashboardViewBase {
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Campaign");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"Campaign");
}
/**
......@@ -286,64 +255,72 @@ export class CampaignSummary_HeadBase extends DashboardViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignSummary_HeadBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof CampaignSummary_HeadBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'campaign-summary-head-edit-mode',
height: 0,
width: 0,
title: '市场活动概览',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -63,13 +63,12 @@ export class ListAccountEditViewBase extends EditViewBase {
* @memberof ListAccountEditView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -123,11 +122,8 @@ export class ListAccountEditViewBase extends EditViewBase {
* @memberof ListAccountEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -181,7 +177,7 @@ export class ListAccountEditViewBase extends EditViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -198,35 +194,7 @@ export class ListAccountEditViewBase extends EditViewBase {
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"ListAccount");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"ListAccount");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"ListAccount");
}
/**
......@@ -314,64 +282,72 @@ export class ListAccountEditViewBase extends EditViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ListAccountEditViewBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ListAccountEditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'list-account-edit-view-edit-mode',
height: 0,
width: 0,
title: '营销列表-账户编辑视图',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -63,13 +63,12 @@ export class ListContactEditViewBase extends EditViewBase {
* @memberof ListContactEditView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -123,11 +122,8 @@ export class ListContactEditViewBase extends EditViewBase {
* @memberof ListContactEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -181,7 +177,7 @@ export class ListContactEditViewBase extends EditViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -198,35 +194,7 @@ export class ListContactEditViewBase extends EditViewBase {
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"ListContact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"ListContact");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"ListContact");
}
/**
......@@ -314,64 +282,72 @@ export class ListContactEditViewBase extends EditViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ListContactEditViewBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof ListContactEditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'list-contact-edit-view-edit-mode',
height: 0,
width: 0,
title: '营销列表-联系人编辑视图',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -63,13 +63,12 @@ export class OpportunityCompetitorEditViewBase extends EditViewBase {
* @memberof OpportunityCompetitorEditView
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存','isShowCaption':true,'isShowIcon':true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Save', target: '' }, class: '' },
deuiaction4: { name: 'deuiaction4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'OpenEditMode', target: 'SINGLEKEY' }, class: '' },
tbitem5: { name: 'tbitem5', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', caption: '删除并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY' }, class: '' },
seperator2: { name: 'seperator2', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction2: { name: 'deuiaction2', caption: '刷新','isShowCaption':true,'isShowIcon':true, tooltip: '刷新', iconcls: 'fa fa-refresh', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' }, class: '' },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
......@@ -123,11 +122,8 @@ export class OpportunityCompetitorEditViewBase extends EditViewBase {
* @memberof OpportunityCompetitorEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
......@@ -181,7 +177,7 @@ export class OpportunityCompetitorEditViewBase extends EditViewBase {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -198,35 +194,7 @@ export class OpportunityCompetitorEditViewBase extends EditViewBase {
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"OpportunityCompetitor");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"OpportunityCompetitor");
this.OpenEditMode(datas, contextJO,paramJO, $event, xData,this,"OpportunityCompetitor");
}
/**
......@@ -314,64 +282,72 @@ export class OpportunityCompetitorEditViewBase extends EditViewBase {
}
/**
* 保存
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof OpportunityCompetitorEditViewBase
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
public async OpenEditMode(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData = $event;
$event = params;
params = context;
let context2: any = {};
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _args: any[] = this.$util.deepCopy(args);
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context2, { res_partner: '%id%' });
Object.assign(params, { id: '%id%' });
Object.assign(params, { name: '%name%' })
if(actionContext.context){
parentContext = actionContext.context;
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof OpportunityCompetitorEditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
if(actionContext.viewparams){
parentViewParam = actionContext.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
Object.assign(context,this.context,context);
if(context && context.srfsessionid){
context.srfsessionkey = context.srfsessionid;
delete context.srfsessionid;
}
const parameters: any[] = [
{ pathName: 'res_partners', parameterName: 'res_partner' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
return result.datas;
});
}
const view: any = {
viewname: 'opportunity-competitor-edit-view-edit-mode',
height: 0,
width: 0,
title: '商机对手编辑视图',
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
}
/**
* 删除并关闭
*
......
......@@ -4277,20 +4277,6 @@ const router = new Router({
},
component: () => import('@pages/base/uom-pickup-view/uom-pickup-view.vue'),
},
{
path: 'accounts/:account?/edit_introduction/:edit_introduction?',
meta: {
caption: 'entities.account.views.edit_introduction.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'edit_introduction', parameterName: 'edit_introduction' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-introduction/account-edit-introduction.vue'),
},
{
path: 'ibizlists/:ibizlist?/listaccounts/:listaccount?/inner/:inner?',
meta: {
......
......@@ -56,6 +56,7 @@ export class EntityServiceRegister {
this.allEntityService.set('lead', () => import('@/service/lead/lead-service'));
this.allEntityService.set('incident', () => import('@/service/incident/incident-service'));
this.allEntityService.set('ibizservice', () => import('@/service/ibiz-service/ibiz-service-service'));
this.allEntityService.set('uomschedule', () => import('@/service/uom-schedule/uom-schedule-service'));
this.allEntityService.set('ibizlist', () => import('@/service/ibiz-list/ibiz-list-service'));
this.allEntityService.set('campaignresponse', () => import('@/service/campaign-response/campaign-response-service'));
this.allEntityService.set('phonecall', () => import('@/service/phone-call/phone-call-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 计价单位组服务对象基类
*
* @export
* @class UomScheduleServiceBase
* @extends {EntityServie}
*/
export default class UomScheduleServiceBase extends EntityService {
/**
* Creates an instance of UomScheduleServiceBase.
*
* @param {*} [opts={}]
* @memberof UomScheduleServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof UomScheduleServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='uomschedule';
this.APPDEKEY = 'uomscheduleid';
this.APPDENAME = 'uomschedules';
this.APPDETEXT = 'uomschedulename';
this.APPNAME = 'crm';
this.SYSTEMNAME = 'ibizbusinesscentral';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/uomschedules/${context.uomschedule}/select`,isloading);
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/uomschedules`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/uomschedules/${context.uomschedule}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/uomschedules/${context.uomschedule}`,isloading);
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/uomschedules/${context.uomschedule}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/uomschedules/getdraft`,isloading);
res.data.uomschedule = data.uomschedule;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/uomschedules/${context.uomschedule}/checkkey`,data,isloading);
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/uomschedules/${context.uomschedule}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UomScheduleServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/uomschedules/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import UomScheduleServiceBase from './uom-schedule-service-base';
/**
* 计价单位组服务对象
*
* @export
* @class UomScheduleService
* @extends {UomScheduleServiceBase}
*/
export default class UomScheduleService extends UomScheduleServiceBase {
/**
* Creates an instance of UomScheduleService.
*
* @param {*} [opts={}]
* @memberof UomScheduleService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -380,7 +380,6 @@ export const viewstate: any = {
'9224b0b14d2d99014e051f8035ba5cbf',
'e404dc93e70d6284d4e1a083017625ed',
'e4335da0a7c14a65376eecaabb771fd7',
'90cb61421b72cbc76f75360deffde218',
'688201ee5642d41628dbf4deba002d17',
],
},
......
......@@ -494,72 +494,6 @@ export default class AccountUIServiceBase extends UIService {
backend();
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async Account_Edit_Introduction(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { account: '%account%' });
Object.assign(params, { accountid: '%account%' });
Object.assign(params, { accountname: '%accountname%' });
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: 'accounts', parameterName: 'account' },
];
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 (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
return result.datas;
});
}
const view: any = {
viewname: 'account-edit-introduction',
height: 0,
width: 450,
title: actionContext.$t('entities.account.views.edit_introduction.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 获取指定数据的重定向页面
......
......@@ -56,6 +56,7 @@ export class UIServiceRegister {
this.allUIService.set('lead', () => import('@/uiservice/lead/lead-ui-service'));
this.allUIService.set('incident', () => import('@/uiservice/incident/incident-ui-service'));
this.allUIService.set('ibizservice', () => import('@/uiservice/ibiz-service/ibiz-service-ui-service'));
this.allUIService.set('uomschedule', () => import('@/uiservice/uom-schedule/uom-schedule-ui-service'));
this.allUIService.set('ibizlist', () => import('@/uiservice/ibiz-list/ibiz-list-ui-service'));
this.allUIService.set('campaignresponse', () => import('@/uiservice/campaign-response/campaign-response-ui-service'));
this.allUIService.set('phonecall', () => import('@/uiservice/phone-call/phone-call-ui-service'));
......
import UomScheduleUIServiceBase from './uom-schedule-ui-service-base';
/**
* 计价单位组UI服务对象
*
* @export
* @class UomScheduleUIService
*/
export default class UomScheduleUIService extends UomScheduleUIServiceBase {
/**
* Creates an instance of UomScheduleUIService.
*
* @param {*} [opts={}]
* @memberof UomScheduleUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -60,11 +60,26 @@ export default class Info_AllModel {
prop: 'accountname',
dataType: 'TEXT',
},
{
name: 'customertypecode',
prop: 'customertypecode',
dataType: 'SSCODELIST',
},
{
name: 'telephone1',
prop: 'telephone1',
dataType: 'TEXT',
},
{
name: 'industrycode',
prop: 'industrycode',
dataType: 'SSCODELIST',
},
{
name: 'sic',
prop: 'sic',
dataType: 'TEXT',
},
{
name: 'fax',
prop: 'fax',
......@@ -86,8 +101,8 @@ export default class Info_AllModel {
dataType: 'TEXT',
},
{
name: 'customertypecode',
prop: 'customertypecode',
name: 'ownershipcode',
prop: 'ownershipcode',
dataType: 'SSCODELIST',
},
{
......@@ -95,21 +110,6 @@ export default class Info_AllModel {
prop: 'defaultpricelevelname',
dataType: 'PICKUPTEXT',
},
{
name: 'industrycode',
prop: 'industrycode',
dataType: 'SSCODELIST',
},
{
name: 'sic',
prop: 'sic',
dataType: 'TEXT',
},
{
name: 'ownershipcode',
prop: 'ownershipcode',
dataType: 'SSCODELIST',
},
{
name: 'description',
prop: 'description',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册