Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f0d8be83
authored
2025-04-01 14:13:15 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复只有一个数据资产估值时计算不正确
1 parent
2048cd38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/data_transaction/valuationModelCreate.vue
src/views/data_transaction/valuationModelCreate.vue
View file @
f0d8be8
...
...
@@ -674,7 +674,7 @@ const incomeCalculateData = computed(() => { //响应式不生效
resultInfo
[
'折现因子'
].
push
(
changeNum
(
1
/
Math
.
pow
((
1
+
C10
),
parseFloat
(
resultInfo
[
'折现年期'
][
i
])),
2
,
true
));
resultInfo
[
'折现现值'
].
push
(
changeNum
(
parseFloat
(
resultInfo
[
'折现因子'
][
i
])
*
parseFloat
(
resultInfo
[
'现金流'
][
i
]?.
replace
(
/,/g
,
''
)),
2
,
true
));
})
resultInfo
[
'数据资产估值'
]
=
changeNum
(
resultInfo
[
'折现现值'
].
reduce
(
function
(
prev
,
curr
,
idx
,
arr
)
{
resultInfo
[
'数据资产估值'
]
=
resultInfo
[
'折现现值'
].
length
<
2
?
resultInfo
[
'折现现值'
][
0
]
:
changeNum
(
resultInfo
[
'折现现值'
].
reduce
(
function
(
prev
,
curr
,
idx
,
arr
)
{
return
(
typeof
prev
==
'string'
?
parseFloat
(
prev
?.
replace
(
/,/g
,
''
))
:
parseFloat
(
prev
))
+
parseFloat
(
curr
?.
replace
(
/,/g
,
''
));
}),
2
,
true
);
return
resultInfo
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment