Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
rbc-demo
Commits
334347b8
Commit
334347b8
authored
Feb 15, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 同意驳回按钮点击之后禁用
parent
440d17ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+8
-1
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+5
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
334347b8
...
@@ -4,6 +4,7 @@ import SelectApprovers from '../components-control/select-approvers.vue'
...
@@ -4,6 +4,7 @@ import SelectApprovers from '../components-control/select-approvers.vue'
export
default
{
export
default
{
execute
:
function
(
bill
,
param
)
{
execute
:
function
(
bill
,
param
)
{
if
(
bill
)
{
if
(
bill
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
selectedApprovers
=
[]
let
selectedApprovers
=
[]
window
.
GMS
.
$http
.
get
(
`/bpm/bill/selectApprover/ApproverList/
${
taskId
}
`
).
then
((
res
)
=>
{
window
.
GMS
.
$http
.
get
(
`/bpm/bill/selectApprover/ApproverList/
${
taskId
}
`
).
then
((
res
)
=>
{
...
@@ -12,10 +13,11 @@ export default {
...
@@ -12,10 +13,11 @@ export default {
return
return
}
}
else
if
(
res
.
data
.
code
!=
200
)
{
else
if
(
res
.
data
.
code
!=
200
)
{
// this.executeApproval(bill, param
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
GMS
.
$hideContainer
.
$Message
.
error
(
res
.
data
.
msg
||
'提交失败,请联系系统管理员'
);
GMS
.
$hideContainer
.
$Message
.
error
(
res
.
data
.
msg
||
'提交失败,请联系系统管理员'
);
return
return
}
}
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
const
nodeData
=
res
.
data
.
ApproverVo
const
nodeData
=
res
.
data
.
ApproverVo
const
optionList
=
[...
nodeData
.
approvers
]
const
optionList
=
[...
nodeData
.
approvers
]
if
(
optionList
.
length
==
0
)
{
if
(
optionList
.
length
==
0
)
{
...
@@ -78,6 +80,7 @@ export default {
...
@@ -78,6 +80,7 @@ export default {
this
.
approval
(
bill
,
param
);
this
.
approval
(
bill
,
param
);
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
}
else
{
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
}
...
@@ -93,6 +96,8 @@ export default {
...
@@ -93,6 +96,8 @@ export default {
GMS
.
$http
.
post
(
'/gms/workflow/task/completed/'
+
taskId
+
'?result=1&comments='
+
comments
).
then
(
GMS
.
$http
.
post
(
'/gms/workflow/task/completed/'
+
taskId
+
'?result=1&comments='
+
comments
).
then
(
function
(
response
)
{
function
(
response
)
{
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
// console.log('审批成功');
// console.log('审批成功');
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
$hideContainer
.
$Message
.
success
(
'审批成功!'
)
GMS
.
$hideContainer
.
$Message
.
success
(
'审批成功!'
)
...
@@ -112,7 +117,9 @@ export default {
...
@@ -112,7 +117,9 @@ export default {
)
)
.
catch
(
.
catch
(
function
(
error
)
{
function
(
error
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
$hideContainer
.
$Message
.
error
(
'error'
)
}.
bind
(
this
)
}.
bind
(
this
)
);
);
}
}
...
...
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
334347b8
...
@@ -3,6 +3,7 @@ import Bridge from '../components-control/util/bridge'
...
@@ -3,6 +3,7 @@ import Bridge from '../components-control/util/bridge'
export
default
{
export
default
{
execute
:
function
(
bill
,
param
)
{
execute
:
function
(
bill
,
param
)
{
if
(
bill
){
if
(
bill
){
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
if
(
param
.
param
.
isNeedSave
){
if
(
param
.
param
.
isNeedSave
){
let
saveParam
=
{
let
saveParam
=
{
actions
:
"bill.Basic.save"
,
actions
:
"bill.Basic.save"
,
...
@@ -19,6 +20,7 @@ export default {
...
@@ -19,6 +20,7 @@ export default {
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
}
else
{
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
}
}.
bind
(
this
));
}.
bind
(
this
));
...
@@ -37,6 +39,7 @@ export default {
...
@@ -37,6 +39,7 @@ export default {
function
(
response
)
{
function
(
response
)
{
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
// console.log('驳回成功');
// console.log('驳回成功');
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
$hideContainer
.
$Message
.
success
(
'驳回成功!'
)
GMS
.
$hideContainer
.
$Message
.
success
(
'驳回成功!'
)
if
(
if
(
...
@@ -54,7 +57,9 @@ export default {
...
@@ -54,7 +57,9 @@ export default {
)
)
.
catch
(
.
catch
(
function
(
error
)
{
function
(
error
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
$hideContainer
.
$Message
.
error
(
error
)
}.
bind
(
this
)
}.
bind
(
this
)
);
);
}
}
...
...
Write
Preview
Markdown
is supported
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