Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
Project
Project
Details
Activity
Releases
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
潘自豪 Rambo Pan
shld-databoard-ui
Commits
9eadb3a8
Commit
9eadb3a8
authored
Oct 10, 2023
by
潘自豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营业额明显页面修改
parent
a6919a14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
numUtil.js
src/module/utils/numUtil.js
+2
-2
No files found.
src/module/utils/numUtil.js
View file @
9eadb3a8
//环比值=(当日营业额-昨日营业额)/昨日营业额*100%计算
//环比值=(当日营业额-昨日营业额)/昨日营业额*100%计算
export
const
calc_hb_str
=
function
(
cur
,
pre
)
{
export
const
calc_hb_str
=
function
(
cur
,
pre
)
{
if
(
cur
==
0
||
pre
==
0
)
{
if
(
pre
==
0
)
{
return
'0.00%'
return
'0.00%'
}
}
return
conver_num_rate
(
formater
((
cur
-
pre
)
/
pre
*
100
));
return
conver_num_rate
(
formater
((
cur
-
pre
)
/
pre
*
100
));
...
@@ -8,7 +8,7 @@ export const calc_hb_str = function (cur, pre) {
...
@@ -8,7 +8,7 @@ export const calc_hb_str = function (cur, pre) {
//同比值=(当日营业额-上个月同一日营业额)/上个月同一日营业额*100%计算
//同比值=(当日营业额-上个月同一日营业额)/上个月同一日营业额*100%计算
export
const
calc_tb_str
=
function
(
cur
,
pre
)
{
export
const
calc_tb_str
=
function
(
cur
,
pre
)
{
if
(
cur
==
0
||
pre
==
0
)
{
if
(
pre
==
0
)
{
return
'0.00%'
return
'0.00%'
}
}
return
calc_hb_str
(
cur
,
pre
)
return
calc_hb_str
(
cur
,
pre
)
...
...
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