Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
03b3636e
提交
03b3636e
编写于
6月 30, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
fe63ce95
变更
56
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
56 个修改的文件
包含
2735 行增加
和
1528 行删除
+2735
-1528
view-config.json
app_CRM/public/assets/json/view-config.json
+20
-0
uom-schedule.ts
app_CRM/src/interface/entity/uom-schedule.ts
+128
-0
en-US.ts
app_CRM/src/locale/lang/en-US.ts
+2
-0
zh-CN.ts
app_CRM/src/locale/lang/zh-CN.ts
+2
-0
account_en_US.ts
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
+35
-37
account_zh_CN.ts
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
+35
-37
campaign-list_en_US.ts
...cale/lanres/entities/campaign-list/campaign-list_en_US.ts
+8
-8
campaign-list_zh_CN.ts
...cale/lanres/entities/campaign-list/campaign-list_zh_CN.ts
+8
-8
campaign_en_US.ts
...CRM/src/locale/lanres/entities/campaign/campaign_en_US.ts
+16
-16
campaign_zh_CN.ts
...CRM/src/locale/lanres/entities/campaign/campaign_zh_CN.ts
+16
-16
contact_en_US.ts
app_CRM/src/locale/lanres/entities/contact/contact_en_US.ts
+8
-8
contact_zh_CN.ts
app_CRM/src/locale/lanres/entities/contact/contact_zh_CN.ts
+8
-8
list-account_en_US.ts
...locale/lanres/entities/list-account/list-account_en_US.ts
+8
-8
list-account_zh_CN.ts
...locale/lanres/entities/list-account/list-account_zh_CN.ts
+8
-8
list-contact_en_US.ts
...locale/lanres/entities/list-contact/list-contact_en_US.ts
+8
-8
list-contact_zh_CN.ts
...locale/lanres/entities/list-contact/list-contact_zh_CN.ts
+8
-8
opportunity-competitor_en_US.ts
...es/opportunity-competitor/opportunity-competitor_en_US.ts
+8
-8
opportunity-competitor_zh_CN.ts
...es/opportunity-competitor/opportunity-competitor_zh_CN.ts
+8
-8
product_en_US.ts
app_CRM/src/locale/lanres/entities/product/product_en_US.ts
+10
-0
product_zh_CN.ts
app_CRM/src/locale/lanres/entities/product/product_zh_CN.ts
+10
-0
uom-schedule_en_US.ts
...locale/lanres/entities/uom-schedule/uom-schedule_en_US.ts
+46
-0
uom-schedule_zh_CN.ts
...locale/lanres/entities/uom-schedule/uom-schedule_zh_CN.ts
+45
-0
uom-schedules.ts
app_CRM/src/mock/entity/uom-schedules/uom-schedules.ts
+380
-0
index.ts
app_CRM/src/mock/index.ts
+1
-0
viewconfig.ts
app_CRM/src/mock/viewconfig/viewconfig.ts
+16
-0
account-info-base.tsx
app_CRM/src/pages/base/account-info/account-info-base.tsx
+59
-82
contact-info-base.tsx
app_CRM/src/pages/base/contact-info/contact-info-base.tsx
+58
-81
campaign-info-base.tsx
.../src/pages/marketing/campaign-info/campaign-info-base.tsx
+58
-81
campaign-list-edit-view-base.tsx
.../campaign-list-edit-view/campaign-list-edit-view-base.tsx
+58
-82
campaign-summary-head-base.tsx
...ting/campaign-summary-head/campaign-summary-head-base.tsx
+58
-81
list-account-edit-view-base.tsx
...ng/list-account-edit-view/list-account-edit-view-base.tsx
+58
-82
list-contact-edit-view-base.tsx
...ng/list-contact-edit-view/list-contact-edit-view-base.tsx
+58
-82
opportunity-competitor-edit-view-base.tsx
...titor-edit-view/opportunity-competitor-edit-view-base.tsx
+58
-82
router.ts
app_CRM/src/pages/ungroup/central/router.ts
+0
-14
campaign-service-base.ts
app_CRM/src/service/campaign/campaign-service-base.ts
+52
-52
contact-service-base.ts
app_CRM/src/service/contact/contact-service-base.ts
+115
-115
entity-service-register.ts
app_CRM/src/service/entity-service-register.ts
+1
-0
ibiz-list-service-base.ts
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
+82
-82
opportunity-service-base.ts
app_CRM/src/service/opportunity/opportunity-service-base.ts
+194
-194
sales-literature-service-base.ts
...service/sales-literature/sales-literature-service-base.ts
+46
-46
uom-schedule-service-base.ts
...CRM/src/service/uom-schedule/uom-schedule-service-base.ts
+177
-0
uom-schedule-service.ts
app_CRM/src/service/uom-schedule/uom-schedule-service.ts
+25
-0
state.ts
app_CRM/src/store/modules/view-action/state.ts
+0
-1
account-ui-service-base.ts
app_CRM/src/uiservice/account/account-ui-service-base.ts
+0
-66
ui-service-register.ts
app_CRM/src/uiservice/ui-service-register.ts
+1
-0
uom-schedule-ui-service-base.ts
...rc/uiservice/uom-schedule/uom-schedule-ui-service-base.ts
+212
-0
uom-schedule-ui-service.ts
...CRM/src/uiservice/uom-schedule/uom-schedule-ui-service.ts
+21
-0
info-all-form-base.tsx
.../src/widgets/account/info-all-form/info-all-form-base.tsx
+11
-44
info-all-form-model.ts
.../src/widgets/account/info-all-form/info-all-form-model.ts
+17
-17
info-all-form.html
app_CRM/src/widgets/account/info-all-form/info-all-form.html
+24
-32
application-crm-prod.yml
...ntral-app-crm/src/main/resources/application-crm-prod.yml
+4
-0
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+26
-26
systemResource.json
...al-core/src/main/resources/permission/systemResource.json
+8
-0
UomScheduleDTO.java
...bizlab/businesscentral/centralapi/dto/UomScheduleDTO.java
+232
-0
UomScheduleMapping.java
...usinesscentral/centralapi/mapping/UomScheduleMapping.java
+16
-0
UomScheduleResource.java
.../businesscentral/centralapi/rest/UomScheduleResource.java
+164
-0
未找到文件。
app_CRM/public/assets/json/view-config.json
浏览文件 @
03b3636e
...
...
@@ -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"
:
"仪表盘"
,
...
...
app_CRM/src/interface/entity/uom-schedule.ts
0 → 100644
浏览文件 @
03b3636e
/**
* 计价单位组
*
* @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
app_CRM/src/locale/lang/en-US.ts
浏览文件 @
03b3636e
...
...
@@ -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
,
...
...
app_CRM/src/locale/lang/zh-CN.ts
浏览文件 @
03b3636e
...
...
@@ -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
,
...
...
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -693,6 +687,10 @@ export default {
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -692,6 +686,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/campaign-list/campaign-list_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -110,6 +106,10 @@ export default {
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/campaign-list/campaign-list_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -93,15 +93,11 @@ export default {
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
deuiaction4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -109,6 +105,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/campaign/campaign_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/campaign/campaign_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -339,15 +339,11 @@ export default {
},
},
infotoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
deuiaction4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
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
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -385,6 +381,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/contact/contact_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -601,6 +597,10 @@ export default {
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/contact/contact_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -584,15 +584,11 @@ export default {
},
},
infotoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
deuiaction4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -600,6 +596,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/list-account/list-account_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -107,6 +103,10 @@ export default {
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/list-account/list-account_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -90,15 +90,11 @@ export default {
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
deuiaction4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -106,6 +102,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/list-contact/list-contact_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -98,6 +94,10 @@ export default {
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/list-contact/list-contact_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -81,15 +81,11 @@ export default {
innertoolbar_toolbar
:
{
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
deuiaction4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -97,6 +93,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/opportunity-competitor/opportunity-competitor_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/opportunity-competitor/opportunity-competitor_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -101,15 +101,11 @@ export default {
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
deuiaction4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem
6
:
{
tbitem
2
:
{
caption
:
"-"
,
tip
:
""
,
},
...
...
@@ -117,6 +113,10 @@ export default {
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator2
:
{
caption
:
""
,
tip
:
""
,
},
deuiaction2
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
...
...
app_CRM/src/locale/lanres/entities/product/product_en_US.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
{
},
...
...
app_CRM/src/locale/lanres/entities/product/product_zh_CN.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
{
},
...
...
app_CRM/src/locale/lanres/entities/uom-schedule/uom-schedule_en_US.ts
0 → 100644
浏览文件 @
03b3636e
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
app_CRM/src/locale/lanres/entities/uom-schedule/uom-schedule_zh_CN.ts
0 → 100644
浏览文件 @
03b3636e
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
app_CRM/src/mock/entity/uom-schedules/uom-schedules.ts
0 → 100644
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/mock/index.ts
浏览文件 @
03b3636e
...
...
@@ -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'
;
...
...
app_CRM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
03b3636e
...
...
@@ -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"
:
"仪表盘"
,
...
...
app_CRM/src/pages/base/account-info/account-info-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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
:
''
},
tbitem
6
:
{
name
:
'tbitem6
'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem
2
:
{
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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/base/contact-info/contact-info-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/marketing/campaign-info/campaign-info-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/marketing/campaign-list-edit-view/campaign-list-edit-view-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/marketing/campaign-summary-head/campaign-summary-head-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/marketing/list-account-edit-view/list-account-edit-view-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/marketing/list-contact-edit-view/list-contact-edit-view-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/sales/opportunity-competitor-edit-view/opportunity-competitor-edit-view-base.tsx
浏览文件 @
03b3636e
...
...
@@ -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} context
JO
行为附加上下文
* @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
);
}
/**
* 删除并关闭
*
...
...
app_CRM/src/pages/ungroup/central/router.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
{
...
...
app_CRM/src/service/campaign/campaign-service-base.ts
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/service/contact/contact-service-base.ts
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/service/entity-service-register.ts
浏览文件 @
03b3636e
...
...
@@ -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'
));
...
...
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/service/opportunity/opportunity-service-base.ts
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/service/sales-literature/sales-literature-service-base.ts
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/service/uom-schedule/uom-schedule-service-base.ts
0 → 100644
浏览文件 @
03b3636e
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
app_CRM/src/service/uom-schedule/uom-schedule-service.ts
0 → 100644
浏览文件 @
03b3636e
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
app_CRM/src/store/modules/view-action/state.ts
浏览文件 @
03b3636e
...
...
@@ -380,7 +380,6 @@ export const viewstate: any = {
'9224b0b14d2d99014e051f8035ba5cbf'
,
'e404dc93e70d6284d4e1a083017625ed'
,
'e4335da0a7c14a65376eecaabb771fd7'
,
'90cb61421b72cbc76f75360deffde218'
,
'688201ee5642d41628dbf4deba002d17'
,
],
},
...
...
app_CRM/src/uiservice/account/account-ui-service-base.ts
浏览文件 @
03b3636e
...
...
@@ -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
);
}
/**
* 获取指定数据的重定向页面
...
...
app_CRM/src/uiservice/ui-service-register.ts
浏览文件 @
03b3636e
...
...
@@ -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'
));
...
...
app_CRM/src/uiservice/uom-schedule/uom-schedule-ui-service-base.ts
0 → 100644
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/uiservice/uom-schedule/uom-schedule-ui-service.ts
0 → 100644
浏览文件 @
03b3636e
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
app_CRM/src/widgets/account/info-all-form/info-all-form-base.tsx
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
app_CRM/src/widgets/account/info-all-form/info-all-form-model.ts
浏览文件 @
03b3636e
...
...
@@ -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
:
'
customertype
code'
,
prop
:
'
customertype
code'
,
name
:
'
ownership
code'
,
prop
:
'
ownership
code'
,
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'
,
...
...
app_CRM/src/widgets/account/info-all-form/info-all-form.html
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
businesscentral-app/businesscentral-app-crm/src/main/resources/application-crm-prod.yml
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
businesscentral-core/src/main/resources/permission/systemResource.json
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
businesscentral-provider/businesscentral-provider-centralapi/src/main/java/cn/ibizlab/businesscentral/centralapi/dto/UomScheduleDTO.java
0 → 100644
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
businesscentral-provider/businesscentral-provider-centralapi/src/main/java/cn/ibizlab/businesscentral/centralapi/mapping/UomScheduleMapping.java
0 → 100644
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
businesscentral-provider/businesscentral-provider-centralapi/src/main/java/cn/ibizlab/businesscentral/centralapi/rest/UomScheduleResource.java
0 → 100644
浏览文件 @
03b3636e
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录