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
fe3e28cb
Commit
fe3e28cb
authored
Mar 11, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 审批之后设置只读
parent
a0689578
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+1
-4
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+1
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
fe3e28cb
...
@@ -11,7 +11,6 @@ export default {
...
@@ -11,7 +11,6 @@ export default {
if
(
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
()))
{
if
(
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
()))
{
this
.
approvalLogical
(
bill
,
param
,
this
)
this
.
approvalLogical
(
bill
,
param
,
this
)
}
else
{
}
else
{
GMS
.
billDataChangeChecked
=
true
GMS
.
$hideContainer
.
$Modal
.
confirm
({
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"信息提示"
,
title
:
"信息提示"
,
content
:
"信息发生变化, 是否保存"
,
content
:
"信息发生变化, 是否保存"
,
...
@@ -19,7 +18,6 @@ export default {
...
@@ -19,7 +18,6 @@ export default {
this
.
saveLogical
(
bill
,
param
,
{
data
:
bill
.
getBuillData
(),
detailData
:
[]},
this
)
this
.
saveLogical
(
bill
,
param
,
{
data
:
bill
.
getBuillData
(),
detailData
:
[]},
this
)
},
},
onCancel
:
()
=>
{
onCancel
:
()
=>
{
this
.
approvalLogical
(
bill
,
param
,
this
)
}
}
})
})
}
}
...
@@ -58,12 +56,10 @@ export default {
...
@@ -58,12 +56,10 @@ export default {
return
return
}
}
else
if
(
res
.
data
.
code
!=
200
)
{
else
if
(
res
.
data
.
code
!=
200
)
{
delete
GMS
.
billDataChangeChecke
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
GMS
.
$hideContainer
.
$Message
.
error
(
res
.
data
.
msg
||
'提交失败,请联系系统管理员'
);
GMS
.
$hideContainer
.
$Message
.
error
(
res
.
data
.
msg
||
'提交失败,请联系系统管理员'
);
return
return
}
}
delete
GMS
.
billDataChangeChecke
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
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
]
...
@@ -144,6 +140,7 @@ export default {
...
@@ -144,6 +140,7 @@ export default {
// 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
(
'审批成功!'
)
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
'readOnly'
})
if
(
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
&&
...
...
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
fe3e28cb
...
@@ -6,7 +6,6 @@ export default {
...
@@ -6,7 +6,6 @@ export default {
if
(
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
()))
{
if
(
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
()))
{
this
.
approvalLogical
(
bill
,
param
,
this
)
this
.
approvalLogical
(
bill
,
param
,
this
)
}
else
{
}
else
{
GMS
.
billDataChangeChecked
=
true
GMS
.
$hideContainer
.
$Modal
.
confirm
({
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"信息提示"
,
title
:
"信息提示"
,
content
:
"信息发生变化, 是否保存"
,
content
:
"信息发生变化, 是否保存"
,
...
@@ -14,7 +13,6 @@ export default {
...
@@ -14,7 +13,6 @@ export default {
this
.
saveLogical
(
bill
,
param
,
{
data
:
bill
.
getBuillData
(),
detailData
:
[]},
this
)
this
.
saveLogical
(
bill
,
param
,
{
data
:
bill
.
getBuillData
(),
detailData
:
[]},
this
)
},
},
onCancel
:
()
=>
{
onCancel
:
()
=>
{
this
.
approvalLogical
(
bill
,
param
,
this
)
}
}
})
})
}
}
...
@@ -32,7 +30,6 @@ export default {
...
@@ -32,7 +30,6 @@ export default {
if
(
code
===
200
){
if
(
code
===
200
){
_this
.
approval
(
bill
,
param
);
_this
.
approval
(
bill
,
param
);
}
else
{
}
else
{
delete
GMS
.
billDataChangeChecke
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
}
...
@@ -73,6 +70,7 @@ export default {
...
@@ -73,6 +70,7 @@ export default {
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
'readOnly'
})
GMS
.
$hideContainer
.
$Message
.
success
(
'驳回成功!'
)
GMS
.
$hideContainer
.
$Message
.
success
(
'驳回成功!'
)
if
(
if
(
window
.
osConfig
.
appOpenMode
&&
window
.
osConfig
.
appOpenMode
&&
...
...
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