Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
e2b0152f
提交
e2b0152f
编写于
6月 19, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
78ff5afb
变更
19
显示空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
3926 行增加
和
468 行删除
+3926
-468
view-config.json
app_BusinessCentral/public/assets/json/view-config.json
+0
-20
account_en_US.ts
...ntral/src/locale/lanres/entities/account/account_en_US.ts
+50
-50
account_zh_CN.ts
...ntral/src/locale/lanres/entities/account/account_zh_CN.ts
+50
-50
ibiz-service_en_US.ts
...locale/lanres/entities/ibiz-service/ibiz-service_en_US.ts
+0
-126
ibiz-service_zh_CN.ts
...locale/lanres/entities/ibiz-service/ibiz-service_zh_CN.ts
+0
-126
viewconfig.ts
app_BusinessCentral/src/mock/viewconfig/viewconfig.ts
+1
-17
account-info-all-base.vue
...src/pages/base/account-info-all/account-info-all-base.vue
+515
-0
account-info-all.less
...ral/src/pages/base/account-info-all/account-info-all.less
+6
-0
account-info-all.vue
...tral/src/pages/base/account-info-all/account-info-all.vue
+19
-0
page-register.ts
...usinessCentral/src/pages/ungroup/central/page-register.ts
+1
-2
router.ts
app_BusinessCentral/src/pages/ungroup/central/router.ts
+55
-54
state.ts
app_BusinessCentral/src/store/modules/view-action/state.ts
+14
-20
ibiz-service-ui-service-base.ts
...rc/uiservice/ibiz-service/ibiz-service-ui-service-base.ts
+0
-2
info-all-form-base.vue
.../src/widgets/account/info-all-form/info-all-form-base.vue
+2584
-0
info-all-form-model.ts
.../src/widgets/account/info-all-form/info-all-form-model.ts
+226
-0
info-all-form-service.ts
...rc/widgets/account/info-all-form/info-all-form-service.ts
+386
-0
info-all-form.less
...tral/src/widgets/account/info-all-form/info-all-form.less
+4
-0
info-all-form.vue
...ntral/src/widgets/account/info-all-form/info-all-form.vue
+14
-0
view-account-info-all-portlet-base.vue
...t-info-all-portlet/view-account-info-all-portlet-base.vue
+1
-1
未找到文件。
app_BusinessCentral/public/assets/json/view-config.json
浏览文件 @
e2b0152f
{
"ibizserviceeditview"
:
{
"title"
:
"服务编辑视图"
,
"caption"
:
"服务"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Service"
,
"viewname"
:
"IBizServiceEditView"
,
"viewfilename"
:
"ibiz-service-edit-view"
,
"viewtag"
:
"0027cf632b1ee99cb364d2b6aa2b6511"
,
"memo"
:
"系统自动添加"
},
"contacteditabstract"
:
{
"title"
:
"联系人选项操作视图"
,
"caption"
:
"摘要信息"
,
...
...
@@ -599,16 +589,6 @@
"viewtag"
:
"7877d7e7e55fe21f48e8382e07579f33"
,
"memo"
:
"系统自动添加"
},
"ibizservicegridview"
:
{
"title"
:
"服务表格视图"
,
"caption"
:
"服务"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Service"
,
"viewname"
:
"IBizServiceGridView"
,
"viewfilename"
:
"ibiz-service-grid-view"
,
"viewtag"
:
"7b487e231caf16a33620396ad7c90634"
,
"memo"
:
"系统自动添加"
},
"campaignresponsequickcreate"
:
{
"title"
:
"快速新建"
,
"caption"
:
"快速新建"
,
...
...
app_BusinessCentral/src/locale/lanres/entities/account/account_en_US.ts
浏览文件 @
e2b0152f
...
...
@@ -242,51 +242,6 @@ export default {
title
:
'客户编辑视图'
,
},
},
info_account_form
:
{
details
:
{
group1
:
"客户基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"客户"
,
srfmajortext
:
"客户名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
accountname
:
"客户名称"
,
telephone1
:
"主要电话"
,
fax
:
"传真"
,
websiteurl
:
"网站"
,
parentaccountname
:
"上级单位"
,
tickersymbol
:
"股票代号"
,
customertypecode
:
"关系类型"
,
defaultpricelevelname
:
"价目表"
,
accountid
:
"客户"
,
},
uiactions
:
{
},
},
info_majorcontact_form
:
{
details
:
{
druipart1
:
""
,
group1
:
"主联系人"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"客户"
,
srfmajortext
:
"客户名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
primarycontactname
:
"主要联系人"
,
emailaddress1
:
"电子邮件"
,
accountid
:
"客户"
,
},
uiactions
:
{
},
},
edit_accountinfo_form
:
{
details
:
{
group1
:
"客户基本信息"
,
...
...
@@ -388,6 +343,51 @@ export default {
edit_introduction
:
"编辑"
,
},
},
info_account_form
:
{
details
:
{
group1
:
"客户基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"客户"
,
srfmajortext
:
"客户名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
accountname
:
"客户名称"
,
telephone1
:
"主要电话"
,
fax
:
"传真"
,
websiteurl
:
"网站"
,
parentaccountname
:
"上级单位"
,
tickersymbol
:
"股票代号"
,
customertypecode
:
"关系类型"
,
defaultpricelevelname
:
"价目表"
,
accountid
:
"客户"
,
},
uiactions
:
{
},
},
info_majorcontact_form
:
{
details
:
{
druipart1
:
""
,
group1
:
"主联系人"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"客户"
,
srfmajortext
:
"客户名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
primarycontactname
:
"主要联系人"
,
emailaddress1
:
"电子邮件"
,
accountid
:
"客户"
,
},
uiactions
:
{
},
},
quickcreate_form
:
{
details
:
{
group1
:
"客户基本信息"
,
...
...
@@ -577,20 +577,20 @@ export default {
uiactions
:
{
},
},
innerpickip
_grid
:
{
main
_grid
:
{
columns
:
{
accountname
:
"客户名称"
,
telephone1
:
"主要电话"
,
address1_city
:
"地址 1: 市/县"
,
primarycontactname
:
"主要联系人"
,
emailaddress1
:
"电子邮件"
,
},
uiactions
:
{
},
},
main
_grid
:
{
innerpickip
_grid
:
{
columns
:
{
accountname
:
"客户名称"
,
telephone1
:
"主要电话"
,
address1_city
:
"地址 1: 市/县"
,
primarycontactname
:
"主要联系人"
,
emailaddress1
:
"电子邮件"
,
},
uiactions
:
{
...
...
app_BusinessCentral/src/locale/lanres/entities/account/account_zh_CN.ts
浏览文件 @
e2b0152f
...
...
@@ -241,51 +241,6 @@ export default {
title
:
'客户编辑视图'
,
},
},
info_account_form
:
{
details
:
{
group1
:
'客户基本信息'
,
formpage1
:
'基本信息'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'客户'
,
srfmajortext
:
'客户名称'
,
srftempmode
:
''
,
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
accountname
:
'客户名称'
,
telephone1
:
'主要电话'
,
fax
:
'传真'
,
websiteurl
:
'网站'
,
parentaccountname
:
'上级单位'
,
tickersymbol
:
'股票代号'
,
customertypecode
:
'关系类型'
,
defaultpricelevelname
:
'价目表'
,
accountid
:
'客户'
,
},
uiactions
:
{
},
},
info_majorcontact_form
:
{
details
:
{
druipart1
:
''
,
group1
:
'主联系人'
,
formpage1
:
'基本信息'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'客户'
,
srfmajortext
:
'客户名称'
,
srftempmode
:
''
,
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
primarycontactname
:
'主要联系人'
,
emailaddress1
:
'电子邮件'
,
accountid
:
'客户'
,
},
uiactions
:
{
},
},
edit_accountinfo_form
:
{
details
:
{
group1
:
'客户基本信息'
,
...
...
@@ -387,6 +342,51 @@ export default {
edit_introduction
:
'编辑'
,
},
},
info_account_form
:
{
details
:
{
group1
:
'客户基本信息'
,
formpage1
:
'基本信息'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'客户'
,
srfmajortext
:
'客户名称'
,
srftempmode
:
''
,
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
accountname
:
'客户名称'
,
telephone1
:
'主要电话'
,
fax
:
'传真'
,
websiteurl
:
'网站'
,
parentaccountname
:
'上级单位'
,
tickersymbol
:
'股票代号'
,
customertypecode
:
'关系类型'
,
defaultpricelevelname
:
'价目表'
,
accountid
:
'客户'
,
},
uiactions
:
{
},
},
info_majorcontact_form
:
{
details
:
{
druipart1
:
''
,
group1
:
'主联系人'
,
formpage1
:
'基本信息'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'客户'
,
srfmajortext
:
'客户名称'
,
srftempmode
:
''
,
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
primarycontactname
:
'主要联系人'
,
emailaddress1
:
'电子邮件'
,
accountid
:
'客户'
,
},
uiactions
:
{
},
},
quickcreate_form
:
{
details
:
{
group1
:
'客户基本信息'
,
...
...
@@ -576,20 +576,20 @@ export default {
uiactions
:
{
},
},
innerpickip
_grid
:
{
main
_grid
:
{
columns
:
{
accountname
:
'客户名称'
,
telephone1
:
'主要电话'
,
address1_city
:
'地址 1: 市/县'
,
primarycontactname
:
'主要联系人'
,
emailaddress1
:
'电子邮件'
,
},
uiactions
:
{
},
},
main
_grid
:
{
innerpickip
_grid
:
{
columns
:
{
accountname
:
'客户名称'
,
telephone1
:
'主要电话'
,
address1_city
:
'地址 1: 市/县'
,
primarycontactname
:
'主要联系人'
,
emailaddress1
:
'电子邮件'
,
},
uiactions
:
{
...
...
app_BusinessCentral/src/locale/lanres/entities/ibiz-service/ibiz-service_en_US.ts
浏览文件 @
e2b0152f
...
...
@@ -24,130 +24,4 @@ export default {
utcconversiontimezonecode
:
'UTC Conversion Time Zone Code'
,
resourcespecid
:
'所需资源'
,
},
views
:
{
editview
:
{
caption
:
"服务"
,
title
:
'服务编辑视图'
,
},
gridview
:
{
caption
:
"服务"
,
title
:
'服务表格视图'
,
},
},
main_form
:
{
details
:
{
group1
:
"service基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"服务"
,
srfmajortext
:
"service名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
servicename
:
"service名称"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
serviceid
:
"服务"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
servicename
:
"service名称"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem4
:
{
caption
:
"Save And New"
,
tip
:
"Save And New"
,
},
tbitem5
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem7
:
{
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
},
tbitem8
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem12
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem13
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem14
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"Export"
,
tip
:
"Export {0} Data To Excel"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"Filter"
,
tip
:
"Filter"
,
},
},
};
\ No newline at end of file
app_BusinessCentral/src/locale/lanres/entities/ibiz-service/ibiz-service_zh_CN.ts
浏览文件 @
e2b0152f
...
...
@@ -23,130 +23,4 @@ export default {
utcconversiontimezonecode
:
'UTC Conversion Time Zone Code'
,
resourcespecid
:
'所需资源'
,
},
views
:
{
editview
:
{
caption
:
'服务'
,
title
:
'服务编辑视图'
,
},
gridview
:
{
caption
:
'服务'
,
title
:
'服务表格视图'
,
},
},
main_form
:
{
details
:
{
group1
:
'service基本信息'
,
formpage1
:
'基本信息'
,
group2
:
'操作信息'
,
formpage2
:
'其它'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'服务'
,
srfmajortext
:
'service名称'
,
srftempmode
:
''
,
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
servicename
:
'service名称'
,
createman
:
'建立人'
,
createdate
:
'建立时间'
,
updateman
:
'更新人'
,
updatedate
:
'更新时间'
,
serviceid
:
'服务'
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
servicename
:
'service名称'
,
updateman
:
'更新人'
,
updatedate
:
'更新时间'
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
'常规条件'
,
},
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
'保存'
,
tip
:
'保存'
,
},
tbitem4
:
{
caption
:
'保存并新建'
,
tip
:
'保存并新建'
,
},
tbitem5
:
{
caption
:
'保存并关闭'
,
tip
:
'保存并关闭'
,
},
tbitem6
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem7
:
{
caption
:
'删除并关闭'
,
tip
:
'删除并关闭'
,
},
tbitem8
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem12
:
{
caption
:
'新建'
,
tip
:
'新建'
,
},
tbitem13
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem14
:
{
caption
:
'拷贝'
,
tip
:
'拷贝'
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
'新建'
,
tip
:
'新建'
,
},
tbitem4
:
{
caption
:
'编辑'
,
tip
:
'编辑'
,
},
tbitem6
:
{
caption
:
'拷贝'
,
tip
:
'拷贝'
,
},
tbitem7
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem8
:
{
caption
:
'删除'
,
tip
:
'删除'
,
},
tbitem9
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem13
:
{
caption
:
'导出'
,
tip
:
'导出'
,
},
tbitem10
:
{
caption
:
'-'
,
tip
:
''
,
},
tbitem19
:
{
caption
:
'过滤'
,
tip
:
'过滤'
,
},
},
};
\ No newline at end of file
app_BusinessCentral/src/mock/viewconfig/viewconfig.ts
浏览文件 @
e2b0152f
...
...
@@ -7,14 +7,6 @@ import Mock from 'mockjs'
mock
.
onGet
(
'./assets/json/view-config.json'
).
reply
((
config
:
any
)
=>
{
let
status
=
MockAdapter
.
mockStatus
(
config
);
return
[
status
,{
"ibizserviceeditview"
:
{
"title"
:
"服务编辑视图"
,
"caption"
:
"服务"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Service"
,
"viewname"
:
"IBizServiceEditView"
,
"viewtag"
:
"0027cf632b1ee99cb364d2b6aa2b6511"
},
"contacteditabstract"
:
{
"title"
:
"联系人选项操作视图"
,
"caption"
:
"摘要信息"
,
...
...
@@ -487,14 +479,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"GoalEditView"
,
"viewtag"
:
"7877d7e7e55fe21f48e8382e07579f33"
},
"ibizservicegridview"
:
{
"title"
:
"服务表格视图"
,
"caption"
:
"服务"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Service"
,
"viewname"
:
"IBizServiceGridView"
,
"viewtag"
:
"7b487e231caf16a33620396ad7c90634"
},
"campaignresponsequickcreate"
:
{
"title"
:
"快速新建"
,
"caption"
:
"快速新建"
,
...
...
app_BusinessCentral/src/pages/base/account-info-all/account-info-all-base.vue
0 → 100644
浏览文件 @
e2b0152f
<
template
>
<studio-view-style2
viewName=
"accountinfo_all"
viewTitle=
"客户编辑视图"
class=
'deeditview account-info-all'
>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"Update"
removeAction=
"Remove"
loaddraftAction=
"GetDraft"
loadAction=
"Get"
createAction=
"Create"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
</studio-view-style2>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
{
Subject
}
from
'rxjs'
;
import
AccountService
from
'@/service/account/account-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
@
Component
({
components
:
{
},
})
export
default
class
AccountInfo_AllBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountInfo_AllBase
*/
public
appEntityService
:
AccountService
=
new
AccountService
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof AccountInfo_AllBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof AccountInfo_AllBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof AccountInfo_AllBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof AccountInfo_AllBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof AccountInfo_AllBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图标识
*
* @type {string}
* @memberof AccountInfo_AllBase
*/
public
viewtag
:
string
=
'31f2ad06ced735d250dfa5f309b5aea4'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.account.views.info_all.caption'
,
srfTitle
:
'entities.account.views.info_all.title'
,
srfSubTitle
:
'entities.account.views.info_all.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof AccountInfo_AllBase
*/
@
Watch
(
'viewparam'
,{
immediate
:
true
,
deep
:
true
})
onParamData
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
for
(
let
key
in
this
.
viewparams
){
delete
this
.
viewparams
[
key
];
}
Object
.
assign
(
this
.
viewparams
,
JSON
.
parse
(
this
.
viewparam
));
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof AccountInfo_AllBase
*/
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
}
/**
* 容器模型
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public
containerModel
:
any
=
{
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
};
/**
* 计数器刷新
*
* @memberof AccountInfo_AllBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof AccountInfo_AllBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountInfo_AllBase
*/
public
engine
:
EditViewEngine
=
new
EditViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof AccountInfo_AllBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'account'
,
majorPSDEField
:
'accountname'
,
isLoadDefault
:
true
,
});
}
/**
* 应用上下文
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public
viewparams
:
any
=
{};
/**
* 解析视图参数
*
* @public
* @memberof AccountInfo_AllBase
*/
public
parseViewParam
():
void
{
for
(
let
key
in
this
.
context
){
delete
this
.
context
[
key
];
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
Object
.
assign
(
this
.
context
,
JSON
.
parse
(
this
.
viewdata
));
if
(
this
.
context
&&
this
.
context
.
srfparentdename
){
Object
.
assign
(
this
.
viewparams
,{
srfparentdename
:
this
.
context
.
srfparentdename
});
}
if
(
this
.
context
&&
this
.
context
.
srfparentkey
){
Object
.
assign
(
this
.
viewparams
,{
srfparentkey
:
this
.
context
.
srfparentkey
});
}
if
(
this
.
$store
.
getters
.
getAppData
()
&&
this
.
$store
.
getters
.
getAppData
().
context
){
Object
.
assign
(
this
.
context
,
this
.
$store
.
getters
.
getAppData
().
context
);
}
this
.
handleCustomViewData
();
return
;
}
const
path
=
(
this
.
$route
.
matched
[
this
.
$route
.
matched
.
length
-
1
]).
path
;
const
keys
:
Array
<
any
>
=
[];
const
curReg
=
this
.
$pathToRegExp
.
pathToRegexp
(
path
,
keys
);
const
matchArray
=
curReg
.
exec
(
this
.
$route
.
path
);
let
tempValue
:
Object
=
{};
keys
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
.
name
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
this
.
$viewTool
.
formatRouteParams
(
tempValue
,
this
.
$route
,
this
.
context
,
this
.
viewparams
);
if
(
this
.
$store
.
getters
.
getAppData
()
&&
this
.
$store
.
getters
.
getAppData
().
context
){
Object
.
assign
(
this
.
context
,
this
.
$store
.
getters
.
getAppData
().
context
);
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
}
/**
* 处理自定义视图数据
*
* @memberof AccountInfo_AllBase
*/
public
handleCustomViewData
(){
if
(
Object
.
keys
(
this
.
customViewNavContexts
).
length
>
0
){
Object
.
keys
(
this
.
customViewNavContexts
).
forEach
((
item
:
any
)
=>
{
let
tempContext
:
any
=
{};
let
curNavContext
:
any
=
this
.
customViewNavContexts
[
item
];
this
.
handleCustomDataLogic
(
curNavContext
,
tempContext
,
item
);
Object
.
assign
(
this
.
context
,
tempContext
);
})
}
if
(
Object
.
keys
(
this
.
customViewParams
).
length
>
0
){
Object
.
keys
(
this
.
customViewParams
).
forEach
((
item
:
any
)
=>
{
let
tempParam
:
any
=
{};
let
curNavParam
:
any
=
this
.
customViewParams
[
item
];
this
.
handleCustomDataLogic
(
curNavParam
,
tempParam
,
item
);
Object
.
assign
(
this
.
viewparams
,
tempParam
);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof AccountInfo_AllBase
*/
public
handleCustomDataLogic
(
curNavData
:
any
,
tempData
:
any
,
item
:
string
){
// 直接值直接赋值
if
(
curNavData
.
isRawValue
){
if
(
Object
.
is
(
curNavData
.
value
,
"null"
)
||
Object
.
is
(
curNavData
.
value
,
""
)){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
curNavData
.
value
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
else
{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if
(
this
.
context
[(
curNavData
.
value
).
toLowerCase
()]){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
context
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
if
(
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()]){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
}
}
/**
* Vue声明周期
*
* @memberof AccountInfo_AllBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof AccountInfo_AllBase
*/
public
afterCreated
(){
const
secondtag
=
this
.
$util
.
createUUID
();
this
.
$store
.
commit
(
'viewaction/createdView'
,
{
viewtag
:
this
.
viewtag
,
secondtag
:
secondtag
});
this
.
viewtag
=
secondtag
;
this
.
parseViewParam
();
}
/**
* 销毁之前
*
* @memberof AccountInfo_AllBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof AccountInfo_AllBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof AccountInfo_AllBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof AccountInfo_AllBase
*/
public
closeView
(
args
:
any
[]):
void
{
let
_view
:
any
=
this
;
if
(
_view
.
viewdata
)
{
_view
.
$emit
(
'viewdataschange'
,
[
args
]);
_view
.
$emit
(
'close'
,
[
args
]);
}
else
if
(
_view
.
$tabPageExp
)
{
_view
.
$tabPageExp
.
onClose
(
_view
.
$route
.
fullPath
);
}
}
/**
* 销毁视图回调
*
* @memberof AccountInfo_AllBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof AccountInfo_AllBase
*/
public
afterDestroyed
(){
if
(
this
.
viewDefaultUsage
){
let
localStoreLength
=
Object
.
keys
(
localStorage
);
if
(
localStoreLength
.
length
>
0
){
localStoreLength
.
forEach
((
item
:
string
)
=>
{
if
(
item
.
startsWith
(
this
.
context
.
srfsessionid
)){
localStorage
.
removeItem
(
item
);
}
})
}
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './account-info-all.less';
</
style
>
\ No newline at end of file
app_BusinessCentral/src/pages/base/account-info-all/account-info-all.less
0 → 100644
浏览文件 @
e2b0152f
// 避免空文件,后台不让空文件过
.account-info-all {
--account-info-all: 0;
}
app_BusinessCentral/src/pages/base/account-info-all/account-info-all.vue
0 → 100644
浏览文件 @
e2b0152f
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
AccountInfo_AllBase
from
'./account-info-all-base.vue'
;
import
view_form
from
'@widgets/account/info-all-form/info-all-form.vue'
;
@
Component
({
components
:
{
view_form
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
route
:
to
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
AccountInfo_All
extends
AccountInfo_AllBase
{
}
</
script
>
\ No newline at end of file
app_BusinessCentral/src/pages/ungroup/central/page-register.ts
浏览文件 @
e2b0152f
...
...
@@ -52,7 +52,6 @@ export const PageComponents = {
Vue
.
component
(
'ibiz-list-info-abstract'
,
()
=>
import
(
'@pages/marketing/ibiz-list-info-abstract/ibiz-list-info-abstract.vue'
));
Vue
.
component
(
'ibiz-list-info'
,
()
=>
import
(
'@pages/marketing/ibiz-list-info/ibiz-list-info.vue'
));
Vue
.
component
(
'ibiz-list-summary'
,
()
=>
import
(
'@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'
));
Vue
.
component
(
'ibiz-service-edit-view'
,
()
=>
import
(
'@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'
));
Vue
.
component
(
'lead-pickup-grid-view'
,
()
=>
import
(
'@pages/sales/lead-pickup-grid-view/lead-pickup-grid-view.vue'
));
Vue
.
component
(
'list-account-quick-create-by-list'
,
()
=>
import
(
'@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'
));
Vue
.
component
(
'campaign-list-edit-view'
,
()
=>
import
(
'@pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue'
));
...
...
@@ -64,10 +63,10 @@ export const PageComponents = {
Vue
.
component
(
'campaign-info-manager'
,
()
=>
import
(
'@pages/marketing/campaign-info-manager/campaign-info-manager.vue'
));
Vue
.
component
(
'contact-info-abstract'
,
()
=>
import
(
'@pages/base/contact-info-abstract/contact-info-abstract.vue'
));
Vue
.
component
(
'list-contact-edit-view'
,
()
=>
import
(
'@pages/marketing/list-contact-edit-view/list-contact-edit-view.vue'
));
Vue
.
component
(
'account-info-all'
,
()
=>
import
(
'@pages/base/account-info-all/account-info-all.vue'
));
Vue
.
component
(
'campaign-grid-view'
,
()
=>
import
(
'@pages/marketing/campaign-grid-view/campaign-grid-view.vue'
));
Vue
.
component
(
'list-lead-by-list'
,
()
=>
import
(
'@pages/marketing/list-lead-by-list/list-lead-by-list.vue'
));
Vue
.
component
(
'account-info-major-contact'
,
()
=>
import
(
'@pages/base/account-info-major-contact/account-info-major-contact.vue'
));
Vue
.
component
(
'ibiz-service-grid-view'
,
()
=>
import
(
'@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'
));
Vue
.
component
(
'sales-order-grid-view'
,
()
=>
import
(
'@pages/sales/sales-order-grid-view/sales-order-grid-view.vue'
));
Vue
.
component
(
'contact-option-view'
,
()
=>
import
(
'@pages/base/contact-option-view/contact-option-view.vue'
));
Vue
.
component
(
'contact-edit-abstract'
,
()
=>
import
(
'@pages/base/contact-edit-abstract/contact-edit-abstract.vue'
));
...
...
app_BusinessCentral/src/pages/ungroup/central/router.ts
浏览文件 @
e2b0152f
...
...
@@ -943,20 +943,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'
),
},
{
path
:
'ibizservices/:ibizservice?/editview/:editview?'
,
meta
:
{
caption
:
'entities.ibizservice.views.editview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'central'
,
parameterName
:
'central'
},
{
pathName
:
'ibizservices'
,
parameterName
:
'ibizservice'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'
),
},
{
path
:
'campaignresponses/:campaignresponse?/quickcreate/:quickcreate?'
,
meta
:
{
...
...
@@ -1307,6 +1293,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/marketing/list-contact-edit-view/list-contact-edit-view.vue'
),
},
{
path
:
'accounts/:account?/info_all/:info_all?'
,
meta
:
{
caption
:
'entities.account.views.info_all.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'central'
,
parameterName
:
'central'
},
{
pathName
:
'accounts'
,
parameterName
:
'account'
},
{
pathName
:
'info_all'
,
parameterName
:
'info_all'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/base/account-info-all/account-info-all.vue'
),
},
{
path
:
'campaigns/:campaign?/summary/:summary?'
,
meta
:
{
...
...
@@ -1439,20 +1439,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/account-info-major-contact/account-info-major-contact.vue'
),
},
{
path
:
'ibizservices/:ibizservice?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.ibizservice.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'central'
,
parameterName
:
'central'
},
{
pathName
:
'ibizservices'
,
parameterName
:
'ibizservice'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'
),
},
{
path
:
'salesorders/:salesorder?/gridview/:gridview?'
,
meta
:
{
...
...
@@ -1581,6 +1567,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/phone-call-edit-view/phone-call-edit-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
:
'contacts/:contact?/dashboardview/:dashboardview?'
,
meta
:
{
...
...
@@ -1766,6 +1766,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sales/quote-edit-view/quote-edit-view.vue'
),
},
{
path
:
'accounts/:account?/edit_accountinfo/:edit_accountinfo?'
,
meta
:
{
caption
:
'entities.account.views.edit_accountinfo.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'central'
,
parameterName
:
'central'
},
{
pathName
:
'accounts'
,
parameterName
:
'account'
},
{
pathName
:
'edit_accountinfo'
,
parameterName
:
'edit_accountinfo'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/base/account-edit-account-info/account-edit-account-info.vue'
),
},
{
path
:
'contacts/:contact?/editaddress/:editaddress?'
,
meta
:
{
...
...
@@ -1839,19 +1853,6 @@ const router = new Router({
...
indexRoutes
,
],
},
{
path
:
'/ibizservices/:ibizservice?/editview/:editview?'
,
meta
:
{
caption
:
'entities.ibizservice.views.editview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizservices'
,
parameterName
:
'ibizservice'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'
),
},
{
path
:
'/contacts/:contact?/editabstract/:editabstract?'
,
meta
:
{
...
...
@@ -2386,6 +2387,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/marketing/list-contact-grid-view/list-contact-grid-view.vue'
),
},
{
path
:
'/accounts/:account?/info_all/:info_all?'
,
meta
:
{
caption
:
'entities.account.views.info_all.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'accounts'
,
parameterName
:
'account'
},
{
pathName
:
'info_all'
,
parameterName
:
'info_all'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/base/account-info-all/account-info-all.vue'
),
},
{
path
:
'/incidents/:incident?/gridview/:gridview?'
,
meta
:
{
...
...
@@ -2811,19 +2825,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sales/goal-edit-view/goal-edit-view.vue'
),
},
{
path
:
'/ibizservices/:ibizservice?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.ibizservice.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizservices'
,
parameterName
:
'ibizservice'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'
),
},
{
path
:
'/campaignresponses/:campaignresponse?/quickcreate/:quickcreate?'
,
meta
:
{
...
...
app_BusinessCentral/src/store/modules/view-action/state.ts
浏览文件 @
e2b0152f
...
...
@@ -3,15 +3,6 @@
*/
export
const
viewstate
:
any
=
{
appviews
:
[
{
viewtag
:
'0027cf632b1ee99cb364d2b6aa2b6511'
,
viewmodule
:
'Service'
,
viewname
:
'IBizServiceEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'016506dd3f47a5cf8530f2ca3dbdc7b7'
,
viewmodule
:
'Base'
,
...
...
@@ -29,9 +20,9 @@ export const viewstate: any = {
viewdatachange
:
false
,
refviews
:
[
'aa79d35850f36fbc1a5085353ecd5af5'
,
'7b487e231caf16a33620396ad7c90634'
,
'a95d7d9111bc13a8b73a11ee1e4ff92a'
,
'893e62d6fbdc4580de7e3e802aec9108'
,
'31f2ad06ced735d250dfa5f309b5aea4'
,
'a5213905238dbc5d8e1a505029105cc9'
,
],
},
...
...
@@ -290,6 +281,19 @@ export const viewstate: any = {
'c7d0ca0f6fa1b27bbd1b5c422d1a108d'
,
],
},
{
viewtag
:
'31f2ad06ced735d250dfa5f309b5aea4'
,
viewmodule
:
'Base'
,
viewname
:
'AccountInfo_All'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'8b806fb12589b2fc17d1bb90f4b5422e'
,
'29bfcd628ab25e297248ff0524d12908'
,
'90cb61421b72cbc76f75360deffde218'
,
'688201ee5642d41628dbf4deba002d17'
,
],
},
{
viewtag
:
'3a665de6a3970b95fde436c0fea4b1df'
,
viewmodule
:
'Service'
,
...
...
@@ -554,16 +558,6 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'7b487e231caf16a33620396ad7c90634'
,
viewmodule
:
'Service'
,
viewname
:
'IBizServiceGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'0027cf632b1ee99cb364d2b6aa2b6511'
,
],
},
{
viewtag
:
'7b7560b6d508b7bb0447d3204ed1c8be'
,
viewmodule
:
'Marketing'
,
...
...
app_BusinessCentral/src/uiservice/ibiz-service/ibiz-service-ui-service-base.ts
浏览文件 @
e2b0152f
...
...
@@ -79,8 +79,6 @@ export default class IBizServiceUIServiceBase extends UIService {
* @memberof IBizServiceUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'ibizservices'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'ibizservices'
});
}
/**
...
...
app_BusinessCentral/src/widgets/account/info-all-form/info-all-form-base.vue
0 → 100644
浏览文件 @
e2b0152f
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_BusinessCentral/src/widgets/account/info-all-form/info-all-form-model.ts
0 → 100644
浏览文件 @
e2b0152f
/**
* Info_All 部件模型
*
* @export
* @class Info_AllModel
*/
export
default
class
Info_AllModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Info_AllModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfupdatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'srforikey'
,
},
{
name
:
'srfkey'
,
prop
:
'accountid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'accountname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'accountname'
,
prop
:
'accountname'
,
dataType
:
'TEXT'
,
},
{
name
:
'telephone1'
,
prop
:
'telephone1'
,
dataType
:
'TEXT'
,
},
{
name
:
'fax'
,
prop
:
'fax'
,
dataType
:
'TEXT'
,
},
{
name
:
'websiteurl'
,
prop
:
'websiteurl'
,
dataType
:
'TEXT'
,
},
{
name
:
'parentaccountname'
,
prop
:
'parentaccountname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'tickersymbol'
,
prop
:
'tickersymbol'
,
dataType
:
'TEXT'
,
},
{
name
:
'customertypecode'
,
prop
:
'customertypecode'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'defaultpricelevelname'
,
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'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_addressid'
,
prop
:
'address1_addressid'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_name'
,
prop
:
'address1_name'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_addresstypecode'
,
prop
:
'address1_addresstypecode'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'address1_country'
,
prop
:
'address1_country'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_stateorprovince'
,
prop
:
'address1_stateorprovince'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_city'
,
prop
:
'address1_city'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_county'
,
prop
:
'address1_county'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_line1'
,
prop
:
'address1_line1'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_fax'
,
prop
:
'address1_fax'
,
dataType
:
'TEXT'
,
},
{
name
:
'address1_freighttermscode'
,
prop
:
'address1_freighttermscode'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'address1_postalcode'
,
prop
:
'address1_postalcode'
,
dataType
:
'TEXT'
,
},
{
name
:
'preferredcontactmethodcode'
,
prop
:
'preferredcontactmethodcode'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'donotemail'
,
prop
:
'donotemail'
,
dataType
:
'YESNO'
,
},
{
name
:
'donotbulkemail'
,
prop
:
'donotbulkemail'
,
dataType
:
'YESNO'
,
},
{
name
:
'donotphone'
,
prop
:
'donotphone'
,
dataType
:
'YESNO'
,
},
{
name
:
'donotfax'
,
prop
:
'donotfax'
,
dataType
:
'YESNO'
,
},
{
name
:
'donotpostalmail'
,
prop
:
'donotpostalmail'
,
dataType
:
'YESNO'
,
},
{
name
:
'defaultpricelevelid'
,
prop
:
'defaultpricelevelid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'parentaccountid'
,
prop
:
'parentaccountid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'accountid'
,
prop
:
'accountid'
,
dataType
:
'GUID'
,
},
{
name
:
'account'
,
prop
:
'accountid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_BusinessCentral/src/widgets/account/info-all-form/info-all-form-service.ts
0 → 100644
浏览文件 @
e2b0152f
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
AccountService
from
'@/service/account/account-service'
;
import
Info_AllModel
from
'./info-all-form-model'
;
import
PriceLevelService
from
'@/service/price-level/price-level-service'
;
/**
* Info_All 部件服务对象
*
* @export
* @class Info_AllService
*/
export
default
class
Info_AllService
extends
ControlService
{
/**
* 客户服务对象
*
* @type {AccountService}
* @memberof Info_AllService
*/
public
appEntityService
:
AccountService
=
new
AccountService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof Info_AllService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of Info_AllService.
*
* @param {*} [opts={}]
* @memberof Info_AllService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
Info_AllModel
();
}
/**
* 价目表服务对象
*
* @type {PriceLevelService}
* @memberof Info_AllService
*/
public
pricelevelService
:
PriceLevelService
=
new
PriceLevelService
();
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof Info_AllService
*/
private
doItems
(
promise
:
Promise
<
any
>
,
deKeyField
:
string
,
deName
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
promise
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
data
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
item
[
deName
]
=
item
[
deKeyField
];
data
[
index
]
=
item
;
});
resolve
(
data
);
}
else
{
reject
([])
}
}).
catch
((
response
:
any
)
=>
{
reject
([])
});
});
}
/**
* 获取跨实体数据集合
*
* @param {string} serviceName 服务名称
* @param {string} interfaceName 接口名称
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any[]>}
* @memberof Info_AllService
*/
@
Errorlog
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
if
(
Object
.
is
(
serviceName
,
'AccountService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
appEntityService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'accountid'
,
'account'
);
}
if
(
Object
.
is
(
serviceName
,
'PriceLevelService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
pricelevelService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'pricelevelid'
,
'pricelevel'
);
}
return
Promise
.
reject
([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
wfstart
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFStart
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
wfsubmit
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
,
true
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFSubmit
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Get
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
accountid
=
PrimaryKey
;
Data
.
account
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
response
.
data
.
accountid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 前台逻辑
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@
Errorlog
public
frontLogic
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
return
Promise
.
reject
({
status
:
500
,
data
:
{
title
:
'失败'
,
message
:
'系统异常'
}
});
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
})
}
/**
* 处理请求数据
*
* @param action 行为
* @param data 数据
* @memberof Info_AllService
*/
public
handleRequestData
(
action
:
string
,
context
:
any
,
data
:
any
=
{}){
let
mode
:
any
=
this
.
getMode
();
if
(
!
mode
&&
mode
.
getDataItems
instanceof
Function
)
{
return
data
;
}
let
formItemItems
:
any
[]
=
mode
.
getDataItems
();
let
requestData
:
any
=
{};
formItemItems
.
forEach
((
item
:
any
)
=>
{
if
(
item
&&
item
.
dataType
&&
Object
.
is
(
item
.
dataType
,
'FONTKEY'
)){
if
(
item
&&
item
.
prop
){
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
prop
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
});
if
(
data
&&
data
.
viewparams
){
Object
.
assign
(
requestData
,
data
.
viewparams
);
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
if
(
tempContext
&&
tempContext
.
srfsessionid
){
tempContext
.
srfsessionkey
=
tempContext
.
srfsessionid
;
delete
tempContext
.
srfsessionid
;
}
return
{
context
:
tempContext
,
data
:
requestData
};
}
}
\ No newline at end of file
app_BusinessCentral/src/widgets/account/info-all-form/info-all-form.less
0 → 100644
浏览文件 @
e2b0152f
.form {
--form: 0px;
}
// this is less
app_BusinessCentral/src/widgets/account/info-all-form/info-all-form.vue
0 → 100644
浏览文件 @
e2b0152f
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
Info_AllBase
from
'./info-all-form-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
Info_All
extends
Info_AllBase
{
}
</
script
>
\ No newline at end of file
app_BusinessCentral/src/widgets/account/view-account-info-all-portlet/view-account-info-all-portlet-base.vue
浏览文件 @
e2b0152f
...
...
@@ -7,7 +7,7 @@
</span>
</p>
<div
class=
"portlet-with-title"
>
<
ibiz-service-grid-view
:viewdata=
"JSON.stringify(context)"
:viewDefaultUsage=
"false"
></ibiz-service-grid-view
>
<
account-info-all
:viewdata=
"JSON.stringify(context)"
:viewDefaultUsage=
"false"
></account-info-all
>
</div>
</div>
</
template
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录