Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
f7014987
Commit
f7014987
authored
Dec 07, 2021
by
季圣华
Browse files
解决报表中合计数值的bug
parent
ff4756dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/mixins/JeecgListMixin.js
View file @
f7014987
...
@@ -395,7 +395,11 @@ export const JeecgListMixin = {
...
@@ -395,7 +395,11 @@ export const JeecgListMixin = {
let
total
=
0
let
total
=
0
dataSource
.
forEach
(
data
=>
{
dataSource
.
forEach
(
data
=>
{
if
(
parseCols
.
indexOf
(
dataIndex
)
>-
1
)
{
if
(
parseCols
.
indexOf
(
dataIndex
)
>-
1
)
{
total
+=
Number
.
parseFloat
(
data
[
dataIndex
])
if
(
data
[
dataIndex
])
{
total
+=
Number
.
parseFloat
(
data
[
dataIndex
])
}
else
{
total
+=
0
}
}
else
{
}
else
{
total
=
'
-
'
total
=
'
-
'
}
}
...
...
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