Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
4acf1f78
提交
4acf1f78
编写于
8月 12, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
30855cb7
变更
74
显示空白字符变更
内嵌
并排
正在显示
74 个修改的文件
包含
7630 行增加
和
85 行删除
+7630
-85
data-dictionary.json
app_PIM/public/assets/json/data-dictionary.json
+31
-0
view-config.json
app_PIM/public/assets/json/view-config.json
+30
-0
codelist_en_US.ts
app_PIM/src/locale/lanres/codelist/codelist_en_US.ts
+5
-0
codelist_zh_CN.ts
app_PIM/src/locale/lanres/codelist/codelist_zh_CN.ts
+5
-0
hrarchives-move_en_US.ts
.../lanres/entities/hrarchives-move/hrarchives-move_en_US.ts
+88
-0
hrarchives-move_zh_CN.ts
.../lanres/entities/hrarchives-move/hrarchives-move_zh_CN.ts
+88
-0
hrarchives_en_US.ts
...src/locale/lanres/entities/hrarchives/hrarchives_en_US.ts
+28
-26
hrarchives_zh_CN.ts
...src/locale/lanres/entities/hrarchives/hrarchives_zh_CN.ts
+28
-26
codelist.ts
app_PIM/src/mock/codelist/codelist.ts
+29
-0
viewconfig.ts
app_PIM/src/mock/viewconfig/viewconfig.ts
+24
-0
hrarchives-borrow-grid-view-base.tsx
...ves-borrow-grid-view/hrarchives-borrow-grid-view-base.tsx
+812
-0
hrarchives-borrow-grid-view.html
...rchives-borrow-grid-view/hrarchives-borrow-grid-view.html
+52
-0
hrarchives-borrow-grid-view.vue
...archives-borrow-grid-view/hrarchives-borrow-grid-view.vue
+24
-0
hrarchives-borrow-v-001-base.tsx
.../hrarchives-borrow-v-001/hrarchives-borrow-v-001-base.tsx
+171
-0
hrarchives-borrow-v-001.html
...urce/hrarchives-borrow-v-001/hrarchives-borrow-v-001.html
+34
-0
hrarchives-borrow-v-001.vue
...ource/hrarchives-borrow-v-001/hrarchives-borrow-v-001.vue
+22
-0
hrarchives-borrow-v-002-base.tsx
.../hrarchives-borrow-v-002/hrarchives-borrow-v-002-base.tsx
+226
-0
hrarchives-borrow-v-002.html
...urce/hrarchives-borrow-v-002/hrarchives-borrow-v-002.html
+31
-0
hrarchives-borrow-v-002.vue
...ource/hrarchives-borrow-v-002/hrarchives-borrow-v-002.vue
+22
-0
hrarchives-move-grid-view-base.tsx
...rchives-move-grid-view/hrarchives-move-grid-view-base.tsx
+812
-0
hrarchives-move-grid-view.html
.../hrarchives-move-grid-view/hrarchives-move-grid-view.html
+49
-0
hrarchives-move-grid-view.vue
...e/hrarchives-move-grid-view/hrarchives-move-grid-view.vue
+24
-0
hrarchives-move-v-001-base.tsx
...urce/hrarchives-move-v-001/hrarchives-move-v-001-base.tsx
+226
-0
hrarchives-move-v-001.html
...resource/hrarchives-move-v-001/hrarchives-move-v-001.html
+31
-0
hrarchives-move-v-001.vue
...-resource/hrarchives-move-v-001/hrarchives-move-v-001.vue
+22
-0
hrarchives-move-v-002-base.tsx
...urce/hrarchives-move-v-002/hrarchives-move-v-002-base.tsx
+171
-0
hrarchives-move-v-002.html
...resource/hrarchives-move-v-002/hrarchives-move-v-002.html
+34
-0
hrarchives-move-v-002.vue
...-resource/hrarchives-move-v-002/hrarchives-move-v-002.vue
+22
-0
page-register.ts
app_PIM/src/pages/ungroup/pim/page-register.ts
+6
-0
router.ts
app_PIM/src/pages/ungroup/pim/router.ts
+84
-0
state.ts
app_PIM/src/store/modules/view-action/state.ts
+60
-1
hrarchives-move-ui-service-base.ts
...ervice/hrarchives-move/hrarchives-move-ui-service-base.ts
+3
-0
default-searchform-base.tsx
...ves-borrow/default-searchform/default-searchform-base.tsx
+82
-0
default-searchform-model.ts
...ves-borrow/default-searchform/default-searchform-model.ts
+31
-0
default-searchform-service.ts
...s-borrow/default-searchform/default-searchform-service.ts
+388
-0
default-searchform.html
...rchives-borrow/default-searchform/default-searchform.html
+9
-0
default-searchform.vue
...archives-borrow/default-searchform/default-searchform.vue
+22
-0
main-form-base.tsx
...rc/widgets/hrarchives-borrow/main-form/main-form-base.tsx
+170
-0
main-form-model.ts
...rc/widgets/hrarchives-borrow/main-form/main-form-model.ts
+106
-0
main-form-service.ts
.../widgets/hrarchives-borrow/main-form/main-form-service.ts
+393
-0
main-form.html
...IM/src/widgets/hrarchives-borrow/main-form/main-form.html
+100
-0
main-form.vue
...PIM/src/widgets/hrarchives-borrow/main-form/main-form.vue
+22
-0
main-grid-base.tsx
...rc/widgets/hrarchives-borrow/main-grid/main-grid-base.tsx
+236
-0
main-grid-model.ts
...rc/widgets/hrarchives-borrow/main-grid/main-grid-model.ts
+124
-0
main-grid-service.ts
.../widgets/hrarchives-borrow/main-grid/main-grid-service.ts
+345
-0
main-grid.html
...IM/src/widgets/hrarchives-borrow/main-grid/main-grid.html
+117
-0
main-grid.vue
...PIM/src/widgets/hrarchives-borrow/main-grid/main-grid.vue
+22
-0
default-searchform-base.tsx
...hives-move/default-searchform/default-searchform-base.tsx
+82
-0
default-searchform-model.ts
...hives-move/default-searchform/default-searchform-model.ts
+31
-0
default-searchform-service.ts
...ves-move/default-searchform/default-searchform-service.ts
+388
-0
default-searchform.html
...rarchives-move/default-searchform/default-searchform.html
+9
-0
default-searchform.vue
...hrarchives-move/default-searchform/default-searchform.vue
+22
-0
main-form-base.tsx
.../src/widgets/hrarchives-move/main-form/main-form-base.tsx
+160
-0
main-form-model.ts
.../src/widgets/hrarchives-move/main-form/main-form-model.ts
+96
-0
main-form-service.ts
...rc/widgets/hrarchives-move/main-form/main-form-service.ts
+393
-0
main-form.html
app_PIM/src/widgets/hrarchives-move/main-form/main-form.html
+79
-0
main-form.vue
app_PIM/src/widgets/hrarchives-move/main-form/main-form.vue
+22
-0
main-grid-base.tsx
.../src/widgets/hrarchives-move/main-grid/main-grid-base.tsx
+218
-0
main-grid-model.ts
.../src/widgets/hrarchives-move/main-grid/main-grid-model.ts
+114
-0
main-grid-service.ts
...rc/widgets/hrarchives-move/main-grid/main-grid-service.ts
+345
-0
main-grid.html
app_PIM/src/widgets/hrarchives-move/main-grid/main-grid.html
+93
-0
main-grid.vue
app_PIM/src/widgets/hrarchives-move/main-grid/main-grid.vue
+22
-0
board-001-dashboard.html
...s/hrarchives/board-001-dashboard/board-001-dashboard.html
+1
-1
if-001-form-base.tsx
...M/src/widgets/hrarchives/if-001-form/if-001-form-base.tsx
+13
-0
if-001-form.html
app_PIM/src/widgets/hrarchives/if-001-form/if-001-form.html
+52
-2
part-001-portlet-base.tsx
...ets/hrarchives/part-001-portlet/part-001-portlet-base.tsx
+1
-1
part-001-portlet.html
...widgets/hrarchives/part-001-portlet/part-001-portlet.html
+1
-1
v-005tabviewpanel2-tabviewpanel.html
...wpanel2-tabviewpanel/v-005tabviewpanel2-tabviewpanel.html
+1
-1
v-005tabviewpanel3-tabviewpanel.html
...wpanel3-tabviewpanel/v-005tabviewpanel3-tabviewpanel.html
+1
-1
config.xml
config.xml
+5
-5
Dockerfile
...urce-app/humanresource-app-pim/src/main/docker/Dockerfile
+1
-1
humanresource-app-pim.yaml
...source-app-pim/src/main/docker/humanresource-app-pim.yaml
+17
-1
Dockerfile
...r/humanresource-provider-hrapi/src/main/docker/Dockerfile
+1
-1
humanresource-provider-hrapi.yaml
...r-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
+1
-17
未找到文件。
app_PIM/public/assets/json/data-dictionary.json
浏览文件 @
4acf1f78
...
...
@@ -915,6 +915,37 @@
}
]
},
{
"srfkey"
:
"CL_HR_0025"
,
"emptytext"
:
"未定义"
,
"codelisttype"
:
"static"
,
"items"
:
[
{
"id"
:
"MOVEIN"
,
"label"
:
"调入"
,
"text"
:
"调入"
,
"data"
:
""
,
"codename"
:
"Movein"
,
"color"
:
"rgba(255, 0, 17, 1)"
,
"value"
:
"MOVEIN"
,
"disabled"
:
false
,
"default"
:
false
}
,
{
"id"
:
"MOVEOUT"
,
"label"
:
"调出"
,
"text"
:
"调出"
,
"data"
:
""
,
"codename"
:
"Moveout"
,
"color"
:
"rgba(0, 89, 255, 1)"
,
"value"
:
"MOVEOUT"
,
"disabled"
:
false
,
"default"
:
false
}
]
},
{
"srfkey"
:
"CL_HR_0019"
,
"emptytext"
:
"未定义"
,
...
...
app_PIM/public/assets/json/view-config.json
浏览文件 @
4acf1f78
...
...
@@ -629,6 +629,16 @@
"viewtag"
:
"6395cba44e6d6151f19e543b55d88845"
,
"memo"
:
"系统自动添加"
},
"hrarchivesmovev_002"
:
{
"title"
:
"调档记录"
,
"caption"
:
"调档记录"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRArchivesMoveV_002"
,
"viewfilename"
:
"hrarchives-move-v-002"
,
"viewtag"
:
"682bfe80bc00d04530e87b55c178c6f3"
,
"memo"
:
""
},
"hrcertificategridview"
:
{
"title"
:
"证书"
,
"caption"
:
"证书"
,
...
...
@@ -1069,6 +1079,16 @@
"viewtag"
:
"b4ef4b87eb87fc3a2a8479027d62ac4c"
,
"memo"
:
"系统自动添加"
},
"hrarchivesmovev_001"
:
{
"title"
:
"调档记录"
,
"caption"
:
"调档记录"
,
"viewtype"
:
"DEGRIDVIEW9"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRArchivesMoveV_001"
,
"viewfilename"
:
"hrarchives-move-v-001"
,
"viewtag"
:
"b50ba73bdcf5631dc218cfb08097d534"
,
"memo"
:
""
},
"hrcontractv_005"
:
{
"title"
:
"合同信息"
,
"caption"
:
"合同信息"
,
...
...
@@ -1549,6 +1569,16 @@
"viewtag"
:
"f03c9544f1a1107bb34a97542dde1a3e"
,
"memo"
:
""
},
"hrarchivesmovegridview"
:
{
"title"
:
"档案调档"
,
"caption"
:
"档案调档"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRArchivesMoveGridView"
,
"viewfilename"
:
"hrarchives-move-grid-view"
,
"viewtag"
:
"f26c77e32eb39f0d5feda6cdd6d73f39"
,
"memo"
:
""
},
"hrarchivesborrowgridview"
:
{
"title"
:
"档案借阅表格视图"
,
"caption"
:
"档案借阅"
,
...
...
app_PIM/src/locale/lanres/codelist/codelist_en_US.ts
浏览文件 @
4acf1f78
...
...
@@ -115,6 +115,11 @@ export default {
"4"
:
"处理故障"
,
"empty"
:
""
},
CL_HR_0025
:
{
"MOVEIN"
:
"调入"
,
"MOVEOUT"
:
"调出"
,
"empty"
:
""
},
CL_HR_0019
:
{
"ACTIVE"
:
"执行中"
,
"WAITSIGN"
:
"待续签"
,
...
...
app_PIM/src/locale/lanres/codelist/codelist_zh_CN.ts
浏览文件 @
4acf1f78
...
...
@@ -115,6 +115,11 @@ export default {
"4"
:
"处理故障"
,
"empty"
:
""
,
},
CL_HR_0025
:
{
"MOVEIN"
:
"调入"
,
"MOVEOUT"
:
"调出"
,
"empty"
:
""
,
},
CL_HR_0019
:
{
"ACTIVE"
:
"执行中"
,
"WAITSIGN"
:
"待续签"
,
...
...
app_PIM/src/locale/lanres/entities/hrarchives-move/hrarchives-move_en_US.ts
浏览文件 @
4acf1f78
...
...
@@ -14,4 +14,92 @@ export default {
activetime
:
"调档时间"
,
memo
:
"备注"
,
},
views
:
{
v_002
:
{
caption
:
"调档记录"
,
title
:
"调档记录"
,
},
v_001
:
{
caption
:
"调档记录"
,
title
:
"调档记录"
,
},
gridview
:
{
caption
:
"档案调档"
,
title
:
"档案调档"
,
},
},
main_form
:
{
details
:
{
group1
:
"调档信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"档案调档标识"
,
srfmajortext
:
"档案调档名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
movetype
:
"调档类型"
,
moveoutorg
:
"调出单位"
,
moveinorg
:
"调入单位"
,
activetime
:
"调档时间"
,
memo
:
"备注"
,
hrarchivesmoveid
:
"档案调档标识"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
movetype
:
"调档类型"
,
moveoutorg
:
"调出单位"
,
moveinorg
:
"调入单位"
,
activetime
:
"调档时间"
,
memo
:
"备注"
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"Export"
,
tip
:
"Export {0} Data To Excel"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"Filter"
,
tip
:
"Filter"
,
},
},
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hrarchives-move/hrarchives-move_zh_CN.ts
浏览文件 @
4acf1f78
...
...
@@ -13,4 +13,92 @@ export default {
activetime
:
"调档时间"
,
memo
:
"备注"
,
},
views
:
{
v_002
:
{
caption
:
"调档记录"
,
title
:
"调档记录"
,
},
v_001
:
{
caption
:
"调档记录"
,
title
:
"调档记录"
,
},
gridview
:
{
caption
:
"档案调档"
,
title
:
"档案调档"
,
},
},
main_form
:
{
details
:
{
group1
:
"调档信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"档案调档标识"
,
srfmajortext
:
"档案调档名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
movetype
:
"调档类型"
,
moveoutorg
:
"调出单位"
,
moveinorg
:
"调入单位"
,
activetime
:
"调档时间"
,
memo
:
"备注"
,
hrarchivesmoveid
:
"档案调档标识"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
movetype
:
"调档类型"
,
moveoutorg
:
"调出单位"
,
moveinorg
:
"调入单位"
,
activetime
:
"调档时间"
,
memo
:
"备注"
,
},
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"导出"
,
tip
:
"导出"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem19
:
{
caption
:
"过滤"
,
tip
:
"过滤"
,
},
},
};
\ No newline at end of file
app_PIM/src/locale/lanres/entities/hrarchives/hrarchives_en_US.ts
浏览文件 @
4acf1f78
...
...
@@ -134,7 +134,9 @@ export default {
if_001_form
:
{
details
:
{
group1
:
"档案信息"
,
druipart1
:
""
,
grouppanel1
:
"借阅记录"
,
druipart2
:
""
,
grouppanel2
:
"调档记录"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
...
...
@@ -277,7 +279,29 @@ export default {
tip
:
"Help"
,
},
},
gridviewtoolbar_toolbar
:
{
v_005toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_007toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
@@ -319,29 +343,7 @@ export default {
tip
:
"Filter"
,
},
},
v_005toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_007toolbar_toolbar
:
{
v_009toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
@@ -383,7 +385,7 @@ export default {
tip
:
"Filter"
,
},
},
v_00
9
toolbar_toolbar
:
{
v_00
8
toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
@@ -425,7 +427,7 @@ export default {
tip
:
"Filter"
,
},
},
v_008
toolbar_toolbar
:
{
gridview
toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
app_PIM/src/locale/lanres/entities/hrarchives/hrarchives_zh_CN.ts
浏览文件 @
4acf1f78
...
...
@@ -133,7 +133,9 @@ export default {
if_001_form
:
{
details
:
{
group1
:
"档案信息"
,
druipart1
:
""
,
grouppanel1
:
"借阅记录"
,
druipart2
:
""
,
grouppanel2
:
"调档记录"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
...
...
@@ -276,7 +278,29 @@ export default {
tip
:
"帮助"
,
},
},
gridviewtoolbar_toolbar
:
{
v_005toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_007toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
@@ -318,29 +342,7 @@ export default {
tip
:
"过滤"
,
},
},
v_005toolbar_toolbar
:
{
tbitem1_ff_003
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem1_remove_sep
:
{
caption
:
""
,
tip
:
""
,
},
tbitem1_remove
:
{
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
tbitem2
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem22
:
{
caption
:
"关闭"
,
tip
:
"关闭"
,
},
},
v_007toolbar_toolbar
:
{
v_009toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
@@ -382,7 +384,7 @@ export default {
tip
:
"过滤"
,
},
},
v_00
9
toolbar_toolbar
:
{
v_00
8
toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
@@ -424,7 +426,7 @@ export default {
tip
:
"过滤"
,
},
},
v_008
toolbar_toolbar
:
{
gridview
toolbar_toolbar
:
{
tbitem1_ff_002
:
{
caption
:
"新建"
,
tip
:
"新建"
,
...
...
app_PIM/src/mock/codelist/codelist.ts
浏览文件 @
4acf1f78
...
...
@@ -849,6 +849,35 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey
:
"CL_HR_0025"
,
emptytext
:
"未定义"
,
"codelisttype"
:
"static"
,
items
:
[
{
id
:
"MOVEIN"
,
label
:
"调入"
,
text
:
"调入"
,
"data"
:
""
,
"codename"
:
"Movein"
,
"color"
:
"rgba(255, 0, 17, 1)"
,
value
:
"MOVEIN"
,
disabled
:
false
,
},
{
id
:
"MOVEOUT"
,
label
:
"调出"
,
text
:
"调出"
,
"data"
:
""
,
"codename"
:
"Moveout"
,
"color"
:
"rgba(0, 89, 255, 1)"
,
value
:
"MOVEOUT"
,
disabled
:
false
,
},
]
},
{
srfkey
:
"CL_HR_0019"
,
emptytext
:
"未定义"
,
...
...
app_PIM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
4acf1f78
...
...
@@ -511,6 +511,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HRDistributionGridView"
,
"viewtag"
:
"6395cba44e6d6151f19e543b55d88845"
},
"hrarchivesmovev_002"
:
{
"title"
:
"调档记录"
,
"caption"
:
"调档记录"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRArchivesMoveV_002"
,
"viewtag"
:
"682bfe80bc00d04530e87b55c178c6f3"
},
"hrcertificategridview"
:
{
"title"
:
"证书"
,
"caption"
:
"证书"
,
...
...
@@ -863,6 +871,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HROrganizationEditView"
,
"viewtag"
:
"b4ef4b87eb87fc3a2a8479027d62ac4c"
},
"hrarchivesmovev_001"
:
{
"title"
:
"调档记录"
,
"caption"
:
"调档记录"
,
"viewtype"
:
"DEGRIDVIEW9"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRArchivesMoveV_001"
,
"viewtag"
:
"b50ba73bdcf5631dc218cfb08097d534"
},
"hrcontractv_005"
:
{
"title"
:
"合同信息"
,
"caption"
:
"合同信息"
,
...
...
@@ -1247,6 +1263,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"HRPostDashboardView"
,
"viewtag"
:
"f03c9544f1a1107bb34a97542dde1a3e"
},
"hrarchivesmovegridview"
:
{
"title"
:
"档案调档"
,
"caption"
:
"档案调档"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
"viewname"
:
"HRArchivesMoveGridView"
,
"viewtag"
:
"f26c77e32eb39f0d5feda6cdd6d73f39"
},
"hrarchivesborrowgridview"
:
{
"title"
:
"档案借阅表格视图"
,
"caption"
:
"档案借阅"
,
...
...
app_PIM/src/pages/human-resource/hrarchives-borrow-grid-view/hrarchives-borrow-grid-view-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Subject
}
from
'rxjs'
;
import
{
GridViewBase
}
from
'@/studio-core'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
HRArchivesBorrowAuthService
from
'@/authservice/hrarchives-borrow/hrarchives-borrow-auth-service'
;
import
GridViewEngine
from
'@engine/view/grid-view-engine'
;
import
HRArchivesBorrowUIService
from
'@/uiservice/hrarchives-borrow/hrarchives-borrow-ui-service'
;
import
CodeListService
from
"@service/app/codelist-service"
;
/**
* 档案借阅表格视图视图基类
*
* @export
* @class HRArchivesBorrowGridViewBase
* @extends {GridViewBase}
*/
export
class
HRArchivesBorrowGridViewBase
extends
GridViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowGridViewBase
*/
protected
appDeName
:
string
=
'hrarchivesborrow'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowGridViewBase
*/
protected
appDeKey
:
string
=
'hrarchivesborrowid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowGridViewBase
*/
protected
appDeMajor
:
string
=
'hrarchivesborrowname'
;
/**
* 实体服务对象
*
* @type {HRArchivesBorrowService}
* @memberof HRArchivesBorrowGridViewBase
*/
protected
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
;
/**
* 实体权限服务对象
*
* @type HRArchivesBorrowUIService
* @memberof HRArchivesBorrowGridViewBase
*/
public
appUIService
:
HRArchivesBorrowUIService
=
new
HRArchivesBorrowUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRArchivesBorrowGridViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRArchivesBorrowGridViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrarchivesborrow.views.gridview.caption'
,
srfTitle
:
'entities.hrarchivesborrow.views.gridview.title'
,
srfSubTitle
:
'entities.hrarchivesborrow.views.gridview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRArchivesBorrowGridViewBase
*/
protected
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
view_searchform
:
{
name
:
'searchform'
,
type
:
'SEARCHFORM'
},
};
/**
* 工具栏模型
*
* @type {*}
* @memberof HRArchivesBorrowGridView
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
,
class
:
''
}
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem7
:
{
name
:
'tbitem7'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem8
:
{
name
:
'tbitem8'
,
caption
:
'删除'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
,
class
:
''
}
},
tbitem9
:
{
name
:
'tbitem9'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem13
:
{
name
:
'tbitem13'
,
caption
:
'导出'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'导出'
,
iconcls
:
'fa fa-file-excel-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ExportExcel'
,
target
:
''
},
MaxRowCount
:
1000
,
class
:
''
},
tbitem10
:
{
name
:
'tbitem10'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem19
:
{
name
:
'tbitem19'
,
caption
:
'过滤'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'过滤'
,
iconcls
:
'fa fa-filter'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ToggleFilter'
,
target
:
''
,
class
:
''
}
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'f31e79001d0aafc5a665b5dfeb4eea80'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRArchivesBorrowGridViewBase
*/
public
engine
:
GridViewEngine
=
new
GridViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRArchivesBorrowGridViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
opendata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
opendata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
newdata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
newdata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'hrarchivesborrow'
,
majorPSDEField
:
'hrarchivesborrowname'
,
isLoadDefault
:
true
,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem13'
))
{
this
.
toolbar_tbitem13_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem11'
))
{
this
.
toolbar_tbitem11_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem19'
))
{
this
.
toolbar_tbitem19_click
(
null
,
''
,
$event2
);
}
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
grid_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'remove'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
searchform_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'save'
,
$event
);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
searchform_search
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'search'
,
$event
);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowGridViewBase
*/
public
searchform_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem4_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem8_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem13_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem11_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem19_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesBorrow"
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesBorrowGridView
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
hrarchivesborrow
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrarchivesborrows'
,
parameterName
:
'hrarchivesborrow'
},
];
const
_this
:
any
=
this
;
const
openDrawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrarchives-borrow-v-001'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrarchivesborrow.views.v_001.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesBorrowGridView
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
const
localContext
:
any
=
null
;
const
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrarchivesborrows'
,
parameterName
:
'hrarchivesborrow'
},
];
const
_this
:
any
=
this
;
const
openDrawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrarchives-borrow-v-001'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrarchivesborrow.views.v_001.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
hrarchivesborrow
:
args
[
0
].
hrarchivesborrow
})
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
hasOwnProperty
(
'newRow'
)
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
public
SaveRow
(
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
();
}
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 HRArchivesBorrowGridViewBase
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
remove
instanceof
Function
))
{
return
;
}
xData
.
remove
(
args
);
}
/**
* 导出
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
public
ExportExcel
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
exportExcel
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
exportExcel
(
$event
.
exportparms
);
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
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 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesBorrowGridViewBase
*/
public
ToggleFilter
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
hasOwnProperty
(
'isExpandSearchForm'
))
{
_this
.
isExpandSearchForm
=
!
_this
.
isExpandSearchForm
;
}
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-borrow-grid-view/hrarchives-borrow-grid-view.html
0 → 100644
浏览文件 @
4acf1f78
<studio-view-style2
viewName=
"hrarchivesborrowgridview"
viewTitle=
"档案借阅表格视图"
class=
'degridview hrarchives-borrow-grid-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{viewCaption}}
</span>
</template>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"档案借阅名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click.apply(_self, arguments)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
v-show=
"isExpandSearchForm"
loaddraftAction=
"FilterGetDraft"
loadAction=
"FilterGet"
name=
"searchform"
ref=
'searchform'
@
save=
"searchform_save($event)"
@
search=
"searchform_search($event)"
@
load=
"searchform_load($event)"
@
closeview=
"closeView($event)"
>
</view
_searchform
>
</template>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-borrow-grid-view/hrarchives-borrow-grid-view.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./hrarchives-borrow-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRArchivesBorrowGridViewBase } from './hrarchives-borrow-grid-view-base';
import view_grid from '@widgets/hrarchives-borrow/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrarchives-borrow/default-searchform/default-searchform.vue';
/**
* 档案借阅表格视图视图
*
* @export
* @class HRArchivesBorrowGridView
* @extends {HRArchivesBorrowGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HRArchivesBorrowGridView extends HRArchivesBorrowGridViewBase { }
</script>
app_PIM/src/pages/human-resource/hrarchives-borrow-v-001/hrarchives-borrow-v-001-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Subject
}
from
'rxjs'
;
import
{
OptionViewBase
}
from
'@/studio-core'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
HRArchivesBorrowAuthService
from
'@/authservice/hrarchives-borrow/hrarchives-borrow-auth-service'
;
import
OptionViewEngine
from
'@engine/view/option-view-engine'
;
import
HRArchivesBorrowUIService
from
'@/uiservice/hrarchives-borrow/hrarchives-borrow-ui-service'
;
/**
* 档案借阅视图基类
*
* @export
* @class HRArchivesBorrowV_001Base
* @extends {OptionViewBase}
*/
export
class
HRArchivesBorrowV_001Base
extends
OptionViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowV_001Base
*/
protected
appDeName
:
string
=
'hrarchivesborrow'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowV_001Base
*/
protected
appDeKey
:
string
=
'hrarchivesborrowid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowV_001Base
*/
protected
appDeMajor
:
string
=
'hrarchivesborrowname'
;
/**
* 实体服务对象
*
* @type {HRArchivesBorrowService}
* @memberof HRArchivesBorrowV_001Base
*/
protected
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
;
/**
* 实体权限服务对象
*
* @type HRArchivesBorrowUIService
* @memberof HRArchivesBorrowV_001Base
*/
public
appUIService
:
HRArchivesBorrowUIService
=
new
HRArchivesBorrowUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRArchivesBorrowV_001Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRArchivesBorrowV_001Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrarchivesborrow.views.v_001.caption'
,
srfTitle
:
'entities.hrarchivesborrow.views.v_001.title'
,
srfSubTitle
:
'entities.hrarchivesborrow.views.v_001.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRArchivesBorrowV_001Base
*/
protected
containerModel
:
any
=
{
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
view_okbtn
:
{
name
:
'okbtn'
,
type
:
'button'
,
text
:
'确定'
,
disabled
:
true
},
view_cancelbtn
:
{
name
:
'cancelbtn'
,
type
:
'button'
,
text
:
'取消'
,
disabled
:
false
},
view_leftbtn
:
{
name
:
'leftbtn'
,
type
:
'button'
,
text
:
'左移'
,
disabled
:
true
},
view_rightbtn
:
{
name
:
'rightbtn'
,
type
:
'button'
,
text
:
'右移'
,
disabled
:
true
},
view_allleftbtn
:
{
name
:
'allleftbtn'
,
type
:
'button'
,
text
:
'全部左移'
,
disabled
:
true
},
view_allrightbtn
:
{
name
:
'allrightbtn'
,
type
:
'button'
,
text
:
'全部右移'
,
disabled
:
true
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'4ff919a1d1c42560df859b49cf8a1542'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRArchivesBorrowV_001Base
*/
public
engine
:
OptionViewEngine
=
new
OptionViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRArchivesBorrowV_001Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'hrarchivesborrow'
,
majorPSDEField
:
'hrarchivesborrowname'
,
isLoadDefault
:
true
,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_001Base
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_001Base
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_001Base
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-borrow-v-001/hrarchives-borrow-v-001.html
0 → 100644
浏览文件 @
4acf1f78
<studio-view-style2
viewName=
"hrarchivesborrowv_001"
viewTitle=
"档案借阅"
class=
'deoptview hrarchives-borrow-v-001'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{viewCaption}}
</span>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"Update"
removeAction=
"Remove"
loaddraftAction=
"GetDraft"
loadAction=
"Get"
createAction=
"Create"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
<template
slot=
"footer"
>
<div
class=
"option-view-footer-actions"
>
<i-button
type=
'primary'
@
click=
"onClickOk.apply(_self, arguments)"
>
{{ containerModel.view_okbtn.text }}
</i-button>
<i-button
@
click=
"onClickCancel.apply(_self, arguments)"
>
{{ containerModel.view_cancelbtn.text }}
</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-borrow-v-001/hrarchives-borrow-v-001.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./hrarchives-borrow-v-001.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRArchivesBorrowV_001Base } from './hrarchives-borrow-v-001-base';
import view_form from '@widgets/hrarchives-borrow/main-form/main-form.vue';
/**
* 档案借阅视图
*
* @export
* @class HRArchivesBorrowV_001
* @extends {HRArchivesBorrowV_001Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRArchivesBorrowV_001 extends HRArchivesBorrowV_001Base { }
</script>
app_PIM/src/pages/human-resource/hrarchives-borrow-v-002/hrarchives-borrow-v-002-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Subject
}
from
'rxjs'
;
import
{
GridView9Base
}
from
'@/studio-core'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
HRArchivesBorrowAuthService
from
'@/authservice/hrarchives-borrow/hrarchives-borrow-auth-service'
;
import
GridView9Engine
from
'@engine/view/grid-view9-engine'
;
import
HRArchivesBorrowUIService
from
'@/uiservice/hrarchives-borrow/hrarchives-borrow-ui-service'
;
import
CodeListService
from
"@service/app/codelist-service"
;
/**
* 档案借阅视图基类
*
* @export
* @class HRArchivesBorrowV_002Base
* @extends {GridView9Base}
*/
export
class
HRArchivesBorrowV_002Base
extends
GridView9Base
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowV_002Base
*/
protected
appDeName
:
string
=
'hrarchivesborrow'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowV_002Base
*/
protected
appDeKey
:
string
=
'hrarchivesborrowid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRArchivesBorrowV_002Base
*/
protected
appDeMajor
:
string
=
'hrarchivesborrowname'
;
/**
* 实体服务对象
*
* @type {HRArchivesBorrowService}
* @memberof HRArchivesBorrowV_002Base
*/
protected
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
;
/**
* 实体权限服务对象
*
* @type HRArchivesBorrowUIService
* @memberof HRArchivesBorrowV_002Base
*/
public
appUIService
:
HRArchivesBorrowUIService
=
new
HRArchivesBorrowUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRArchivesBorrowV_002Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRArchivesBorrowV_002Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrarchivesborrow.views.v_002.caption'
,
srfTitle
:
'entities.hrarchivesborrow.views.v_002.title'
,
srfSubTitle
:
'entities.hrarchivesborrow.views.v_002.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRArchivesBorrowV_002Base
*/
protected
containerModel
:
any
=
{
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'296fd870f472f231791563de41119283'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRArchivesBorrowV_002Base
*/
public
engine
:
GridView9Engine
=
new
GridView9Engine
();
/**
* 引擎初始化
*
* @public
* @memberof HRArchivesBorrowV_002Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
opendata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
opendata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
newdata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
newdata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
grid
:
this
.
$refs
.
grid
,
keyPSDEField
:
'hrarchivesborrow'
,
majorPSDEField
:
'hrarchivesborrowname'
,
isLoadDefault
:
true
,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_002Base
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_002Base
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_002Base
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_002Base
*/
public
grid_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'remove'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesBorrowV_002Base
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesBorrowV_002
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesBorrowV_002
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-borrow-v-002/hrarchives-borrow-v-002.html
0 → 100644
浏览文件 @
4acf1f78
<studio-embed-view-style2
viewName=
"hrarchivesborrowv_002"
viewTitle=
"档案借阅"
class=
'degridview9 hrarchives-borrow-v-002'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{viewCaption}}
</span>
</template>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-embed-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-borrow-v-002/hrarchives-borrow-v-002.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./hrarchives-borrow-v-002.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRArchivesBorrowV_002Base } from './hrarchives-borrow-v-002-base';
import view_grid from '@widgets/hrarchives-borrow/main-grid/main-grid.vue';
/**
* 档案借阅视图
*
* @export
* @class HRArchivesBorrowV_002
* @extends {HRArchivesBorrowV_002Base}
*/
@Component({
components: {
view_grid,
}
})
@VueLifeCycleProcessing()
export default class HRArchivesBorrowV_002 extends HRArchivesBorrowV_002Base { }
</script>
app_PIM/src/pages/human-resource/hrarchives-move-grid-view/hrarchives-move-grid-view-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Subject
}
from
'rxjs'
;
import
{
GridViewBase
}
from
'@/studio-core'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
HRArchivesMoveAuthService
from
'@/authservice/hrarchives-move/hrarchives-move-auth-service'
;
import
GridViewEngine
from
'@engine/view/grid-view-engine'
;
import
HRArchivesMoveUIService
from
'@/uiservice/hrarchives-move/hrarchives-move-ui-service'
;
import
CodeListService
from
"@service/app/codelist-service"
;
/**
* 档案调档视图基类
*
* @export
* @class HRArchivesMoveGridViewBase
* @extends {GridViewBase}
*/
export
class
HRArchivesMoveGridViewBase
extends
GridViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRArchivesMoveGridViewBase
*/
protected
appDeName
:
string
=
'hrarchivesmove'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRArchivesMoveGridViewBase
*/
protected
appDeKey
:
string
=
'hrarchivesmoveid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRArchivesMoveGridViewBase
*/
protected
appDeMajor
:
string
=
'hrarchivesmovename'
;
/**
* 实体服务对象
*
* @type {HRArchivesMoveService}
* @memberof HRArchivesMoveGridViewBase
*/
protected
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
;
/**
* 实体权限服务对象
*
* @type HRArchivesMoveUIService
* @memberof HRArchivesMoveGridViewBase
*/
public
appUIService
:
HRArchivesMoveUIService
=
new
HRArchivesMoveUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRArchivesMoveGridViewBase
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRArchivesMoveGridViewBase
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrarchivesmove.views.gridview.caption'
,
srfTitle
:
'entities.hrarchivesmove.views.gridview.title'
,
srfSubTitle
:
'entities.hrarchivesmove.views.gridview.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRArchivesMoveGridViewBase
*/
protected
containerModel
:
any
=
{
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
view_searchform
:
{
name
:
'searchform'
,
type
:
'SEARCHFORM'
},
};
/**
* 工具栏模型
*
* @type {*}
* @memberof HRArchivesMoveGridView
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
,
class
:
''
}
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
,
class
:
''
}
},
tbitem7
:
{
name
:
'tbitem7'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem8
:
{
name
:
'tbitem8'
,
caption
:
'删除'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
,
class
:
''
}
},
tbitem9
:
{
name
:
'tbitem9'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem13
:
{
name
:
'tbitem13'
,
caption
:
'导出'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'导出'
,
iconcls
:
'fa fa-file-excel-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ExportExcel'
,
target
:
''
},
MaxRowCount
:
1000
,
class
:
''
},
tbitem10
:
{
name
:
'tbitem10'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem19
:
{
name
:
'tbitem19'
,
caption
:
'过滤'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'过滤'
,
iconcls
:
'fa fa-filter'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ToggleFilter'
,
target
:
''
,
class
:
''
}
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'f26c77e32eb39f0d5feda6cdd6d73f39'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRArchivesMoveGridViewBase
*/
public
engine
:
GridViewEngine
=
new
GridViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRArchivesMoveGridViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
opendata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
opendata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
newdata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
newdata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'hrarchivesmove'
,
majorPSDEField
:
'hrarchivesmovename'
,
isLoadDefault
:
true
,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem13'
))
{
this
.
toolbar_tbitem13_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem11'
))
{
this
.
toolbar_tbitem11_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem19'
))
{
this
.
toolbar_tbitem19_click
(
null
,
''
,
$event2
);
}
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
grid_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'remove'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
searchform_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'save'
,
$event
);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
searchform_search
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'search'
,
$event
);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveGridViewBase
*/
public
searchform_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem4_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem8_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem13_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem11_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem19_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
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"HRArchivesMove"
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesMoveGridView
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
hrarchivesmove
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrarchivesmoves'
,
parameterName
:
'hrarchivesmove'
},
];
const
_this
:
any
=
this
;
const
openDrawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrarchives-move-v-002'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrarchivesmove.views.v_002.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesMoveGridView
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
const
localContext
:
any
=
null
;
const
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'hrarchivesmoves'
,
parameterName
:
'hrarchivesmove'
},
];
const
_this
:
any
=
this
;
const
openDrawer
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
const
view
:
any
=
{
viewname
:
'hrarchives-move-v-002'
,
height
:
0
,
width
:
600
,
title
:
this
.
$t
(
'entities.hrarchivesmove.views.v_002.title'
),
placement
:
'DRAWER_RIGHT'
,
};
openDrawer
(
view
,
data
);
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
hrarchivesmove
:
args
[
0
].
hrarchivesmove
})
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
hasOwnProperty
(
'newRow'
)
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
public
SaveRow
(
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
();
}
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 HRArchivesMoveGridViewBase
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
remove
instanceof
Function
))
{
return
;
}
xData
.
remove
(
args
);
}
/**
* 导出
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
public
ExportExcel
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
exportExcel
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
exportExcel
(
$event
.
exportparms
);
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
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 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HRArchivesMoveGridViewBase
*/
public
ToggleFilter
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
hasOwnProperty
(
'isExpandSearchForm'
))
{
_this
.
isExpandSearchForm
=
!
_this
.
isExpandSearchForm
;
}
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-move-grid-view/hrarchives-move-grid-view.html
0 → 100644
浏览文件 @
4acf1f78
<studio-view-style2
viewName=
"hrarchivesmovegridview"
viewTitle=
"档案调档"
class=
'degridview hrarchives-move-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"档案调档名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click.apply(_self, arguments)"
/>
</template>
<template
slot=
"searchForm"
>
<view
_searchform
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
v-show=
"isExpandSearchForm"
loaddraftAction=
"FilterGetDraft"
loadAction=
"FilterGet"
name=
"searchform"
ref=
'searchform'
@
save=
"searchform_save($event)"
@
search=
"searchform_search($event)"
@
load=
"searchform_load($event)"
@
closeview=
"closeView($event)"
>
</view
_searchform
>
</template>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-move-grid-view/hrarchives-move-grid-view.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./hrarchives-move-grid-view.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRArchivesMoveGridViewBase } from './hrarchives-move-grid-view-base';
import view_grid from '@widgets/hrarchives-move/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrarchives-move/default-searchform/default-searchform.vue';
/**
* 档案调档视图
*
* @export
* @class HRArchivesMoveGridView
* @extends {HRArchivesMoveGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HRArchivesMoveGridView extends HRArchivesMoveGridViewBase { }
</script>
app_PIM/src/pages/human-resource/hrarchives-move-v-001/hrarchives-move-v-001-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Subject
}
from
'rxjs'
;
import
{
GridView9Base
}
from
'@/studio-core'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
HRArchivesMoveAuthService
from
'@/authservice/hrarchives-move/hrarchives-move-auth-service'
;
import
GridView9Engine
from
'@engine/view/grid-view9-engine'
;
import
HRArchivesMoveUIService
from
'@/uiservice/hrarchives-move/hrarchives-move-ui-service'
;
import
CodeListService
from
"@service/app/codelist-service"
;
/**
* 调档记录视图基类
*
* @export
* @class HRArchivesMoveV_001Base
* @extends {GridView9Base}
*/
export
class
HRArchivesMoveV_001Base
extends
GridView9Base
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRArchivesMoveV_001Base
*/
protected
appDeName
:
string
=
'hrarchivesmove'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRArchivesMoveV_001Base
*/
protected
appDeKey
:
string
=
'hrarchivesmoveid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRArchivesMoveV_001Base
*/
protected
appDeMajor
:
string
=
'hrarchivesmovename'
;
/**
* 实体服务对象
*
* @type {HRArchivesMoveService}
* @memberof HRArchivesMoveV_001Base
*/
protected
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
;
/**
* 实体权限服务对象
*
* @type HRArchivesMoveUIService
* @memberof HRArchivesMoveV_001Base
*/
public
appUIService
:
HRArchivesMoveUIService
=
new
HRArchivesMoveUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRArchivesMoveV_001Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRArchivesMoveV_001Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrarchivesmove.views.v_001.caption'
,
srfTitle
:
'entities.hrarchivesmove.views.v_001.title'
,
srfSubTitle
:
'entities.hrarchivesmove.views.v_001.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRArchivesMoveV_001Base
*/
protected
containerModel
:
any
=
{
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'b50ba73bdcf5631dc218cfb08097d534'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRArchivesMoveV_001Base
*/
public
engine
:
GridView9Engine
=
new
GridView9Engine
();
/**
* 引擎初始化
*
* @public
* @memberof HRArchivesMoveV_001Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
opendata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
opendata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
newdata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
newdata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
grid
:
this
.
$refs
.
grid
,
keyPSDEField
:
'hrarchivesmove'
,
majorPSDEField
:
'hrarchivesmovename'
,
isLoadDefault
:
true
,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_001Base
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_001Base
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_001Base
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_001Base
*/
public
grid_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'remove'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_001Base
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesMoveV_001
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HRArchivesMoveV_001
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-move-v-001/hrarchives-move-v-001.html
0 → 100644
浏览文件 @
4acf1f78
<studio-embed-view-style2
viewName=
"hrarchivesmovev_001"
viewTitle=
"调档记录"
class=
'degridview9 hrarchives-move-v-001'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{viewCaption}}
</span>
</template>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isGridSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
@
save=
"onSave.apply(_self, arguments)"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata.bind(_self)"
:opendata=
"opendata.bind(_self)"
name=
"grid"
ref=
'grid'
@
selectionchange=
"grid_selectionchange($event)"
@
beforeload=
"grid_beforeload($event)"
@
rowdblclick=
"grid_rowdblclick($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</studio-embed-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-move-v-001/hrarchives-move-v-001.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./hrarchives-move-v-001.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRArchivesMoveV_001Base } from './hrarchives-move-v-001-base';
import view_grid from '@widgets/hrarchives-move/main-grid/main-grid.vue';
/**
* 调档记录视图
*
* @export
* @class HRArchivesMoveV_001
* @extends {HRArchivesMoveV_001Base}
*/
@Component({
components: {
view_grid,
}
})
@VueLifeCycleProcessing()
export default class HRArchivesMoveV_001 extends HRArchivesMoveV_001Base { }
</script>
app_PIM/src/pages/human-resource/hrarchives-move-v-002/hrarchives-move-v-002-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Subject
}
from
'rxjs'
;
import
{
OptionViewBase
}
from
'@/studio-core'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
HRArchivesMoveAuthService
from
'@/authservice/hrarchives-move/hrarchives-move-auth-service'
;
import
OptionViewEngine
from
'@engine/view/option-view-engine'
;
import
HRArchivesMoveUIService
from
'@/uiservice/hrarchives-move/hrarchives-move-ui-service'
;
/**
* 调档记录视图基类
*
* @export
* @class HRArchivesMoveV_002Base
* @extends {OptionViewBase}
*/
export
class
HRArchivesMoveV_002Base
extends
OptionViewBase
{
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRArchivesMoveV_002Base
*/
protected
appDeName
:
string
=
'hrarchivesmove'
;
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRArchivesMoveV_002Base
*/
protected
appDeKey
:
string
=
'hrarchivesmoveid'
;
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRArchivesMoveV_002Base
*/
protected
appDeMajor
:
string
=
'hrarchivesmovename'
;
/**
* 实体服务对象
*
* @type {HRArchivesMoveService}
* @memberof HRArchivesMoveV_002Base
*/
protected
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
;
/**
* 实体权限服务对象
*
* @type HRArchivesMoveUIService
* @memberof HRArchivesMoveV_002Base
*/
public
appUIService
:
HRArchivesMoveUIService
=
new
HRArchivesMoveUIService
(
this
.
$store
);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRArchivesMoveV_002Base
*/
protected
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRArchivesMoveV_002Base
*/
protected
model
:
any
=
{
srfCaption
:
'entities.hrarchivesmove.views.v_002.caption'
,
srfTitle
:
'entities.hrarchivesmove.views.v_002.title'
,
srfSubTitle
:
'entities.hrarchivesmove.views.v_002.subtitle'
,
dataInfo
:
''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRArchivesMoveV_002Base
*/
protected
containerModel
:
any
=
{
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
view_okbtn
:
{
name
:
'okbtn'
,
type
:
'button'
,
text
:
'确定'
,
disabled
:
true
},
view_cancelbtn
:
{
name
:
'cancelbtn'
,
type
:
'button'
,
text
:
'取消'
,
disabled
:
false
},
view_leftbtn
:
{
name
:
'leftbtn'
,
type
:
'button'
,
text
:
'左移'
,
disabled
:
true
},
view_rightbtn
:
{
name
:
'rightbtn'
,
type
:
'button'
,
text
:
'右移'
,
disabled
:
true
},
view_allleftbtn
:
{
name
:
'allleftbtn'
,
type
:
'button'
,
text
:
'全部左移'
,
disabled
:
true
},
view_allrightbtn
:
{
name
:
'allrightbtn'
,
type
:
'button'
,
text
:
'全部右移'
,
disabled
:
true
},
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected
viewtag
:
string
=
'682bfe80bc00d04530e87b55c178c6f3'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRArchivesMoveV_002Base
*/
public
engine
:
OptionViewEngine
=
new
OptionViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof HRArchivesMoveV_002Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
keyPSDEField
:
'hrarchivesmove'
,
majorPSDEField
:
'hrarchivesmovename'
,
isLoadDefault
:
true
,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_002Base
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_002Base
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesMoveV_002Base
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
):
void
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
}
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-move-v-002/hrarchives-move-v-002.html
0 → 100644
浏览文件 @
4acf1f78
<studio-view-style2
viewName=
"hrarchivesmovev_002"
viewTitle=
"调档记录"
class=
'deoptview hrarchives-move-v-002'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{viewCaption}}
</span>
</template>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"Update"
removeAction=
"Remove"
loaddraftAction=
"GetDraft"
loadAction=
"Get"
createAction=
"Create"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
<template
slot=
"footer"
>
<div
class=
"option-view-footer-actions"
>
<i-button
type=
'primary'
@
click=
"onClickOk.apply(_self, arguments)"
>
{{ containerModel.view_okbtn.text }}
</i-button>
<i-button
@
click=
"onClickCancel.apply(_self, arguments)"
>
{{ containerModel.view_cancelbtn.text }}
</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
app_PIM/src/pages/human-resource/hrarchives-move-v-002/hrarchives-move-v-002.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./hrarchives-move-v-002.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRArchivesMoveV_002Base } from './hrarchives-move-v-002-base';
import view_form from '@widgets/hrarchives-move/main-form/main-form.vue';
/**
* 调档记录视图
*
* @export
* @class HRArchivesMoveV_002
* @extends {HRArchivesMoveV_002Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRArchivesMoveV_002 extends HRArchivesMoveV_002Base { }
</script>
app_PIM/src/pages/ungroup/pim/page-register.ts
浏览文件 @
4acf1f78
...
...
@@ -3,6 +3,7 @@ export const PageComponents = {
Vue
.
component
(
'hrcertificate-edit-view'
,
()
=>
import
(
'@pages/human-resource/hrcertificate-edit-view/hrcertificate-edit-view.vue'
));
Vue
.
component
(
'hrreward-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrreward-grid-view/hrreward-grid-view.vue'
));
Vue
.
component
(
'hrpost-v-004'
,
()
=>
import
(
'@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'
));
Vue
.
component
(
'hrarchives-move-v-002'
,
()
=>
import
(
'@pages/human-resource/hrarchives-move-v-002/hrarchives-move-v-002.vue'
));
Vue
.
component
(
'hrduty-v-001'
,
()
=>
import
(
'@pages/human-resource/hrduty-v-001/hrduty-v-001.vue'
));
Vue
.
component
(
'hrcontract-v-001'
,
()
=>
import
(
'@pages/human-resource/hrcontract-v-001/hrcontract-v-001.vue'
));
Vue
.
component
(
'hromhierarchy-cat-tab-exp-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-tab-exp-view/hromhierarchy-cat-tab-exp-view.vue'
));
...
...
@@ -11,6 +12,7 @@ export const PageComponents = {
Vue
.
component
(
'hroperation-unit-v-001'
,
()
=>
import
(
'@pages/base/hroperation-unit-v-001/hroperation-unit-v-001.vue'
));
Vue
.
component
(
'hrcertificate-v-002'
,
()
=>
import
(
'@pages/human-resource/hrcertificate-v-002/hrcertificate-v-002.vue'
));
Vue
.
component
(
'hrduty-pickup-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrduty-pickup-grid-view/hrduty-pickup-grid-view.vue'
));
Vue
.
component
(
'hrarchives-borrow-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrarchives-borrow-grid-view/hrarchives-borrow-grid-view.vue'
));
Vue
.
component
(
'hrcontract-v-003'
,
()
=>
import
(
'@pages/human-resource/hrcontract-v-003/hrcontract-v-003.vue'
));
Vue
.
component
(
'hroperation-unit-v-002'
,
()
=>
import
(
'@pages/base/hroperation-unit-v-002/hroperation-unit-v-002.vue'
));
Vue
.
component
(
'hrtechnical-title-v-002'
,
()
=>
import
(
'@pages/human-resource/hrtechnical-title-v-002/hrtechnical-title-v-002.vue'
));
...
...
@@ -38,6 +40,7 @@ export const PageComponents = {
Vue
.
component
(
'hromhierarchy-cat-grid-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue'
));
Vue
.
component
(
'hremployee-v-001'
,
()
=>
import
(
'@pages/human-resource/hremployee-v-001/hremployee-v-001.vue'
));
Vue
.
component
(
'hrpost-rel-v-001'
,
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'
));
Vue
.
component
(
'hrarchives-borrow-v-001'
,
()
=>
import
(
'@pages/human-resource/hrarchives-borrow-v-001/hrarchives-borrow-v-001.vue'
));
Vue
.
component
(
'hrtransfer-apply-v-002'
,
()
=>
import
(
'@pages/pcm/hrtransfer-apply-v-002/hrtransfer-apply-v-002.vue'
));
Vue
.
component
(
'hrtransfer-apply-wfdyna-edit-view'
,
()
=>
import
(
'@pages/pcm/hrtransfer-apply-wfdyna-edit-view/hrtransfer-apply-wfdyna-edit-view.vue'
));
Vue
.
component
(
'hrresearch-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrresearch-grid-view/hrresearch-grid-view.vue'
));
...
...
@@ -52,6 +55,7 @@ export const PageComponents = {
Vue
.
component
(
'hrtransfer-apply-dashboard-view'
,
()
=>
import
(
'@pages/pcm/hrtransfer-apply-dashboard-view/hrtransfer-apply-dashboard-view.vue'
));
Vue
.
component
(
'hrcontract-v-004'
,
()
=>
import
(
'@pages/human-resource/hrcontract-v-004/hrcontract-v-004.vue'
));
Vue
.
component
(
'hromhierarchy-cat-pickup-view'
,
()
=>
import
(
'@pages/base/hromhierarchy-cat-pickup-view/hromhierarchy-cat-pickup-view.vue'
));
Vue
.
component
(
'hrarchives-move-v-001'
,
()
=>
import
(
'@pages/human-resource/hrarchives-move-v-001/hrarchives-move-v-001.vue'
));
Vue
.
component
(
'hremployee-v-007'
,
()
=>
import
(
'@pages/human-resource/hremployee-v-007/hremployee-v-007.vue'
));
Vue
.
component
(
'hrtechnical-title-v-003'
,
()
=>
import
(
'@pages/human-resource/hrtechnical-title-v-003/hrtechnical-title-v-003.vue'
));
Vue
.
component
(
'hrpost-v-005'
,
()
=>
import
(
'@pages/human-resource/hrpost-v-005/hrpost-v-005.vue'
));
...
...
@@ -105,6 +109,7 @@ export const PageComponents = {
Vue
.
component
(
'hrreward-edit-view'
,
()
=>
import
(
'@pages/human-resource/hrreward-edit-view/hrreward-edit-view.vue'
));
Vue
.
component
(
'hrduty-cert-v-001'
,
()
=>
import
(
'@pages/human-resource/hrduty-cert-v-001/hrduty-cert-v-001.vue'
));
Vue
.
component
(
'hrcertificate-v-004'
,
()
=>
import
(
'@pages/human-resource/hrcertificate-v-004/hrcertificate-v-004.vue'
));
Vue
.
component
(
'hrarchives-move-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrarchives-move-grid-view/hrarchives-move-grid-view.vue'
));
Vue
.
component
(
'hrlegal-dashboard-view'
,
()
=>
import
(
'@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'
));
Vue
.
component
(
'hrlegal-v-001'
,
()
=>
import
(
'@pages/base/hrlegal-v-001/hrlegal-v-001.vue'
));
Vue
.
component
(
'hrwork-record-grid-view'
,
()
=>
import
(
'@pages/human-resource/hrwork-record-grid-view/hrwork-record-grid-view.vue'
));
...
...
@@ -145,5 +150,6 @@ export const PageComponents = {
Vue
.
component
(
'hrtransfer-apply-v-004'
,
()
=>
import
(
'@pages/pcm/hrtransfer-apply-v-004/hrtransfer-apply-v-004.vue'
));
Vue
.
component
(
'hrcertificate-v-003'
,
()
=>
import
(
'@pages/human-resource/hrcertificate-v-003/hrcertificate-v-003.vue'
));
Vue
.
component
(
'hrtechnical-title-edit-view'
,
()
=>
import
(
'@pages/human-resource/hrtechnical-title-edit-view/hrtechnical-title-edit-view.vue'
));
Vue
.
component
(
'hrarchives-borrow-v-002'
,
()
=>
import
(
'@pages/human-resource/hrarchives-borrow-v-002/hrarchives-borrow-v-002.vue'
));
}
};
\ No newline at end of file
app_PIM/src/pages/ungroup/pim/router.ts
浏览文件 @
4acf1f78
...
...
@@ -115,6 +115,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'
),
},
{
path
:
'hrarchivesmoves/:hrarchivesmove?/v_002/:v_002?'
,
meta
:
{
caption
:
'entities.hrarchivesmove.views.v_002.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrarchivesmoves'
,
parameterName
:
'hrarchivesmove'
},
{
pathName
:
'v_002'
,
parameterName
:
'v_002'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrarchives-move-v-002/hrarchives-move-v-002.vue'
),
},
{
path
:
'hrduties/:hrduty?/v_001/:v_001?'
,
meta
:
{
...
...
@@ -287,6 +301,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrduty-pickup-grid-view/hrduty-pickup-grid-view.vue'
),
},
{
path
:
'hrarchivesborrows/:hrarchivesborrow?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.hrarchivesborrow.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrarchivesborrows'
,
parameterName
:
'hrarchivesborrow'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrarchives-borrow-grid-view/hrarchives-borrow-grid-view.vue'
),
},
{
path
:
'hremployees/:hremployee?/hrcontracts/:hrcontract?/v_003/:v_003?'
,
meta
:
{
...
...
@@ -875,6 +903,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'
),
},
{
path
:
'hrarchivesborrows/:hrarchivesborrow?/v_001/:v_001?'
,
meta
:
{
caption
:
'entities.hrarchivesborrow.views.v_001.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrarchivesborrows'
,
parameterName
:
'hrarchivesborrow'
},
{
pathName
:
'v_001'
,
parameterName
:
'v_001'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrarchives-borrow-v-001/hrarchives-borrow-v-001.vue'
),
},
{
path
:
'hrposts/:hrpost?/hrtransferapplies/:hrtransferapply?/v_002/:v_002?'
,
meta
:
{
...
...
@@ -1326,6 +1368,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/base/hromhierarchy-cat-pickup-view/hromhierarchy-cat-pickup-view.vue'
),
},
{
path
:
'hrarchivesmoves/:hrarchivesmove?/v_001/:v_001?'
,
meta
:
{
caption
:
'entities.hrarchivesmove.views.v_001.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrarchivesmoves'
,
parameterName
:
'hrarchivesmove'
},
{
pathName
:
'v_001'
,
parameterName
:
'v_001'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrarchives-move-v-001/hrarchives-move-v-001.vue'
),
},
{
path
:
'hremployees/:hremployee?/v_007/:v_007?'
,
meta
:
{
...
...
@@ -2683,6 +2739,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrcertificate-v-004/hrcertificate-v-004.vue'
),
},
{
path
:
'hrarchivesmoves/:hrarchivesmove?/gridview/:gridview?'
,
meta
:
{
caption
:
'entities.hrarchivesmove.views.gridview.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrarchivesmoves'
,
parameterName
:
'hrarchivesmove'
},
{
pathName
:
'gridview'
,
parameterName
:
'gridview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrarchives-move-grid-view/hrarchives-move-grid-view.vue'
),
},
{
path
:
'hrlegals/:hrlegal?/dashboardview/:dashboardview?'
,
meta
:
{
...
...
@@ -3933,6 +4003,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/human-resource/hrtechnical-title-edit-view/hrtechnical-title-edit-view.vue'
),
},
{
path
:
'hrarchivesborrows/:hrarchivesborrow?/v_002/:v_002?'
,
meta
:
{
caption
:
'entities.hrarchivesborrow.views.v_002.title'
,
info
:
''
,
parameters
:
[
{
pathName
:
'pim'
,
parameterName
:
'pim'
},
{
pathName
:
'hrarchivesborrows'
,
parameterName
:
'hrarchivesborrow'
},
{
pathName
:
'v_002'
,
parameterName
:
'v_002'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/human-resource/hrarchives-borrow-v-002/hrarchives-borrow-v-002.vue'
),
},
...
indexRoutes
,
],
},
...
...
app_PIM/src/store/modules/view-action/state.ts
浏览文件 @
4acf1f78
...
...
@@ -305,6 +305,15 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'296fd870f472f231791563de41119283'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRArchivesBorrowV_002'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'2b64c322042da1808776304d21c90e45'
,
viewmodule
:
'Base'
,
...
...
@@ -416,6 +425,8 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'b50ba73bdcf5631dc218cfb08097d534'
,
'296fd870f472f231791563de41119283'
,
],
},
{
...
...
@@ -501,6 +512,15 @@ export const viewstate: any = {
'6cf9411c3f3597947dfee8dad2968182'
,
],
},
{
viewtag
:
'4ff919a1d1c42560df859b49cf8a1542'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRArchivesBorrowV_001'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'532833b3a07947f04a46adcc957a0ca6'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -541,8 +561,9 @@ export const viewstate: any = {
viewdatachange
:
false
,
refviews
:
[
'4726bc4ee402aed771ecabe7a6ecdaae'
,
'f31e79001d0aafc5a665b5dfeb4eea80'
,
'f26c77e32eb39f0d5feda6cdd6d73f39'
,
'd33bb4278ea65f691909636c691a0666'
,
'c01c4604589a2c171c4f41f2ac11f4e2'
,
],
},
{
...
...
@@ -616,6 +637,15 @@ export const viewstate: any = {
'cd7f9e0b57fdfdf34307ce460137b152'
,
],
},
{
viewtag
:
'682bfe80bc00d04530e87b55c178c6f3'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRArchivesMoveV_002'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'685cd7da1331d604d0382b8d64d90664'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -1036,6 +1066,15 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'b50ba73bdcf5631dc218cfb08097d534'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRArchivesMoveV_001'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'b748e4bd87b9d77bfc24835a2e5e96c9'
,
viewmodule
:
'HumanResource'
,
...
...
@@ -1517,6 +1556,26 @@ export const viewstate: any = {
'5efdfaf722e7585dfd685922b16f7f88'
,
],
},
{
viewtag
:
'f26c77e32eb39f0d5feda6cdd6d73f39'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRArchivesMoveGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'682bfe80bc00d04530e87b55c178c6f3'
,
],
},
{
viewtag
:
'f31e79001d0aafc5a665b5dfeb4eea80'
,
viewmodule
:
'HumanResource'
,
viewname
:
'HRArchivesBorrowGridView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'4ff919a1d1c42560df859b49cf8a1542'
,
],
},
{
viewtag
:
'f6a6d0da81100b5a69aba1b9b967b6ab'
,
viewmodule
:
'Base'
,
...
...
app_PIM/src/uiservice/hrarchives-move/hrarchives-move-ui-service-base.ts
浏览文件 @
4acf1f78
...
...
@@ -89,6 +89,9 @@ export default class HRArchivesMoveUIServiceBase extends UIService {
* @memberof HRArchivesMoveUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_002'
,
srfappde
:
'hrarchivesmoves'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'v_001'
,
srfappde
:
'hrarchivesmoves'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'hrarchivesmoves'
});
}
/**
...
...
app_PIM/src/widgets/hrarchives-borrow/default-searchform/default-searchform-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
SearchFormControlBase
}
from
'@/studio-core'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
DefaultService
from
'./default-searchform-service'
;
import
HRArchivesBorrowUIService
from
'@/uiservice/hrarchives-borrow/hrarchives-borrow-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
/**
* searchform部件基类
*
* @export
* @class SearchFormControlBase
* @extends {DefaultSearchFormBase}
*/
export
class
DefaultSearchFormBase
extends
SearchFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
controlType
:
string
=
'SEARCHFORM'
;
/**
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof DefaultSearchFormBase
*/
public
service
:
DefaultService
=
new
DefaultService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRArchivesBorrowService}
* @memberof DefaultSearchFormBase
*/
public
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeName
:
string
=
'hrarchivesborrow'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'档案借阅'
;
/**
* 表单数据对象
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
data
:
any
=
{
};
/**
* 详情模型集合
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
detailsModel
:
any
=
{
formpage1
:
new
FormPageModel
({
caption
:
'常规条件'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
};
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/default-searchform/default-searchform-model.ts
0 → 100644
浏览文件 @
4acf1f78
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export
default
class
DefaultModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/default-searchform/default-searchform-service.ts
0 → 100644
浏览文件 @
4acf1f78
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
DefaultModel
from
'./default-searchform-model'
;
/**
* Default 部件服务对象
*
* @export
* @class DefaultService
*/
export
default
class
DefaultService
extends
ControlService
{
/**
* 档案借阅服务对象
*
* @type {HRArchivesBorrowService}
* @memberof DefaultService
*/
public
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof DefaultService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of DefaultService.
*
* @param {*} [opts={}]
* @memberof DefaultService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
DefaultModel
();
}
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof DefaultService
*/
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 DefaultService
*/
@
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
;
return
Promise
.
reject
([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
wfstart
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFStart
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
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]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Get
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
loadDraft
(
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
.
GetDraft
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
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 DefaultService
*/
@
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 DefaultService
*/
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
];
}
}
});
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 DefaultService
*/
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
();
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/default-searchform/default-searchform.html
0 → 100644
浏览文件 @
4acf1f78
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'searchform'
style=
""
>
<input
style=
"display:none;"
/>
<div
class=
"search-button"
>
<i-button
size=
"small"
type=
"primary"
ghost
@
click=
"onSearch.apply(_self, arguments)"
>
{{$t('app.searchButton.search')}}
</i-button>
<i-button
size=
"small"
type=
"default"
ghost
@
click=
"onReset.apply(_self, arguments)"
>
{{this.$t('app.searchButton.reset')}}
</i-button>
</div>
<div
class=
"form-content"
>
</div>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/default-searchform/default-searchform.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./default-searchform.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DefaultSearchFormBase } from './default-searchform-base';
/**
* searchform部件
*
* @export
* @class DefaultSearchForm
* @extends {DefaultSearchFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DefaultSearchForm extends DefaultSearchFormBase { }
</script>
app_PIM/src/widgets/hrarchives-borrow/main-form/main-form-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
MainService
from
'./main-form-service'
;
import
HRArchivesBorrowUIService
from
'@/uiservice/hrarchives-borrow/hrarchives-borrow-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {MainEditFormBase}
*/
export
class
MainEditFormBase
extends
EditFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
controlType
:
string
=
'FORM'
;
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainEditFormBase
*/
public
service
:
MainService
=
new
MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRArchivesBorrowService}
* @memberof MainEditFormBase
*/
public
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrarchivesborrow'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'档案借阅'
;
/**
* 界面UI服务对象
*
* @type {HRArchivesBorrowUIService}
* @memberof MainEditFormBase
*/
public
appUIService
:
HRArchivesBorrowUIService
=
new
HRArchivesBorrowUIService
(
this
.
$store
);
/**
* 表单数据对象
*
* @type {*}
* @memberof MainEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
borrowman
:
null
,
begintime
:
null
,
endtime
:
null
,
checkman
:
null
,
checktime
:
null
,
borrowreason
:
null
,
borrowstate
:
null
,
hrarchivesborrowid
:
null
,
hrarchivesborrow
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
borrowman
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'借阅人 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'借阅人 值不能为空'
,
trigger
:
'blur'
},
],
begintime
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'借阅时间 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'借阅时间 值不能为空'
,
trigger
:
'blur'
},
],
borrowstate
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'借阅状态 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'借阅状态 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 属性值规则
*
* @type {*}
* @memberof MainBase
*/
public
deRules
:
any
=
{
};
/**
* 详情模型集合
*
* @type {*}
* @memberof MainEditFormBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'档案借阅基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrarchivesborrow.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srforikey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srforikey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfkey
:
new
FormItemModel
({
caption
:
'档案借阅标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'档案借阅名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfdeid
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfdeid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
borrowman
:
new
FormItemModel
({
caption
:
'借阅人'
,
detailType
:
'FORMITEM'
,
name
:
'borrowman'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
begintime
:
new
FormItemModel
({
caption
:
'借阅时间'
,
detailType
:
'FORMITEM'
,
name
:
'begintime'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
endtime
:
new
FormItemModel
({
caption
:
'归还时间'
,
detailType
:
'FORMITEM'
,
name
:
'endtime'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
checkman
:
new
FormItemModel
({
caption
:
'审批同意人'
,
detailType
:
'FORMITEM'
,
name
:
'checkman'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
checktime
:
new
FormItemModel
({
caption
:
'审批时间'
,
detailType
:
'FORMITEM'
,
name
:
'checktime'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
borrowreason
:
new
FormItemModel
({
caption
:
'借阅原因'
,
detailType
:
'FORMITEM'
,
name
:
'borrowreason'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
borrowstate
:
new
FormItemModel
({
caption
:
'借阅状态'
,
detailType
:
'FORMITEM'
,
name
:
'borrowstate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrarchivesborrowid
:
new
FormItemModel
({
caption
:
'档案借阅标识'
,
detailType
:
'FORMITEM'
,
name
:
'hrarchivesborrowid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-form/main-form-model.ts
0 → 100644
浏览文件 @
4acf1f78
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfupdatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'srforikey'
,
},
{
name
:
'srfkey'
,
prop
:
'hrarchivesborrowid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'hrarchivesborrowname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'borrowman'
,
prop
:
'borrowman'
,
dataType
:
'TEXT'
,
},
{
name
:
'begintime'
,
prop
:
'begintime'
,
dataType
:
'DATE'
,
},
{
name
:
'endtime'
,
prop
:
'endtime'
,
dataType
:
'DATE'
,
},
{
name
:
'checkman'
,
prop
:
'checkman'
,
dataType
:
'TEXT'
,
},
{
name
:
'checktime'
,
prop
:
'checktime'
,
dataType
:
'DATE'
,
},
{
name
:
'borrowreason'
,
prop
:
'borrowreason'
,
dataType
:
'TEXT'
,
},
{
name
:
'borrowstate'
,
prop
:
'borrowstate'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'hrarchivesborrowid'
,
prop
:
'hrarchivesborrowid'
,
dataType
:
'GUID'
,
},
{
name
:
'hrarchivesborrow'
,
prop
:
'hrarchivesborrowid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-form/main-form-service.ts
0 → 100644
浏览文件 @
4acf1f78
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
MainModel
from
'./main-form-model'
;
/**
* Main 部件服务对象
*
* @export
* @class MainService
*/
export
default
class
MainService
extends
ControlService
{
/**
* 档案借阅服务对象
*
* @type {HRArchivesBorrowService}
* @memberof MainService
*/
public
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof MainService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of MainService.
*
* @param {*} [opts={}]
* @memberof MainService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
MainModel
();
}
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof MainService
*/
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 MainService
*/
@
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
;
return
Promise
.
reject
([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
wfstart
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFStart
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof MainService
*/
@
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]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Get
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
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
.
hrarchivesborrowid
=
PrimaryKey
;
Data
.
hrarchivesborrow
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
response
.
data
.
hrarchivesborrowid
=
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 MainService
*/
@
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 MainService
*/
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
];
}
}
});
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 MainService
*/
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
();
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-form/main-form.html
0 → 100644
浏览文件 @
4acf1f78
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'hrarchivesborrow_main'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrarchivesborrow.main_form.details.group1')"
:isShowCaption=
"false"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.borrowman.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'borrowman'
:itemRules=
"this.rules.borrowman"
class=
''
:caption=
"$t('entities.hrarchivesborrow.main_form.details.borrowman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.borrowman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.borrowman"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.borrowman.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.begintime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'begintime'
:itemRules=
"this.rules.begintime"
class=
''
:caption=
"$t('entities.hrarchivesborrow.main_form.details.begintime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.begintime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.begintime"
:disabled=
"detailsModel.begintime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.begintime = val1 }"
></date-picker>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.endtime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'endtime'
:itemRules=
"this.rules.endtime"
class=
''
:caption=
"$t('entities.hrarchivesborrow.main_form.details.endtime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.endtime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.endtime"
:disabled=
"detailsModel.endtime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.endtime = val1 }"
></date-picker>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.checkman.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'checkman'
:itemRules=
"this.rules.checkman"
class=
''
:caption=
"$t('entities.hrarchivesborrow.main_form.details.checkman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.checkman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.checkman"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.checkman.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.checktime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'checktime'
:itemRules=
"this.rules.checktime"
class=
''
:caption=
"$t('entities.hrarchivesborrow.main_form.details.checktime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.checktime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.checktime"
:disabled=
"detailsModel.checktime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.checktime = val1 }"
></date-picker>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.borrowreason.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'borrowreason'
:itemRules=
"this.rules.borrowreason"
class=
''
:caption=
"$t('entities.hrarchivesborrow.main_form.details.borrowreason')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.borrowreason.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.borrowreason"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.borrowreason.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.borrowstate.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'borrowstate'
:itemRules=
"this.rules.borrowstate"
class=
''
:caption=
"$t('entities.hrarchivesborrow.main_form.details.borrowstate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.borrowstate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.borrowstate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.borrowstate.disabled"
valueType=
"string"
tag=
'CL_HR_0024'
codelistType=
'STATIC'
placeholder=
'请选择...'
/>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-form/main-form.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./main-form.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainEditFormBase } from './main-form-base';
/**
* form部件
*
* @export
* @class MainEditForm
* @extends {MainEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainEditForm extends MainEditFormBase { }
</script>
app_PIM/src/widgets/hrarchives-borrow/main-grid/main-grid-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
GridControlBase
}
from
'@/studio-core'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
MainService
from
'./main-grid-service'
;
import
HRArchivesBorrowUIService
from
'@/uiservice/hrarchives-borrow/hrarchives-borrow-ui-service'
;
import
{
FormItemModel
}
from
'@/model/form-detail'
;
/**
* grid部件基类
*
* @export
* @class GridControlBase
* @extends {MainGridBase}
*/
export
class
MainGridBase
extends
GridControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
controlType
:
string
=
'GRID'
;
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainGridBase
*/
public
service
:
MainService
=
new
MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRArchivesBorrowService}
* @memberof MainGridBase
*/
public
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeName
:
string
=
'hrarchivesborrow'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'档案借阅'
;
/**
* 界面UI服务对象
*
* @type {HRArchivesBorrowUIService}
* @memberof MainBase
*/
public
appUIService
:
HRArchivesBorrowUIService
=
new
HRArchivesBorrowUIService
(
this
.
$store
);
/**
* 界面行为模型
*
* @type {*}
* @memberof MainBase
*/
public
ActionModel
:
any
=
{
};
/**
* 本地缓存标识
*
* @protected
* @type {string}
* @memberof MainBase
*/
protected
localStorageTag
:
string
=
'hrarchivesborrow_main_grid'
;
/**
* 是否支持分页
*
* @type {boolean}
* @memberof MainGridBase
*/
public
isEnablePagingBar
:
boolean
=
false
;
/**
* 所有列成员
*
* @type {any[]}
* @memberof MainGridBase
*/
public
allColumns
:
any
[]
=
[
{
name
:
'borrowman'
,
label
:
'借阅人'
,
langtag
:
'entities.hrarchivesborrow.main_grid.columns.borrowman'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'begintime'
,
label
:
'借阅时间'
,
langtag
:
'entities.hrarchivesborrow.main_grid.columns.begintime'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'endtime'
,
label
:
'归还时间'
,
langtag
:
'entities.hrarchivesborrow.main_grid.columns.endtime'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'checkman'
,
label
:
'审批同意人'
,
langtag
:
'entities.hrarchivesborrow.main_grid.columns.checkman'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'checktime'
,
label
:
'审批时间'
,
langtag
:
'entities.hrarchivesborrow.main_grid.columns.checktime'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'borrowreason'
,
label
:
'借阅原因'
,
langtag
:
'entities.hrarchivesborrow.main_grid.columns.borrowreason'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'borrowstate'
,
label
:
'借阅状态'
,
langtag
:
'entities.hrarchivesborrow.main_grid.columns.borrowstate'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
]
/**
* 获取表格行模型
*
* @type {*}
* @memberof MainGridBase
*/
public
getGridRowModel
(){
return
{
srfkey
:
new
FormItemModel
(),
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof MainGridBase
*/
public
rules
:
any
=
{
srfkey
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'档案借阅标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'档案借阅标识 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 获取对应列class
*
* @type {*}
* @memberof MainBase
*/
public
hasRowEdit
:
any
=
{
'borrowman'
:
false
,
'begintime'
:
false
,
'endtime'
:
false
,
'checkman'
:
false
,
'checktime'
:
false
,
'borrowreason'
:
false
,
'borrowstate'
:
false
,
};
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof MainBase
*/
public
getCellClassName
(
args
:
{
row
:
any
,
column
:
any
,
rowIndex
:
number
,
columnIndex
:
number
}):
any
{
return
(
this
.
hasRowEdit
[
args
.
column
.
property
]
&&
this
.
actualIsOpenEdit
)
?
"edit-cell"
:
"info-cell"
;
}
/**
* 导出数据格式化
*
* @param {*} filterVal
* @param {*} jsonData
* @param {any[]} [codelistColumns=[]]
* @returns {Promise<any>}
* @memberof MainGridBase
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
{
name
:
'borrowstate'
,
srfkey
:
'CL_HR_0024'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
]);
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-grid/main-grid-model.ts
0 → 100644
浏览文件 @
4acf1f78
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
isDEExport
:
boolean
=
false
;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
getDataItems
():
any
[]
{
if
(
this
.
isDEExport
){
return
[
]
}
else
{
return
[
{
name
:
'endtime'
,
prop
:
'endtime'
,
dataType
:
'DATE'
,
},
{
name
:
'borrowstate'
,
prop
:
'borrowstate'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'checkman'
,
prop
:
'checkman'
,
dataType
:
'TEXT'
,
},
{
name
:
'begintime'
,
prop
:
'begintime'
,
dataType
:
'DATE'
,
},
{
name
:
'borrowreason'
,
prop
:
'borrowreason'
,
dataType
:
'TEXT'
,
},
{
name
:
'checktime'
,
prop
:
'checktime'
,
dataType
:
'DATE'
,
},
{
name
:
'hrarchivesid'
,
prop
:
'hrarchivesid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'srfmajortext'
,
prop
:
'hrarchivesborrowname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfdataaccaction'
,
prop
:
'hrarchivesborrowid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfkey'
,
prop
:
'hrarchivesborrowid'
,
dataType
:
'GUID'
,
isEditable
:
true
},
{
name
:
'borrowman'
,
prop
:
'borrowman'
,
dataType
:
'TEXT'
,
},
{
name
:
'hrarchivesborrow'
,
prop
:
'hrarchivesborrowid'
,
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'filter'
,
prop
:
'filter'
},
{
name
:
'page'
,
prop
:
'page'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'srfparentdata'
,
prop
:
'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-grid/main-grid-service.ts
0 → 100644
浏览文件 @
4acf1f78
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HRArchivesBorrowService
from
'@/service/hrarchives-borrow/hrarchives-borrow-service'
;
import
MainModel
from
'./main-grid-model'
;
/**
* Main 部件服务对象
*
* @export
* @class MainService
*/
export
default
class
MainService
extends
ControlService
{
/**
* 档案借阅服务对象
*
* @type {HRArchivesBorrowService}
* @memberof MainService
*/
public
appEntityService
:
HRArchivesBorrowService
=
new
HRArchivesBorrowService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof MainService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of MainService.
*
* @param {*} [opts={}]
* @memberof MainService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
MainModel
();
}
/**
* 处理数据
*
* @public
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof MainService
*/
public
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 MainService
*/
@
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
;
return
Promise
.
reject
([])
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestDataWithUpdate
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestDataWithUpdate
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 获取数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
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
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
search
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
FetchDefault
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
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
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
response
.
data
.
hrarchivesborrowid
=
Util
.
createUUID
();
}
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 MainService
*/
@
Errorlog
public
frontLogic
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
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
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
})
}
/**
* 处理请求数据(修改或增加数据)
*
* @param action 行为
* @param data 数据
* @memberof MainService
*/
public
handleRequestDataWithUpdate
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isMerge
:
boolean
=
false
){
let
model
:
any
=
this
.
getMode
();
if
(
!
model
&&
model
.
getDataItems
instanceof
Function
)
{
return
data
;
}
let
dataItems
:
any
[]
=
model
.
getDataItems
();
let
requestData
:
any
=
{};
if
(
isMerge
&&
(
data
&&
data
.
viewparams
)){
Object
.
assign
(
requestData
,
data
.
viewparams
);
}
dataItems
.
forEach
((
item
:
any
)
=>
{
if
(
item
&&
item
.
dataType
&&
Object
.
is
(
item
.
dataType
,
'FONTKEY'
)){
if
(
item
&&
item
.
prop
&&
item
.
name
){
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
))
){
requestData
[
item
.
prop
]
=
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
};
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-grid/main-grid.html
0 → 100644
浏览文件 @
4acf1f78
<div
:class=
"{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }"
>
<i-form>
<el-table
v-if=
"isDisplay === true"
:default-sort=
"{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"
@
sort-change=
"onSortChange($event)"
:border=
"isDragendCol"
:highlight-current-row =
"isSingleSelect"
:row-class-name=
"getRowClassName.bind(_self)"
:cell-class-name=
"getCellClassName.bind(_self)"
size=
"mini"
stripe
@
row-click=
"rowClick($event)"
@
select-all=
"selectAll($event)"
@
select=
"select($event)"
@
row-class-name=
"onRowClassName($event)"
@
row-dblclick=
"rowDBLClick($event)"
ref=
'multipleTable'
:data=
"items"
:show-header=
"!isHideHeader"
>
<template
slot=
"empty"
>
无数据
<span
class=
"quick-toolbar"
>
</span>
</template>
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"getColumnState('borrowman')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'borrowman'"
:label=
"$t('entities.hrarchivesborrow.main_grid.columns.borrowman')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesborrow.main_grid.columns.borrowman')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.borrowman}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('begintime')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'begintime'"
:label=
"$t('entities.hrarchivesborrow.main_grid.columns.begintime')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesborrow.main_grid.columns.begintime')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.begintime"
></app-format-data>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('endtime')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'endtime'"
:label=
"$t('entities.hrarchivesborrow.main_grid.columns.endtime')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesborrow.main_grid.columns.endtime')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.endtime"
></app-format-data>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('checkman')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'checkman'"
:label=
"$t('entities.hrarchivesborrow.main_grid.columns.checkman')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesborrow.main_grid.columns.checkman')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.checkman}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('checktime')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'checktime'"
:label=
"$t('entities.hrarchivesborrow.main_grid.columns.checktime')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesborrow.main_grid.columns.checktime')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.checktime"
></app-format-data>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('borrowreason')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'borrowreason'"
:label=
"$t('entities.hrarchivesborrow.main_grid.columns.borrowreason')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesborrow.main_grid.columns.borrowreason')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.borrowreason}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('borrowstate')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'borrowstate'"
:label=
"$t('entities.hrarchivesborrow.main_grid.columns.borrowstate')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesborrow.main_grid.columns.borrowstate')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.borrowstate"
tag=
'CL_HR_0024'
codelistType=
'STATIC'
></codelist>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
</template>
</el-table>
</i-form>
</div>
\ No newline at end of file
app_PIM/src/widgets/hrarchives-borrow/main-grid/main-grid.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./main-grid.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainGridBase } from './main-grid-base';
/**
* grid部件
*
* @export
* @class MainGrid
* @extends {MainGridBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainGrid extends MainGridBase { }
</script>
app_PIM/src/widgets/hrarchives-move/default-searchform/default-searchform-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
SearchFormControlBase
}
from
'@/studio-core'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
DefaultService
from
'./default-searchform-service'
;
import
HRArchivesMoveUIService
from
'@/uiservice/hrarchives-move/hrarchives-move-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
import
{
debounceTime
,
distinctUntilChanged
}
from
'rxjs/operators'
;
/**
* searchform部件基类
*
* @export
* @class SearchFormControlBase
* @extends {DefaultSearchFormBase}
*/
export
class
DefaultSearchFormBase
extends
SearchFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
controlType
:
string
=
'SEARCHFORM'
;
/**
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof DefaultSearchFormBase
*/
public
service
:
DefaultService
=
new
DefaultService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRArchivesMoveService}
* @memberof DefaultSearchFormBase
*/
public
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeName
:
string
=
'hrarchivesmove'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected
appDeLogicName
:
string
=
'档案调档'
;
/**
* 表单数据对象
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
data
:
any
=
{
};
/**
* 详情模型集合
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public
detailsModel
:
any
=
{
formpage1
:
new
FormPageModel
({
caption
:
'常规条件'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
};
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/default-searchform/default-searchform-model.ts
0 → 100644
浏览文件 @
4acf1f78
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export
default
class
DefaultModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/default-searchform/default-searchform-service.ts
0 → 100644
浏览文件 @
4acf1f78
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
DefaultModel
from
'./default-searchform-model'
;
/**
* Default 部件服务对象
*
* @export
* @class DefaultService
*/
export
default
class
DefaultService
extends
ControlService
{
/**
* 档案调档服务对象
*
* @type {HRArchivesMoveService}
* @memberof DefaultService
*/
public
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof DefaultService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of DefaultService.
*
* @param {*} [opts={}]
* @memberof DefaultService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
DefaultModel
();
}
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof DefaultService
*/
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 DefaultService
*/
@
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
;
return
Promise
.
reject
([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
wfstart
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFStart
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
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]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Get
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DefaultService
*/
@
Errorlog
public
loadDraft
(
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
.
GetDraft
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
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 DefaultService
*/
@
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 DefaultService
*/
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
];
}
}
});
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 DefaultService
*/
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
();
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/default-searchform/default-searchform.html
0 → 100644
浏览文件 @
4acf1f78
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'searchform'
style=
""
>
<input
style=
"display:none;"
/>
<div
class=
"search-button"
>
<i-button
size=
"small"
type=
"primary"
ghost
@
click=
"onSearch.apply(_self, arguments)"
>
{{$t('app.searchButton.search')}}
</i-button>
<i-button
size=
"small"
type=
"default"
ghost
@
click=
"onReset.apply(_self, arguments)"
>
{{this.$t('app.searchButton.reset')}}
</i-button>
</div>
<div
class=
"form-content"
>
</div>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/default-searchform/default-searchform.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./default-searchform.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DefaultSearchFormBase } from './default-searchform-base';
/**
* searchform部件
*
* @export
* @class DefaultSearchForm
* @extends {DefaultSearchFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DefaultSearchForm extends DefaultSearchFormBase { }
</script>
app_PIM/src/widgets/hrarchives-move/main-form/main-form-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
MainService
from
'./main-form-service'
;
import
HRArchivesMoveUIService
from
'@/uiservice/hrarchives-move/hrarchives-move-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {MainEditFormBase}
*/
export
class
MainEditFormBase
extends
EditFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
controlType
:
string
=
'FORM'
;
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainEditFormBase
*/
public
service
:
MainService
=
new
MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRArchivesMoveService}
* @memberof MainEditFormBase
*/
public
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeName
:
string
=
'hrarchivesmove'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected
appDeLogicName
:
string
=
'档案调档'
;
/**
* 界面UI服务对象
*
* @type {HRArchivesMoveUIService}
* @memberof MainEditFormBase
*/
public
appUIService
:
HRArchivesMoveUIService
=
new
HRArchivesMoveUIService
(
this
.
$store
);
/**
* 表单数据对象
*
* @type {*}
* @memberof MainEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
movetype
:
null
,
moveoutorg
:
null
,
moveinorg
:
null
,
activetime
:
null
,
memo
:
null
,
hrarchivesmoveid
:
null
,
hrarchivesmove
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof MainEditFormBase
*/
public
rules
:
any
=
{
movetype
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'调档类型 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'调档类型 值不能为空'
,
trigger
:
'blur'
},
],
activetime
:
[
{
required
:
true
,
type
:
'string'
,
message
:
'调档时间 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'调档时间 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 属性值规则
*
* @type {*}
* @memberof MainBase
*/
public
deRules
:
any
=
{
};
/**
* 详情模型集合
*
* @type {*}
* @memberof MainEditFormBase
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'调档信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrarchivesmove.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srforikey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srforikey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfkey
:
new
FormItemModel
({
caption
:
'档案调档标识'
,
detailType
:
'FORMITEM'
,
name
:
'srfkey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfmajortext
:
new
FormItemModel
({
caption
:
'档案调档名称'
,
detailType
:
'FORMITEM'
,
name
:
'srfmajortext'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srftempmode
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srftempmode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfuf
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfuf'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfdeid
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfdeid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
movetype
:
new
FormItemModel
({
caption
:
'调档类型'
,
detailType
:
'FORMITEM'
,
name
:
'movetype'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
moveoutorg
:
new
FormItemModel
({
caption
:
'调出单位'
,
detailType
:
'FORMITEM'
,
name
:
'moveoutorg'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
moveinorg
:
new
FormItemModel
({
caption
:
'调入单位'
,
detailType
:
'FORMITEM'
,
name
:
'moveinorg'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
activetime
:
new
FormItemModel
({
caption
:
'调档时间'
,
detailType
:
'FORMITEM'
,
name
:
'activetime'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
memo
:
new
FormItemModel
({
caption
:
'备注'
,
detailType
:
'FORMITEM'
,
name
:
'memo'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
hrarchivesmoveid
:
new
FormItemModel
({
caption
:
'档案调档标识'
,
detailType
:
'FORMITEM'
,
name
:
'hrarchivesmoveid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
disabled
:
false
,
enableCond
:
3
}),
};
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-form/main-form-model.ts
0 → 100644
浏览文件 @
4acf1f78
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfwfmemo'
,
prop
:
'srfwfmemo'
,
dataType
:
'TEXT'
,
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfupdatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'srforikey'
,
},
{
name
:
'srfkey'
,
prop
:
'hrarchivesmoveid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'hrarchivesmovename'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'movetype'
,
prop
:
'movetype'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'moveoutorg'
,
prop
:
'moveoutorg'
,
dataType
:
'TEXT'
,
},
{
name
:
'moveinorg'
,
prop
:
'moveinorg'
,
dataType
:
'TEXT'
,
},
{
name
:
'activetime'
,
prop
:
'activetime'
,
dataType
:
'DATE'
,
},
{
name
:
'memo'
,
prop
:
'memo'
,
dataType
:
'LONGTEXT_1000'
,
},
{
name
:
'hrarchivesmoveid'
,
prop
:
'hrarchivesmoveid'
,
dataType
:
'GUID'
,
},
{
name
:
'hrarchivesmove'
,
prop
:
'hrarchivesmoveid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-form/main-form-service.ts
0 → 100644
浏览文件 @
4acf1f78
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
MainModel
from
'./main-form-model'
;
/**
* Main 部件服务对象
*
* @export
* @class MainService
*/
export
default
class
MainService
extends
ControlService
{
/**
* 档案调档服务对象
*
* @type {HRArchivesMoveService}
* @memberof MainService
*/
public
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof MainService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of MainService.
*
* @param {*} [opts={}]
* @memberof MainService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
MainModel
();
}
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof MainService
*/
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 MainService
*/
@
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
;
return
Promise
.
reject
([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
wfstart
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
,
localdata
?:
any
):
Promise
<
any
>
{
data
=
this
.
handleWFData
(
data
);
context
=
this
.
handleRequestData
(
action
,
context
,
data
).
context
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
context
,
data
,
isloading
,
localdata
);
}
else
{
result
=
this
.
appEntityService
.
WFStart
(
context
,
data
,
isloading
,
localdata
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof MainService
*/
@
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]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Get
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
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
.
hrarchivesmoveid
=
PrimaryKey
;
Data
.
hrarchivesmove
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
response
.
data
.
hrarchivesmoveid
=
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 MainService
*/
@
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 MainService
*/
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
];
}
}
});
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 MainService
*/
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
();
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-form/main-form.html
0 → 100644
浏览文件 @
4acf1f78
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'hrarchivesmove_main'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.group1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-group
:model=
"detailsModel.group1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrarchivesmove.main_form.details.group1')"
:isShowCaption=
"false"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.group1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.movetype.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'movetype'
:itemRules=
"this.rules.movetype"
class=
''
:caption=
"$t('entities.hrarchivesmove.main_form.details.movetype')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.movetype.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
v-model=
"data.movetype"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
:disabled=
"detailsModel.movetype.disabled"
valueType=
"string"
tag=
'CL_HR_0025'
codelistType=
'STATIC'
placeholder=
'请选择...'
/>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.moveoutorg.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'moveoutorg'
:itemRules=
"this.rules.moveoutorg"
class=
''
:caption=
"$t('entities.hrarchivesmove.main_form.details.moveoutorg')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.moveoutorg.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.moveoutorg"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.moveoutorg.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.moveinorg.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'moveinorg'
:itemRules=
"this.rules.moveinorg"
class=
''
:caption=
"$t('entities.hrarchivesmove.main_form.details.moveinorg')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.moveinorg.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.moveinorg"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.moveinorg.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.activetime.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'activetime'
:itemRules=
"this.rules.activetime"
class=
''
:caption=
"$t('entities.hrarchivesmove.main_form.details.activetime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.activetime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.activetime"
:disabled=
"detailsModel.activetime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) => { this.data.activetime = val1 }"
></date-picker>
</app-form-item>
</i-col>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.memo.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-item
name=
'memo'
:itemRules=
"this.rules.memo"
class=
''
:caption=
"$t('entities.hrarchivesmove.main_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>
</row>
</i-form>
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-form/main-form.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./main-form.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainEditFormBase } from './main-form-base';
/**
* form部件
*
* @export
* @class MainEditForm
* @extends {MainEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainEditForm extends MainEditFormBase { }
</script>
app_PIM/src/widgets/hrarchives-move/main-grid/main-grid-base.tsx
0 → 100644
浏览文件 @
4acf1f78
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
GridControlBase
}
from
'@/studio-core'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
MainService
from
'./main-grid-service'
;
import
HRArchivesMoveUIService
from
'@/uiservice/hrarchives-move/hrarchives-move-ui-service'
;
import
{
FormItemModel
}
from
'@/model/form-detail'
;
/**
* grid部件基类
*
* @export
* @class GridControlBase
* @extends {MainGridBase}
*/
export
class
MainGridBase
extends
GridControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
controlType
:
string
=
'GRID'
;
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainGridBase
*/
public
service
:
MainService
=
new
MainService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {HRArchivesMoveService}
* @memberof MainGridBase
*/
public
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeName
:
string
=
'hrarchivesmove'
;
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected
appDeLogicName
:
string
=
'档案调档'
;
/**
* 界面UI服务对象
*
* @type {HRArchivesMoveUIService}
* @memberof MainBase
*/
public
appUIService
:
HRArchivesMoveUIService
=
new
HRArchivesMoveUIService
(
this
.
$store
);
/**
* 界面行为模型
*
* @type {*}
* @memberof MainBase
*/
public
ActionModel
:
any
=
{
};
/**
* 本地缓存标识
*
* @protected
* @type {string}
* @memberof MainBase
*/
protected
localStorageTag
:
string
=
'hrarchivesmove_main_grid'
;
/**
* 是否支持分页
*
* @type {boolean}
* @memberof MainGridBase
*/
public
isEnablePagingBar
:
boolean
=
false
;
/**
* 所有列成员
*
* @type {any[]}
* @memberof MainGridBase
*/
public
allColumns
:
any
[]
=
[
{
name
:
'movetype'
,
label
:
'调档类型'
,
langtag
:
'entities.hrarchivesmove.main_grid.columns.movetype'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'moveoutorg'
,
label
:
'调出单位'
,
langtag
:
'entities.hrarchivesmove.main_grid.columns.moveoutorg'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'moveinorg'
,
label
:
'调入单位'
,
langtag
:
'entities.hrarchivesmove.main_grid.columns.moveinorg'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'activetime'
,
label
:
'调档时间'
,
langtag
:
'entities.hrarchivesmove.main_grid.columns.activetime'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
{
name
:
'memo'
,
label
:
'备注'
,
langtag
:
'entities.hrarchivesmove.main_grid.columns.memo'
,
show
:
true
,
util
:
'PX'
,
isEnableRowEdit
:
false
,
},
]
/**
* 获取表格行模型
*
* @type {*}
* @memberof MainGridBase
*/
public
getGridRowModel
(){
return
{
srfkey
:
new
FormItemModel
(),
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof MainGridBase
*/
public
rules
:
any
=
{
srfkey
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'档案调档标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'档案调档标识 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
* 获取对应列class
*
* @type {*}
* @memberof MainBase
*/
public
hasRowEdit
:
any
=
{
'movetype'
:
false
,
'moveoutorg'
:
false
,
'moveinorg'
:
false
,
'activetime'
:
false
,
'memo'
:
false
,
};
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof MainBase
*/
public
getCellClassName
(
args
:
{
row
:
any
,
column
:
any
,
rowIndex
:
number
,
columnIndex
:
number
}):
any
{
return
(
this
.
hasRowEdit
[
args
.
column
.
property
]
&&
this
.
actualIsOpenEdit
)
?
"edit-cell"
:
"info-cell"
;
}
/**
* 导出数据格式化
*
* @param {*} filterVal
* @param {*} jsonData
* @param {any[]} [codelistColumns=[]]
* @returns {Promise<any>}
* @memberof MainGridBase
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
{
name
:
'movetype'
,
srfkey
:
'CL_HR_0025'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
]);
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-grid/main-grid-model.ts
0 → 100644
浏览文件 @
4acf1f78
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export
default
class
MainModel
{
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
isDEExport
:
boolean
=
false
;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public
getDataItems
():
any
[]
{
if
(
this
.
isDEExport
){
return
[
]
}
else
{
return
[
{
name
:
'memo'
,
prop
:
'memo'
,
dataType
:
'LONGTEXT_1000'
,
},
{
name
:
'moveinorg'
,
prop
:
'moveinorg'
,
dataType
:
'TEXT'
,
},
{
name
:
'movetype'
,
prop
:
'movetype'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'moveoutorg'
,
prop
:
'moveoutorg'
,
dataType
:
'TEXT'
,
},
{
name
:
'activetime'
,
prop
:
'activetime'
,
dataType
:
'DATE'
,
},
{
name
:
'hrarchivesid'
,
prop
:
'hrarchivesid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'srfmajortext'
,
prop
:
'hrarchivesmovename'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfdataaccaction'
,
prop
:
'hrarchivesmoveid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfkey'
,
prop
:
'hrarchivesmoveid'
,
dataType
:
'GUID'
,
isEditable
:
true
},
{
name
:
'hrarchivesmove'
,
prop
:
'hrarchivesmoveid'
,
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'filter'
,
prop
:
'filter'
},
{
name
:
'page'
,
prop
:
'page'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'srfparentdata'
,
prop
:
'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-grid/main-grid-service.ts
0 → 100644
浏览文件 @
4acf1f78
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
HRArchivesMoveService
from
'@/service/hrarchives-move/hrarchives-move-service'
;
import
MainModel
from
'./main-grid-model'
;
/**
* Main 部件服务对象
*
* @export
* @class MainService
*/
export
default
class
MainService
extends
ControlService
{
/**
* 档案调档服务对象
*
* @type {HRArchivesMoveService}
* @memberof MainService
*/
public
appEntityService
:
HRArchivesMoveService
=
new
HRArchivesMoveService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof MainService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of MainService.
*
* @param {*} [opts={}]
* @memberof MainService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
MainModel
();
}
/**
* 处理数据
*
* @public
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof MainService
*/
public
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 MainService
*/
@
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
;
return
Promise
.
reject
([])
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestDataWithUpdate
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestDataWithUpdate
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 获取数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
get
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
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
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
}
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
search
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
FetchDefault
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@
Errorlog
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
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
)
=>
{
//处理返回数据,补充判断标识
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
response
.
data
.
hrarchivesmoveid
=
Util
.
createUUID
();
}
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 MainService
*/
@
Errorlog
public
frontLogic
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
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
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
})
}
/**
* 处理请求数据(修改或增加数据)
*
* @param action 行为
* @param data 数据
* @memberof MainService
*/
public
handleRequestDataWithUpdate
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isMerge
:
boolean
=
false
){
let
model
:
any
=
this
.
getMode
();
if
(
!
model
&&
model
.
getDataItems
instanceof
Function
)
{
return
data
;
}
let
dataItems
:
any
[]
=
model
.
getDataItems
();
let
requestData
:
any
=
{};
if
(
isMerge
&&
(
data
&&
data
.
viewparams
)){
Object
.
assign
(
requestData
,
data
.
viewparams
);
}
dataItems
.
forEach
((
item
:
any
)
=>
{
if
(
item
&&
item
.
dataType
&&
Object
.
is
(
item
.
dataType
,
'FONTKEY'
)){
if
(
item
&&
item
.
prop
&&
item
.
name
){
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
))
){
requestData
[
item
.
prop
]
=
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
};
}
}
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-grid/main-grid.html
0 → 100644
浏览文件 @
4acf1f78
<div
:class=
"{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }"
>
<i-form>
<el-table
v-if=
"isDisplay === true"
:default-sort=
"{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"
@
sort-change=
"onSortChange($event)"
:border=
"isDragendCol"
:highlight-current-row =
"isSingleSelect"
:row-class-name=
"getRowClassName.bind(_self)"
:cell-class-name=
"getCellClassName.bind(_self)"
size=
"mini"
stripe
@
row-click=
"rowClick($event)"
@
select-all=
"selectAll($event)"
@
select=
"select($event)"
@
row-class-name=
"onRowClassName($event)"
@
row-dblclick=
"rowDBLClick($event)"
ref=
'multipleTable'
:data=
"items"
:show-header=
"!isHideHeader"
>
<template
slot=
"empty"
>
无数据
<span
class=
"quick-toolbar"
>
</span>
</template>
<template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</template>
<template
v-if=
"getColumnState('movetype')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'movetype'"
:label=
"$t('entities.hrarchivesmove.main_grid.columns.movetype')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesmove.main_grid.columns.movetype')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
>
<codelist
:value=
"row.movetype"
tag=
'CL_HR_0025'
codelistType=
'STATIC'
></codelist>
</template>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('moveoutorg')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'moveoutorg'"
:label=
"$t('entities.hrarchivesmove.main_grid.columns.moveoutorg')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesmove.main_grid.columns.moveoutorg')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.moveoutorg}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('moveinorg')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'moveinorg'"
:label=
"$t('entities.hrarchivesmove.main_grid.columns.moveinorg')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesmove.main_grid.columns.moveinorg')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.moveinorg}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('activetime')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'activetime'"
:label=
"$t('entities.hrarchivesmove.main_grid.columns.activetime')"
:width=
"120"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesmove.main_grid.columns.activetime')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.activetime"
></app-format-data>
</template>
</el-table-column>
</template>
<template
v-if=
"getColumnState('memo')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'memo'"
:label=
"$t('entities.hrarchivesmove.main_grid.columns.memo')"
:width=
"200"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"{column}"
>
<span
class=
"column-header "
>
{{$t('entities.hrarchivesmove.main_grid.columns.memo')}}
</span>
</template>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.memo}}
</span>
</template>
</el-table-column>
</template>
<template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
</template>
</el-table>
</i-form>
</div>
\ No newline at end of file
app_PIM/src/widgets/hrarchives-move/main-grid/main-grid.vue
0 → 100644
浏览文件 @
4acf1f78
<
template
src=
"./main-grid.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainGridBase } from './main-grid-base';
/**
* grid部件
*
* @export
* @class MainGrid
* @extends {MainGridBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainGrid extends MainGridBase { }
</script>
app_PIM/src/widgets/hrarchives/board-001-dashboard/board-001-dashboard.html
浏览文件 @
4acf1f78
...
...
@@ -16,7 +16,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:height=
"
30
0"
:height=
"0"
:width=
"0"
name=
"dashboard_sysportlet1"
ref=
'dashboard_sysportlet1'
...
...
app_PIM/src/widgets/hrarchives/if-001-form/if-001-form-base.tsx
浏览文件 @
4acf1f78
...
...
@@ -67,6 +67,15 @@ export class IF_001EditFormBase extends EditFormControlBase {
public
appUIService
:
HRArchivesUIService
=
new
HRArchivesUIService
(
this
.
$store
);
/**
* 关系界面数量
*
* @protected
* @type {number}
* @memberof IF_001EditFormBase
*/
protected
drCount
:
number
=
2
;
/**
* 表单数据对象
*
...
...
@@ -125,8 +134,12 @@ export class IF_001EditFormBase extends EditFormControlBase {
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'档案信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrarchives.if_001_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart1
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
grouppanel1
:
new
FormGroupPanelModel
({
caption
:
'借阅记录'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrarchives.if_001_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
druipart2
:
new
FormDRUIPartModel
({
caption
:
''
,
detailType
:
'DRUIPART'
,
name
:
'druipart2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
grouppanel2
:
new
FormGroupPanelModel
({
caption
:
'调档记录'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.hrarchives.if_001_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
showMoreMode
:
0
}),
...
...
app_PIM/src/widgets/hrarchives/if-001-form/if-001-form.html
浏览文件 @
4acf1f78
...
...
@@ -135,6 +135,31 @@ tag='CL_HR_0014' codelistType='STATIC' :data="data" :context="context" :viewpara
<app-form-group
:model=
"detailsModel.grouppanel1"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrarchives.if_001_form.details.grouppanel1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.druipart1.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'hrarchives'
:parentdata=
'{"srfparentdefname":"HRARCHIVESID","srfparentdename":"HRARCHIVES","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRARCHIVESBORROW_HRARCHIVES_HRARCHIVESID","SRFDER1NID":"DER1N_HRARCHIVESBORROW_HRARCHIVES_HRARCHIVESID"}'
:parameters=
"[
]"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{}'
:localParam =
'{}'
parameterName=
'hrarchives'
parentName=
"HRArchives"
refviewtype=
'DEGRIDVIEW9'
refreshitems=
''
:ignorefieldvaluechange=
"ignorefieldvaluechange"
viewname=
'hrarchives-borrow-v-002'
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
style=
"overflow: auto;"
>
</app-form-druipart>
</i-col>
</row>
</app-form-group>
...
...
@@ -144,6 +169,31 @@ tag='CL_HR_0014' codelistType='STATIC' :data="data" :context="context" :viewpara
<app-form-group
:model=
"detailsModel.grouppanel2"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.grouppanel2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.hrarchives.if_001_form.details.grouppanel2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"1"
:isInfoGroupMode=
"true"
>
<app-form-group-data-panel
slot=
"dataInfoPanel"
:model=
"detailsModel.grouppanel2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
/>
<row>
<i-col
class=
"form-layout-container"
v-show=
"detailsModel.druipart2.visible"
:style=
"{}"
:lg=
"{ span: 24, offset: 0 }"
>
<app-form-druipart
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'hrarchives'
:parentdata=
'{"srfparentdefname":"HRARCHIVESID","srfparentdename":"HRARCHIVES","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_HRARCHIVESMOVE_HRARCHIVES_HRARCHIVESID","SRFDER1NID":"DER1N_HRARCHIVESMOVE_HRARCHIVES_HRARCHIVESID"}'
:parameters=
"[
]"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{}'
:localParam =
'{}'
parameterName=
'hrarchives'
parentName=
"HRArchives"
refviewtype=
'DEGRIDVIEW9'
refreshitems=
''
:ignorefieldvaluechange=
"ignorefieldvaluechange"
viewname=
'hrarchives-move-v-001'
:data=
"JSON.stringify(this.data)"
@
drdatasaved=
"drdatasaved($event)"
style=
"overflow: auto;"
>
</app-form-druipart>
</i-col>
</row>
</app-form-group>
...
...
app_PIM/src/widgets/hrarchives/part-001-portlet/part-001-portlet-base.tsx
浏览文件 @
4acf1f78
...
...
@@ -119,7 +119,7 @@ export class PART_001PortletBase extends MainControlBase {
return
this
.
height
+
'px'
;
}
}
else
{
return
'
300px
'
;
return
'
auto
'
;
}
}
...
...
app_PIM/src/widgets/hrarchives/part-001-portlet/part-001-portlet.html
浏览文件 @
4acf1f78
<div
class=
'portlet part-001 '
:style=
"{
'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,
}"
>
<div
class=
'portlet part-001 '
:style=
"{}"
>
<div
class=
"portlet-without-title"
>
<hrarchives-v-003
:viewUsage=
"4"
:viewdata=
"JSON.stringify(context)"
:viewDefaultUsage=
"false"
></hrarchives-v-003>
</div>
...
...
app_PIM/src/widgets/hrarchives/v-005tabviewpanel2-tabviewpanel/v-005tabviewpanel2-tabviewpanel.html
浏览文件 @
4acf1f78
<div
class=
'tabviewpanel'
v-if=
'isActivied'
>
<hrarchives-grid-view
<hrarchives-
borrow-
grid-view
class=
'viewcontainer2'
:viewdata=
"viewdata"
:viewparam=
"viewparam"
...
...
app_PIM/src/widgets/hrarchives/v-005tabviewpanel3-tabviewpanel/v-005tabviewpanel3-tabviewpanel.html
浏览文件 @
4acf1f78
<div
class=
'tabviewpanel'
v-if=
'isActivied'
>
<hrarchives-grid-view
<hrarchives-
move-
grid-view
class=
'viewcontainer2'
:viewdata=
"viewdata"
:viewparam=
"viewparam"
...
...
config.xml
浏览文件 @
4acf1f78
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
mvn clean package -P
hrapi
cd humanresource-
provider/humanresource-provider-hrapi
mvn -P
hrapi
docker:build
mvn -P
hrapi
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
provider-hrapi.yaml iBizEE --with-registry-auth
mvn clean package -P
pim
cd humanresource-
app/humanresource-app-pim
mvn -P
pim
docker:build
mvn -P
pim
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-
app-pim.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
humanresource-app/humanresource-app-pim/src/main/docker/Dockerfile
浏览文件 @
4acf1f78
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE
8080
EXPOSE
10327
ADD
humanresource-app-pim.jar /humanresource-app-pim.jar
humanresource-app/humanresource-app-pim/src/main/docker/humanresource-app-pim.yaml
浏览文件 @
4acf1f78
...
...
@@ -3,9 +3,25 @@ services:
humanresource-app-pim
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports
:
-
"
8080:8080
"
-
"
10327:10327
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10327
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/docker/Dockerfile
浏览文件 @
4acf1f78
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar
EXPOSE
10317
EXPOSE
8081
ADD
humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar
humanresource-provider/humanresource-provider-hrapi/src/main/docker/humanresource-provider-hrapi.yaml
浏览文件 @
4acf1f78
...
...
@@ -3,25 +3,9 @@ services:
humanresource-provider-hrapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
ports
:
-
"
10317:10317
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10317
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录