Commit 3eb18874 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复支付比例计算精度的问题

parent 7f1296b1
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 17:36:45
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-08 20:00:03
* @LastEditTime: 2021-09-15 10:08:33
* @Description: 查看退货数量与退款金额 抽屉
*/
import React, { useEffect, useState } from 'react';
......@@ -196,7 +196,7 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
}
let payList = applyInfo.payList ? applyInfo.payList.map((item) => ({
...item,
payRatio: item.payRatio * 100,
payRatio: +(new BigNumber(item.payRatio).multipliedBy(100)).toFixed(2),
})) : [];
setPayInfoLoading(true);
try {
......@@ -210,7 +210,7 @@ const ReturnInfoDrawer: React.FC<ReturnInfoDrawerProps> = ({
payId: item.paymentId,
payCount: item.batchNo,
payNode: item.payNode,
payRatio: item.payRate * 100,
payRatio: +(new BigNumber(item.payRate).multipliedBy(100)).toFixed(2),
payAmount: item.payAmount,
payWay: item.payType,
payWayName: item.payTypeName,
......
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