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
69eedf13
Commit
69eedf13
authored
Oct 03, 2021
by
季圣华
Browse files
给统计列的数字保留两位小数
parent
10c96a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecg/JEditableTable.vue
View file @
69eedf13
...
...
@@ -2045,15 +2045,13 @@
let
value
=
item
[
key
]
if
(
value
&&
count
!==
'
-
'
)
{
try
{
// 20200528 cfm modi
// count += Number.parseInt(value)
count
+=
Number
.
parseFloat
(
value
)
}
catch
(
e
)
{
count
=
'
-
'
}
}
})
this
.
statisticsColumns
[
key
]
=
count
this
.
statisticsColumns
[
key
]
=
count
.
toFixed
(
2
)
}
}
},
...
...
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