Commit 0f5203ae authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 投标详情中标金额比取后端返回字段

parent 198b7743
......@@ -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
})
......
......@@ -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 = [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment