Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
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
shenshaokai
jinfa-admin
Commits
0f5203ae
Commit
0f5203ae
authored
Jul 12, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 投标详情中标金额比取后端返回字段
parent
198b7743
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
index.tsx
src/pages/procurement/components/bidParticulars/index.tsx
+1
-1
index.tsx
src/pages/procurement/components/descriptionsInfo/index.tsx
+4
-2
No files found.
src/pages/procurement/components/bidParticulars/index.tsx
View file @
0f5203ae
...
...
@@ -53,7 +53,7 @@ const BidParticulars: React.FC<BidParticularsProps> = ({cardTitle}) => {
title
:
<
span
>
金额(含税)
<
br
/>
合计: ¥
{
totalMoney
}
</
span
>,
dataIndex
:
'money'
,
key
:
'money'
,
render
:
(
t
,
r
)
=>
Number
((
r
.
price
*
r
.
count
).
toFixed
(
2
))
render
:
(
t
,
r
)
=>
`¥
${
Number
((
r
.
price
*
r
.
count
).
toFixed
(
2
))}
`
}
return
tempCol
})
...
...
src/pages/procurement/components/descriptionsInfo/index.tsx
View file @
0f5203ae
...
...
@@ -346,8 +346,10 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
/** 投标区块 **/
// @todo 中标结果 根据后端数据控制
const
result
=
_data
.
isWin
const
sumPrice
=
_data
?.
submitTender
?
_data
.
submitTender
.
submitTenderMateriel
.
reduce
((
a
,
b
)
=>
a
+
b
.
price
*
b
.
inviteTenderMateriel
.
count
,
0
)
:
0
const
alreadyPay
=
_data
?.
submitTender
?
_data
.
submitTender
.
submitTenderMateriel
.
reduce
((
a
,
b
)
=>
a
+
b
.
price
*
b
.
inviteTenderMateriel
.
count
*
b
.
awardTenderRatio
/
100
,
0
)
:
0
// const sumPrice = _data?.submitTender ? _data.submitTender.submitTenderMateriel.reduce((a, b) => a + b.price * b.inviteTenderMateriel.count, 0) : 0
// const alreadyPay = _data?.submitTender ? _data.submitTender.submitTenderMateriel.reduce((a, b) => a + b.price * b.inviteTenderMateriel.count * b.awardTenderRatio/100, 0) : 0
const
sumPrice
=
data
?.
allWinnerAmount
const
alreadyPay
=
data
?.
winnerAmount
const
bidResultList
=
[
{
...
...
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