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
9fc87344
Commit
9fc87344
authored
Mar 14, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@gms/gms-plugin-billexpand): 同意时运行公式,并处理确认保存
parent
ca04a616
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+25
-8
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
9fc87344
...
...
@@ -14,15 +14,25 @@ export default {
if
(
flag
)
{
this
.
approvalLogical
(
bill
,
param
,
this
)
}
else
{
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"信息提示"
,
content
:
"信息发生变化, 是否保存"
,
onOk
:
()
=>
{
this
.
saveLogical
(
bill
,
param
,
{
data
:
bill
.
getBuillData
(),
detailData
:
[]},
this
)
},
onCancel
:
()
=>
{
bill
.
runFormulaCheckData
(
param
,
(
msg
)
=>
{
if
(
msg
.
length
==
0
)
{
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"信息提示"
,
content
:
"信息发生变化, 是否保存"
,
onOk
:
()
=>
{
this
.
saveLogical
(
bill
,
param
,
{
data
:
bill
.
getBuillData
(),
detailData
:
[]},
this
)
},
onCancel
:
()
=>
{
}
})
}
else
{
GMS
.
vbus
.
$Modal
.
warning
({
title
:
"信息错误"
,
content
:
msg
,
});
}
})
});
}
}
else
{
...
...
@@ -40,6 +50,13 @@ export default {
})
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
==
0
)
{
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
if
(
curTagId
)
{
GMS
.
oldBillDataMap
[
curTagId
]
=
bill
.
getBuillData
()
}
else
{
GMS
.
oldBillData
=
bill
.
getBuillData
()
}
this
.
approvalLogical
(
bill
,
param
)
}
else
{
response
.
data
.
message
&&
GMS
.
vbus
.
$Message
.
error
({
...
...
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