Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurel Lee
O2OA
Commits
b1b9a863
Commit
b1b9a863
authored
3 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
修复管理员提交校验了选人的问题
parent
28468f25
develop
master
wrdp
7.0.5
7.0.4
7.0.3
7.0.2
7.0.1
7.0.0
develop-7.1
develop-7.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
o2web/source/x_component_process_Work/Processor.js
+72
-1
o2web/source/x_component_process_Work/Processor.js
with
72 additions
and
1 deletion
+72
-1
o2web/source/x_component_process_Work/Processor.js
+
72
-
1
View file @
b1b9a863
...
...
@@ -823,7 +823,9 @@ MWF.xApplication.process.Work.Processor = new Class({
}.
bind
(
this
));
this
.
okButton
.
addEvent
(
"
click
"
,
function
(
ev
)
{
if
(
layout
.
mobile
)
{
if
(
!
this
.
form
&&
this
.
options
.
isManagerProcess
)
{
this
.
submit_withoutForm
(
ev
)
}
else
if
(
layout
.
mobile
)
{
this
.
submit_mobile
(
ev
)
}
else
{
this
.
submit_pc
(
ev
)
...
...
@@ -1167,6 +1169,75 @@ MWF.xApplication.process.Work.Processor = new Class({
}.
bind
(
this
))
},
submit_withoutForm
:
function
(
ev
)
{
if
(
this
.
hasDecisionOpinion
&&
!
this
.
selectedRouteGroup
)
{
this
.
routeGroupArea
.
setStyle
(
"
background-color
"
,
"
#ffe9e9
"
);
MWF
.
xDesktop
.
notice
(
"
error
"
,
{
"
x
"
:
"
center
"
,
"
y
"
:
"
top
"
},
MWF
.
xApplication
.
process
.
Work
.
LP
.
mustSelectRouteGroup
,
this
.
routeGroupArea
,
null
,
//{"x": 0, "y": 30}
{
"
closeOnBoxClick
"
:
true
,
"
closeOnBodyClick
"
:
true
,
"
fixed
"
:
true
,
"
delayClose
"
:
6000
}
);
return
false
;
}
if
(
!
this
.
selectedRoute
)
{
this
.
routeSelectorArea
.
setStyle
(
"
background-color
"
,
"
#ffe9e9
"
);
MWF
.
xDesktop
.
notice
(
"
error
"
,
{
"
x
"
:
"
center
"
,
"
y
"
:
"
top
"
},
MWF
.
xApplication
.
process
.
Work
.
LP
.
mustSelectRoute
,
this
.
routeSelectorArea
,
null
,
//{"x": 0, "y": 30}
{
"
closeOnBoxClick
"
:
true
,
"
closeOnBodyClick
"
:
true
,
"
fixed
"
:
true
,
"
delayClose
"
:
6000
}
);
return
false
;
}
var
routeName
=
this
.
selectedRoute
.
retrieve
(
"
routeName
"
)
||
this
.
selectedRoute
.
get
(
"
text
"
);
var
opinion
=
this
.
inputTextarea
.
get
(
"
value
"
);
if
(
opinion
===
MWF
.
xApplication
.
process
.
Work
.
LP
.
inputText
)
opinion
=
""
;
var
medias
=
[];
if
(
this
.
handwritingFile
)
medias
.
push
(
this
.
handwritingFile
);
if
(
this
.
soundFile
)
medias
.
push
(
this
.
soundFile
);
if
(
this
.
videoFile
)
medias
.
push
(
this
.
videoFile
);
var
currentRouteId
=
this
.
selectedRoute
.
retrieve
(
"
route
"
);
var
routeData
=
this
.
getRouteData
(
currentRouteId
);
if
(
!
opinion
&&
medias
.
length
===
0
)
{
if
(
routeData
.
opinionRequired
==
true
)
{
this
.
inputTextarea
.
setStyle
(
"
background-color
"
,
"
#ffe9e9
"
);
MWF
.
xDesktop
.
notice
(
"
error
"
,
{
"
x
"
:
"
center
"
,
"
y
"
:
"
top
"
},
MWF
.
xApplication
.
process
.
Work
.
LP
.
opinionRequired
,
this
.
inputTextarea
,
null
,
//{"x": 0, "y": 30}
{
"
closeOnBoxClick
"
:
true
,
"
closeOnBodyClick
"
:
true
,
"
fixed
"
:
true
,
"
delayClose
"
:
6000
}
);
return
false
;
}
}
var
appandTaskIdentityList
=
[];
this
.
node
.
mask
({
"
inject
"
:
{
"
where
"
:
"
bottom
"
,
"
target
"
:
this
.
node
},
"
destroyOnHide
"
:
true
,
"
style
"
:
{
"
background-color
"
:
"
#999
"
,
"
opacity
"
:
0.3
,
"
z-index
"
:
600
}
});
var
array
=
[
routeName
,
opinion
,
medias
,
appandTaskIdentityList
,
this
.
orgItems
,
function
()
{
}];
this
.
fireEvent
(
"
submit
"
,
array
);
},
destroy
:
function
()
{
this
.
node
.
empty
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help