Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
df898403
提交
df898403
编写于
12月 14, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
ac9958e5
变更
30
隐藏空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
4604 行增加
和
28 行删除
+4604
-28
view-config.json
app_Web/public/assets/json/view-config.json
+32
-0
en-US-base.ts
app_Web/src/locale/lang/en-US-base.ts
+14
-13
zh-CN-base.ts
app_Web/src/locale/lang/zh-CN-base.ts
+1
-0
ibizorder-detail_en_US_base.ts
.../entities/ibizorder-detail/ibizorder-detail_en_US_base.ts
+80
-4
ibizorder-detail_zh_CN_base.ts
.../entities/ibizorder-detail/ibizorder-detail_zh_CN_base.ts
+80
-4
ibizorder_en_US_base.ts
.../locale/lanres/entities/ibizorder/ibizorder_en_US_base.ts
+119
-0
ibizorder_zh_CN_base.ts
.../locale/lanres/entities/ibizorder/ibizorder_zh_CN_base.ts
+119
-0
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+18
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+32
-0
ibizorder-detail-f7-grid-view-base.vue
...etail-f7-grid-view/ibizorder-detail-f7-grid-view-base.vue
+5
-0
ibizorder-detail-f7-grid-view.less
...er-detail-f7-grid-view/ibizorder-detail-f7-grid-view.less
+5
-0
ibizorder-detail-f7-grid-view.vue
...der-detail-f7-grid-view/ibizorder-detail-f7-grid-view.vue
+24
-0
ibizorder-f17-edit-view-base.vue
.../ibizorder-f17-edit-view/ibizorder-f17-edit-view-base.vue
+974
-0
ibizorder-f17-edit-view.less
...mple/ibizorder-f17-edit-view/ibizorder-f17-edit-view.less
+27
-0
ibizorder-f17-edit-view.vue
...ample/ibizorder-f17-edit-view/ibizorder-f17-edit-view.vue
+22
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+3
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+112
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+23
-0
ibizorder-detail-ui-service-base.ts
...vice/ibizorder-detail/ibizorder-detail-ui-service-base.ts
+2
-0
ibizorder-ui-service-base.ts
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
+2
-0
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+26
-0
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+31
-0
data-0005-form-base.vue
.../widgets/ibizorder/data-0005-form/data-0005-form-base.vue
+2183
-0
data-0005-form-model.ts
.../widgets/ibizorder/data-0005-form/data-0005-form-model.ts
+111
-0
data-0005-form-service.ts
...idgets/ibizorder/data-0005-form/data-0005-form-service.ts
+484
-0
data-0005-form.less
.../src/widgets/ibizorder/data-0005-form/data-0005-form.less
+54
-0
data-0005-form.vue
...b/src/widgets/ibizorder/data-0005-form/data-0005-form.vue
+14
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+4
-4
view.xml
demo-core/src/main/resources/liquibase/view.xml
+2
-2
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+1
-1
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
df898403
...
...
@@ -47,6 +47,14 @@
"viewname"
:
"IBIZOrderTypePickupView"
,
"viewtag"
:
"03c54f13883f56a08229c1a2db6a283f"
},
"ibizorderdetailf7gridview"
:
{
"title"
:
"订单明细表格视图"
,
"caption"
:
"订单明细"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderDetailF7GridView"
,
"viewtag"
:
"043b734dfdce227f01e99f7f636e395b"
},
"ibizsample0018gridview"
:
{
"title"
:
"示例实体04表格视图"
,
"caption"
:
"示例实体18"
,
...
...
@@ -895,6 +903,14 @@
"viewname"
:
"IBIZOrderTypeUsr2EditView"
,
"viewtag"
:
"82014278d03dfb22039740c03d2a461f"
},
"ibizorderusr4editview"
:
{
"title"
:
"订单实体编辑视图(临时模式)"
,
"caption"
:
"订单实体编辑视图(临时模式)"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderUsr4EditView"
,
"viewtag"
:
"82d7ac23925814d9798eeb198e7cdcdd"
},
"ibizordersf1editview"
:
{
"title"
:
"编辑表单新建默认值"
,
"caption"
:
"编辑表单新建默认值"
,
...
...
@@ -983,6 +999,14 @@
"viewname"
:
"IBIZSample0021WFDynaExpGridView"
,
"viewtag"
:
"8d187ca2a3aa187ceac9dedb958fe2bb"
},
"ibizorderf17editview"
:
{
"title"
:
"订单编辑视图"
,
"caption"
:
"订单"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderF17EditView"
,
"viewtag"
:
"90d0f81d13e48ce41775442459bd5700"
},
"ibizorderlistexpview"
:
{
"title"
:
"订单列表导航视图"
,
"caption"
:
"订单"
,
...
...
@@ -1431,6 +1455,14 @@
"viewname"
:
"IBIZSoftwareSuitSGridView"
,
"viewtag"
:
"c8845bb5ed3853ec394b9c80eeb0416e"
},
"ibizorderdetailf7editview"
:
{
"title"
:
"订单明细编辑视图"
,
"caption"
:
"订单明细"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderDetailF7EditView"
,
"viewtag"
:
"c8a1c9f876a50150221a8f34c881b4fa"
},
"ibizsample0021editview"
:
{
"title"
:
"订单编辑视图"
,
"caption"
:
"订单"
,
...
...
app_Web/src/locale/lang/en-US-base.ts
浏览文件 @
df898403
...
...
@@ -228,22 +228,22 @@ function getAppLocale(){
menuitem121
:
commonLogic
.
appcommonhandle
(
"MultiEditViewPanel"
,
null
),
menuitem115
:
commonLogic
.
appcommonhandle
(
"MultipleForms (row records)"
,
null
),
menuitem123
:
commonLogic
.
appcommonhandle
(
"MultiForm (top page)"
,
null
),
menuitem119
:
commonLogic
.
appcommonhandle
(
"
多数据类
"
,
null
),
menuitem13
:
commonLogic
.
appcommonhandle
(
"
表格
"
,
null
),
menuitem119
:
commonLogic
.
appcommonhandle
(
"
MultiDataClass
"
,
null
),
menuitem13
:
commonLogic
.
appcommonhandle
(
"
Grid
"
,
null
),
menuitem57
:
commonLogic
.
appcommonhandle
(
"禁用排序"
,
null
),
menuitem59
:
commonLogic
.
appcommonhandle
(
"行操作"
,
null
),
menuitem58
:
commonLogic
.
appcommonhandle
(
"行编辑"
,
null
),
menuitem73
:
commonLogic
.
appcommonhandle
(
"
内置功能
"
,
null
),
menuitem74
:
commonLogic
.
appcommonhandle
(
"
表格行编辑
"
,
null
),
menuitem75
:
commonLogic
.
appcommonhandle
(
"
新建默认值
"
,
null
),
menuitem76
:
commonLogic
.
appcommonhandle
(
"
更新默认值
"
,
null
),
menuitem77
:
commonLogic
.
appcommonhandle
(
"
表格值规则
"
,
null
),
menuitem132
:
commonLogic
.
appcommonhandle
(
"
表格列更新
"
,
null
),
menuitem133
:
commonLogic
.
appcommonhandle
(
"
表格列重置
"
,
null
),
menuitem78
:
commonLogic
.
appcommonhandle
(
"
自动分组
"
,
null
),
menuitem80
:
commonLogic
.
appcommonhandle
(
"
代码表分组
"
,
null
),
menuitem81
:
commonLogic
.
appcommonhandle
(
"
当前页聚合
"
,
null
),
menuitem82
:
commonLogic
.
appcommonhandle
(
"
远程聚合
"
,
null
),
menuitem73
:
commonLogic
.
appcommonhandle
(
"
BuiltInFeatures
"
,
null
),
menuitem74
:
commonLogic
.
appcommonhandle
(
"
TableRowEditing
"
,
null
),
menuitem75
:
commonLogic
.
appcommonhandle
(
"
NewDefault
"
,
null
),
menuitem76
:
commonLogic
.
appcommonhandle
(
"
UpdateDefault
"
,
null
),
menuitem77
:
commonLogic
.
appcommonhandle
(
"
TableValueRules
"
,
null
),
menuitem132
:
commonLogic
.
appcommonhandle
(
"
TableColumnUpdate
"
,
null
),
menuitem133
:
commonLogic
.
appcommonhandle
(
"
TableColumnReset
"
,
null
),
menuitem78
:
commonLogic
.
appcommonhandle
(
"
AutomaticGrouping
"
,
null
),
menuitem80
:
commonLogic
.
appcommonhandle
(
"
CodeTableGrouping
"
,
null
),
menuitem81
:
commonLogic
.
appcommonhandle
(
"
CurrentPageAggregation
"
,
null
),
menuitem82
:
commonLogic
.
appcommonhandle
(
"
RemoteAggregation
"
,
null
),
menuitem83
:
commonLogic
.
appcommonhandle
(
"列表"
,
null
),
menuitem84
:
commonLogic
.
appcommonhandle
(
"内置功能"
,
null
),
menuitem85
:
commonLogic
.
appcommonhandle
(
"自动分组"
,
null
),
...
...
@@ -328,6 +328,7 @@ function getAppLocale(){
menuitem155
:
commonLogic
.
appcommonhandle
(
"界面行为"
,
null
),
menuitem181
:
commonLogic
.
appcommonhandle
(
"前台界面行为"
,
null
),
menuitem182
:
commonLogic
.
appcommonhandle
(
"后台界面行为"
,
null
),
menuitem19
:
commonLogic
.
appcommonhandle
(
"临时模式"
,
null
),
menuitem2
:
commonLogic
.
appcommonhandle
(
"更多"
,
null
),
menuitem46
:
commonLogic
.
appcommonhandle
(
"数据导出导入"
,
null
),
menuitem45
:
commonLogic
.
appcommonhandle
(
"数据打印"
,
null
),
...
...
app_Web/src/locale/lang/zh-CN-base.ts
浏览文件 @
df898403
...
...
@@ -328,6 +328,7 @@ function getAppLocale(){
menuitem155
:
commonLogic
.
appcommonhandle
(
"界面行为"
,
null
),
menuitem181
:
commonLogic
.
appcommonhandle
(
"前台界面行为"
,
null
),
menuitem182
:
commonLogic
.
appcommonhandle
(
"后台界面行为"
,
null
),
menuitem19
:
commonLogic
.
appcommonhandle
(
"临时模式"
,
null
),
menuitem2
:
commonLogic
.
appcommonhandle
(
"更多"
,
null
),
menuitem46
:
commonLogic
.
appcommonhandle
(
"数据导出导入"
,
null
),
menuitem45
:
commonLogic
.
appcommonhandle
(
"数据打印"
,
null
),
...
...
app_Web/src/locale/lanres/entities/ibizorder-detail/ibizorder-detail_en_US_base.ts
浏览文件 @
df898403
...
...
@@ -25,6 +25,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"orderdetail"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细多表单编辑视图"
,
null
),
},
f7gridview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"orderdetail"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细表格视图"
,
null
),
},
sf1editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"表单项重置项"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"表单项重置项"
,
null
),
...
...
@@ -61,6 +65,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"orderdetail"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细编辑视图"
,
null
),
},
f7editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"orderdetail"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细编辑视图"
,
null
),
},
chartview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"orderdetail"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细图表视图"
,
null
),
...
...
@@ -105,7 +113,7 @@ function getLocaleResourceBase(){
uiactions
:
{
},
},
main
2
_form
:
{
main_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单明细基本信息"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
...
...
@@ -123,14 +131,14 @@ function getLocaleResourceBase(){
unitprice
:
commonLogic
.
appcommonhandle
(
"单价"
,
null
),
quantity
:
commonLogic
.
appcommonhandle
(
"数量"
,
null
),
amount
:
commonLogic
.
appcommonhandle
(
"小计"
,
null
),
ibizuniproductid
:
commonLogic
.
appcommonhandle
(
"统一产品标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
ibizuniproductid
:
commonLogic
.
appcommonhandle
(
"统一产品标识"
,
null
),
ibizorderdetailid
:
commonLogic
.
appcommonhandle
(
"订单明细标识"
,
null
),
},
uiactions
:
{
},
},
main_form
:
{
main
2
_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单明细基本信息"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
...
...
@@ -148,8 +156,8 @@ function getLocaleResourceBase(){
unitprice
:
commonLogic
.
appcommonhandle
(
"单价"
,
null
),
quantity
:
commonLogic
.
appcommonhandle
(
"数量"
,
null
),
amount
:
commonLogic
.
appcommonhandle
(
"小计"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
ibizuniproductid
:
commonLogic
.
appcommonhandle
(
"统一产品标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
ibizorderdetailid
:
commonLogic
.
appcommonhandle
(
"订单明细标识"
,
null
),
},
uiactions
:
{
...
...
@@ -294,6 +302,74 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
},
},
f7gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"New"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"New"
,
null
),
},
deuiaction2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
},
tbitem4
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Edit"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Edit {0}"
,
null
),
},
tbitem6
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Copy"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Copy {0}"
,
null
),
},
deuiaction3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Filter"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Filter"
,
null
),
},
tbitem7
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Remove"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Remove {0}"
,
null
),
},
tbitem9
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Export"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Export {0} Data To Excel"
,
null
),
},
deuiaction1
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导入"
,
null
),
},
tbitem10
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem16
:
{
caption
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
},
tbitem21
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Export Data Model"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
},
tbitem23
:
{
caption
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
},
},
f7editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
},
tbitem5
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save And Close"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save And Close Window"
,
null
),
},
},
sgridview9toolbar_toolbar
:
{
tbitem1
:
{
caption
:
commonLogic
.
appcommonhandle
(
"New"
,
null
),
...
...
app_Web/src/locale/lanres/entities/ibizorder-detail/ibizorder-detail_zh_CN_base.ts
浏览文件 @
df898403
...
...
@@ -25,6 +25,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细多表单编辑视图"
,
null
),
},
f7gridview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细表格视图"
,
null
),
},
sf1editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"表单项重置项"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"表单项重置项"
,
null
),
...
...
@@ -61,6 +65,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细编辑视图"
,
null
),
},
f7editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细编辑视图"
,
null
),
},
chartview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单明细图表视图"
,
null
),
...
...
@@ -105,7 +113,7 @@ function getLocaleResourceBase(){
uiactions
:
{
},
},
main
2
_form
:
{
main_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单明细基本信息"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
...
...
@@ -123,14 +131,14 @@ function getLocaleResourceBase(){
unitprice
:
commonLogic
.
appcommonhandle
(
"单价"
,
null
),
quantity
:
commonLogic
.
appcommonhandle
(
"数量"
,
null
),
amount
:
commonLogic
.
appcommonhandle
(
"小计"
,
null
),
ibizuniproductid
:
commonLogic
.
appcommonhandle
(
"统一产品标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
ibizuniproductid
:
commonLogic
.
appcommonhandle
(
"统一产品标识"
,
null
),
ibizorderdetailid
:
commonLogic
.
appcommonhandle
(
"订单明细标识"
,
null
),
},
uiactions
:
{
},
},
main_form
:
{
main
2
_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单明细基本信息"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
...
...
@@ -148,8 +156,8 @@ function getLocaleResourceBase(){
unitprice
:
commonLogic
.
appcommonhandle
(
"单价"
,
null
),
quantity
:
commonLogic
.
appcommonhandle
(
"数量"
,
null
),
amount
:
commonLogic
.
appcommonhandle
(
"小计"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
ibizuniproductid
:
commonLogic
.
appcommonhandle
(
"统一产品标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
ibizorderdetailid
:
commonLogic
.
appcommonhandle
(
"订单明细标识"
,
null
),
},
uiactions
:
{
...
...
@@ -294,6 +302,74 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
},
},
f7gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
},
deuiaction2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
},
tbitem4
:
{
caption
:
commonLogic
.
appcommonhandle
(
"编辑"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"编辑"
,
null
),
},
tbitem6
:
{
caption
:
commonLogic
.
appcommonhandle
(
"拷贝"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"拷贝"
,
null
),
},
deuiaction3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"过滤"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"过滤"
,
null
),
},
tbitem7
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"删除"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"删除"
,
null
),
},
tbitem9
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
},
deuiaction1
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导入"
,
null
),
},
tbitem10
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem16
:
{
caption
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
},
tbitem21
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
},
tbitem23
:
{
caption
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
},
},
f7editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
},
tbitem5
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存并关闭"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存并关闭"
,
null
),
},
},
sgridview9toolbar_toolbar
:
{
tbitem1
:
{
caption
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US_base.ts
浏览文件 @
df898403
...
...
@@ -143,10 +143,18 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"数据看板"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"数据看板"
,
null
),
},
usr4editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单实体编辑视图(临时模式)"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单实体编辑视图(临时模式)"
,
null
),
},
sf1editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"编辑表单新建默认值"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"编辑表单新建默认值"
,
null
),
},
f17editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单编辑视图"
,
null
),
},
listexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单列表导航视图"
,
null
),
...
...
@@ -535,6 +543,33 @@ function getLocaleResourceBase(){
uiactions
:
{
},
},
data_0005_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单基本信息"
,
null
),
druipart1
:
commonLogic
.
appcommonhandle
(
""
,
null
),
grouppanel1
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
srfupdatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
srforikey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfkey
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
srfmajortext
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
srftempmode
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfuf
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfdeid
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfsourcekey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
orderuid
:
commonLogic
.
appcommonhandle
(
"订单编号"
,
null
),
ibizordername
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
ordertime
:
commonLogic
.
appcommonhandle
(
"订单时间"
,
null
),
ibizcustomername
:
commonLogic
.
appcommonhandle
(
"客户名称"
,
null
),
ordertype
:
commonLogic
.
appcommonhandle
(
"订单类型"
,
null
),
orderstate
:
commonLogic
.
appcommonhandle
(
"订单状态"
,
null
),
memo
:
commonLogic
.
appcommonhandle
(
"备注"
,
null
),
ibizcustomerid
:
commonLogic
.
appcommonhandle
(
"客户标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
},
uiactions
:
{
},
},
uipart_0006_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"审核意见"
,
null
),
...
...
@@ -718,6 +753,38 @@ function getLocaleResourceBase(){
uiactions
:
{
},
},
tempmode_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单基本信息"
,
null
),
druipart1
:
commonLogic
.
appcommonhandle
(
""
,
null
),
grouppanel1
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
srfupdatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
srforikey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfkey
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
srfmajortext
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
srftempmode
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfuf
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfdeid
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfsourcekey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfip_amount
:
commonLogic
.
appcommonhandle
(
""
,
null
),
orderuid
:
commonLogic
.
appcommonhandle
(
"订单编号"
,
null
),
ibizordername
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
ordertime
:
commonLogic
.
appcommonhandle
(
"订单时间"
,
null
),
starttime
:
commonLogic
.
appcommonhandle
(
"订单开始时间"
,
null
),
endtime
:
commonLogic
.
appcommonhandle
(
"订单结束时间"
,
null
),
ibizcustomername
:
commonLogic
.
appcommonhandle
(
"客户名称"
,
null
),
ordertype
:
commonLogic
.
appcommonhandle
(
"订单类型"
,
null
),
amount
:
commonLogic
.
appcommonhandle
(
"总计"
,
null
),
detailnum
:
commonLogic
.
appcommonhandle
(
"明细数"
,
null
),
orderstate
:
commonLogic
.
appcommonhandle
(
"订单状态"
,
null
),
memo
:
commonLogic
.
appcommonhandle
(
"备注"
,
null
),
ibizcustomerid
:
commonLogic
.
appcommonhandle
(
"客户标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
orderuid
:
commonLogic
.
appcommonhandle
(
"订单编号"
,
null
),
...
...
@@ -1445,6 +1512,32 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
},
},
f17editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
},
tbitem5
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save And Close"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save And Close Window"
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem9_saveandstart
:
{
caption
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem15
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Print"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Print"
,
null
),
},
},
seditview2toolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
...
...
@@ -1755,6 +1848,32 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"Print"
,
null
),
},
},
usr4editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
},
tbitem5
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save And Close"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save And Close Window"
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem9_saveandstart
:
{
caption
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem15
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Print"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Print"
,
null
),
},
},
odsp_w10_wfgridviewtoolbar_toolbar
:
{
tbitem21_c100
:
{
caption
:
commonLogic
.
appcommonhandle
(
"审核通过"
,
null
),
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN_base.ts
浏览文件 @
df898403
...
...
@@ -143,10 +143,18 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"数据看板"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"数据看板"
,
null
),
},
usr4editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单实体编辑视图(临时模式)"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单实体编辑视图(临时模式)"
,
null
),
},
sf1editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"编辑表单新建默认值"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"编辑表单新建默认值"
,
null
),
},
f17editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单编辑视图"
,
null
),
},
listexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单列表导航视图"
,
null
),
...
...
@@ -535,6 +543,33 @@ function getLocaleResourceBase(){
uiactions
:
{
},
},
data_0005_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单基本信息"
,
null
),
druipart1
:
commonLogic
.
appcommonhandle
(
""
,
null
),
grouppanel1
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
srfupdatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
srforikey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfkey
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
srfmajortext
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
srftempmode
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfuf
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfdeid
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfsourcekey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
orderuid
:
commonLogic
.
appcommonhandle
(
"订单编号"
,
null
),
ibizordername
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
ordertime
:
commonLogic
.
appcommonhandle
(
"订单时间"
,
null
),
ibizcustomername
:
commonLogic
.
appcommonhandle
(
"客户名称"
,
null
),
ordertype
:
commonLogic
.
appcommonhandle
(
"订单类型"
,
null
),
orderstate
:
commonLogic
.
appcommonhandle
(
"订单状态"
,
null
),
memo
:
commonLogic
.
appcommonhandle
(
"备注"
,
null
),
ibizcustomerid
:
commonLogic
.
appcommonhandle
(
"客户标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
},
uiactions
:
{
},
},
uipart_0006_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"审核意见"
,
null
),
...
...
@@ -718,6 +753,38 @@ function getLocaleResourceBase(){
uiactions
:
{
},
},
tempmode_form
:
{
details
:
{
group1
:
commonLogic
.
appcommonhandle
(
"订单基本信息"
,
null
),
druipart1
:
commonLogic
.
appcommonhandle
(
""
,
null
),
grouppanel1
:
commonLogic
.
appcommonhandle
(
"订单明细"
,
null
),
formpage1
:
commonLogic
.
appcommonhandle
(
"基本信息"
,
null
),
srfupdatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
srforikey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfkey
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
srfmajortext
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
srftempmode
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfuf
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfdeid
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfsourcekey
:
commonLogic
.
appcommonhandle
(
""
,
null
),
srfip_amount
:
commonLogic
.
appcommonhandle
(
""
,
null
),
orderuid
:
commonLogic
.
appcommonhandle
(
"订单编号"
,
null
),
ibizordername
:
commonLogic
.
appcommonhandle
(
"订单名称"
,
null
),
ordertime
:
commonLogic
.
appcommonhandle
(
"订单时间"
,
null
),
starttime
:
commonLogic
.
appcommonhandle
(
"订单开始时间"
,
null
),
endtime
:
commonLogic
.
appcommonhandle
(
"订单结束时间"
,
null
),
ibizcustomername
:
commonLogic
.
appcommonhandle
(
"客户名称"
,
null
),
ordertype
:
commonLogic
.
appcommonhandle
(
"订单类型"
,
null
),
amount
:
commonLogic
.
appcommonhandle
(
"总计"
,
null
),
detailnum
:
commonLogic
.
appcommonhandle
(
"明细数"
,
null
),
orderstate
:
commonLogic
.
appcommonhandle
(
"订单状态"
,
null
),
memo
:
commonLogic
.
appcommonhandle
(
"备注"
,
null
),
ibizcustomerid
:
commonLogic
.
appcommonhandle
(
"客户标识"
,
null
),
ibizorderid
:
commonLogic
.
appcommonhandle
(
"订单标识"
,
null
),
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
orderuid
:
commonLogic
.
appcommonhandle
(
"订单编号"
,
null
),
...
...
@@ -1445,6 +1512,32 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
},
},
f17editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
},
tbitem5
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存并关闭"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存并关闭"
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem9_saveandstart
:
{
caption
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem15
:
{
caption
:
commonLogic
.
appcommonhandle
(
"打印"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"打印"
,
null
),
},
},
seditview2toolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
...
...
@@ -1755,6 +1848,32 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"打印"
,
null
),
},
},
usr4editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
},
tbitem5
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存并关闭"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存并关闭"
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem9_saveandstart
:
{
caption
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"开始流程"
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem15
:
{
caption
:
commonLogic
.
appcommonhandle
(
"打印"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"打印"
,
null
),
},
},
odsp_w10_wfgridviewtoolbar_toolbar
:
{
tbitem21_c100
:
{
caption
:
commonLogic
.
appcommonhandle
(
"审核通过"
,
null
),
...
...
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
df898403
...
...
@@ -2727,6 +2727,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag
:
''
,
},
],
},
{
id
:
'C9EAF840-180C-43A5-A04A-DE242675A08A'
,
name
:
'menuitem19'
,
text
:
'临时模式'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'临时模式'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc92'
,
resourcetag
:
''
,
},
],
},
...
...
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
df898403
...
...
@@ -55,6 +55,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZOrderTypePickupView"
,
"viewtag"
:
"03c54f13883f56a08229c1a2db6a283f"
},
"ibizorderdetailf7gridview"
:
{
"title"
:
"订单明细表格视图"
,
"caption"
:
"订单明细"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderDetailF7GridView"
,
"viewtag"
:
"043b734dfdce227f01e99f7f636e395b"
},
"ibizsample0018gridview"
:
{
"title"
:
"示例实体04表格视图"
,
"caption"
:
"示例实体18"
,
...
...
@@ -903,6 +911,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZOrderTypeUsr2EditView"
,
"viewtag"
:
"82014278d03dfb22039740c03d2a461f"
},
"ibizorderusr4editview"
:
{
"title"
:
"订单实体编辑视图(临时模式)"
,
"caption"
:
"订单实体编辑视图(临时模式)"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderUsr4EditView"
,
"viewtag"
:
"82d7ac23925814d9798eeb198e7cdcdd"
},
"ibizordersf1editview"
:
{
"title"
:
"编辑表单新建默认值"
,
"caption"
:
"编辑表单新建默认值"
,
...
...
@@ -991,6 +1007,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZSample0021WFDynaExpGridView"
,
"viewtag"
:
"8d187ca2a3aa187ceac9dedb958fe2bb"
},
"ibizorderf17editview"
:
{
"title"
:
"订单编辑视图"
,
"caption"
:
"订单"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderF17EditView"
,
"viewtag"
:
"90d0f81d13e48ce41775442459bd5700"
},
"ibizorderlistexpview"
:
{
"title"
:
"订单列表导航视图"
,
"caption"
:
"订单"
,
...
...
@@ -1439,6 +1463,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZSoftwareSuitSGridView"
,
"viewtag"
:
"c8845bb5ed3853ec394b9c80eeb0416e"
},
"ibizorderdetailf7editview"
:
{
"title"
:
"订单明细编辑视图"
,
"caption"
:
"订单明细"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderDetailF7EditView"
,
"viewtag"
:
"c8a1c9f876a50150221a8f34c881b4fa"
},
"ibizsample0021editview"
:
{
"title"
:
"订单编辑视图"
,
"caption"
:
"订单"
,
...
...
app_Web/src/pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view-base.vue
0 → 100644
浏览文件 @
df898403
!!!!模版产生代码错误:----
FTL stack trace ("~" means nesting-related):
- Failed at: ${P.getLayoutCode("VIEW.vue").code} [in template "TEMPLCODE_en_US" at line 2, column 1]
----
无法获取指定部件[VIEWLAYOUTPANEL#APPDEGRIDVIEW_NOCAPT]发布代码[VIEW.vue]
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view.less
0 → 100644
浏览文件 @
df898403
!!!!模版产生代码错误:----
FTL stack trace ("~" means nesting-related):
- Failed at: ${P.getLayoutCode().code} [in template "TEMPLCODE_en_US" at line 1, column 1]
----
无法获取指定部件[VIEWLAYOUTPANEL#APPDEGRIDVIEW_NOCAPT]发布代码[VIEW.less]
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view.vue
0 → 100644
浏览文件 @
df898403
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderDetailF7GridViewBase
from
'./ibizorder-detail-f7-grid-view-base.vue'
;
import
view_grid
from
'@widgets/ibizorder-detail/main-grid/main-grid.vue'
;
import
view_searchform
from
'@widgets/ibizorder-detail/default-searchform/default-searchform.vue'
;
@
Component
({
components
:
{
view_grid
,
view_searchform
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
if
(
!
Object
.
is
(
vm
.
navModel
,
"route"
)){
vm
.
initNavDataWithTab
(
vm
.
viewCacheData
);
}
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
IBIZOrderDetailF7GridView
extends
IBIZOrderDetailF7GridViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-f17-edit-view/ibizorder-f17-edit-view-base.vue
0 → 100644
浏览文件 @
df898403
<
template
>
<div
class=
"view-container deeditview ibizorder-f17-edit-view"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderf17editview"
></app-studioaction>
<card
class=
'view-card '
:disHover=
"true"
:bordered=
"false"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem3.visabled"
:disabled=
"toolBarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-save'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem5.visabled"
:disabled=
"toolBarModels.tbitem5.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem5' }, $event)">
<i
class=
'sx-tb-saveandclose'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem5.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem5.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem9_saveandstart.visabled"
:disabled=
"toolBarModels.tbitem9_saveandstart.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem9_saveandstart' }, $event)">
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem9_saveandstart.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem9_saveandstart.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem15.visabled"
:disabled=
"toolBarModels.tbitem15.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem15' }, $event)">
<i
class=
'fa fa-print'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem15.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.f17editviewtoolbar_toolbar.tbitem15.tip'
)
}}
</div>
</tooltip>
</div>
</div>
<div
class=
'view-top-messages'
>
</div>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
</div>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"UpdateTempMajor"
removeAction=
"RemoveTempMajor"
loaddraftAction=
"GetDraftTempMajor"
loadAction=
"GetTempMajor"
createAction=
"CreateTempMajor"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
</div>
<div
class=
'view-bottom-messages'
>
</div>
</card>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
IBIZOrderAuthService
from
'@/authservice/ibizorder/ibizorder-auth-service'
;
import
EditViewEngine
from
'@engine/view/edit-view-engine'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZOrderF17EditViewBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof IBIZOrderF17EditViewBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
;
/**
* 实体UI服务对象
*
* @type IBIZOrderUIService
* @memberof IBIZOrderF17EditViewBase
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZOrderF17EditViewBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZOrderF17EditViewBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZOrderF17EditViewBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZOrderF17EditViewBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZOrderF17EditViewBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZOrderF17EditViewBase
*/
public
viewtag
:
string
=
'90d0f81d13e48ce41775442459bd5700'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizorder.views.f17editview.caption'
,
srfTitle
:
'entities.ibizorder.views.f17editview.title'
,
srfSubTitle
:
'entities.ibizorder.views.f17editview.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZOrderF17EditViewBase
*/
@
Watch
(
'viewparam'
,{
immediate
:
true
,
deep
:
true
})
onParamData
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
this
.
viewparams
=
{};
if
(
typeof
newVal
==
'string'
)
{
Object
.
assign
(
this
.
viewparams
,
JSON
.
parse
(
this
.
viewparam
));
}
else
{
this
.
viewparams
=
Util
.
deepCopy
(
this
.
viewparam
);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZOrderF17EditViewBase
*/
@
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
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
wflinks
:
[],
};
/**
* 视图刷新
*
* @param {*} args
* @memberof IBIZOrderF17EditViewBase
*/
public
refresh
(
args
?:
any
):
void
{
const
refs
:
any
=
this
.
$refs
;
if
(
refs
&&
refs
.
form
)
{
refs
.
form
.
refresh
();
}
}
/**
* 计数器刷新
*
* @memberof IBIZOrderF17EditViewBase
*/
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 IBIZOrderF17EditViewBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderF17EditView
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem5
:
{
name
:
'tbitem5'
,
actiontarget
:
'NONE'
,
caption
:
'保存并关闭'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
}
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem9_saveandstart
:
{
name
:
'tbitem9_saveandstart'
,
actiontarget
:
'NONE'
,
caption
:
'开始流程'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
'WFSTART'
,
uiaction
:
{
tag
:
'SaveAndStart'
,
target
:
''
}
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem15
:
{
name
:
'tbitem15'
,
actiontarget
:
'NONE'
,
caption
:
'打印'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Print'
,
target
:
'SINGLEKEY'
}
},
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZOrderF17EditViewBase
*/
public
engine
:
EditViewEngine
=
new
EditViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZOrderF17EditViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'ibizorder'
,
majorPSDEField
:
'ibizordername'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
navDataService
=
NavDataService
.
getInstance
(
this
.
$store
);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderF17EditViewBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderF17EditViewBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZOrderF17EditViewBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZOrderF17EditViewBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZOrderF17EditViewBase
*/
public
parseViewParam
(
inputvalue
:
any
=
null
):
void
{
for
(
let
key
in
this
.
context
){
delete
this
.
context
[
key
];
}
if
(
this
.
$store
.
getters
.
getAppData
()
&&
this
.
$store
.
getters
.
getAppData
().
context
){
Object
.
assign
(
this
.
context
,
this
.
$store
.
getters
.
getAppData
().
context
);
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
if
(
typeof
this
.
viewdata
==
'string'
)
{
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
});
}
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
(
inputvalue
){
Object
.
assign
(
this
.
context
,{
'ibizorder'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZOrderF17EditViewBase
*/
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 IBIZOrderF17EditViewBase
*/
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
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
context
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
if
(
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
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
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZOrderF17EditViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizorder-f17-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizorder
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZOrderF17EditViewBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizorder-f17-edit-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizorder
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZOrderF17EditViewBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZOrderF17EditViewBase
*/
public
afterCreated
(){
let
_this
:
any
=
this
;
const
secondtag
=
_this
.
$util
.
createUUID
();
_this
.
$store
.
commit
(
'viewaction/createdView'
,
{
viewtag
:
_this
.
viewtag
,
secondtag
:
secondtag
});
_this
.
viewtag
=
secondtag
;
_this
.
parseViewParam
();
_this
.
serviceStateEvent
=
_this
.
navDataService
.
serviceState
.
subscribe
(({
action
,
name
,
data
}:{
action
:
string
,
name
:
any
,
data
:
any
})
=>
{
if
(
!
Object
.
is
(
name
,
'ibizorder-f17-edit-view'
)){
return
;
}
if
(
Object
.
is
(
action
,
'viewrefresh'
))
{
_this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
(
data
);
if
(
_this
.
engine
){
_this
.
engine
.
load
();
}
});
}
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'IBIZOrderF17EditView'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZOrderF17EditViewBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZOrderF17EditViewBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZOrderF17EditViewBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderF17EditViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9_saveandstart'
))
{
this
.
toolbar_tbitem9_saveandstart_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderF17EditViewBase
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderF17EditViewBase
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderF17EditViewBase
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem9_saveandstart_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
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_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
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderF17EditViewBase
*/
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderF17EditViewBase
*/
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 IBIZOrderF17EditViewBase
*/
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
return
;
}
let
localdata
:
any
=
{
processDefinitionKey
:
null
};
xData
.
wfstart
(
args
,
localdata
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderF17EditViewBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZOrderF17EditViewBase
*/
public
closeView
(
args
:
any
[]):
void
{
let
_view
:
any
=
this
;
if
(
_view
.
viewdata
)
{
_view
.
$emit
(
'viewdataschange'
,
Array
.
isArray
(
args
)?
args
:[
args
]);
_view
.
$emit
(
'close'
,
Array
.
isArray
(
args
)?
args
:[
args
]);
}
else
if
(
_view
.
$tabPageExp
)
{
_view
.
$tabPageExp
.
onClose
(
_view
.
$route
.
fullPath
);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZOrderF17EditViewBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZOrderF17EditViewBase
*/
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
);
}
})
}
if
(
Object
.
is
(
this
.
navModel
,
"tab"
)){
this
.
navDataService
.
removeNavDataByTag
(
this
.
viewtag
);
}
if
(
this
.
serviceStateEvent
)
{
this
.
serviceStateEvent
.
unsubscribe
();
}
}
// 销毁计数器定时器
if
(
this
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
if
(
this
.
portletStateEvent
){
this
.
portletStateEvent
.
unsubscribe
();
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './ibizorder-f17-edit-view.less';
</
style
>
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-f17-edit-view/ibizorder-f17-edit-view.less
0 → 100644
浏览文件 @
df898403
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizorder-f17-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
app_Web/src/pages/sample/ibizorder-f17-edit-view/ibizorder-f17-edit-view.vue
0 → 100644
浏览文件 @
df898403
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderF17EditViewBase
from
'./ibizorder-f17-edit-view-base.vue'
;
import
view_form
from
'@widgets/ibizorder/data-0005-form/data-0005-form.vue'
;
@
Component
({
components
:
{
view_form
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
if
(
!
Object
.
is
(
vm
.
navModel
,
"route"
)){
vm
.
initNavDataWithTab
(
vm
.
viewCacheData
);
}
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
IBIZOrderF17EditView
extends
IBIZOrderF17EditViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
df898403
...
...
@@ -102,6 +102,7 @@ export const PageComponents = {
Vue
.
component
(
'micro-component-edit-view'
,
()
=>
import
(
'@pages/sample/micro-component-edit-view/micro-component-edit-view.vue'
));
Vue
.
component
(
'ibizorder-area-chart-view'
,
()
=>
import
(
'@pages/sample/ibizorder-area-chart-view/ibizorder-area-chart-view.vue'
));
Vue
.
component
(
'ibizbookexport-and-import-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbookexport-and-import-grid-view/ibizbookexport-and-import-grid-view.vue'
));
Vue
.
component
(
'ibizorder-detail-f7-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view.vue'
));
Vue
.
component
(
'ibizorder-sf20-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf20-grid-view/ibizorder-sf20-grid-view.vue'
));
Vue
.
component
(
'ibizorder-grid-view9'
,
()
=>
import
(
'@pages/sample/ibizorder-grid-view9/ibizorder-grid-view9.vue'
));
Vue
.
component
(
'ibizorder-calendar-exp-view'
,
()
=>
import
(
'@pages/sample/ibizorder-calendar-exp-view/ibizorder-calendar-exp-view.vue'
));
...
...
@@ -131,10 +132,12 @@ export const PageComponents = {
Vue
.
component
(
'ibizsample0017-form-pickup-view'
,
()
=>
import
(
'@pages/sample/ibizsample0017-form-pickup-view/ibizsample0017-form-pickup-view.vue'
));
Vue
.
component
(
'ibizcustomer-usr2-pickup-view'
,
()
=>
import
(
'@pages/sample/ibizcustomer-usr2-pickup-view/ibizcustomer-usr2-pickup-view.vue'
));
Vue
.
component
(
'ibizsample0002-grid-view'
,
()
=>
import
(
'@pages/sample/ibizsample0002-grid-view/ibizsample0002-grid-view.vue'
));
Vue
.
component
(
'ibizorder-f17-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-f17-edit-view/ibizorder-f17-edit-view.vue'
));
Vue
.
component
(
'ibizbookinter-func-kan-ban-view'
,
()
=>
import
(
'@pages/sample/ibizbookinter-func-kan-ban-view/ibizbookinter-func-kan-ban-view.vue'
));
Vue
.
component
(
'ibizorder-type-usr2-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-type-usr2-edit-view/ibizorder-type-usr2-edit-view.vue'
));
Vue
.
component
(
'ibizbookrow-edit-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbookrow-edit-grid-view/ibizbookrow-edit-grid-view.vue'
));
Vue
.
component
(
'ibizhardware-index-pickup-view'
,
()
=>
import
(
'@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue'
));
Vue
.
component
(
'ibizorder-detail-f7-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'
));
Vue
.
component
(
'ibizhardware-grid-view9'
,
()
=>
import
(
'@pages/sample/ibizhardware-grid-view9/ibizhardware-grid-view9.vue'
));
Vue
.
component
(
'ibizorder-sf3-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf3-edit-view/ibizorder-sf3-edit-view.vue'
));
Vue
.
component
(
'ibizcustomer-usr2-mpickup-view'
,
()
=>
import
(
'@pages/sample/ibizcustomer-usr2-mpickup-view/ibizcustomer-usr2-mpickup-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
df898403
...
...
@@ -1642,6 +1642,35 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbookexport-and-import-grid-view/ibizbookexport-and-import-grid-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/f7gridview/:f7gridview?'
,
meta
:
{
caption
:
'entities.ibizorderdetail.views.f7gridview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'f7gridview'
,
parameterName
:
'f7gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view.vue'
),
},
{
path
:
'ibizorderdetails/:ibizorderdetail?/f7gridview/:f7gridview?'
,
meta
:
{
caption
:
'entities.ibizorderdetail.views.f7gridview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'f7gridview'
,
parameterName
:
'f7gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/sf20gridview/:sf20gridview?'
,
meta
:
{
...
...
@@ -2078,6 +2107,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0002-grid-view/ibizsample0002-grid-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/f17editview/:f17editview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.f17editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'f17editview'
,
parameterName
:
'f17editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-f17-edit-view/ibizorder-f17-edit-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/interfunckanbanview/:interfunckanbanview?'
,
meta
:
{
...
...
@@ -2134,6 +2177,35 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/f7editview/:f7editview?'
,
meta
:
{
caption
:
'entities.ibizorderdetail.views.f7editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'f7editview'
,
parameterName
:
'f7editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'
),
},
{
path
:
'ibizorderdetails/:ibizorderdetail?/f7editview/:f7editview?'
,
meta
:
{
caption
:
'entities.ibizorderdetail.views.f7editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'f7editview'
,
parameterName
:
'f7editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'
),
},
{
path
:
'ibizhardwares/:ibizhardware?/gridview9/:gridview9?'
,
meta
:
{
...
...
@@ -2863,6 +2935,33 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbooktree-view/ibizbooktree-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/f7gridview/:f7gridview?'
,
meta
:
{
caption
:
'entities.ibizorderdetail.views.f7gridview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'f7gridview'
,
parameterName
:
'f7gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view.vue'
),
},
{
path
:
'/ibizorderdetails/:ibizorderdetail?/f7gridview/:f7gridview?'
,
meta
:
{
caption
:
'entities.ibizorderdetail.views.f7gridview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'f7gridview'
,
parameterName
:
'f7gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-f7-grid-view/ibizorder-detail-f7-grid-view.vue'
),
},
{
path
:
'/ibizsample0018s/:ibizsample0018?/gridview/:gridview?'
,
meta
:
{
...
...
@@ -4186,6 +4285,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0021-wfdyna-exp-grid-view/ibizsample0021-wfdyna-exp-grid-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/f17editview/:f17editview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.f17editview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'f17editview'
,
parameterName
:
'f17editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-f17-edit-view/ibizorder-f17-edit-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/listexpview/:listexpview?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
df898403
...
...
@@ -45,6 +45,16 @@ export const viewstate: any = {
'0d9d3edf2d060a859fa7f2e206556730'
,
],
},
{
viewtag
:
'043b734dfdce227f01e99f7f636e395b'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZOrderDetailF7GridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'c8a1c9f876a50150221a8f34c881b4fa'
,
],
},
{
viewtag
:
'06f6c93b65230d180597e6bd32051447'
,
viewmodule
:
'Sample'
,
...
...
@@ -286,6 +296,7 @@ export const viewstate: any = {
'e9b54ef29b192ecd2da05ff9570eb4d5'
,
'b038c48269316664e5b48380a879fd99'
,
'd9bd3192a20de0815bed3fd3d79d0cb1'
,
'90d0f81d13e48ce41775442459bd5700'
,
'98865bf786ea85b14932dd5e48a74983'
,
'bc76c982dd2264463427eb57e9ed3fba'
,
'9f80ed66360fbbb9bc57c575fdd8814f'
,
...
...
@@ -1068,6 +1079,18 @@ export const viewstate: any = {
'c9efbd1a76fcc2ce0bf6fbb4b7af561d'
,
],
},
{
viewtag
:
'90d0f81d13e48ce41775442459bd5700'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZOrderF17EditView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'f7ce60a7707de1ef9f926b3f9d5d6954'
,
'043b734dfdce227f01e99f7f636e395b'
,
'2640aa1ca02649c8831b43023d449945'
,
],
},
{
viewtag
:
'9127e2414d8e646fd2b473695d17c485'
,
viewmodule
:
'Sample'
,
...
...
app_Web/src/uiservice/ibizorder-detail/ibizorder-detail-ui-service-base.ts
浏览文件 @
df898403
...
...
@@ -97,6 +97,7 @@ export default class IBIZOrderDetailUIServiceBase extends UIService {
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'smeditview9'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-smedit-view9'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'f7gridview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-f7-grid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sf1editview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-sf1-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'gridview9'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-grid-view9'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'listview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-list-view'
});
...
...
@@ -106,6 +107,7 @@ export default class IBIZOrderDetailUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sf2editview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-sf2-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sgridview9'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-sgrid-view9'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'editview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'f7editview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-f7-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'chartview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-chart-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'f6gridview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-f6-grid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2editview'
,
srfappde
:
'ibizorderdetails'
,
component
:
'ibizorder-detail-usr2-edit-view'
});
...
...
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
浏览文件 @
df898403
...
...
@@ -125,7 +125,9 @@ export default class IBIZOrderUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sgridview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sgrid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'barchartview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-bar-chart-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'dashboardview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-dashboard-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr4editview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-usr4-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sf1editview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sf1-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'f17editview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-f17-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'listexpview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-list-exp-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2calendarexpview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-usr2-calendar-exp-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'piechartview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-pie-chart-view'
});
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
df898403
...
...
@@ -794,6 +794,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc79'
:
this
.
clickAppFunc79
(
item
);
return
;
case
'AppFunc92'
:
this
.
clickAppFunc92
(
item
);
return
;
case
'AppFunc36'
:
this
.
clickAppFunc36
(
item
);
return
;
...
...
@@ -2488,6 +2491,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 临时模式
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc92
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'f17editview'
,
parameterName
:
'f17editview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 功能名称
*
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
浏览文件 @
df898403
...
...
@@ -2879,6 +2879,25 @@ export default class MainMenuModel {
authtag
:
'Web-MainMenu-menuitem182'
,
},
],
},
{
id
:
'C9EAF840-180C-43A5-A04A-DE242675A08A'
,
name
:
'menuitem19'
,
text
:
'临时模式'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'临时模式'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc92'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem19'
,
},
],
},
...
...
@@ -4138,6 +4157,18 @@ export default class MainMenuModel {
{
pathName
:
'usr9gridview'
,
parameterName
:
'usr9gridview'
},
],
},
{
appfunctag
:
'AppFunc92'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
codename
:
'ibizorderf17editview'
,
deResParameters
:
[],
routepath
:
'/index/:index?/ibizorders/:ibizorder?/f17editview/:f17editview?'
,
parameters
:
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'f17editview'
,
parameterName
:
'f17editview'
},
],
},
{
appfunctag
:
'AppFunc36'
,
appfuncyype
:
'APPVIEW'
,
...
...
app_Web/src/widgets/ibizorder/data-0005-form/data-0005-form-base.vue
0 → 100644
浏览文件 @
df898403
<
template
>
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'ibizorder_data_0005'
style=
""
@
on-validate=
"formItemValidate"
>
<input
style=
"display:none;"
/>
<row
>
<i-col
v-show=
"detailsModel.group1.visible"
:style=
"
{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<app-form-group
:uiService=
"appUIService"
:data=
"transformData(data)"
:manageContainerStatus=
"detailsModel.group1.manageContainerStatus"
:isManageContainer=
"detailsModel.group1.isManageContainer"
@
managecontainerclick=
"manageContainerClick('group1')"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.ibizorder.data_0005_form.details.group1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<row>
<i-col
v-show=
"detailsModel.orderuid.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item
name=
'orderuid'
:itemRules=
"this.rules().orderuid"
class=
''
:caption=
"$t('entities.ibizorder.data_0005_form.details.orderuid')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.orderuid.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.orderuid"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.orderuid.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ibizordername.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item
name=
'ibizordername'
:itemRules=
"this.rules().ibizordername"
class=
''
:caption=
"$t('entities.ibizorder.data_0005_form.details.ibizordername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ibizordername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.ibizordername"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.ibizordername.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ordertime.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item
name=
'ordertime'
:itemRules=
"this.rules().ordertime"
class=
''
:caption=
"$t('entities.ibizorder.data_0005_form.details.ordertime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ordertime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
:value=
"data.ordertime"
:disabled=
"detailsModel.ordertime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) =>
{ this.data.ordertime = val1 }">
</date-picker>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ibizcustomername.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item
name=
'ibizcustomername'
:itemRules=
"this.rules().ibizcustomername"
class=
''
:caption=
"$t('entities.ibizorder.data_0005_form.details.ibizcustomername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ibizcustomername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
:formState=
"formState"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }'
:localParam ='{ }'
:disabled="detailsModel.ibizcustomername.disabled"
name='ibizcustomername'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
:service="service"
:acParams="{ serviceName: 'IBIZCustomerService', interfaceName: 'FetchDefault'}"
valueitem='ibizcustomerid'
:value="data.ibizcustomername"
editortype=""
:pickupView="{ viewname: 'ibizcustomer-pickup-view', title: $t('entities.ibizcustomer.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ordertype.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item
name=
'ordertype'
:itemRules=
"this.rules().ordertype"
class=
''
:caption=
"$t('entities.ibizorder.data_0005_form.details.ordertype')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ordertype.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.ordertype"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:formState=
"formState"
:localContext =
'
{ }'
:localParam ='{ }'
:disabled="detailsModel.ordertype.disabled"
valueType="string"
tag='ORDERTYPE'
codelistType='DYNAMIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.orderstate.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item
name=
'orderstate'
:itemRules=
"this.rules().orderstate"
class=
''
:caption=
"$t('entities.ibizorder.data_0005_form.details.orderstate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.orderstate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.orderstate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:formState=
"formState"
:localContext =
'
{ }'
:localParam ='{ }'
:disabled="detailsModel.orderstate.disabled"
valueType="string"
tag='ORDERSTATE'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.memo.visible"
:style=
"
{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<app-form-item
name=
'memo'
:itemRules=
"this.rules().memo"
class=
''
:caption=
"$t('entities.ibizorder.data_0005_form.details.memo')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.memo.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.memo"
:textareaId=
"this.$util.createUUID()"
:disabled=
"detailsModel.memo.disabled"
type=
'textarea'
textareaStyle=
"height:200px;"
></input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col
v-show=
"detailsModel.grouppanel1.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-group
:uiService=
"appUIService"
:data=
"transformData(data)"
:manageContainerStatus=
"detailsModel.grouppanel1.manageContainerStatus"
:isManageContainer=
"detailsModel.grouppanel1.isManageContainer"
@
managecontainerclick=
"manageContainerClick('grouppanel1')"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.ibizorder.data_0005_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<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=
'ibizorder'
:parentdata=
'
{"srfparentdefname":"IBIZORDERID","srfparentdename":"IBIZORDER","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID","SRFDER1NID":"DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID"}'
:parameters="[
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localParam ='{}'
parameterName='ibizorder'
parentName="IBIZOrder"
refviewtype='DEGRIDVIEW'
refreshitems=''
:ignorefieldvaluechange="ignorefieldvaluechange"
viewname='ibizorder-detail-f7-grid-view'
tempMode='2'
:data="JSON.stringify(this.data)"
@drdatasaved="drdatasaved($event)"
style=";overflow: auto;">
</app-form-druipart>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
AppCenterService
from
"@service/app/app-center-service"
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
DATA_0005Service
from
'./data-0005-form-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
import
schema
from
'async-validator'
;
import
{
Environment
}
from
'@/environments/environment'
;
@
Component
({
components
:
{
}
})
export
default
class
DATA_0005Base
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof DATA_0005Base
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof DATA_0005Base
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof DATA_0005Base
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof DATA_0005Base
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof DATA_0005Base
*/
public
getControlType
():
string
{
return
'FORM'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof DATA_0005Base
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {DATA_0005Service}
* @memberof DATA_0005Base
*/
public
service
:
DATA_0005Service
=
new
DATA_0005Service
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof DATA_0005Base
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* 转化数据
*
* @param {any} args
* @memberof DATA_0005Base
*/
public
transformData
(
args
:
any
)
{
let
_this
:
any
=
this
;
if
(
_this
.
service
&&
_this
.
service
.
handleRequestData
instanceof
Function
&&
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)){
return
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)[
'data'
];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof DATA_0005Base
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof DATA_0005Base
*/
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
();
}
})
}
}
/**
* 视图默认使用
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 主键表单项名称
*
* @protected
* @type {string}
* @memberof DATA_0005Base
*/
public
formKeyItemName
:
string
=
''
;
/**
* 是否自动加载
*
* @type {boolean}
* @memberof DATA_0005Base
*/
@
Prop
({
default
:
false
})
public
isautoload
?:
boolean
;
/**
* 界面UI服务对象
*
* @type {IBIZOrderUIService}
* @memberof DATA_0005Base
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 工作流审批意见控件绑定值
*
* @memberof DATA_0005Base
*/
public
srfwfmemo
:
string
=
""
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof DATA_0005Base
*/
public
getDatas
():
any
[]
{
return
[
this
.
data
];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof DATA_0005Base
*/
public
getData
():
any
{
return
this
.
data
;
}
/**
* 是否默认保存
*
* @type {boolean}
* @memberof DATA_0005Base
*/
@
Prop
({
default
:
false
})
public
autosave
?:
boolean
;
/**
* 显示处理提示
*
* @type {boolean}
* @memberof DATA_0005Base
*/
@
Prop
({
default
:
true
})
public
showBusyIndicator
?:
boolean
;
/**
* 部件行为--submit
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
WFSubmitAction
!
:
string
;
/**
* 部件行为--start
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
WFStartAction
!
:
string
;
/**
* 部件行为--update
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
updateAction
!
:
string
;
/**
* 部件行为--remove
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
removeAction
!
:
string
;
/**
* 部件行为--loaddraft
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
loaddraftAction
!
:
string
;
/**
* 部件行为--load
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
loadAction
!
:
string
;
/**
* 部件行为--create
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
createAction
!
:
string
;
/**
* 部件行为--create
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
searchAction
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof DATA_0005Base
*/
@
Prop
()
public
viewtag
!
:
string
;
/**
* 表单状态
*
* @type {Subject<any>}
* @memberof DATA_0005Base
*/
public
formState
:
Subject
<
any
>
=
new
Subject
();
/**
* 忽略表单项值变化
*
* @type {boolean}
* @memberof DATA_0005Base
*/
public
ignorefieldvaluechange
:
boolean
=
false
;
/**
* 数据变化
*
* @public
* @type {Subject<any>}
* @memberof DATA_0005Base
*/
public
dataChang
:
Subject
<
any
>
=
new
Subject
();
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof DATA_0005Base
*/
public
dataChangEvent
:
Subscription
|
undefined
;
/**
* 原始数据
*
* @public
* @type {*}
* @memberof DATA_0005Base
*/
public
oldData
:
any
=
{};
/**
* 混入表单数据对象
*
* @type {*}
* @memberof DATA_0005Base
*/
public
mixinData
:
any
=
{};
/**
* 表单项校验错误提示信息
*
* @memberof DATA_0005Base
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
* 设置表单项错误提示信息
*
* @param {*} prop 表单项字段名
* @param {*} status 校验状态
* @param {*} error 错误信息
* @memberof DATA_0005Base
*/
public
formItemValidate
(
prop
:
string
,
status
:
boolean
,
error
:
string
){
error
=
error
?
error
:
''
;
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
){
const
index
=
this
.
errorMessages
.
findIndex
((
errorMessage
:
any
)
=>
Object
.
is
(
errorMessage
.
prop
,
prop
));
if
(
index
!=
-
1
){
this
.
errorMessages
[
index
].
error
=
error
;
}
else
{
this
.
errorMessages
.
push
({
prop
:
prop
,
error
:
error
});
}
}
else
{
this
.
errorMessages
.
push
({
prop
:
prop
,
error
:
error
});
}
}
/**
* 表单数据对象
*
* @type {*}
* @memberof DATA_0005Base
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
orderuid
:
null
,
ibizordername
:
null
,
ordertime
:
null
,
ibizcustomername
:
null
,
ordertype
:
null
,
orderstate
:
null
,
memo
:
null
,
ibizcustomerid
:
null
,
ibizorderid
:
null
,
ibizorder
:
null
,
};
/**
* 当前执行的行为逻辑
*
* @type {string}
* @memberof DATA_0005Base
*/
public
currentAction
:
string
=
""
;
/**
* 关系界面计数器
*
* @type {number}
* @memberof DATA_0005Base
*/
public
drcounter
:
number
=
0
;
/**
* 需要等待关系界面保存时,第一次调用save参数的备份
*
* @type {number}
* @memberof DATA_0005Base
*/
public
drsaveopt
:
any
=
{};
/**
* 表单保存回调存储对象
*
* @type {any}
* @memberof DATA_0005Base
*/
public
saveState
:
any
;
/**
* 主信息属性映射表单项名称
*
* @type {string}
* @memberof DATA_0005Base
*/
public
majorMessageField
:
string
=
"ibizordername"
;
/**
* 值规则
*
* @type {*}
* @memberof DATA_0005Base
*/
public
rules
()
:
any
{
return
{
orderuid
:
[
{
required
:
this
.
detailsModel
.
orderuid
.
required
,
type
:
'string'
,
message
:
'订单编号 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
orderuid
.
required
,
type
:
'string'
,
message
:
'订单编号 值不能为空'
,
trigger
:
'blur'
},
],
ibizordername
:
[
{
required
:
this
.
detailsModel
.
ibizordername
.
required
,
type
:
'string'
,
message
:
'订单名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
ibizordername
.
required
,
type
:
'string'
,
message
:
'订单名称 值不能为空'
,
trigger
:
'blur'
},
],
ordertime
:
[
{
required
:
this
.
detailsModel
.
ordertime
.
required
,
type
:
'string'
,
message
:
'订单时间 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
ordertime
.
required
,
type
:
'string'
,
message
:
'订单时间 值不能为空'
,
trigger
:
'blur'
},
],
ibizcustomername
:
[
{
required
:
this
.
detailsModel
.
ibizcustomername
.
required
,
type
:
'string'
,
message
:
'客户名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
ibizcustomername
.
required
,
type
:
'string'
,
message
:
'客户名称 值不能为空'
,
trigger
:
'blur'
},
],
ordertype
:
[
{
required
:
this
.
detailsModel
.
ordertype
.
required
,
type
:
'string'
,
message
:
'订单类型 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
ordertype
.
required
,
type
:
'string'
,
message
:
'订单类型 值不能为空'
,
trigger
:
'blur'
},
],
orderstate
:
[
{
required
:
this
.
detailsModel
.
orderstate
.
required
,
type
:
'string'
,
message
:
'订单状态 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
orderstate
.
required
,
type
:
'string'
,
message
:
'订单状态 值不能为空'
,
trigger
:
'blur'
},
],
memo
:
[
{
required
:
this
.
detailsModel
.
memo
.
required
,
type
:
'string'
,
message
:
'备注 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
memo
.
required
,
type
:
'string'
,
message
:
'备注 值不能为空'
,
trigger
:
'blur'
},
],
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof DATA_0005Base
*/
public
deRules
(){
return
{
}
}
/**
* 校验属性值规则
*
* @public
* @param {{ name: string }} { name }
* @memberof DATA_0005Base
*/
public
verifyDeRules
(
name
:
string
,
rule
:
any
=
this
.
deRules
(),
op
:
string
=
"AND"
)
:{
isPast
:
boolean
,
infoMessage
:
string
}{
let
falg
:
any
=
{
infoMessage
:
""
};
if
(
!
rule
[
name
]){
return
falg
;
}
let
opValue
=
op
==
'AND'
?
true
:
false
;
let
startOp
=
(
val
:
boolean
)
=>
{
if
(
falg
.
isPast
){
if
(
opValue
){
falg
.
isPast
=
falg
.
isPast
&&
val
;
}
else
{
falg
.
isPast
=
falg
.
isPast
||
val
;
}
}
else
{
falg
.
isPast
=
val
;
}
}
for
(
let
i
=
0
;
i
<
rule
[
name
].
length
;
i
++
){
let
item
:
any
=
rule
[
name
][
i
];
let
dataValue
=
item
.
deName
?
this
.
data
[
this
.
service
.
getItemNameByDeName
(
item
.
deName
)]:
""
;
item
.
ruleInfo
=
item
.
ruleInfo
?
item
.
ruleInfo
:
this
.
$t
(
'app.formpage.valuecheckex'
);
if
((
dataValue
===
null
||
dataValue
===
undefined
||
dataValue
===
""
)
&&
(
item
.
type
!=
'GROUP'
)){
startOp
(
true
);
return
falg
;
}
try
{
// 常规规则
if
(
item
.
type
==
'SIMPLE'
){
startOp
(
!
this
.
$verify
.
checkFieldSimpleRule
(
dataValue
,
item
.
condOP
,
item
.
paramValue
,
item
.
ruleInfo
,
item
.
paramType
,
this
.
data
,
item
.
isKeyCond
));
falg
.
infoMessage
=
item
.
ruleInfo
;
if
(
!
falg
.
isPast
)
return
falg
;
}
// 数值范围
if
(
item
.
type
==
'VALUERANGE2'
){
startOp
(
!
this
.
$verify
.
checkFieldValueRangeRule
(
dataValue
,
item
.
minValue
,
item
.
isIncludeMinValue
,
item
.
maxValue
,
item
.
isIncludeMaxValue
,
item
.
ruleInfo
,
item
.
isKeyCond
));
falg
.
infoMessage
=
item
.
ruleInfo
;
if
(
!
falg
.
isPast
)
return
falg
;
}
// 正则式
if
(
item
.
type
==
"REGEX"
)
{
startOp
(
!
this
.
$verify
.
checkFieldRegExRule
(
dataValue
,
item
.
regExCode
,
item
.
ruleInfo
,
item
.
isKeyCond
));
falg
.
infoMessage
=
item
.
ruleInfo
;
if
(
!
falg
.
isPast
)
return
falg
;
}
// 长度
if
(
item
.
type
==
"STRINGLENGTH"
)
{
startOp
(
!
this
.
$verify
.
checkFieldStringLengthRule
(
dataValue
,
item
.
minValue
,
item
.
isIncludeMinValue
,
item
.
maxValue
,
item
.
isIncludeMaxValue
,
item
.
ruleInfo
,
item
.
isKeyCond
));
falg
.
infoMessage
=
item
.
ruleInfo
;
if
(
!
falg
.
isPast
)
return
falg
;
}
// 系统值规则
if
(
item
.
type
==
"SYSVALUERULE"
)
{
startOp
(
!
this
.
$verify
.
checkFieldSysValueRule
(
dataValue
,
item
.
sysRule
.
regExCode
,
item
.
ruleInfo
,
item
.
isKeyCond
));
falg
.
infoMessage
=
item
.
ruleInfo
;
if
(
!
falg
.
isPast
)
return
falg
;
}
}
catch
(
error
)
{
falg
.
infoMessage
=
item
.
ruleInfo
;
startOp
(
false
);
if
(
!
falg
.
isPast
)
return
falg
;
}
// 分组
if
(
item
.
type
==
'GROUP'
){
falg
=
this
.
verifyDeRules
(
'group'
,
item
,
item
.
condOP
?
item
.
condOP
:
"AND"
);
if
(
item
.
isNotMode
){
falg
.
isPast
=
!
falg
.
isPast
;
}
if
(
!
falg
.
isPast
)
return
falg
;
}
}
if
(
!
falg
.
hasOwnProperty
(
"isPast"
)){
falg
.
isPast
=
true
;
}
if
(
!
this
.
data
[
name
]
&&
this
.
data
[
name
]
!=
0
){
falg
.
isPast
=
true
;
}
return
falg
;
}
/**
* 详情模型集合
*
* @type {*}
* @memberof DATA_0005Base
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'订单基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.ibizorder.data_0005_form'
,
extractMode
:
'ITEM'
,
details
:
[]
},
isManageContainer
:
false
,
showMoreModeItems
:
[]
})
,
druipart1
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
})
,
grouppanel1
:
new
FormGroupPanelModel
({
caption
:
'订单明细'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.ibizorder.data_0005_form'
,
extractMode
:
'ITEM'
,
details
:
[]
},
isManageContainer
:
false
,
showMoreModeItems
:
[]
})
,
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
})
,
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
srforikey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srforikey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
srfkey
:
new
FormItemModel
({
caption
:
'订单标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
srfmajortext
:
new
FormItemModel
({
caption
:
'订单名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
srfdeid
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfdeid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
orderuid
:
new
FormItemModel
({
caption
:
'订单编号'
,
detailType
:
'FORMITEM'
,
name
:
'orderuid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
true
,
disabled
:
false
,
enableCond
:
3
})
,
ibizordername
:
new
FormItemModel
({
caption
:
'订单名称'
,
detailType
:
'FORMITEM'
,
name
:
'ibizordername'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
true
,
disabled
:
false
,
enableCond
:
3
})
,
ordertime
:
new
FormItemModel
({
caption
:
'订单时间'
,
detailType
:
'FORMITEM'
,
name
:
'ordertime'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
ibizcustomername
:
new
FormItemModel
({
caption
:
'客户名称'
,
detailType
:
'FORMITEM'
,
name
:
'ibizcustomername'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
ordertype
:
new
FormItemModel
({
caption
:
'订单类型'
,
detailType
:
'FORMITEM'
,
name
:
'ordertype'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
orderstate
:
new
FormItemModel
({
caption
:
'订单状态'
,
detailType
:
'FORMITEM'
,
name
:
'orderstate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
0
})
,
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
ibizcustomerid
:
new
FormItemModel
({
caption
:
'客户标识'
,
detailType
:
'FORMITEM'
,
name
:
'ibizcustomerid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
ibizorderid
:
new
FormItemModel
({
caption
:
'订单标识'
,
detailType
:
'FORMITEM'
,
name
:
'ibizorderid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
};
/**
* 监控表单属性 srfupdatedate 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srfupdatedate'
)
onSrfupdatedateChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srfupdatedate'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 srforikey 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srforikey'
)
onSrforikeyChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srforikey'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 srfkey 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srfkey'
)
onSrfkeyChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srfkey'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 srfmajortext 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srfmajortext'
)
onSrfmajortextChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srfmajortext'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 srftempmode 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srftempmode'
)
onSrftempmodeChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srftempmode'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 srfuf 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srfuf'
)
onSrfufChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srfuf'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 srfdeid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srfdeid'
)
onSrfdeidChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srfdeid'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 srfsourcekey 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.srfsourcekey'
)
onSrfsourcekeyChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'srfsourcekey'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 orderuid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.orderuid'
)
onOrderuidChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'orderuid'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizordername 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.ibizordername'
)
onIbizordernameChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ibizordername'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ordertime 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.ordertime'
)
onOrdertimeChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ordertime'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizcustomername 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.ibizcustomername'
)
onIbizcustomernameChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ibizcustomername'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ordertype 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.ordertype'
)
onOrdertypeChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ordertype'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 orderstate 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.orderstate'
)
onOrderstateChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'orderstate'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 memo 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.memo'
)
onMemoChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'memo'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizcustomerid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.ibizcustomerid'
)
onIbizcustomeridChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ibizcustomerid'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizorderid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DATA_0005Base
*/
@
Watch
(
'data.ibizorderid'
)
onIbizorderidChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ibizorderid'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 显示更多模式切换操作
*
* @type {string}
* @memberof DATA_0005Base
*/
public
manageContainerClick
(
name
:
string
){
let
model
=
this
.
detailsModel
[
name
];
if
(
model
.
isManageContainer
){
model
.
setManageContainerStatus
(
!
model
.
manageContainerStatus
);
model
.
showMoreModeItems
.
forEach
((
item
:
any
)
=>
{
if
(
this
.
detailsModel
[
item
].
isControlledContent
){
this
.
detailsModel
[
item
].
setVisible
(
model
.
manageContainerStatus
?
this
.
detailsModel
[
item
].
oldVisible
:
false
);
}
});
}
}
/**
* 重置表单项值
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof DATA_0005Base
*/
public
resetFormData
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
}
/**
* 置空对象
*
* @param {any[]} args
* @memberof DATA_0005Base
*/
public
ResetData
(
_datas
:
any
){
if
(
Object
.
keys
(
_datas
).
length
>
0
){
Object
.
keys
(
_datas
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
data
.
hasOwnProperty
(
name
))
{
this
.
data
[
name
]
=
null
;
}
});
}
}
/**
* 表单逻辑
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof DATA_0005Base
*/
public
async
formLogic
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}){
}
/**
* 表单项检查逻辑
*
* @public
* @param name 属性名
* @memberof DATA_0005Base
*/
public
checkItem
(
name
:
string
):
Promise
<
any
>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
validator
=
new
schema
({[
name
]:
this
.
rules
()[
name
]});
validator
.
validate
({[
name
]:
this
.
data
[
name
]}).
then
(()
=>
{
resolve
(
true
);
})
.
catch
(()
=>
{
resolve
(
false
);
});;
})
}
/**
* 表单值变化
*
* @public
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @returns {void}
* @memberof DATA_0005Base
*/
public
formDataChange
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
if
(
this
.
ignorefieldvaluechange
)
{
return
;
}
this
.
resetFormData
({
name
:
name
,
newVal
:
newVal
,
oldVal
:
oldVal
});
this
.
formLogic
({
name
:
name
,
newVal
:
newVal
,
oldVal
:
oldVal
});
this
.
dataChang
.
next
(
JSON
.
stringify
(
this
.
data
));
}
/**
* 表单加载完成
*
* @public
* @param {*} [data={}]
* @param {string} [action]
* @memberof DATA_0005Base
*/
public
onFormLoad
(
data
:
any
=
{},
action
:
string
):
void
{
if
(
Object
.
is
(
action
,
"save"
)
||
Object
.
is
(
action
,
"autoSave"
)
||
Object
.
is
(
action
,
"submit"
))
// 更新context的实体主键
if
(
data
.
ibizorder
){
Object
.
assign
(
this
.
context
,{
ibizorder
:
data
.
ibizorder
})
}
this
.
setFormEnableCond
(
data
);
this
.
computeButtonState
(
data
);
this
.
fillForm
(
data
,
action
);
this
.
oldData
=
{};
Object
.
assign
(
this
.
oldData
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
)));
this
.
$store
.
commit
(
'viewaction/setViewDataChange'
,
{
viewtag
:
this
.
viewtag
,
viewdatachange
:
false
});
this
.
formLogic
({
name
:
''
,
newVal
:
null
,
oldVal
:
null
});
}
/**
* 值填充
*
* @param {*} [_datas={}]
* @param {string} [action]
* @memberof DATA_0005Base
*/
public
fillForm
(
_datas
:
any
=
{},
action
:
string
):
void
{
this
.
mixinData
=
_datas
;
this
.
ignorefieldvaluechange
=
true
;
Object
.
keys
(
_datas
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
data
.
hasOwnProperty
(
name
))
{
this
.
data
[
name
]
=
_datas
[
name
];
}
});
if
(
Object
.
is
(
action
,
'loadDraft'
)){
this
.
createDefault
();
}
if
(
Object
.
is
(
action
,
'load'
)){
this
.
updateDefault
();
}
this
.
$nextTick
(
function
()
{
this
.
ignorefieldvaluechange
=
false
;
})
}
/**
* 设置表单项是否启用
*
* @public
* @param {*} data
* @memberof DATA_0005Base
*/
public
setFormEnableCond
(
data
:
any
):
void
{
Object
.
values
(
this
.
detailsModel
).
forEach
((
detail
:
any
)
=>
{
if
(
!
Object
.
is
(
detail
.
detailType
,
'FORMITEM'
))
{
return
;
}
const
formItem
:
FormItemModel
=
detail
;
formItem
.
setEnableCond
(
data
.
srfuf
);
});
}
/**
* 重置草稿表单状态
*
* @public
* @memberof DATA_0005Base
*/
public
resetDraftFormStates
():
void
{
const
form
:
any
=
this
.
$refs
.
form
;
if
(
form
)
{
form
.
resetFields
();
}
}
/**
* 重置校验结果
*
* @memberof DATA_0005Base
*/
public
resetValidates
():
void
{
Object
.
values
(
this
.
detailsModel
).
forEach
((
detail
:
any
)
=>
{
if
(
!
Object
.
is
(
detail
.
detailType
,
'FORMITEM'
))
{
return
;
}
const
formItem
:
FormItemModel
=
detail
;
formItem
.
setError
(
''
);
});
}
/**
* 填充校验结果 (后台)
*
* @param {any[]} fieldErrors
* @memberof DATA_0005Base
*/
public
fillValidates
(
fieldErrors
:
any
[]):
void
{
fieldErrors
.
forEach
((
error
:
any
)
=>
{
const
formItem
:
FormItemModel
=
this
.
detailsModel
[
error
.
field
];
if
(
!
formItem
)
{
return
;
}
this
.
$nextTick
(()
=>
{
formItem
.
setError
(
error
.
message
);
});
});
}
/**
* 表单校验状态
*
* @returns {boolean}
* @memberof DATA_0005Base
*/
public
formValidateStatus
():
boolean
{
const
form
:
any
=
this
.
$refs
.
form
;
let
validatestate
:
boolean
=
true
;
form
.
validate
((
valid
:
boolean
)
=>
{
validatestate
=
valid
?
true
:
false
;
});
return
validatestate
}
/**
* 获取全部值
*
* @returns {*}
* @memberof DATA_0005Base
*/
public
getValues
():
any
{
return
this
.
data
;
}
/**
* 表单项值变更
*
* @param {{ name: string, value: any }} $event
* @returns {void}
* @memberof DATA_0005Base
*/
public
onFormItemValueChange
(
$event
:
{
name
:
string
,
value
:
any
}):
void
{
if
(
!
$event
)
{
return
;
}
if
(
!
$event
.
name
||
Object
.
is
(
$event
.
name
,
''
)
||
!
this
.
data
.
hasOwnProperty
(
$event
.
name
))
{
return
;
}
this
.
data
[
$event
.
name
]
=
$event
.
value
;
}
/**
* 编辑器行为触发
*
* @param {*} arg
* @returns {void}
* @memberof DATA_0005Base
*/
public
onFormItemActionClick
(
arg
:
any
){
if
(
arg
&&
(
arg
instanceof
Function
))
arg
();
}
/**
* 设置数据项值
*
* @param {string} name
* @param {*} value
* @returns {void}
* @memberof DATA_0005Base
*/
public
setDataItemValue
(
name
:
string
,
value
:
any
):
void
{
if
(
!
name
||
Object
.
is
(
name
,
''
)
||
!
this
.
data
.
hasOwnProperty
(
name
))
{
return
;
}
if
(
Object
.
is
(
this
.
data
[
name
],
value
))
{
return
;
}
this
.
data
[
name
]
=
value
;
}
/**
* 计算表单按钮权限状态
*
* @param {*} [data] 传入数据
* @memberof DATA_0005Base
*/
public
computeButtonState
(
data
:
any
){
let
targetData
:
any
=
this
.
transformData
(
data
);
if
(
this
.
detailsModel
&&
Object
.
keys
(
this
.
detailsModel
).
length
>
0
){
Object
.
keys
(
this
.
detailsModel
).
forEach
((
name
:
any
)
=>
{
if
(
this
.
detailsModel
[
name
]
&&
this
.
detailsModel
[
name
].
uiaction
&&
this
.
detailsModel
[
name
].
uiaction
.
dataaccaction
&&
Object
.
is
(
this
.
detailsModel
[
name
].
detailType
,
"BUTTON"
)){
this
.
detailsModel
[
name
].
isPower
=
true
;
let
tempUIAction
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
detailsModel
[
name
].
uiaction
));
let
result
:
any
[]
=
ViewTool
.
calcActionItemAuthState
(
targetData
,[
tempUIAction
],
this
.
appUIService
);
this
.
detailsModel
[
name
].
visible
=
tempUIAction
.
visabled
;
this
.
detailsModel
[
name
].
disabled
=
tempUIAction
.
disabled
;
this
.
detailsModel
[
name
].
isPower
=
result
[
0
]
===
1
?
true
:
false
;
}
})
}
}
/**
* 分组界面行为事件
*
* @param {*} $event
* @memberof DATA_0005Base
*/
public
groupUIActionClick
(
$event
:
any
):
void
{
if
(
!
$event
)
{
return
;
}
const
item
:
any
=
$event
.
item
;
}
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof DATA_0005Base
*/
public
created
():
void
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof DATA_0005Base
*/
public
afterCreated
(){
if
(
this
.
isautoload
){
this
.
autoLoad
({
srfkey
:
this
.
context
.
ibizorder
});
}
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
if
(
Object
.
is
(
'autoload'
,
action
))
{
this
.
autoLoad
(
data
);
}
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
load
(
data
);
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
this
.
loadDraft
(
data
);
}
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
}
if
(
Object
.
is
(
'remove'
,
action
))
{
this
.
remove
(
data
);
}
if
(
Object
.
is
(
'saveandexit'
,
action
))
{
this
.
saveAndExit
(
data
);
}
if
(
Object
.
is
(
'saveandnew'
,
action
))
{
this
.
saveAndNew
(
data
);
}
if
(
Object
.
is
(
'removeandexit'
,
action
))
{
this
.
removeAndExit
(
data
);
}
if
(
Object
.
is
(
'refresh'
,
action
))
{
this
.
refresh
(
data
);
}
if
(
Object
.
is
(
'panelaction'
,
action
))
{
this
.
panelAction
(
data
.
action
,
data
.
emitAction
,
data
.
data
);
}
});
}
this
.
dataChang
.
pipe
(
debounceTime
(
300
),
distinctUntilChanged
()
).
subscribe
((
data
:
any
)
=>
{
if
(
this
.
autosave
)
{
this
.
autoSave
();
}
const
state
=
!
Object
.
is
(
JSON
.
stringify
(
this
.
oldData
),
JSON
.
stringify
(
this
.
data
))
?
true
:
false
;
this
.
$store
.
commit
(
'viewaction/setViewDataChange'
,
{
viewtag
:
this
.
viewtag
,
viewdatachange
:
state
});
});
}
/**
* vue 生命周期
*
* @memberof DATA_0005Base
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof DATA_0005Base
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
if
(
this
.
dataChangEvent
)
{
this
.
dataChangEvent
.
unsubscribe
();
}
}
/**
*打印
*@memberof @memberof DATA_0005Base
*/
public
print
(){
let
_this
:
any
=
this
;
_this
.
$print
({
id
:
'ibizorder_data_0005'
,
popTitle
:
'临时模式'
});
}
/**
* 部件刷新
*
* @param {any} args
* @memberof DATA_0005Base
*/
public
refresh
(
args
?:
any
):
void
{
let
arg
:
any
=
{};
Object
.
assign
(
arg
,
args
?
args
[
0
]:{});
if
(
this
.
data
.
srfkey
&&
!
Object
.
is
(
this
.
data
.
srfkey
,
''
))
{
Object
.
assign
(
arg
,
{
srfkey
:
this
.
data
.
srfkey
});
this
.
load
(
arg
);
return
;
}
if
(
this
.
data
.
srfkeys
&&
!
Object
.
is
(
this
.
data
.
srfkeys
,
''
))
{
Object
.
assign
(
arg
,
{
srfkey
:
this
.
data
.
srfkeys
});
this
.
load
(
arg
);
return
;
}
}
/**
* 自动加载
*
* @param {*} [arg={}]
* @returns {void}
* @memberof DATA_0005Base
*/
public
autoLoad
(
arg
:
any
=
{}):
void
{
if
(
arg
.
srfkey
&&
!
Object
.
is
(
arg
.
srfkey
,
''
))
{
Object
.
assign
(
arg
,
{
srfkey
:
arg
.
srfkey
});
this
.
load
(
arg
);
return
;
}
if
(
arg
.
srfkeys
&&
!
Object
.
is
(
arg
.
srfkeys
,
''
))
{
Object
.
assign
(
arg
,
{
srfkey
:
arg
.
srfkeys
});
this
.
load
(
arg
);
return
;
}
this
.
loadDraft
(
arg
);
}
/**
* 加载
*
* @public
* @param {*} [opt={}]
* @memberof DATA_0005Base
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderF17EditView'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
let
viewparamResult
:
any
=
Object
.
assign
(
arg
,
this
.
viewparams
);
const
get
:
Promise
<
any
>
=
this
.
service
.
get
(
this
.
loadAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),{
viewparams
:
viewparamResult
},
this
.
showBusyIndicator
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
this
.
onFormLoad
(
data
,
'load'
);
this
.
$emit
(
'load'
,
data
);
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
data
});
});
}
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
return
;
}
});
}
/**
* 加载草稿
*
* @param {*} [opt={}]
* @memberof DATA_0005Base
*/
public
loadDraft
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderF17EditView'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
let
viewparamResult
:
any
=
Object
.
assign
(
arg
,
this
.
viewparams
);
let
post
:
Promise
<
any
>
=
this
.
service
.
loadDraft
(
this
.
loaddraftAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),{
viewparams
:
viewparamResult
},
this
.
showBusyIndicator
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
if
(
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
const
data
=
response
.
data
;
this
.
resetDraftFormStates
();
this
.
onFormLoad
(
data
,
'loadDraft'
);
data
.
ibizorder
=
null
;
this
.
$emit
(
'load'
,
data
);
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
data
});
});
setTimeout
(()
=>
{
const
form
:
any
=
this
.
$refs
.
form
;
if
(
form
)
{
form
.
fields
.
forEach
((
field
:
any
)
=>
{
field
.
validateMessage
=
""
;
field
.
validateState
=
""
;
field
.
validateStatus
=
false
;
});
}
});
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
return
;
}
});
}
/**
* 自动保存
*
* @param {*} [opt={}]
* @memberof DATA_0005Base
*/
public
autoSave
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
formValidateStatus
())
{
return
;
}
const
arg
:
any
=
{
...
opt
};
const
data
=
this
.
getValues
();
Object
.
assign
(
arg
,
data
);
Object
.
assign
(
arg
,{
srfmajortext
:
data
[
this
.
majorMessageField
]});
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderF17EditView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
add
(
action
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
if
(
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
const
data
=
response
.
data
;
this
.
onFormLoad
(
data
,
'autoSave'
);
this
.
$emit
(
'save'
,
data
);
AppCenterService
.
notifyMessage
({
name
:
"IBIZOrder"
,
action
:
'appRefresh'
,
data
:
data
});
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'save'
,
data
:
data
});
});
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
if
(
response
.
data
.
errorKey
)
{
if
(
Object
.
is
(
response
.
data
.
errorKey
,
"versionCheck"
))
{
this
.
$Modal
.
confirm
({
title
:
(
this
.
$t
(
'app.formpage.saveerror'
)
as
string
),
content
:
(
this
.
$t
(
'app.formpage.savecontent'
)
as
string
),
onOk
:
()
=>
{
this
.
refresh
([]);
},
onCancel
:
()
=>
{
}
});
}
else
if
(
Object
.
is
(
response
.
data
.
errorKey
,
'DupCheck'
))
{
let
errorProp
:
string
=
response
.
data
.
message
.
match
(
/
\[[
a-zA-Z
]
*
\]
/
)[
0
];
let
name
:
string
=
this
.
service
.
getNameByProp
(
errorProp
.
substr
(
1
,
errorProp
.
length
-
2
));
if
(
name
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.createFailed'
)
as
string
),
desc
:
this
.
detailsModel
[
name
].
caption
+
" : "
+
arg
[
name
]
+
(
this
.
$t
(
'app.commonWords.isExist'
)
as
string
)
+
'!'
,
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.createFailed'
)
as
string
),
desc
:
response
.
data
.
message
?
response
.
data
.
message
:(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
),
})
}
}
else
if
(
Object
.
is
(
response
.
data
.
errorKey
,
'DuplicateKeyException'
)){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.createFailed'
)
as
string
),
desc
:
this
.
detailsModel
[
this
.
formKeyItemName
].
caption
+
" : "
+
arg
[
this
.
formKeyItemName
]
+
(
this
.
$t
(
'app.commonWords.isExist'
)
as
string
)
+
'!'
,
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
?
response
.
data
.
message
:(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
}
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
?
response
.
data
.
message
:(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
}
return
;
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
}
});
}
/**
* 保存
*
* @param {*} [opt={}]
* @param {boolean} [showResultInfo]
* @param {boolean} [ifStateNext] formState是否下发通知
* @returns {Promise<any>}
* @memberof DATA_0005Base
*/
public
async
save
(
opt
:
any
=
{},
showResultInfo
?:
boolean
,
ifStateNext
:
boolean
=
true
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
showResultInfo
=
showResultInfo
===
undefined
?
true
:
false
;
if
(
!
this
.
formValidateStatus
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
.
error
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.formpage.valuecheckex'
)
as
string
)
});
}
return
;
}
const
arg
:
any
=
{
...
opt
};
const
data
=
this
.
getValues
();
Object
.
assign
(
arg
,
this
.
context
);
Object
.
assign
(
arg
,
data
);
Object
.
assign
(
arg
,{
srfmajortext
:
data
[
this
.
majorMessageField
]});
if
(
ifStateNext
)
{
this
.
drcounter
=
1
;
if
(
this
.
drcounter
!==
0
){
this
.
drsaveopt
=
opt
;
this
.
formState
.
next
({
type
:
'beforesave'
,
data
:
arg
});
//先通知关系界面保存
this
.
saveState
=
resolve
;
return
;
}
}
if
(
this
.
viewparams
&&
this
.
viewparams
.
copymode
){
data
.
srfuf
=
'0'
;
}
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderF17EditView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
this
.
service
.
update
(
action
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
):
this
.
service
.
add
(
action
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
if
(
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
this
.
viewparams
.
copymode
=
false
;
const
data
=
response
.
data
;
this
.
onFormLoad
(
data
,
'save'
);
this
.
$emit
(
'save'
,
data
);
AppCenterService
.
notifyMessage
({
name
:
"IBIZOrder"
,
action
:
'appRefresh'
,
data
:
data
});
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'save'
,
data
:
data
});
});
if
(
showResultInfo
)
{
this
.
$Notice
.
success
({
title
:
''
,
desc
:
(
data
.
srfmajortext
?
data
.
srfmajortext
:
''
)
+
' '
+
(
this
.
$t
(
'app.formpage.savesuccess'
)
as
string
)
});
}
resolve
(
response
);
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
if
(
response
.
data
.
errorKey
)
{
if
(
Object
.
is
(
response
.
data
.
errorKey
,
"versionCheck"
))
{
this
.
$Modal
.
confirm
({
title
:
(
this
.
$t
(
'app.formpage.saveerror'
)
as
string
),
content
:
(
this
.
$t
(
'app.formpage.savecontent'
)
as
string
),
onOk
:
()
=>
{
this
.
refresh
([]);
},
onCancel
:
()
=>
{
}
});
}
else
if
(
Object
.
is
(
response
.
data
.
errorKey
,
'DupCheck'
))
{
let
errorProp
:
string
=
response
.
data
.
message
.
match
(
/
\[[
a-zA-Z
]
*
\]
/
)[
0
];
let
name
:
string
=
this
.
service
.
getNameByProp
(
errorProp
.
substr
(
1
,
errorProp
.
length
-
2
));
if
(
name
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.createFailed'
)
as
string
),
desc
:
this
.
detailsModel
[
name
].
caption
+
" : "
+
arg
[
name
]
+
(
this
.
$t
(
'app.commonWords.isExist'
)
as
string
)
+
'!'
,
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.createFailed'
)
as
string
),
desc
:
response
.
data
.
message
,
})
}
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
reject
(
response
);
}
return
;
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
reject
(
response
);
}
reject
(
response
);
});
})
}
/**
* 删除
*
* @public
* @param {*} [opt={}]
* @memberof DATA_0005Base
*/
public
remove
(
opt
:
Array
<
any
>
=
[],
showResultInfo
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderF17EditView'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
opt
[
0
];
const
_this
:
any
=
this
;
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
this
.
service
.
delete
(
_this
.
removeAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
showResultInfo
).
then
((
response
:
any
)
=>
{
if
(
response
)
{
const
data
=
response
.
data
;
this
.
$emit
(
'remove'
,
data
);
this
.
formState
.
next
({
type
:
'remove'
,
data
:
data
});
this
.
data
.
ismodify
=
false
;
this
.
$Notice
.
success
({
title
:
''
,
desc
:
(
data
.
srfmajortext
?
data
.
srfmajortext
:
''
)
+
' '
+
(
this
.
$t
(
'app.formpage.deletesuccess'
)
as
string
)
});
AppCenterService
.
notifyMessage
({
name
:
"IBIZOrder"
,
action
:
'appRefresh'
,
data
:
data
});
resolve
(
response
);
}
}).
catch
((
error
:
any
)
=>
{
const
{
data
:
_data
}
=
error
;
this
.
$Notice
.
error
({
title
:
_data
.
title
,
desc
:
_data
.
message
});
reject
(
error
);
});
});
}
/**
* 工作流启动
*
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof DATA_0005Base
*/
public
async
wfstart
(
data
:
any
,
localdata
?:
any
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_this
:
any
=
this
;
const
formData
:
any
=
this
.
getData
();
const
copyData
:
any
=
Util
.
deepCopy
(
formData
);
const
post
:
Promise
<
any
>
=
Object
.
is
(
formData
.
srfuf
,
'1'
)?
this
.
service
.
update
(
this
.
updateAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
formData
,
this
.
showBusyIndicator
,
true
):
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
formData
,
this
.
showBusyIndicator
,
true
);
post
.
then
((
response
:
any
)
=>
{
const
responseData
:
any
=
response
.
data
;
let
tempResponseData
:
any
=
Util
.
deepCopy
(
response
);
this
.
service
.
handleResponse
(
'save'
,
tempResponseData
);
const
arg
:
any
=
tempResponseData
.
data
;
// 保存完成UI处理
this
.
onFormLoad
(
arg
,
'save'
);
this
.
$emit
(
'save'
,
arg
);
AppCenterService
.
notifyMessage
({
name
:
"IBIZOrder"
,
action
:
'appRefresh'
,
data
:
data
});
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'save'
,
data
:
arg
});
});
// 准备工作流数据,填充未存库数据
Object
.
assign
(
arg
,
copyData
);
// 准备提交参数
if
(
this
.
viewparams
){
let
copyViewParams
:
any
=
Util
.
deepCopy
(
this
.
viewparams
);
if
(
copyViewParams
.
w
){
delete
copyViewParams
.
w
;
}
Object
.
assign
(
responseData
,
copyViewParams
);
}
Object
.
assign
(
arg
,{
viewparams
:
responseData
});
// 强制补充srfwfmemo
if
(
this
.
srfwfmemo
){
Object
.
assign
(
arg
,{
srfwfmemo
:
this
.
srfwfmemo
});
}
const
result
:
Promise
<
any
>
=
this
.
service
.
wfstart
(
_this
.
WFStartAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
,
localdata
);
result
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
if
(
response
.
data
){
this
.
$Notice
.
error
({
title
:
''
,
desc
:
(
this
.
$t
(
'app.formpage.workflow.starterror'
)
as
string
)
+
', '
+
response
.
data
.
message
});
}
return
;
}
this
.
$Notice
.
info
({
title
:
''
,
desc
:
(
this
.
$t
(
'app.formpage.workflow.startsuccess'
)
as
string
)
});
resolve
(
response
);
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
reject
(
response
);
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
reject
(
response
);
return
;
}
reject
(
response
);
});
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
reject
(
response
);
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
reject
(
response
);
return
;
}
reject
(
response
);
})
});
}
/**
* 工作流提交
*
* @param {*} [data={}]
* @param {*} [localdata={}]
* @returns {Promise<any>}
* @memberof DATA_0005Base
*/
public
async
wfsubmit
(
data
:
any
,
localdata
?:
any
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_this
:
any
=
this
;
const
arg
:
any
=
data
[
0
];
const
copyData
:
any
=
Util
.
deepCopy
(
arg
);
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
if
(
!
arg
.
ibizorder
||
Object
.
is
(
arg
.
ibizorder
,
''
))
{
return
;
}
const
post
:
Promise
<
any
>
=
Object
.
is
(
arg
.
srfuf
,
'1'
)?
this
.
service
.
update
(
this
.
updateAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
,
true
):
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
,
true
);
post
.
then
((
response
:
any
)
=>
{
const
responseData
:
any
=
response
.
data
;
let
tempResponseData
:
any
=
Util
.
deepCopy
(
response
);
this
.
service
.
handleResponse
(
'save'
,
tempResponseData
);
const
arg
:
any
=
tempResponseData
.
data
;
// 保存完成UI处理
this
.
onFormLoad
(
arg
,
'save'
);
this
.
$emit
(
'save'
,
arg
);
AppCenterService
.
notifyMessage
({
name
:
"IBIZOrder"
,
action
:
'appRefresh'
,
data
:
data
});
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'save'
,
data
:
arg
});
});
// 准备工作流数据,填充未存库数据
Object
.
assign
(
arg
,
copyData
);
// 准备提交参数
if
(
this
.
viewparams
){
Object
.
assign
(
responseData
,
this
.
viewparams
);
}
Object
.
assign
(
arg
,{
viewparams
:
responseData
});
// 强制补充srfwfmemo
if
(
this
.
srfwfmemo
){
Object
.
assign
(
arg
,{
srfwfmemo
:
this
.
srfwfmemo
});
}
const
result
:
Promise
<
any
>
=
this
.
service
.
wfsubmit
(
_this
.
WFSubmitAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
this
.
showBusyIndicator
,
localdata
);
result
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
if
(
response
.
data
){
this
.
$Notice
.
error
({
title
:
''
,
desc
:
(
this
.
$t
(
'app.formpage.workflow.submiterror'
)
as
string
)
+
', '
+
response
.
data
.
message
});
}
return
;
}
this
.
onFormLoad
(
arg
,
'submit'
);
this
.
$store
.
dispatch
(
'viewaction/datasaved'
,
{
viewtag
:
this
.
viewtag
});
this
.
$Notice
.
info
({
title
:
''
,
desc
:
(
this
.
$t
(
'app.formpage.workflow.submitsuccess'
)
as
string
)
});
resolve
(
response
);
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
reject
(
response
);
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
reject
(
response
);
return
;
}
reject
(
response
);
});
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
reject
(
response
);
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
reject
(
response
);
return
;
}
reject
(
response
);
})
})
}
/**
* 面板行为
*
* @param {string} [action] 调用的实体行为
* @param {string} [emitAction] 抛出行为
* @param {*} [data={}] 传入数据
* @param {boolean} [showloading] 是否显示加载状态
*
* @memberof DATA_0005Base
*/
public
panelAction
(
action
:
string
,
emitAction
:
string
,
data
:
any
=
{},
showloading
?:
boolean
):
void
{
if
(
!
action
||
(
action
&&
Object
.
is
(
action
,
''
)))
{
return
;
}
const
arg
:
any
=
{
...
data
};
const
formdata
=
this
.
getValues
();
Object
.
assign
(
arg
,
formdata
);
Object
.
assign
(
arg
,
this
.
viewparams
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
action
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
if
(
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
}
return
;
}
const
data
=
response
.
data
;
this
.
onFormLoad
(
data
,
emitAction
);
this
.
$emit
(
emitAction
,
data
);
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
emitAction
,
data
:
data
});
});
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
return
;
}
});
}
/**
* 表单项更新
*
* @param {string} mode 界面行为名称
* @param {*} [data={}] 请求数据
* @param {string[]} updateDetails 更新项
* @param {boolean} [showloading] 是否显示加载状态
* @returns {void}
* @memberof DATA_0005Base
*/
public
updateFormItems
(
mode
:
string
,
data
:
any
=
{},
updateDetails
:
string
[],
showloading
?:
boolean
):
void
{
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
}
const
arg
:
any
=
{
...
data
};
Object
.
assign
(
arg
,
this
.
viewparams
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.formpage.updateerror'
)
as
string
)
});
return
;
}
const
data
=
response
.
data
;
const
_data
:
any
=
{};
updateDetails
.
forEach
((
name
:
string
)
=>
{
if
(
!
data
.
hasOwnProperty
(
name
))
{
return
;
}
Object
.
assign
(
_data
,
{
[
name
]:
data
[
name
]
});
});
this
.
setFormEnableCond
(
_data
);
this
.
fillForm
(
_data
,
'updateFormItem'
);
this
.
formLogic
({
name
:
''
,
newVal
:
null
,
oldVal
:
null
});
this
.
dataChang
.
next
(
JSON
.
stringify
(
this
.
data
));
AppCenterService
.
notifyMessage
({
name
:
"IBIZOrder"
,
action
:
'appRefresh'
,
data
:
data
});
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'updateformitem'
,
ufimode
:
arg
.
srfufimode
,
data
:
_data
});
});
}).
catch
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
return
;
}
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
return
;
}
});
}
/**
* 回车事件
*
* @param {*} $event
* @memberof DATA_0005Base
*/
public
onEnter
(
$event
:
any
):
void
{
}
/**
* 保存并退出
*
* @param {any[]} args
* @memberof DATA_0005Base
*/
public
saveAndExit
(
data
:
any
[]):
Promise
<
any
>
{
let
_this
=
this
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
arg
:
any
=
{};
if
(
data
&&
data
.
length
>
0
){
Object
.
assign
(
arg
,
data
[
0
]);
}
_this
.
currentAction
=
"saveAndExit"
;
_this
.
save
([
arg
]).
then
((
res
)
=>
{
if
(
res
){
_this
.
closeView
(
res
.
data
);
}
resolve
(
res
);
}).
catch
((
error
)
=>
{
reject
(
error
);
})
})
}
/**
* 保存并新建
*
* @param {any[]} args
* @memberof DATA_0005Base
*/
public
saveAndNew
(
data
:
any
[]):
Promise
<
any
>
{
let
_this
=
this
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
arg
:
any
=
{};
if
(
data
&&
data
.
length
>
0
){
Object
.
assign
(
arg
,
data
[
0
]);
}
_this
.
currentAction
=
"saveAndNew"
;
_this
.
save
([
arg
]).
then
((
res
)
=>
{
_this
.
ResetData
(
res
);
_this
.
loadDraft
({});
}).
catch
((
error
)
=>
{
reject
(
error
);
})
})
}
/**
* 删除并退出
*
* @param {any[]} args
* @memberof DATA_0005Base
*/
public
removeAndExit
(
data
:
any
[]):
Promise
<
any
>
{
let
_this
=
this
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
arg
:
any
=
{};
if
(
data
&&
data
.
length
>
0
){
Object
.
assign
(
arg
,
data
[
0
]);
}
_this
.
remove
([
arg
]).
then
((
res
)
=>
{
if
(
res
){
_this
.
closeView
(
res
.
data
);
}
resolve
(
res
);
}).
catch
((
error
)
=>
{
reject
(
error
);
})
})
}
/**
* 关系界面数据保存完成
*
* @param {any} $event
* @memberof DATA_0005Base
*/
public
drdatasaved
(
$event
:
any
){
let
_this
=
this
;
this
.
drcounter
--
;
if
(
this
.
drcounter
===
0
){
this
.
save
(
this
.
drsaveopt
,
undefined
,
false
).
then
((
res
)
=>
{
this
.
saveState
(
res
);
this
.
drsaveopt
=
{};
if
(
Object
.
is
(
_this
.
currentAction
,
"saveAndNew"
)){
_this
.
ResetData
(
res
);
_this
.
loadDraft
({});
}
else
if
(
Object
.
is
(
_this
.
currentAction
,
"saveAndExit"
)){
if
(
res
){
_this
.
closeView
(
res
.
data
);
}
}
});
}
}
/**
* 新建默认值
* @memberof DATA_0005Base
*/
public
createDefault
(){
if
(
this
.
data
.
hasOwnProperty
(
'ordertime'
))
{
this
.
data
[
'ordertime'
]
=
this
.
$util
.
dateFormat
(
new
Date
());
}
}
/**
* 更新默认值
* @memberof DATA_0005Base
*/
public
updateDefault
(){
}
/**
* 面板数据变化处理事件
* @param {any} item 当前列数据
* @param {any} $event 面板事件数据
*
* @memberof DATA_0005Base
*/
public
onPanelDataChange
(
item
:
any
,
$event
:
any
)
{
Object
.
assign
(
item
,
$event
,
{
rowDataState
:
'update'
});
}
}
</
script
>
<
style
lang=
'less'
>
@import './data-0005-form.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/data-0005-form/data-0005-form-model.ts
0 → 100644
浏览文件 @
df898403
/**
* DATA_0005 部件模型
*
* @export
* @class DATA_0005Model
*/
export
default
class
DATA_0005Model
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DATA_0005Model
*/
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
:
'ibizorderid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'ibizordername'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'orderuid'
,
prop
:
'orderuid'
,
dataType
:
'TEXT'
,
},
{
name
:
'ibizordername'
,
prop
:
'ibizordername'
,
dataType
:
'TEXT'
,
},
{
name
:
'ordertime'
,
prop
:
'ordertime'
,
dataType
:
'DATE'
,
},
{
name
:
'ibizcustomername'
,
prop
:
'ibizcustomername'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'ordertype'
,
prop
:
'ordertype'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'orderstate'
,
prop
:
'orderstate'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'memo'
,
prop
:
'memo'
,
dataType
:
'LONGTEXT_1000'
,
},
{
name
:
'ibizcustomerid'
,
prop
:
'ibizcustomerid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'ibizorderid'
,
prop
:
'ibizorderid'
,
dataType
:
'GUID'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/data-0005-form/data-0005-form-service.ts
0 → 100644
浏览文件 @
df898403
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
DATA_0005Model
from
'./data-0005-form-model'
;
import
IBIZCustomerService
from
'@/service/ibizcustomer/ibizcustomer-service'
;
/**
* DATA_0005 部件服务对象
*
* @export
* @class DATA_0005Service
*/
export
default
class
DATA_0005Service
extends
ControlService
{
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof DATA_0005Service
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof DATA_0005Service
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of DATA_0005Service.
*
* @param {*} [opts={}]
* @memberof DATA_0005Service
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
DATA_0005Model
();
}
/**
* 客户服务对象
*
* @type {IBIZCustomerService}
* @memberof DATA_0005Service
*/
public
ibizcustomerService
:
IBIZCustomerService
=
new
IBIZCustomerService
();
/**
* 远端数据
*
* @type {*}
* @memberof DATA_0005Service
*/
private
remoteCopyData
:
any
=
{};
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof DATA_0005Service
*/
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 DATA_0005Service
*/
@
Errorlog
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
data
.
page
=
data
.
page
?
data
.
page
:
0
;
data
.
size
=
data
.
size
?
data
.
size
:
1000
;
if
(
Object
.
is
(
serviceName
,
'IBIZCustomerService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
ibizcustomerService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'ibizcustomerid'
,
'ibizcustomer'
);
}
return
Promise
.
reject
([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof DATA_0005Service
*/
@
Errorlog
public
wfstart
(
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
.
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 DATA_0005Service
*/
@
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
,
true
).
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]
* @param {boolean} [isWorkflow] 是否在工作流中添加数据
* @returns {Promise<any>}
* @memberof DATA_0005Service
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
isWorkflow
?:
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
)
=>
{
if
(
isWorkflow
){
resolve
(
response
);
}
else
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DATA_0005Service
*/
@
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]
* @param {boolean} [isWorkflow] 是否在工作流中修改数据
* @returns {Promise<any>}
* @memberof DATA_0005Service
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
isWorkflow
?:
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
)
=>
{
if
(
isWorkflow
){
resolve
(
response
);
}
else
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DATA_0005Service
*/
@
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
.
setRemoteCopyData
(
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 DATA_0005Service
*/
@
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
.
ibizorderid
=
PrimaryKey
;
Data
.
ibizorder
=
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
)
=>
{
this
.
setRemoteCopyData
(
response
);
response
.
data
.
ibizorderid
=
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 DATA_0005Service
*/
@
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 DATA_0005Service
*/
public
handleRequestData
(
action
:
string
,
context
:
any
,
data
:
any
=
{},
isMerge
:
boolean
=
false
){
let
mode
:
any
=
this
.
getMode
();
if
(
!
mode
&&
mode
.
getDataItems
instanceof
Function
)
{
return
data
;
}
let
formItemItems
:
any
[]
=
mode
.
getDataItems
();
let
requestData
:
any
=
{};
if
(
isMerge
&&
(
data
&&
data
.
viewparams
)){
Object
.
assign
(
requestData
,
data
.
viewparams
);
}
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
];
}
else
{
if
(
item
.
dataType
&&
Object
.
is
(
item
.
dataType
,
"FORMPART"
)){
Object
.
assign
(
requestData
,
data
[
item
.
name
]);
}
}
}
});
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
if
(
tempContext
&&
tempContext
.
srfsessionid
){
tempContext
.
srfsessionkey
=
tempContext
.
srfsessionid
;
delete
tempContext
.
srfsessionid
;
}
return
{
context
:
tempContext
,
data
:
requestData
};
}
/**
* 通过属性名称获取表单项名称
*
* @param name 实体属性名称
* @memberof DATA_0005Service
*/
public
getItemNameByDeName
(
name
:
string
)
:
string
{
let
itemName
=
name
;
let
mode
:
any
=
this
.
getMode
();
if
(
!
mode
&&
mode
.
getDataItems
instanceof
Function
)
{
return
name
;
}
let
formItemItems
:
any
[]
=
mode
.
getDataItems
();
formItemItems
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
prop
===
name
){
itemName
=
item
.
name
;
}
});
return
itemName
.
trim
();
}
/**
* 重写处理返回数据
*
* @param {string} action
* @param {*} response
* @memberof DATA_0005Service
*/
public
handleResponseData
(
action
:
string
,
data
:
any
=
{},
isCreate
?:
boolean
,
codelistArray
?:
any
){
let
model
:
any
=
this
.
getMode
();
if
(
!
model
&&
model
.
getDataItems
instanceof
Function
)
{
return
data
;
}
let
item
:
any
=
{};
let
dataItems
:
any
[]
=
model
.
getDataItems
();
dataItems
.
forEach
(
dataitem
=>
{
let
val
=
data
.
hasOwnProperty
(
dataitem
.
prop
)
?
data
[
dataitem
.
prop
]
:
null
;
if
(
val
===
null
)
{
val
=
data
.
hasOwnProperty
(
dataitem
.
name
)
?
data
[
dataitem
.
name
]
:
null
;
}
if
((
isCreate
===
undefined
||
isCreate
===
null
)
&&
Object
.
is
(
dataitem
.
dataType
,
'GUID'
)
&&
Object
.
is
(
dataitem
.
name
,
'srfkey'
)
&&
(
val
&&
!
Object
.
is
(
val
,
''
))){
isCreate
=
true
;
}
item
[
dataitem
.
name
]
=
val
;
// 转化代码表
if
(
codelistArray
&&
dataitem
.
codelist
){
if
(
codelistArray
.
get
(
dataitem
.
codelist
.
tag
)
&&
codelistArray
.
get
(
dataitem
.
codelist
.
tag
).
get
(
val
)){
item
[
dataitem
.
name
]
=
codelistArray
.
get
(
dataitem
.
codelist
.
tag
).
get
(
val
);
}
}
});
item
.
srfuf
=
data
.
srfuf
?
data
.
srfuf
:
(
isCreate
?
"0"
:
"1"
);
item
=
Object
.
assign
(
data
,
item
);
return
item
;
}
/**
* 设置远端数据
*
* @param result 远端请求结果
* @memberof DATA_0005Service
*/
public
setRemoteCopyData
(
result
:
any
){
if
(
result
&&
result
.
status
===
200
)
{
this
.
remoteCopyData
=
Util
.
deepCopy
(
result
.
data
);
}
}
/**
* 获取远端数据
*
* @memberof DATA_0005Service
*/
public
getRemoteCopyData
(){
return
this
.
remoteCopyData
;
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/data-0005-form/data-0005-form.less
0 → 100644
浏览文件 @
df898403
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-form {
overflow: auto;
padding: 6px;
> .ivu-row {
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
.app-form {
>.ivu-row:nth-child(2) {
>.ivu-col:nth-child(1) {
>.ivu-row.app-form-group.app-group-hiddden-caption:nth-child(1) {
margin-top: 12px;
}
}
}
}
.app-form{
// 表单行间距
.app-form-item{
margin-bottom: 20px;
}
// 表单按钮margin
.app-form-button{
margin:0 6px;
}
}
// this is less
app_Web/src/widgets/ibizorder/data-0005-form/data-0005-form.vue
0 → 100644
浏览文件 @
df898403
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
DATA_0005Base
from
'./data-0005-form-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
DATA_0005
extends
DATA_0005Base
{
}
</
script
>
\ No newline at end of file
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
df898403
...
...
@@ -88,7 +88,7 @@
<!--输出实体[IBIZAPPEXTENDEDITOR]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappextendeditor-3
5
-4"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappextendeditor-3
7
-4"
>
<createTable
tableName=
"T_IBIZAPPEXTENDEDITOR"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-10
19
-7"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-10
26
-7"
>
<createTable
tableName=
"T_IBIZBOOK"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -344,7 +344,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-
481
-14"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-
502
-14"
>
<createTable
tableName=
"T_IBIZORDER"
>
<column
name=
"TP"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
...
...
@@ -394,7 +394,7 @@
<!--输出实体[IBIZORDERDETAIL]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorderdetail-10
4
-15"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorderdetail-10
6
-15"
>
<createTable
tableName=
"T_IBIZORDERDETAIL"
>
<column
name=
"IBIZORDERDETAILNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
df898403
...
...
@@ -37,13 +37,13 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-
481
-8"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-
502
-8"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDER"
>
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
</changeSet>
<!--输出实体[IBIZORDERDETAIL]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorderdetail-10
4
-9"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorderdetail-10
6
-9"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDERDETAIL"
>
<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID ]]>
</createView>
...
...
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
df898403
...
...
@@ -358,7 +358,7 @@
{
"appid"
:
"Web"
,
"appname"
:
"演示应用"
,
"appmenu"
:[{
"menuid"
:
"MainMenu"
,
"menuname"
:
"MainMenu"
,
"menuitem"
:[{
"id"
:
"menuitem1"
,
"name"
:
"工作台"
},{
"id"
:
"menuitem3"
,
"name"
:
"控件"
,
"items"
:[{
"id"
:
"menuitem6"
,
"name"
:
"默认数据类型"
},{
"id"
:
"menuitem7"
,
"name"
:
"默认编辑器类型"
},{
"id"
:
"menuitem72"
,
"name"
:
"扩展编辑器"
},{
"id"
:
"menuitem151"
,
"name"
:
"编辑器插件示例"
},{
"id"
:
"menuitem65"
,
"name"
:
"微服务组件"
}]},{
"id"
:
"menuitem4"
,
"name"
:
"部件"
,
"items"
:[{
"id"
:
"menuitem112"
,
"name"
:
"应用类"
,
"items"
:[{
"id"
:
"menuitem186"
,
"name"
:
"数据看板"
},{
"id"
:
"menuitem129"
,
"name"
:
"门户部件"
}]},{
"id"
:
"menuitem156"
,
"name"
:
"表单类"
,
"items"
:[{
"id"
:
"menuitem12"
,
"name"
:
"编辑表单"
,
"items"
:[{
"id"
:
"menuitem15"
,
"name"
:
"基础表单项"
},{
"id"
:
"menuitem107"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem47"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem99"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem48"
,
"name"
:
"输入提示"
},{
"id"
:
"menuitem49"
,
"name"
:
"辅助输入"
},{
"id"
:
"menuitem50"
,
"name"
:
"自动填充"
},{
"id"
:
"menuitem51"
,
"name"
:
"超链接"
},{
"id"
:
"menuitem52"
,
"name"
:
"表单值重置"
},{
"id"
:
"menuitem55"
,
"name"
:
"动态显示"
},{
"id"
:
"menuitem53"
,
"name"
:
"动态启用"
},{
"id"
:
"menuitem54"
,
"name"
:
"动态空输入"
},{
"id"
:
"menuitem56"
,
"name"
:
"表单项更新"
},{
"id"
:
"menuitem108"
,
"name"
:
"表单值规则"
}]},{
"id"
:
"menuitem16"
,
"name"
:
"搜索表单"
},{
"id"
:
"menuitem126"
,
"name"
:
"实体数据看板"
}]},{
"id"
:
"menuitem157"
,
"name"
:
"导航类"
,
"items"
:[{
"id"
:
"menuitem116"
,
"name"
:
" 数据关系栏(左右关系)"
},{
"id"
:
"menuitem117"
,
"name"
:
"数据关系栏(上下关系)"
},{
"id"
:
"menuitem118"
,
"name"
:
"数据关系栏(分页关系)"
},{
"id"
:
"menuitem120"
,
"name"
:
"分页导航"
},{
"id"
:
"menuitem128"
,
"name"
:
"表格导航"
},{
"id"
:
"menuitem136"
,
"name"
:
"树导航"
},{
"id"
:
"menuitem137"
,
"name"
:
"卡片导航"
},{
"id"
:
"menuitem139"
,
"name"
:
"时间轴导航"
},{
"id"
:
"menuitem114"
,
"name"
:
"列表导航"
},{
"id"
:
"menuitem138"
,
"name"
:
"日历导航"
}]},{
"id"
:
"menuitem158"
,
"name"
:
"面板类"
,
"items"
:[{
"id"
:
"menuitem145"
,
"name"
:
"选择视图面板"
},{
"id"
:
"menuitem17"
,
"name"
:
"向导面板"
,
"items"
:[{
"id"
:
"menuitem134"
,
"name"
:
"基础用法"
},{
"id"
:
"menuitem135"
,
"name"
:
"状态属性"
}]},{
"id"
:
"menuitem121"
,
"name"
:
"多编辑视图面板"
,
"items"
:[{
"id"
:
"menuitem115"
,
"name"
:
"多表单(行记录)"
},{
"id"
:
"menuitem123"
,
"name"
:
"多表单(上分页)"
}]}]},{
"id"
:
"menuitem119"
,
"name"
:
"多数据类"
,
"items"
:[{
"id"
:
"menuitem13"
,
"name"
:
"表格"
,
"items"
:[{
"id"
:
"menuitem57"
,
"name"
:
"禁用排序"
},{
"id"
:
"menuitem59"
,
"name"
:
"行操作"
},{
"id"
:
"menuitem58"
,
"name"
:
"行编辑"
},{
"id"
:
"menuitem73"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem74"
,
"name"
:
"表格行编辑"
},{
"id"
:
"menuitem75"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem76"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem77"
,
"name"
:
"表格值规则"
},{
"id"
:
"menuitem132"
,
"name"
:
"表格列更新"
},{
"id"
:
"menuitem133"
,
"name"
:
"表格列重置"
},{
"id"
:
"menuitem78"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem80"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem81"
,
"name"
:
"当前页聚合"
},{
"id"
:
"menuitem82"
,
"name"
:
"远程聚合"
}]},{
"id"
:
"menuitem83"
,
"name"
:
"列表"
,
"items"
:[{
"id"
:
"menuitem84"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem85"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem86"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem91"
,
"name"
:
"项布局面板"
},{
"id"
:
"menuitem143"
,
"name"
:
"自定义插件"
}]},{
"id"
:
"menuitem95"
,
"name"
:
"日历"
,
"items"
:[{
"id"
:
"menuitem96"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem97"
,
"name"
:
"时间轴样式"
},{
"id"
:
"menuitem109"
,
"name"
:
"项布局面板"
},{
"id"
:
"menuitem64"
,
"name"
:
"自定义插件"
}]},{
"id"
:
"menuitem14"
,
"name"
:
"树视图"
,
"items"
:[{
"id"
:
"menuitem60"
,
"name"
:
"静态节点"
},{
"id"
:
"menuitem61"
,
"name"
:
"动态节点(代码表)"
},{
"id"
:
"menuitem62"
,
"name"
:
"动态节点(实体)"
},{
"id"
:
"menuitem63"
,
"name"
:
"右键操作"
}]},{
"id"
:
"menuitem111"
,
"name"
:
"甘特图"
},{
"id"
:
"menuitem110"
,
"name"
:
"树表格"
},{
"id"
:
"menuitem87"
,
"name"
:
"数据视图"
,
"items"
:[{
"id"
:
"menuitem88"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem89"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem90"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem94"
,
"name"
:
"项布局面板"
},{
"id"
:
"menuitem152"
,
"name"
:
"自定义插件"
}]},{
"id"
:
"menuitem101"
,
"name"
:
"看板视图"
,
"items"
:[{
"id"
:
"menuitem102"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem104"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem105"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem37"
,
"name"
:
"数据图表"
,
"items"
:[{
"id"
:
"menuitem38"
,
"name"
:
"柱状图"
},{
"id"
:
"menuitem39"
,
"name"
:
"折线图"
},{
"id"
:
"menuitem40"
,
"name"
:
"饼图"
},{
"id"
:
"menuitem41"
,
"name"
:
"区域图"
},{
"id"
:
"menuitem42"
,
"name"
:
"雷达图"
}]}]},{
"id"
:
"menuitem159"
,
"name"
:
"其他类"
}]},{
"id"
:
"menuitem5"
,
"name"
:
"视图"
,
"items"
:[{
"id"
:
"menuitem140"
,
"name"
:
"单数据视图"
,
"items"
:[{
"id"
:
"menuitem161"
,
"name"
:
"实体向导视图"
},{
"id"
:
"menuitem8"
,
"name"
:
"编辑视图"
,
"items"
:[{
"id"
:
"menuitem22"
,
"name"
:
"常规编辑视图"
},{
"id"
:
"menuitem23"
,
"name"
:
"左右编辑视图"
},{
"id"
:
"menuitem24"
,
"name"
:
"分页编辑视图"
},{
"id"
:
"menuitem25"
,
"name"
:
"嵌入编辑视图"
}]},{
"id"
:
"menuitem162"
,
"name"
:
"实体编辑视图(分页关系)"
},{
"id"
:
"menuitem163"
,
"name"
:
"实体编辑视图(上下关系)"
},{
"id"
:
"menuitem164"
,
"name"
:
"实体编辑视图(左右关系)"
},{
"id"
:
"menuitem165"
,
"name"
:
"实体分页导航视图"
},{
"id"
:
"menuitem166"
,
"name"
:
"实体数据看板视图"
},{
"id"
:
"menuitem167"
,
"name"
:
"实体选项操作视图"
}]},{
"id"
:
"menuitem141"
,
"name"
:
"多数据视图"
,
"items"
:[{
"id"
:
"menuitem79"
,
"name"
:
"表格视图"
},{
"id"
:
"menuitem168"
,
"name"
:
"实体多表单编辑视图"
},{
"id"
:
"menuitem169"
,
"name"
:
"实体甘特视图"
},{
"id"
:
"menuitem9"
,
"name"
:
"列表视图"
},{
"id"
:
"menuitem170"
,
"name"
:
"实体日历视图"
},{
"id"
:
"menuitem171"
,
"name"
:
"实体看板视图"
},{
"id"
:
"menuitem172"
,
"name"
:
"实体树表格视图"
},{
"id"
:
"menuitem173"
,
"name"
:
"实体树视图"
},{
"id"
:
"menuitem174"
,
"name"
:
"实体数据视图"
},{
"id"
:
"menuitem175"
,
"name"
:
"实体图表视图"
}]},{
"id"
:
"menuitem10"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem176"
,
"name"
:
"实体表格导航视图"
},{
"id"
:
"menuitem177"
,
"name"
:
"实体列表导航视图"
},{
"id"
:
"menuitem178"
,
"name"
:
"实体卡片导航视图"
},{
"id"
:
"menuitem179"
,
"name"
:
"实体日历导航视图"
},{
"id"
:
"menuitem180"
,
"name"
:
"实体树导航视图"
}]},{
"id"
:
"menuitem26"
,
"name"
:
"选择视图"
,
"items"
:[{
"id"
:
"menuitem18"
,
"name"
:
"数据选择视图"
},{
"id"
:
"menuitem27"
,
"name"
:
"索引选择视图"
}]},{
"id"
:
"menuitem69"
,
"name"
:
"工作流"
,
"items"
:[{
"id"
:
"menuitem30"
,
"name"
:
"工作流动态导航视图"
},{
"id"
:
"menuitem31"
,
"name"
:
"工作流启动"
}]},{
"id"
:
"menuitem11"
,
"name"
:
"其他视图"
,
"items"
:[{
"id"
:
"menuitem35"
,
"name"
:
"图表视图"
},{
"id"
:
"menuitem36"
,
"name"
:
"报表视图"
},{
"id"
:
"menuitem98"
,
"name"
:
"自定义视图"
}]}]},{
"id"
:
"menuitem153"
,
"name"
:
"逻辑"
,
"items"
:[{
"id"
:
"menuitem154"
,
"name"
:
"应用功能"
,
"items"
:[{
"id"
:
"menuitem127"
,
"name"
:
"打开应用视图"
},{
"id"
:
"menuitem147"
,
"name"
:
"打开HTML页面"
},{
"id"
:
"menuitem160"
,
"name"
:
"执行JavaScript"
}]},{
"id"
:
"menuitem155"
,
"name"
:
"界面行为"
,
"items"
:[{
"id"
:
"menuitem181"
,
"name"
:
"前台界面行为"
},{
"id"
:
"menuitem182"
,
"name"
:
"后台界面行为"
}]}]},{
"id"
:
"menuitem2"
,
"name"
:
"更多"
,
"items"
:[{
"id"
:
"menuitem46"
,
"name"
:
"数据导出导入"
},{
"id"
:
"menuitem45"
,
"name"
:
"数据打印"
},{
"id"
:
"menuitem67"
,
"name"
:
"索引实体"
},{
"id"
:
"menuitem68"
,
"name"
:
"继承实体"
},{
"id"
:
"menuitem71"
,
"name"
:
"多表单"
},{
"id"
:
"menuitem184"
,
"name"
:
"主状态"
,
"items"
:[{
"id"
:
"menuitem70"
,
"name"
:
"表格主状态"
},{
"id"
:
"menuitem148"
,
"name"
:
"列表主状态"
},{
"id"
:
"menuitem183"
,
"name"
:
"数据主状态"
},{
"id"
:
"menuitem28"
,
"name"
:
"日历主状态"
},{
"id"
:
"menuitem29"
,
"name"
:
"树主状态"
}]}]},{
"id"
:
"menuitem92"
,
"name"
:
"其他"
,
"items"
:[{
"id"
:
"menuitem93"
,
"name"
:
"示例实体02示例数据补充"
},{
"id"
:
"menuitem100"
,
"name"
:
"订单示例数据补充"
},{
"id"
:
"menuitem103"
,
"name"
:
"产品示例数据补充"
},{
"id"
:
"menuitem106"
,
"name"
:
"示例实体03示例数据补充"
},{
"id"
:
"menuitem113"
,
"name"
:
"订单类型添加"
},{
"id"
:
"menuitem124"
,
"name"
:
"示例实体01数据补充"
},{
"id"
:
"menuitem144"
,
"name"
:
"客户实体示例数据补充"
},{
"id"
:
"menuitem146"
,
"name"
:
"应用视图数据补充"
},{
"id"
:
"menuitem149"
,
"name"
:
"应用部件数据补充"
},{
"id"
:
"menuitem150"
,
"name"
:
"编辑器数据补充"
}]}]
}]
"appmenu"
:[{
"menuid"
:
"MainMenu"
,
"menuname"
:
"MainMenu"
,
"menuitem"
:[{
"id"
:
"menuitem1"
,
"name"
:
"工作台"
},{
"id"
:
"menuitem3"
,
"name"
:
"控件"
,
"items"
:[{
"id"
:
"menuitem6"
,
"name"
:
"默认数据类型"
},{
"id"
:
"menuitem7"
,
"name"
:
"默认编辑器类型"
},{
"id"
:
"menuitem72"
,
"name"
:
"扩展编辑器"
},{
"id"
:
"menuitem151"
,
"name"
:
"编辑器插件示例"
},{
"id"
:
"menuitem65"
,
"name"
:
"微服务组件"
}]},{
"id"
:
"menuitem4"
,
"name"
:
"部件"
,
"items"
:[{
"id"
:
"menuitem112"
,
"name"
:
"应用类"
,
"items"
:[{
"id"
:
"menuitem186"
,
"name"
:
"数据看板"
},{
"id"
:
"menuitem129"
,
"name"
:
"门户部件"
}]},{
"id"
:
"menuitem156"
,
"name"
:
"表单类"
,
"items"
:[{
"id"
:
"menuitem12"
,
"name"
:
"编辑表单"
,
"items"
:[{
"id"
:
"menuitem15"
,
"name"
:
"基础表单项"
},{
"id"
:
"menuitem107"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem47"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem99"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem48"
,
"name"
:
"输入提示"
},{
"id"
:
"menuitem49"
,
"name"
:
"辅助输入"
},{
"id"
:
"menuitem50"
,
"name"
:
"自动填充"
},{
"id"
:
"menuitem51"
,
"name"
:
"超链接"
},{
"id"
:
"menuitem52"
,
"name"
:
"表单值重置"
},{
"id"
:
"menuitem55"
,
"name"
:
"动态显示"
},{
"id"
:
"menuitem53"
,
"name"
:
"动态启用"
},{
"id"
:
"menuitem54"
,
"name"
:
"动态空输入"
},{
"id"
:
"menuitem56"
,
"name"
:
"表单项更新"
},{
"id"
:
"menuitem108"
,
"name"
:
"表单值规则"
}]},{
"id"
:
"menuitem16"
,
"name"
:
"搜索表单"
},{
"id"
:
"menuitem126"
,
"name"
:
"实体数据看板"
}]},{
"id"
:
"menuitem157"
,
"name"
:
"导航类"
,
"items"
:[{
"id"
:
"menuitem116"
,
"name"
:
" 数据关系栏(左右关系)"
},{
"id"
:
"menuitem117"
,
"name"
:
"数据关系栏(上下关系)"
},{
"id"
:
"menuitem118"
,
"name"
:
"数据关系栏(分页关系)"
},{
"id"
:
"menuitem120"
,
"name"
:
"分页导航"
},{
"id"
:
"menuitem128"
,
"name"
:
"表格导航"
},{
"id"
:
"menuitem136"
,
"name"
:
"树导航"
},{
"id"
:
"menuitem137"
,
"name"
:
"卡片导航"
},{
"id"
:
"menuitem139"
,
"name"
:
"时间轴导航"
},{
"id"
:
"menuitem114"
,
"name"
:
"列表导航"
},{
"id"
:
"menuitem138"
,
"name"
:
"日历导航"
}]},{
"id"
:
"menuitem158"
,
"name"
:
"面板类"
,
"items"
:[{
"id"
:
"menuitem145"
,
"name"
:
"选择视图面板"
},{
"id"
:
"menuitem17"
,
"name"
:
"向导面板"
,
"items"
:[{
"id"
:
"menuitem134"
,
"name"
:
"基础用法"
},{
"id"
:
"menuitem135"
,
"name"
:
"状态属性"
}]},{
"id"
:
"menuitem121"
,
"name"
:
"多编辑视图面板"
,
"items"
:[{
"id"
:
"menuitem115"
,
"name"
:
"多表单(行记录)"
},{
"id"
:
"menuitem123"
,
"name"
:
"多表单(上分页)"
}]}]},{
"id"
:
"menuitem119"
,
"name"
:
"多数据类"
,
"items"
:[{
"id"
:
"menuitem13"
,
"name"
:
"表格"
,
"items"
:[{
"id"
:
"menuitem57"
,
"name"
:
"禁用排序"
},{
"id"
:
"menuitem59"
,
"name"
:
"行操作"
},{
"id"
:
"menuitem58"
,
"name"
:
"行编辑"
},{
"id"
:
"menuitem73"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem74"
,
"name"
:
"表格行编辑"
},{
"id"
:
"menuitem75"
,
"name"
:
"新建默认值"
},{
"id"
:
"menuitem76"
,
"name"
:
"更新默认值"
},{
"id"
:
"menuitem77"
,
"name"
:
"表格值规则"
},{
"id"
:
"menuitem132"
,
"name"
:
"表格列更新"
},{
"id"
:
"menuitem133"
,
"name"
:
"表格列重置"
},{
"id"
:
"menuitem78"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem80"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem81"
,
"name"
:
"当前页聚合"
},{
"id"
:
"menuitem82"
,
"name"
:
"远程聚合"
}]},{
"id"
:
"menuitem83"
,
"name"
:
"列表"
,
"items"
:[{
"id"
:
"menuitem84"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem85"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem86"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem91"
,
"name"
:
"项布局面板"
},{
"id"
:
"menuitem143"
,
"name"
:
"自定义插件"
}]},{
"id"
:
"menuitem95"
,
"name"
:
"日历"
,
"items"
:[{
"id"
:
"menuitem96"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem97"
,
"name"
:
"时间轴样式"
},{
"id"
:
"menuitem109"
,
"name"
:
"项布局面板"
},{
"id"
:
"menuitem64"
,
"name"
:
"自定义插件"
}]},{
"id"
:
"menuitem14"
,
"name"
:
"树视图"
,
"items"
:[{
"id"
:
"menuitem60"
,
"name"
:
"静态节点"
},{
"id"
:
"menuitem61"
,
"name"
:
"动态节点(代码表)"
},{
"id"
:
"menuitem62"
,
"name"
:
"动态节点(实体)"
},{
"id"
:
"menuitem63"
,
"name"
:
"右键操作"
}]},{
"id"
:
"menuitem111"
,
"name"
:
"甘特图"
},{
"id"
:
"menuitem110"
,
"name"
:
"树表格"
},{
"id"
:
"menuitem87"
,
"name"
:
"数据视图"
,
"items"
:[{
"id"
:
"menuitem88"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem89"
,
"name"
:
"自动分组"
},{
"id"
:
"menuitem90"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem94"
,
"name"
:
"项布局面板"
},{
"id"
:
"menuitem152"
,
"name"
:
"自定义插件"
}]},{
"id"
:
"menuitem101"
,
"name"
:
"看板视图"
,
"items"
:[{
"id"
:
"menuitem102"
,
"name"
:
"内置功能"
},{
"id"
:
"menuitem104"
,
"name"
:
"代码表分组"
},{
"id"
:
"menuitem105"
,
"name"
:
"项布局面板"
}]},{
"id"
:
"menuitem37"
,
"name"
:
"数据图表"
,
"items"
:[{
"id"
:
"menuitem38"
,
"name"
:
"柱状图"
},{
"id"
:
"menuitem39"
,
"name"
:
"折线图"
},{
"id"
:
"menuitem40"
,
"name"
:
"饼图"
},{
"id"
:
"menuitem41"
,
"name"
:
"区域图"
},{
"id"
:
"menuitem42"
,
"name"
:
"雷达图"
}]}]},{
"id"
:
"menuitem159"
,
"name"
:
"其他类"
}]},{
"id"
:
"menuitem5"
,
"name"
:
"视图"
,
"items"
:[{
"id"
:
"menuitem140"
,
"name"
:
"单数据视图"
,
"items"
:[{
"id"
:
"menuitem161"
,
"name"
:
"实体向导视图"
},{
"id"
:
"menuitem8"
,
"name"
:
"编辑视图"
,
"items"
:[{
"id"
:
"menuitem22"
,
"name"
:
"常规编辑视图"
},{
"id"
:
"menuitem23"
,
"name"
:
"左右编辑视图"
},{
"id"
:
"menuitem24"
,
"name"
:
"分页编辑视图"
},{
"id"
:
"menuitem25"
,
"name"
:
"嵌入编辑视图"
}]},{
"id"
:
"menuitem162"
,
"name"
:
"实体编辑视图(分页关系)"
},{
"id"
:
"menuitem163"
,
"name"
:
"实体编辑视图(上下关系)"
},{
"id"
:
"menuitem164"
,
"name"
:
"实体编辑视图(左右关系)"
},{
"id"
:
"menuitem165"
,
"name"
:
"实体分页导航视图"
},{
"id"
:
"menuitem166"
,
"name"
:
"实体数据看板视图"
},{
"id"
:
"menuitem167"
,
"name"
:
"实体选项操作视图"
}]},{
"id"
:
"menuitem141"
,
"name"
:
"多数据视图"
,
"items"
:[{
"id"
:
"menuitem79"
,
"name"
:
"表格视图"
},{
"id"
:
"menuitem168"
,
"name"
:
"实体多表单编辑视图"
},{
"id"
:
"menuitem169"
,
"name"
:
"实体甘特视图"
},{
"id"
:
"menuitem9"
,
"name"
:
"列表视图"
},{
"id"
:
"menuitem170"
,
"name"
:
"实体日历视图"
},{
"id"
:
"menuitem171"
,
"name"
:
"实体看板视图"
},{
"id"
:
"menuitem172"
,
"name"
:
"实体树表格视图"
},{
"id"
:
"menuitem173"
,
"name"
:
"实体树视图"
},{
"id"
:
"menuitem174"
,
"name"
:
"实体数据视图"
},{
"id"
:
"menuitem175"
,
"name"
:
"实体图表视图"
}]},{
"id"
:
"menuitem10"
,
"name"
:
"导航视图"
,
"items"
:[{
"id"
:
"menuitem176"
,
"name"
:
"实体表格导航视图"
},{
"id"
:
"menuitem177"
,
"name"
:
"实体列表导航视图"
},{
"id"
:
"menuitem178"
,
"name"
:
"实体卡片导航视图"
},{
"id"
:
"menuitem179"
,
"name"
:
"实体日历导航视图"
},{
"id"
:
"menuitem180"
,
"name"
:
"实体树导航视图"
}]},{
"id"
:
"menuitem26"
,
"name"
:
"选择视图"
,
"items"
:[{
"id"
:
"menuitem18"
,
"name"
:
"数据选择视图"
},{
"id"
:
"menuitem27"
,
"name"
:
"索引选择视图"
}]},{
"id"
:
"menuitem69"
,
"name"
:
"工作流"
,
"items"
:[{
"id"
:
"menuitem30"
,
"name"
:
"工作流动态导航视图"
},{
"id"
:
"menuitem31"
,
"name"
:
"工作流启动"
}]},{
"id"
:
"menuitem11"
,
"name"
:
"其他视图"
,
"items"
:[{
"id"
:
"menuitem35"
,
"name"
:
"图表视图"
},{
"id"
:
"menuitem36"
,
"name"
:
"报表视图"
},{
"id"
:
"menuitem98"
,
"name"
:
"自定义视图"
}]}]},{
"id"
:
"menuitem153"
,
"name"
:
"逻辑"
,
"items"
:[{
"id"
:
"menuitem154"
,
"name"
:
"应用功能"
,
"items"
:[{
"id"
:
"menuitem127"
,
"name"
:
"打开应用视图"
},{
"id"
:
"menuitem147"
,
"name"
:
"打开HTML页面"
},{
"id"
:
"menuitem160"
,
"name"
:
"执行JavaScript"
}]},{
"id"
:
"menuitem155"
,
"name"
:
"界面行为"
,
"items"
:[{
"id"
:
"menuitem181"
,
"name"
:
"前台界面行为"
},{
"id"
:
"menuitem182"
,
"name"
:
"后台界面行为"
}]}
,{
"id"
:
"menuitem19"
,
"name"
:
"临时模式"
}
]},{
"id"
:
"menuitem2"
,
"name"
:
"更多"
,
"items"
:[{
"id"
:
"menuitem46"
,
"name"
:
"数据导出导入"
},{
"id"
:
"menuitem45"
,
"name"
:
"数据打印"
},{
"id"
:
"menuitem67"
,
"name"
:
"索引实体"
},{
"id"
:
"menuitem68"
,
"name"
:
"继承实体"
},{
"id"
:
"menuitem71"
,
"name"
:
"多表单"
},{
"id"
:
"menuitem184"
,
"name"
:
"主状态"
,
"items"
:[{
"id"
:
"menuitem70"
,
"name"
:
"表格主状态"
},{
"id"
:
"menuitem148"
,
"name"
:
"列表主状态"
},{
"id"
:
"menuitem183"
,
"name"
:
"数据主状态"
},{
"id"
:
"menuitem28"
,
"name"
:
"日历主状态"
},{
"id"
:
"menuitem29"
,
"name"
:
"树主状态"
}]}]},{
"id"
:
"menuitem92"
,
"name"
:
"其他"
,
"items"
:[{
"id"
:
"menuitem93"
,
"name"
:
"示例实体02示例数据补充"
},{
"id"
:
"menuitem100"
,
"name"
:
"订单示例数据补充"
},{
"id"
:
"menuitem103"
,
"name"
:
"产品示例数据补充"
},{
"id"
:
"menuitem106"
,
"name"
:
"示例实体03示例数据补充"
},{
"id"
:
"menuitem113"
,
"name"
:
"订单类型添加"
},{
"id"
:
"menuitem124"
,
"name"
:
"示例实体01数据补充"
},{
"id"
:
"menuitem144"
,
"name"
:
"客户实体示例数据补充"
},{
"id"
:
"menuitem146"
,
"name"
:
"应用视图数据补充"
},{
"id"
:
"menuitem149"
,
"name"
:
"应用部件数据补充"
},{
"id"
:
"menuitem150"
,
"name"
:
"编辑器数据补充"
}]}]
}]
}
]
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录