Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
361c3675
提交
361c3675
编写于
7月 20, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码,顶部菜单样式优化
上级
f23f8a53
变更
39
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
39 个修改的文件
包含
2652 行增加
和
1699 行删除
+2652
-1699
ibiz-list_en_US.ts
...l/src/locale/lanres/entities/ibiz-list/ibiz-list_en_US.ts
+37
-52
ibiz-list_zh_CN.ts
...l/src/locale/lanres/entities/ibiz-list/ibiz-list_zh_CN.ts
+37
-52
list-account_en_US.ts
...locale/lanres/entities/list-account/list-account_en_US.ts
+12
-12
list-account_zh_CN.ts
...locale/lanres/entities/list-account/list-account_zh_CN.ts
+12
-12
list-contact_en_US.ts
...locale/lanres/entities/list-contact/list-contact_en_US.ts
+10
-10
list-contact_zh_CN.ts
...locale/lanres/entities/list-contact/list-contact_zh_CN.ts
+10
-10
page-register.ts
app_BusinessCentral/src/pages/base/central/page-register.ts
+1
-3
router.ts
app_BusinessCentral/src/pages/base/central/router.ts
+14
-148
ibiz-list-edit-view-base.tsx
...arketing/ibiz-list-edit-view/ibiz-list-edit-view-base.tsx
+303
-0
ibiz-list-edit-view.html
...es/marketing/ibiz-list-edit-view/ibiz-list-edit-view.html
+29
-0
ibiz-list-edit-view.vue
...ges/marketing/ibiz-list-edit-view/ibiz-list-edit-view.vue
+22
-0
ibiz-list-info-base.tsx
...rc/pages/marketing/ibiz-list-info/ibiz-list-info-base.tsx
+68
-0
incident-edit-view.html
.../pages/service/incident-edit-view/incident-edit-view.html
+0
-3
account-service-base.ts
...sinessCentral/src/service/account/account-service-base.ts
+47
-47
competitor-service-base.ts
...Central/src/service/competitor/competitor-service-base.ts
+41
-41
contact-service-base.ts
...sinessCentral/src/service/contact/contact-service-base.ts
+131
-131
ibiz-list-service-base.ts
...ssCentral/src/service/ibiz-list/ibiz-list-service-base.ts
+50
-50
opportunity-service-base.ts
...ntral/src/service/opportunity/opportunity-service-base.ts
+233
-233
quote-service-base.ts
app_BusinessCentral/src/service/quote/quote-service-base.ts
+259
-259
sales-literature-service-base.ts
...service/sales-literature/sales-literature-service-base.ts
+41
-41
sales-order-service-base.ts
...ntral/src/service/sales-order/sales-order-service-base.ts
+308
-308
state.ts
app_BusinessCentral/src/store/modules/view-action/state.ts
+11
-32
app-header-menus.less
...io-core/components/app-header-menus/app-header-menus.less
+5
-1
ibiz-list-ui-service-base.ts
...tral/src/uiservice/ibiz-list/ibiz-list-ui-service-base.ts
+116
-0
knowledge-article-ui-service-base.ts
...ce/knowledge-article/knowledge-article-ui-service-base.ts
+22
-7
by-account-grid.html
.../src/widgets/contact/by-account-grid/by-account-grid.html
+4
-7
abstract-info-form-base.tsx
.../ibiz-list/abstract-info-form/abstract-info-form-base.tsx
+0
-82
abstract-info-form.html
...gets/ibiz-list/abstract-info-form/abstract-info-form.html
+0
-105
edit-main-form-base.tsx
.../widgets/ibiz-list/edit-main-form/edit-main-form-base.tsx
+162
-0
edit-main-form-model.ts
.../widgets/ibiz-list/edit-main-form/edit-main-form-model.ts
+121
-0
edit-main-form-service.ts
...idgets/ibiz-list/edit-main-form/edit-main-form-service.ts
+383
-0
edit-main-form.html
.../src/widgets/ibiz-list/edit-main-form/edit-main-form.html
+105
-0
edit-main-form.vue
...l/src/widgets/ibiz-list/edit-main-form/edit-main-form.vue
+22
-0
Dockerfile
...esscentral-app-businesscentral/src/main/docker/Dockerfile
+1
-1
businesscentral-app-businesscentral.yaml
.../src/main/docker/businesscentral-app-businesscentral.yaml
+1
-15
application-dev.yml
businesscentral-boot/src/main/resources/application-dev.yml
+2
-2
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+22
-22
VersionCheckAspect.java
...izlab/businesscentral/util/aspect/VersionCheckAspect.java
+10
-8
config.xml
config.xml
+0
-5
未找到文件。
app_BusinessCentral/src/locale/lanres/entities/ibiz-list/ibiz-list_en_US.ts
浏览文件 @
361c3675
...
...
@@ -165,12 +165,6 @@ export default {
abstractinfo_form
:
{
details
:
{
group1
:
"列表信息"
,
druipart1
:
""
,
grouppanel1
:
"客户信息"
,
druipart2
:
""
,
grouppanel2
:
"联系人信息"
,
druipart3
:
""
,
grouppanel3
:
"潜在顾客"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
...
...
@@ -217,12 +211,10 @@ export default {
ibizlist_openedit_datapanel
:
"头信息编辑"
,
},
},
main_form
:
{
edit_
main_form
:
{
details
:
{
group1
:
"
list基本
信息"
,
group1
:
"
列表
信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"列表"
,
...
...
@@ -232,10 +224,15 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
listname
:
"名称"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
type
:
"类型"
,
purpose
:
"用途"
,
membertype
:
"目标对象"
,
source
:
"来源"
,
transactioncurrencyname
:
"货币"
,
cost
:
"成本"
,
ownername
:
"负责人"
,
description
:
"说明"
,
transactioncurrencyid
:
"货币"
,
listid
:
"列表"
,
},
uiactions
:
{
...
...
@@ -259,7 +256,33 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem2
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
infotoolbar_toolbar
:
{
tbitem1_openmaineditview
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator4
:
{
caption
:
""
,
tip
:
""
,
},
tbitem17_active
:
{
caption
:
"激活"
,
tip
:
"激活"
,
...
...
@@ -423,42 +446,4 @@ export default {
tip
:
"Filter"
,
},
},
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}"
,
},
},
};
\ No newline at end of file
app_BusinessCentral/src/locale/lanres/entities/ibiz-list/ibiz-list_zh_CN.ts
浏览文件 @
361c3675
...
...
@@ -164,12 +164,6 @@ export default {
abstractinfo_form
:
{
details
:
{
group1
:
"列表信息"
,
druipart1
:
""
,
grouppanel1
:
"客户信息"
,
druipart2
:
""
,
grouppanel2
:
"联系人信息"
,
druipart3
:
""
,
grouppanel3
:
"潜在顾客"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
...
...
@@ -216,12 +210,10 @@ export default {
ibizlist_openedit_datapanel
:
"头信息编辑"
,
},
},
main_form
:
{
edit_
main_form
:
{
details
:
{
group1
:
"
list基本
信息"
,
group1
:
"
列表
信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"列表"
,
...
...
@@ -231,10 +223,15 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
listname
:
"名称"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
type
:
"类型"
,
purpose
:
"用途"
,
membertype
:
"目标对象"
,
source
:
"来源"
,
transactioncurrencyname
:
"货币"
,
cost
:
"成本"
,
ownername
:
"负责人"
,
description
:
"说明"
,
transactioncurrencyid
:
"货币"
,
listid
:
"列表"
,
},
uiactions
:
{
...
...
@@ -258,7 +255,33 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem1
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem2
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
infotoolbar_toolbar
:
{
tbitem1_openmaineditview
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
seperator4
:
{
caption
:
""
,
tip
:
""
,
},
tbitem17_active
:
{
caption
:
"激活"
,
tip
:
"激活"
,
...
...
@@ -422,42 +445,4 @@ export default {
tip
:
"过滤"
,
},
},
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
:
"拷贝"
,
},
},
};
\ No newline at end of file
app_BusinessCentral/src/locale/lanres/entities/list-account/list-account_en_US.ts
浏览文件 @
361c3675
...
...
@@ -35,12 +35,10 @@ export default {
title
:
"查找客户"
,
},
},
main
_form
:
{
quickcreatebylist
_form
:
{
details
:
{
group1
:
"营销列表-账户基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"关系标识"
,
...
...
@@ -49,15 +47,19 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
entity2name
:
"选择客户:"
,
entity2id
:
"客户"
,
relationshipsid
:
"关系标识"
,
},
uiactions
:
{
},
},
quickcreatebylist
_form
:
{
main
_form
:
{
details
:
{
group1
:
"营销列表-账户基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"关系标识"
,
...
...
@@ -66,8 +68,6 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
entity2name
:
"选择客户:"
,
entity2id
:
"客户"
,
relationshipsid
:
"关系标识"
,
},
uiactions
:
{
...
...
@@ -90,12 +90,6 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
bylisttoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
@@ -134,4 +128,10 @@ export default {
tip
:
"Filter"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
};
\ No newline at end of file
app_BusinessCentral/src/locale/lanres/entities/list-account/list-account_zh_CN.ts
浏览文件 @
361c3675
...
...
@@ -34,12 +34,10 @@ export default {
title
:
"查找客户"
,
},
},
main
_form
:
{
quickcreatebylist
_form
:
{
details
:
{
group1
:
"营销列表-账户基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"关系标识"
,
...
...
@@ -48,15 +46,19 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
entity2name
:
"选择客户:"
,
entity2id
:
"客户"
,
relationshipsid
:
"关系标识"
,
},
uiactions
:
{
},
},
quickcreatebylist
_form
:
{
main
_form
:
{
details
:
{
group1
:
"营销列表-账户基本信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"关系标识"
,
...
...
@@ -65,8 +67,6 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
entity2name
:
"选择客户:"
,
entity2id
:
"客户"
,
relationshipsid
:
"关系标识"
,
},
uiactions
:
{
...
...
@@ -89,12 +89,6 @@ export default {
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
bylisttoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
@@ -133,4 +127,10 @@ export default {
tip
:
"过滤"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
};
\ No newline at end of file
app_BusinessCentral/src/locale/lanres/entities/list-contact/list-contact_en_US.ts
浏览文件 @
361c3675
...
...
@@ -50,7 +50,7 @@ export default {
uiactions
:
{
},
},
inner
_grid
:
{
main
_grid
:
{
columns
:
{
entity2name
:
"联系人"
,
emailaddress1
:
"电子邮件"
,
...
...
@@ -61,7 +61,7 @@ export default {
uiactions
:
{
},
},
main
_grid
:
{
inner
_grid
:
{
columns
:
{
entity2name
:
"联系人"
,
emailaddress1
:
"电子邮件"
,
...
...
@@ -79,14 +79,6 @@ export default {
uiactions
:
{
},
},
innertoolbar_toolbar
:
{
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
@@ -125,4 +117,12 @@ export default {
tip
:
"Filter"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
innertoolbar_toolbar
:
{
},
};
\ No newline at end of file
app_BusinessCentral/src/locale/lanres/entities/list-contact/list-contact_zh_CN.ts
浏览文件 @
361c3675
...
...
@@ -49,7 +49,7 @@ export default {
uiactions
:
{
},
},
inner
_grid
:
{
main
_grid
:
{
columns
:
{
entity2name
:
"联系人"
,
emailaddress1
:
"电子邮件"
,
...
...
@@ -60,7 +60,7 @@ export default {
uiactions
:
{
},
},
main
_grid
:
{
inner
_grid
:
{
columns
:
{
entity2name
:
"联系人"
,
emailaddress1
:
"电子邮件"
,
...
...
@@ -78,14 +78,6 @@ export default {
uiactions
:
{
},
},
innertoolbar_toolbar
:
{
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
@@ -124,4 +116,12 @@ export default {
tip
:
"过滤"
,
},
},
editviewtoolbar_toolbar
:
{
tbitem12
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
innertoolbar_toolbar
:
{
},
};
\ No newline at end of file
app_BusinessCentral/src/pages/base/central/page-register.ts
浏览文件 @
361c3675
...
...
@@ -226,11 +226,9 @@ export const PageComponents = {
Vue
.
component
(
'quote-option-view'
,
()
=>
import
(
'@pages/sales/quote-option-view/quote-option-view.vue'
));
Vue
.
component
(
'goal-pickup-view'
,
()
=>
import
(
'@pages/sales/goal-pickup-view/goal-pickup-view.vue'
));
Vue
.
component
(
'sales-order-state-tab-view'
,
()
=>
import
(
'@pages/sales/sales-order-state-tab-view/sales-order-state-tab-view.vue'
));
Vue
.
component
(
'list-contact-inner'
,
()
=>
import
(
'@pages/marketing/list-contact-inner/list-contact-inner.vue'
));
Vue
.
component
(
'campaign-info-campagin'
,
()
=>
import
(
'@pages/marketing/campaign-info-campagin/campaign-info-campagin.vue'
));
Vue
.
component
(
'contact-edit-view'
,
()
=>
import
(
'@pages/base/contact-edit-view/contact-edit-view.vue'
));
Vue
.
component
(
'appointment-edit-view'
,
()
=>
import
(
'@pages/base/appointment-edit-view/appointment-edit-view.vue'
));
Vue
.
component
(
'list-account-edit-view'
,
()
=>
import
(
'@pages/marketing/list-account-edit-view/list-account-edit-view.vue'
));
Vue
.
component
(
'incident-edit-data-panel-view'
,
()
=>
import
(
'@pages/service/incident-edit-data-panel-view/incident-edit-data-panel-view.vue'
));
Vue
.
component
(
'entitlement-pickup-grid-view'
,
()
=>
import
(
'@pages/service/entitlement-pickup-grid-view/entitlement-pickup-grid-view.vue'
));
Vue
.
component
(
'contact-grid-view'
,
()
=>
import
(
'@pages/base/contact-grid-view/contact-grid-view.vue'
));
...
...
@@ -268,7 +266,6 @@ export const PageComponents = {
Vue
.
component
(
'entitlement-pickup-view'
,
()
=>
import
(
'@pages/service/entitlement-pickup-view/entitlement-pickup-view.vue'
));
Vue
.
component
(
'uom-pickup-view'
,
()
=>
import
(
'@pages/base/uom-pickup-view/uom-pickup-view.vue'
));
Vue
.
component
(
'lead-competitor-edit-competitor-view'
,
()
=>
import
(
'@pages/sales/lead-competitor-edit-competitor-view/lead-competitor-edit-competitor-view.vue'
));
Vue
.
component
(
'list-account-inner'
,
()
=>
import
(
'@pages/marketing/list-account-inner/list-account-inner.vue'
));
Vue
.
component
(
'contact-summary-view'
,
()
=>
import
(
'@pages/base/contact-summary-view/contact-summary-view.vue'
));
Vue
.
component
(
'task-edit-view'
,
()
=>
import
(
'@pages/base/task-edit-view/task-edit-view.vue'
));
Vue
.
component
(
'product-substitute-grid-view'
,
()
=>
import
(
'@pages/product/product-substitute-grid-view/product-substitute-grid-view.vue'
));
...
...
@@ -277,6 +274,7 @@ export const PageComponents = {
Vue
.
component
(
'product-sales-literature-sal-lit-pro-edit-view'
,
()
=>
import
(
'@pages/sales/product-sales-literature-sal-lit-pro-edit-view/product-sales-literature-sal-lit-pro-edit-view.vue'
));
Vue
.
component
(
'invoice-cancel-grid-view'
,
()
=>
import
(
'@pages/finance/invoice-cancel-grid-view/invoice-cancel-grid-view.vue'
));
Vue
.
component
(
'campaign-stop-grid-view'
,
()
=>
import
(
'@pages/marketing/campaign-stop-grid-view/campaign-stop-grid-view.vue'
));
Vue
.
component
(
'ibiz-list-edit-view'
,
()
=>
import
(
'@pages/marketing/ibiz-list-edit-view/ibiz-list-edit-view.vue'
));
Vue
.
component
(
'product-effective-grid-view'
,
()
=>
import
(
'@pages/product/product-effective-grid-view/product-effective-grid-view.vue'
));
Vue
.
component
(
'account-stop-grid-view'
,
()
=>
import
(
'@pages/base/account-stop-grid-view/account-stop-grid-view.vue'
));
Vue
.
component
(
'incident-effective-grid-view'
,
()
=>
import
(
'@pages/service/incident-effective-grid-view/incident-effective-grid-view.vue'
));
...
...
app_BusinessCentral/src/pages/base/central/router.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/pages/marketing/ibiz-list-edit-view/ibiz-list-edit-view-base.tsx
0 → 100644
浏览文件 @
361c3675
import
{
Subject
}
from
'rxjs'
;
import
{
EditViewBase
}
from
'@/studio-core'
;
import
IBizListService
from
'@/service/ibiz-list/ibiz-list-service'
;
import
IBizListAuthService
from
'@/authservice/ibiz-list/ibiz-list-auth-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
import
IBizListUIService
from
'@/uiservice/ibiz-list/ibiz-list-ui-service'
;
/**
* 市场营销列表编辑视图视图基类
*
* @export
* @class IBizListEditViewBase
* @extends {EditViewBase}
*/
export
class
IBizListEditViewBase
extends
EditViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof IBizListEditViewBase
*/
protected
appDeName
:
string
=
'ibizlist'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof IBizListEditViewBase
*/
protected
appDeKey
:
string
=
'listid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof IBizListEditViewBase
*/
protected
appDeMajor
:
string
=
'listname'
;
/**
* 实体服务对象
*
* @type {IBizListService}
* @memberof IBizListEditViewBase
*/
protected
appEntityService
:
IBizListService
=
new
IBizListService
;
/**
* 实体权限服务对象
*
* @type IBizListUIService
* @memberof IBizListEditViewBase
*/
public
appUIService
:
IBizListUIService
=
new
IBizListUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof IBizListEditViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof IBizListEditViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.ibizlist.views.editview.caption'
,
srfTitle
:
'entities.ibizlist.views.editview.title'
,
srfSubTitle
:
'entities.ibizlist.views.editview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof IBizListEditViewBase
*/
protected
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
};
/**
* 工具栏模型
*
* @type {*}
* @memberof IBizListEditView
*/
public
toolBarModels
:
any
=
{
tbitem1
:
{
name
:
'tbitem1'
,
caption
:
'保存并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并关闭'
,
iconcls
:
'fa fa-power-off'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
,
class
:
''
}
},
tbitem2
:
{
name
:
'tbitem2'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
,
class
:
''
}
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'a62e766e54ec0b259071463523c98493'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBizListEditViewBase
*/
public
engine
:
EditViewEngine
=
new
EditViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBizListEditViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'ibizlist'
,
majorPSDEField
:
'listname'
,
isLoadDefault
:
true
,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1'
))
{
this
.
toolbar_tbitem1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem2'
))
{
this
.
toolbar_tbitem2_click
(
null
,
''
,
$event2
);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBizListEditViewBase
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem1_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
,
"IBizList"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem2_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
.
Exit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBizList"
);
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBizListEditViewBase
*/
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
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBizListEditViewBase
*/
public
Exit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
closeView
(
args
);
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
args
}],
'*'
);
}
}
}
\ No newline at end of file
app_BusinessCentral/src/pages/marketing/ibiz-list-edit-view/ibiz-list-edit-view.html
0 → 100644
浏览文件 @
361c3675
<studio-view-style2
viewName=
"ibizlisteditview"
viewTitle=
"市场营销列表编辑视图"
class=
'deeditview ibiz-list-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"Update"
removeAction=
"Remove"
loaddraftAction=
"GetDraft"
loadAction=
"Get"
createAction=
"Create"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
</studio-view-style2>
\ No newline at end of file
app_BusinessCentral/src/pages/marketing/ibiz-list-edit-view/ibiz-list-edit-view.vue
0 → 100644
浏览文件 @
361c3675
<
template
src=
"./ibiz-list-edit-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { IBizListEditViewBase } from './ibiz-list-edit-view-base';
import view_form from '@widgets/ibiz-list/edit-main-form/edit-main-form.vue';
/**
* 市场营销列表编辑视图视图
*
* @export
* @class IBizListEditView
* @extends {IBizListEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class IBizListEditView extends IBizListEditViewBase { }
</script>
app_BusinessCentral/src/pages/marketing/ibiz-list-info/ibiz-list-info-base.tsx
浏览文件 @
361c3675
...
...
@@ -101,6 +101,12 @@ export class IBizListInfoBase extends TabExpViewBase {
* @memberof IBizListInfo
*/
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
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'OpenMainEditView'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem1_remove_sep
:
{
name
:
'tbitem1_remove_sep'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem1_remove
:
{
name
:
'tbitem1_remove'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
seperator4
:
{
name
:
'seperator4'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem17_active
:
{
name
:
'tbitem17_active'
,
caption
:
'激活'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'激活'
,
iconcls
:
'fa fa-play-circle-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Active'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem17_stop_sep
:
{
name
:
'tbitem17_stop_sep'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
...
...
@@ -171,6 +177,12 @@ export class IBizListInfoBase extends TabExpViewBase {
* @memberof IBizListInfoBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_openmaineditview'
))
{
this
.
toolbar_tbitem1_openmaineditview_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_remove'
))
{
this
.
toolbar_tbitem1_remove_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem17_active'
))
{
this
.
toolbar_tbitem17_active_click
(
null
,
''
,
$event2
);
}
...
...
@@ -182,6 +194,62 @@ export class IBizListInfoBase extends TabExpViewBase {
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem1_openmaineditview_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
];
}
// 界面行为
const
curUIService
:
IBizListUIService
=
new
IBizListUIService
();
curUIService
.
IBizList_OpenMainEditView
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBizList"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem1_remove_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
];
}
// 界面行为
const
curUIService
:
IBizListUIService
=
new
IBizListUIService
();
curUIService
.
IBizList_Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBizList"
);
}
/**
* 逻辑事件
*
...
...
app_BusinessCentral/src/pages/service/incident-edit-view/incident-edit-view.html
浏览文件 @
361c3675
<studio-view-style2
viewName=
"incidenteditview"
viewTitle=
"案例编辑视图"
class=
'deeditview incident-edit-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click($event)"
/>
</template>
<view
_form
...
...
app_BusinessCentral/src/service/account/account-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/service/competitor/competitor-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/service/contact/contact-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/service/ibiz-list/ibiz-list-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/service/opportunity/opportunity-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/service/quote/quote-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/service/sales-literature/sales-literature-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/service/sales-order/sales-order-service-base.ts
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/store/modules/view-action/state.ts
浏览文件 @
361c3675
...
...
@@ -773,9 +773,6 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'2c6be792e84450585986e22f75dffa52'
,
'aaa875342bd9286a39c2d193a150afc4'
,
'44a690a1d62a390708480cb43f67d98b'
,
],
},
{
...
...
@@ -1095,16 +1092,6 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'44a690a1d62a390708480cb43f67d98b'
,
viewmodule
:
'Marketing'
,
viewname
:
'ListAccountInner'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'49dc1a714631338858cd0441f6c720ca'
,
],
},
{
viewtag
:
'44f1244c0a9e78981a151dc7f247e867'
,
viewmodule
:
'Runtime'
,
...
...
@@ -1176,15 +1163,6 @@ export const viewstate: any = {
'd3692664b9e2e150526e1ce4b969f15b'
,
],
},
{
viewtag
:
'49dc1a714631338858cd0441f6c720ca'
,
viewmodule
:
'Marketing'
,
viewname
:
'ListAccountEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'4ab71df980f390b6663b8912f64ede02'
,
viewmodule
:
'Sales'
,
...
...
@@ -2337,6 +2315,16 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'a62e766e54ec0b259071463523c98493'
,
viewmodule
:
'Marketing'
,
viewname
:
'IBizListEditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'da3f8c1f20f440f3df54d6c13a8de586'
,
],
},
{
viewtag
:
'a69ba7dd2f8bdac8a3c733dcc79c0ee5'
,
viewmodule
:
'Base'
,
...
...
@@ -2398,16 +2386,6 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'aaa875342bd9286a39c2d193a150afc4'
,
viewmodule
:
'Marketing'
,
viewname
:
'ListContactInner'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'c7d0ca0f6fa1b27bbd1b5c422d1a108d'
,
],
},
{
viewtag
:
'aae12017a434333b4b16d13b102268d2'
,
viewmodule
:
'Base'
,
...
...
@@ -2508,6 +2486,7 @@ export const viewstate: any = {
'4799b0e7139b537ebe9313a004daa0ac'
,
'a0baf844a4d48914ee2623448b1a73fb'
,
'0ab0bd0aaadd588905a82de62c80ff07'
,
'a62e766e54ec0b259071463523c98493'
,
'3124753ba4abff3aaf49355a5197c4ab'
,
],
},
...
...
app_BusinessCentral/src/studio-core/components/app-header-menus/app-header-menus.less
浏览文件 @
361c3675
...
...
@@ -30,6 +30,9 @@
>.ivu-select-dropdown {
background: var(--app-header-background-color);
max-height: 350px;
overflow-x: hidden;
overflow-y: auto;
>.ivu-menu-drop-list {
...
...
@@ -37,12 +40,13 @@
>.ivu-menu-submenu {
border: 0px;
color: var(--app-header-color);
padding:
0px 10
px;
padding:
5px 8
px;
}
>.ivu-menu-item:hover,
>.ivu-menu-submenu:hover {
background: hsla(0, 0%, 100%, 0.12);
padding: 5px 8px;
}
}
}
...
...
app_BusinessCentral/src/uiservice/ibiz-list/ibiz-list-ui-service-base.ts
浏览文件 @
361c3675
...
...
@@ -118,6 +118,74 @@ export default class IBizListUIServiceBase extends UIService {
public
initDeMainStateOPPrivsMap
(){
}
/**
* 删除并关闭
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
IBizList_Remove
(
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
,
{
ibizlist
:
'%ibizlist%'
});
Object
.
assign
(
params
,
{
listid
:
'%ibizlist%'
});
Object
.
assign
(
params
,
{
listname
:
'%listname%'
});
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
);
// 直接调实体服务需要转换的数据
if
(
context
&&
context
.
srfsessionid
){
context
.
srfsessionkey
=
context
.
srfsessionid
;
delete
context
.
srfsessionid
;
}
actionContext
.
closeView
(
null
);
const
backend
=
()
=>
{
const
curService
:
IBizListService
=
new
IBizListService
();
curService
.
Remove
(
context
,
data
,
true
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
response
.
message
});
return
;
}
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'删除并关闭成功!'
});
const
_this
:
any
=
actionContext
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
return
response
;
}).
catch
((
response
:
any
)
=>
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'系统异常!'
});
return
;
}
if
(
response
.
status
===
401
)
{
return
;
}
return
response
;
});
};
backend
();
}
/**
* 编辑
*
...
...
@@ -447,6 +515,54 @@ export default class IBizListUIServiceBase extends UIService {
backend
();
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
IBizList_OpenMainEditView
(
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
,
{
ibizlist
:
'%ibizlist%'
});
Object
.
assign
(
params
,
{
listid
:
'%ibizlist%'
});
Object
.
assign
(
params
,
{
listname
:
'%listname%'
});
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
:
'ibizlists'
,
parameterName
:
'ibizlist'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
return
null
;
}
openIndexViewTab
(
data
);
}
/**
* 打开主信息界面
*
...
...
app_BusinessCentral/src/uiservice/knowledge-article/knowledge-article-ui-service-base.ts
浏览文件 @
361c3675
...
...
@@ -280,14 +280,29 @@ export default class KnowledgeArticleUIServiceBase extends UIService {
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'knowledgearticles'
,
parameterName
:
'knowledgearticle'
},
{
pathName
:
'edit_datapanelview'
,
parameterName
:
'edit_datapanelview'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
return
null
;
}
openIndexViewTab
(
data
);
const
openPopOver
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
actionContext
.
$apppopover
.
openPop
(
$event
,
view
,
context
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
const
_this
:
any
=
actionContext
;
if
(
window
.
opener
){
window
.
opener
.
postMessage
({
status
:
'OK'
,
identification
:
'WF'
},
Environment
.
uniteAddress
);
window
.
close
();
}
return
result
.
datas
;
});
}
const
view
:
any
=
{
viewname
:
'knowledge-article-edit-data-panel-view'
,
height
:
300
,
width
:
300
,
title
:
actionContext
.
$t
(
'entities.knowledgearticle.views.edit_datapanelview.title'
),
placement
:
'POPOVER'
,
};
openPopOver
(
view
,
data
);
}
/**
...
...
app_BusinessCentral/src/widgets/contact/by-account-grid/by-account-grid.html
浏览文件 @
361c3675
...
...
@@ -88,13 +88,10 @@
</template>
<template
slot-scope=
"scope"
>
<div
style=
"text-align: center;"
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<a
@
click=
"uiAction(scope.row, 'SetPrimary', $event)"
>
<i
class=
'fa fa-check'
></i>
</a>
<div
slot=
'content'
>
{{$t('entities.contact.byaccount_grid.uiactions.contact_setprimary')}}
</div>
</tooltip>
<a
v-show=
"scope.row.SetPrimary.visabled"
:disabled=
"scope.row.SetPrimary.disabled"
@
click=
"uiAction(scope.row, 'SetPrimary', $event)"
:title=
"$t('entities.contact.byaccount_grid.uiactions.contact_setprimary')"
>
<i
class=
'fa fa-check'
></i>
</a>
</div>
</template>
</el-table-column>
...
...
app_BusinessCentral/src/widgets/ibiz-list/abstract-info-form/abstract-info-form-base.tsx
浏览文件 @
361c3675
...
...
@@ -59,15 +59,6 @@ export class AbstractInfoEditFormBase extends EditFormControlBase {
public
appUIService
:
IBizListUIService
=
new
IBizListUIService
(
this
.
$store
);
/**
* 关系界面数量
*
* @protected
* @type {number}
* @memberof AbstractInfoEditFormBase
*/
protected
drCount
:
number
=
3
;
/**
* 表单数据对象
*
...
...
@@ -114,18 +105,6 @@ export class AbstractInfoEditFormBase extends EditFormControlBase {
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'列表信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.ibizlist.abstractinfo_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart1
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
grouppanel1
:
new
FormGroupPanelModel
({
caption
:
'客户信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel1'
,
visible
:
false
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.ibizlist.abstractinfo_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart2
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
grouppanel2
:
new
FormGroupPanelModel
({
caption
:
'联系人信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel2'
,
visible
:
false
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.ibizlist.abstractinfo_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart3
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart3'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
grouppanel3
:
new
FormGroupPanelModel
({
caption
:
'潜在顾客'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel3'
,
visible
:
false
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.ibizlist.abstractinfo_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
0
}),
...
...
@@ -165,65 +144,4 @@ export class AbstractInfoEditFormBase extends EditFormControlBase {
listid
:
new
FormItemModel
({
caption
:
'列表'
,
detailType
:
'FORMITEM'
,
name
:
'listid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
/**
* 表单项逻辑
*
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {Promise<void>}
* @memberof AbstractInfoEditFormBase
*/
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
Promise
<
void
>
{
if
(
Object
.
is
(
name
,
''
)
||
Object
.
is
(
name
,
'membertype'
))
{
let
ret
=
false
;
const
_membertype
=
this
.
data
.
membertype
;
if
(
this
.
$verify
.
testCond
(
_membertype
,
'EQ'
,
'Account'
))
{
ret
=
true
;
}
this
.
detailsModel
.
grouppanel1
.
setVisible
(
ret
);
}
if
(
Object
.
is
(
name
,
''
)
||
Object
.
is
(
name
,
'membertype'
))
{
let
ret
=
false
;
const
_membertype
=
this
.
data
.
membertype
;
if
(
this
.
$verify
.
testCond
(
_membertype
,
'EQ'
,
'Contact'
))
{
ret
=
true
;
}
this
.
detailsModel
.
grouppanel2
.
setVisible
(
ret
);
}
if
(
Object
.
is
(
name
,
''
)
||
Object
.
is
(
name
,
'membertype'
))
{
let
ret
=
false
;
const
_membertype
=
this
.
data
.
membertype
;
if
(
this
.
$verify
.
testCond
(
_membertype
,
'EQ'
,
'Lead'
))
{
ret
=
true
;
}
this
.
detailsModel
.
grouppanel3
.
setVisible
(
ret
);
}
}
}
\ No newline at end of file
app_BusinessCentral/src/widgets/ibiz-list/abstract-info-form/abstract-info-form.html
浏览文件 @
361c3675
...
...
@@ -73,111 +73,6 @@
</row>
</app-form-group>
</i-col>
<i-col
v-show=
"detailsModel.grouppanel1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.grouppanel1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.ibizlist.abstractinfo_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
v-show=
"detailsModel.druipart1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'ibizlist'
:parentdata=
'{"srfparentdefname":"LISTID","srfparentdename":"LIST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_LISTACCOUNT_LIST_LISTID","SRFDER1NID":"DER1N_LISTACCOUNT_LIST_LISTID"}'
:parameters=
"[
{ pathName: 'accounts', parameterName: 'account' },
]"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{}'
:localParam =
'{}'
parameterName=
'ibizlist'
parentName=
"IBizList"
refviewtype=
'DEGRIDVIEW9'
refreshitems=
''
:ignorefieldvaluechange=
"ignorefieldvaluechange"
viewname=
'list-account-inner'
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
style=
"overflow: auto;"
>
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col
v-show=
"detailsModel.grouppanel2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.grouppanel2"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.ibizlist.abstractinfo_form.details.grouppanel2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
v-show=
"detailsModel.druipart2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'ibizlist'
:parentdata=
'{"srfparentdefname":"LISTID","srfparentdename":"LIST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_LISTCONTACT_LIST_LISTID","SRFDER1NID":"DER1N_LISTCONTACT_LIST_LISTID"}'
:parameters=
"[
{ pathName: 'contacts', parameterName: 'contact' },
]"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{}'
:localParam =
'{}'
parameterName=
'ibizlist'
parentName=
"IBizList"
refviewtype=
'DEGRIDVIEW9'
refreshitems=
''
:ignorefieldvaluechange=
"ignorefieldvaluechange"
viewname=
'list-contact-inner'
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
style=
"overflow: auto;"
>
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col
v-show=
"detailsModel.grouppanel3.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.grouppanel3"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel3.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.ibizlist.abstractinfo_form.details.grouppanel3')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel3"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
v-show=
"detailsModel.druipart3.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'ibizlist'
:parentdata=
'{"srfparentdefname":"LISTID","srfparentdename":"LIST","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_LISTLEAD_LIST_LISTID","SRFDER1NID":"DER1N_LISTLEAD_LIST_LISTID"}'
:parameters=
"[
{ pathName: 'leads', parameterName: 'lead' },
]"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{}'
:localParam =
'{}'
parameterName=
'ibizlist'
parentName=
"IBizList"
refviewtype=
'DEGRIDVIEW'
refreshitems=
''
:ignorefieldvaluechange=
"ignorefieldvaluechange"
viewname=
'list-lead-by-list'
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
style=
"overflow: auto;"
>
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
...
...
app_BusinessCentral/src/widgets/ibiz-list/edit-main-form/edit-main-form-base.tsx
0 → 100644
浏览文件 @
361c3675
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
IBizListService
from
'@/service/ibiz-list/ibiz-list-service'
;
import
Edit_MainService
from
'./edit-main-form-service'
;
import
IBizListUIService
from
'@/uiservice/ibiz-list/ibiz-list-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {Edit_MainEditFormBase}
*/
export
class
Edit_MainEditFormBase
extends
EditFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof Edit_MainEditFormBase
*/
protected
controlType
:
string
=
'FORM'
;
/**
* 建构部件服务对象
*
* @type {Edit_MainService}
* @memberof Edit_MainEditFormBase
*/
public
service
:
Edit_MainService
=
new
Edit_MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBizListService}
* @memberof Edit_MainEditFormBase
*/
public
appEntityService
:
IBizListService
=
new
IBizListService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof Edit_MainEditFormBase
*/
protected
appDeName
:
string
=
'ibizlist'
;
/**
* 界面UI服务对象
*
* @type {IBizListUIService}
* @memberof Edit_MainEditFormBase
*/
public
appUIService
:
IBizListUIService
=
new
IBizListUIService
(
this
.
$store
);
/**
* 表单数据对象
*
* @type {*}
* @memberof Edit_MainEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
listname
:
null
,
type
:
null
,
purpose
:
null
,
membertype
:
null
,
source
:
null
,
transactioncurrencyname
:
null
,
cost
:
null
,
ownername
:
null
,
description
:
null
,
transactioncurrencyid
:
null
,
listid
:
null
,
ibizlist
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof Edit_MainEditFormBase
*/
public
rules
:
any
=
{
listname
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'名称 值不能为空'
,
trigger
:
'blur'
},
],
type
:
[
{
required
:
true
,
type
:
'number'
,
message
:
'类型 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'number'
,
message
:
'类型 值不能为空'
,
trigger
:
'blur'
},
],
ownername
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'负责人 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'负责人 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 详情模型集合
*
* @type {*}
* @memberof Edit_MainEditFormBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'列表信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.ibizlist.edit_main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
0
}),
srforikey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srforikey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfkey
:
new
FormItemModel
({
caption
:
'列表'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfdeid
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfdeid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
listname
:
new
FormItemModel
({
caption
:
'名称'
,
detailType
:
'FORMITEM'
,
name
:
'listname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
type
:
new
FormItemModel
({
caption
:
'类型'
,
detailType
:
'FORMITEM'
,
name
:
'type'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
purpose
:
new
FormItemModel
({
caption
:
'用途'
,
detailType
:
'FORMITEM'
,
name
:
'purpose'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
membertype
:
new
FormItemModel
({
caption
:
'目标对象'
,
detailType
:
'FORMITEM'
,
name
:
'membertype'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
source
:
new
FormItemModel
({
caption
:
'来源'
,
detailType
:
'FORMITEM'
,
name
:
'source'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
transactioncurrencyname
:
new
FormItemModel
({
caption
:
'货币'
,
detailType
:
'FORMITEM'
,
name
:
'transactioncurrencyname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
cost
:
new
FormItemModel
({
caption
:
'成本'
,
detailType
:
'FORMITEM'
,
name
:
'cost'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
ownername
:
new
FormItemModel
({
caption
:
'负责人'
,
detailType
:
'FORMITEM'
,
name
:
'ownername'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
description
:
new
FormItemModel
({
caption
:
'说明'
,
detailType
:
'FORMITEM'
,
name
:
'description'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
transactioncurrencyid
:
new
FormItemModel
({
caption
:
'货币'
,
detailType
:
'FORMITEM'
,
name
:
'transactioncurrencyid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
listid
:
new
FormItemModel
({
caption
:
'列表'
,
detailType
:
'FORMITEM'
,
name
:
'listid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
}
\ No newline at end of file
app_BusinessCentral/src/widgets/ibiz-list/edit-main-form/edit-main-form-model.ts
0 → 100644
浏览文件 @
361c3675
/**
* Edit_Main 部件模型
*
* @export
* @class Edit_MainModel
*/
export
default
class
Edit_MainModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Edit_MainModel
*/
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
:
'listid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'listname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'listname'
,
prop
:
'listname'
,
dataType
:
'TEXT'
,
},
{
name
:
'type'
,
prop
:
'type'
,
dataType
:
'YESNO'
,
},
{
name
:
'purpose'
,
prop
:
'purpose'
,
dataType
:
'TEXT'
,
},
{
name
:
'membertype'
,
prop
:
'membertype'
,
dataType
:
'INT'
,
},
{
name
:
'source'
,
prop
:
'source'
,
dataType
:
'TEXT'
,
},
{
name
:
'transactioncurrencyname'
,
prop
:
'transactioncurrencyname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'cost'
,
prop
:
'cost'
,
dataType
:
'BIGDECIMAL'
,
},
{
name
:
'ownername'
,
prop
:
'ownername'
,
dataType
:
'TEXT'
,
},
{
name
:
'description'
,
prop
:
'description'
,
dataType
:
'TEXT'
,
},
{
name
:
'transactioncurrencyid'
,
prop
:
'transactioncurrencyid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'listid'
,
prop
:
'listid'
,
dataType
:
'GUID'
,
},
{
name
:
'ibizlist'
,
prop
:
'listid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_BusinessCentral/src/widgets/ibiz-list/edit-main-form/edit-main-form-service.ts
0 → 100644
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
app_BusinessCentral/src/widgets/ibiz-list/edit-main-form/edit-main-form.html
0 → 100644
浏览文件 @
361c3675
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'ibizlist_edit_main'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<i-col
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.ibizlist.edit_main_form.details.group1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
v-show=
"detailsModel.listname.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'listname'
:itemRules=
"this.rules.listname"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.listname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.listname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.listname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.listname.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.type.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'type'
:itemRules=
"this.rules.type"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.type')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.type.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.type"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.type.disabled"
style=
"width:100px;width: 100px;"
valueType=
"number"
tag=
'YesNo'
codelistType=
'STATIC'
placeholder=
'请选择...'
/>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.purpose.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'purpose'
:itemRules=
"this.rules.purpose"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.purpose')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.purpose.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.purpose"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.purpose.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.membertype.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'membertype'
:itemRules=
"this.rules.membertype"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.membertype')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.membertype.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.membertype"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.membertype.disabled"
type=
'number'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.source.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'source'
:itemRules=
"this.rules.source"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.source')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.source.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.source"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.source.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.transactioncurrencyname.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'transactioncurrencyname'
:itemRules=
"this.rules.transactioncurrencyname"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.transactioncurrencyname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.transactioncurrencyname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
:formState=
"formState"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.transactioncurrencyname.disabled"
name=
'transactioncurrencyname'
deMajorField=
'currencyname'
deKeyField=
'transactioncurrency'
:service=
"service"
:acParams=
"{ serviceName: 'TransactionCurrencyService', interfaceName: 'FetchDefault'}"
valueitem=
'transactioncurrencyid'
:value=
"data.transactioncurrencyname"
:pickupView=
"{ viewname: 'transaction-currency-pickup-view', title: $t('entities.transactioncurrency.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'transactioncurrencies', parameterName: 'transactioncurrency' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=
""
@
formitemvaluechange=
"onFormItemValueChange($event)"
>
</app-picker>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.cost.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'cost'
:itemRules=
"this.rules.cost"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.cost')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.cost.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.cost"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.cost.disabled"
type=
'number'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ownername.visible"
:style=
"{}"
:md=
"{ span: 12, offset: 0 }"
:lg=
"{ span: 8, offset: 0 }"
:xl=
"{ span: 6, offset: 0 }"
>
<app-form-item
name=
'ownername'
:itemRules=
"this.rules.ownername"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.ownername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ownername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.ownername"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.ownername.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.description.visible"
:style=
"{}"
:md=
"{ span: 24, offset: 0 }"
:lg=
"{ span: 24, offset: 0 }"
:xl=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'description'
:itemRules=
"this.rules.description"
class=
''
:caption=
"$t('entities.ibizlist.edit_main_form.details.description')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.description.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.description"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.description.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
app_BusinessCentral/src/widgets/ibiz-list/edit-main-form/edit-main-form.vue
0 → 100644
浏览文件 @
361c3675
<
template
src=
"./edit-main-form.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Edit_MainEditFormBase } from './edit-main-form-base';
/**
* form部件
*
* @export
* @class Edit_MainEditForm
* @extends {Edit_MainEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Edit_MainEditForm extends Edit_MainEditFormBase { }
</script>
businesscentral-app/businesscentral-app-businesscentral/src/main/docker/Dockerfile
浏览文件 @
361c3675
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-businesscentral.jar
EXPOSE
1032
0
EXPOSE
808
0
ADD
businesscentral-app-businesscentral.jar /businesscentral-app-businesscentral.jar
businesscentral-app/businesscentral-app-businesscentral/src/main/docker/businesscentral-app-businesscentral.yaml
浏览文件 @
361c3675
...
...
@@ -3,23 +3,9 @@ services:
businesscentral-app-businesscentral
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-businesscentral:latest
ports
:
-
"
10320:1032
0"
-
"
8080:808
0"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10320
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
resources
:
limits
:
...
...
businesscentral-boot/src/main/resources/application-dev.yml
浏览文件 @
361c3675
...
...
@@ -6,11 +6,11 @@ zuul:
routes
:
fisaccount
:
path
:
/fisaccounts/**
serviceId
:
ibizprojectoperations-poejectoperationsapi
serviceId
:
${ibiz.ref.service.ibizprojectoperations-poejectoperationsapi:ibizprojectoperations-poejectoperationsapi}
stripPrefix
:
false
psaaccount
:
path
:
/psaaccounts/**
serviceId
:
ibizprojectoperations-poejectoperationsapi
serviceId
:
${ibiz.ref.service.ibizprojectoperations-poejectoperationsapi:ibizprojectoperations-poejectoperationsapi}
stripPrefix
:
false
sensitive-headers
:
-
Cookie,Set-Cookie,Authorization
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
businesscentral-util/src/main/java/cn/ibizlab/businesscentral/util/aspect/VersionCheckAspect.java
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
config.xml
浏览文件 @
361c3675
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录