Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
93319982
o2oa
项目概览
fuyue82
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
93319982
编写于
6月 17, 2020
作者:
B
boomEgg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
考勤管理---自定义申述流程
上级
42d240b9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
55 addition
and
19 deletion
+55
-19
o2web/source/x_component_Attendance/$AppealExplorer/listItem.json
...urce/x_component_Attendance/$AppealExplorer/listItem.json
+3
-3
o2web/source/x_component_Attendance/AppealExplorer.js
o2web/source/x_component_Attendance/AppealExplorer.js
+34
-5
o2web/source/x_component_Attendance/MyAppeal.js
o2web/source/x_component_Attendance/MyAppeal.js
+9
-2
o2web/source/x_component_Attendance/MyDetail.js
o2web/source/x_component_Attendance/MyDetail.js
+9
-9
未找到文件。
o2web/source/x_component_Attendance/$AppealExplorer/listItem.json
浏览文件 @
93319982
...
...
@@ -5,7 +5,7 @@
"contentStyles"
:
"normalTdNode"
,
"item"
:
"checkbox"
,
"name"
:
"checkbox"
,
"condition"
:
"function(d){ return d.status==0 ? true : false }"
,
"condition"
:
"function(d){ return d.status==0
&&d.APPEAL_AUDIFLOWTYPE=='BUILTIN'
? true : false }"
,
"width"
:
"5%"
},
{
...
...
@@ -102,14 +102,14 @@
"sub"
:
[{
"title"
:
"同意"
,
"action"
:
"agree"
,
"condition"
:
"function(d){ return d.APPEALABLE
;
}"
,
"condition"
:
"function(d){ return d.APPEALABLE
&&d.APPEAL_AUDIFLOWTYPE=='BUILTIN';
}"
,
"styles"
:
"actionAgreeNode"
,
"overStyles"
:
"actionAgreeNode_over"
,
"downStyles"
:
"actionAgreeNode_down"
},
{
"title"
:
"不同意"
,
"action"
:
"deny"
,
"condition"
:
"function(d){ return d.APPEALABLE; }"
,
"condition"
:
"function(d){ return d.APPEALABLE
&&d.APPEAL_AUDIFLOWTYPE=='BUILTIN'
; }"
,
"styles"
:
"actionDenyNode"
,
"overStyles"
:
"actionDenyNode_over"
,
"downStyles"
:
"actionDenyNode_down"
...
...
o2web/source/x_component_Attendance/AppealExplorer.js
浏览文件 @
93319982
...
...
@@ -39,11 +39,31 @@ MWF.xApplication.Attendance.AppealExplorer = new Class({
},
loadConfig
:
function
(){
this
.
config
=
{};
/*
this.config = {};
var v;
this.actions.getSettingCode( "APPEALABLE", function(json){
v = json.data ? json.data.configValue : null
},null, false)
if( !v ){
this.config.APPEALABLE = true;
}else{
this.config.APPEALABLE = (v != "false" )
}*/
this
.
config
=
{};
var
v
;
//需要判断申述类型listSetting2020年6月16日 by gee
this
.
configSetting
=
new
Object
(
null
);
this
.
actions
.
listSetting
(
function
(
json
){
var
data
=
json
.
data
;
if
(
!!
data
){
json
.
data
.
map
(
function
(
e
){
this
.
configSetting
[
e
.
configCode
]
=
e
;
}.
bind
(
this
));
v
=
this
.
configSetting
.
APPEALABLE
.
configValue
;
}
else
{
v
=
null
;
}
}.
bind
(
this
),
null
,
false
);
if
(
!
v
){
this
.
config
.
APPEALABLE
=
true
;
}
else
{
...
...
@@ -300,6 +320,7 @@ MWF.xApplication.Attendance.AppealExplorer.View = new Class({
var
data
=
json
.
data
;
data
.
each
(
function
(
d
){
d
.
APPEALABLE
=
this
.
explorer
.
config
.
APPEALABLE
;
d
.
APPEAL_AUDIFLOWTYPE
=
this
.
explorer
.
configSetting
.
APPEAL_AUDIFLOWTYPE
.
configValue
;
}.
bind
(
this
));
data
.
sort
(
function
(
a
,
b
){
return
parseInt
(
b
.
appealDateString
.
replace
(
/-/g
,
""
)
)
-
parseInt
(
a
.
appealDateString
.
replace
(
/-/g
,
""
)
);
...
...
@@ -315,12 +336,20 @@ MWF.xApplication.Attendance.AppealExplorer.View = new Class({
},
_openDocument
:
function
(
documentData
){
var
appeal
=
new
MWF
.
xApplication
.
Attendance
.
AppealExplorer
.
Appeal
(
this
.
explorer
,
documentData
);
if
(
!
documentData
.
status
){
appeal
.
edit
();
if
(
!!
documentData
.
appealAuditInfo
){
var
workid
=
documentData
.
appealAuditInfo
.
workId
;
var
options
=
{
"
workId
"
:
workid
,
"
appId
"
:
"
process.Work
"
+
workid
};
this
.
app
.
desktop
.
openApplication
(
null
,
"
process.Work
"
,
options
);
}
else
{
appeal
.
open
();
var
appeal
=
new
MWF
.
xApplication
.
Attendance
.
AppealExplorer
.
Appeal
(
this
.
explorer
,
documentData
);
if
(
!
documentData
.
status
){
appeal
.
edit
();
}
else
{
appeal
.
open
();
}
}
}
})
...
...
o2web/source/x_component_Attendance/MyAppeal.js
浏览文件 @
93319982
...
...
@@ -285,8 +285,15 @@ MWF.xApplication.Attendance.MyAppeal.View = new Class({
},
_openDocument
:
function
(
documentData
){
var
appeal
=
new
MWF
.
xApplication
.
Attendance
.
MyAppeal
.
Appeal
(
this
.
explorer
,
documentData
);
appeal
.
open
();
if
(
!!
documentData
.
appealAuditInfo
){
var
workid
=
documentData
.
appealAuditInfo
.
workId
;
var
options
=
{
"
workId
"
:
workid
,
"
appId
"
:
"
process.Work
"
+
workid
};
this
.
app
.
desktop
.
openApplication
(
null
,
"
process.Work
"
,
options
);
}
else
{
var
appeal
=
new
MWF
.
xApplication
.
Attendance
.
MyAppeal
.
Appeal
(
this
.
explorer
,
documentData
);
appeal
.
open
();
}
}
});
...
...
o2web/source/x_component_Attendance/MyDetail.js
浏览文件 @
93319982
...
...
@@ -684,7 +684,7 @@ MWF.xApplication.Attendance.MyDetail.Document = new Class({
var
form
=
new
MWF
.
xApplication
.
Attendance
.
MyDetail
.
Appeal
(
this
.
explorer
,
this
.
data
);
form
.
create
();
}
else
{
this
.
loadProcess
(
this
.
explorer
.
configSetting
.
APPEAL_AUDIFLOW_ID
.
configValue
,
null
,
null
);
this
.
loadProcess
(
this
.
explorer
.
configSetting
.
APPEAL_AUDIFLOW_ID
.
configValue
,
{
record
:
this
.
data
}
,
null
);
}
},
...
...
@@ -706,7 +706,6 @@ MWF.xApplication.Attendance.MyDetail.Document = new Class({
afterStartProcess
:
function
(
data
,
title
,
processName
){
var
workInfors
=
[];
var
currentTask
=
[];
data
.
each
(
function
(
work
){
if
(
work
.
currentTaskIndex
!==
-
1
)
currentTask
.
push
(
work
.
taskList
[
work
.
currentTaskIndex
].
work
);
workInfors
.
push
(
this
.
getStartWorkInforObj
(
work
));
...
...
@@ -770,20 +769,21 @@ MWF.xApplication.Attendance.MyDetail.Document = new Class({
});
},
getProcess
:
function
(
id
,
callback
){
// MWF.xDesktop.requireApp("process.ProcessManager", "Actions.RestActions", function(){
// var action = new MWF.xApplication.process.ProcessManager.Actions.RestActions();
// action.getProcess(id, function(json){
this
.
action
=
new
o2
.
xDesktop
.
Actions
.
RestActions
(
""
,
"
x_processplatform_assemble_surface
"
,
""
);
this
.
action
.
actions
=
{
"
getProces
"
:
{
"
uri
"
:
"
/jaxrs/process/{id}/complex
"
}};
this
.
action
.
invoke
({
"
name
"
:
"
getProces
"
,
"
async
"
:
false
,
"
parameter
"
:
{
"
id
"
:
id
},
"
success
"
:
function
(
json
){
if
(
callback
)
callback
(
json
.
data
);
}.
bind
(
this
)});
// }.bind(this));
// }.bind(this));
},
seeAppeal
:
function
(){
var
form
=
new
MWF
.
xApplication
.
Attendance
.
MyDetail
.
Appeal
(
this
.
explorer
,
this
.
data
);
form
.
open
();
if
(
!
this
.
data
.
appealInfos
){
var
form
=
new
MWF
.
xApplication
.
Attendance
.
MyDetail
.
Appeal
(
this
.
explorer
,
this
.
data
);
form
.
open
();
}
else
{
var
workid
=
this
.
data
.
appealInfos
[
0
].
appealAuditInfo
.
workId
;
var
options
=
{
"
workId
"
:
workid
,
"
appId
"
:
"
process.Work
"
+
workid
};
this
.
app
.
desktop
.
openApplication
(
null
,
"
process.Work
"
,
options
);
}
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录