Commit 9963e260 authored by 前端-许佳敏's avatar 前端-许佳敏

fix: 修复合同详情页面时,处理金额需保留三位小数

parent 236282f3
...@@ -192,7 +192,7 @@ const FormList = (props: any) => { ...@@ -192,7 +192,7 @@ const FormList = (props: any) => {
console.log(item[idx], 1231321) console.log(item[idx], 1231321)
switch (name) { switch (name) {
case 'payAmount': case 'payAmount':
item[idx].payAmount = Number(item[idx].payAmount).toFixed(2); item[idx].payAmount = Number(item[idx].payAmount).toFixed(3);
break; break;
} }
setPlanList(item) setPlanList(item)
...@@ -221,7 +221,7 @@ const FormList = (props: any) => { ...@@ -221,7 +221,7 @@ const FormList = (props: any) => {
break; break;
case 'payAmount': case 'payAmount':
if (Price != 0) { if (Price != 0) {
item[idx].payRatio = Number(e.target.value / Price * 100).toFixed(2); item[idx].payRatio = Number(e.target.value / Price * 100).toFixed(3);
} }
item[idx].payAmount = e.target.value item[idx].payAmount = e.target.value
break; break;
...@@ -237,7 +237,7 @@ const FormList = (props: any) => { ...@@ -237,7 +237,7 @@ const FormList = (props: any) => {
PlanList.map(item => { PlanList.map(item => {
item.payNum = Number(item.payNum) item.payNum = Number(item.payNum)
item.payRatio = Number(item.payRatio) item.payRatio = Number(item.payRatio)
item.payAmount = Number(item.payAmount).toFixed(2) item.payAmount = Number(item.payAmount).toFixed(3)
item.payWay = Number(item.payWay) item.payWay = Number(item.payWay)
item.payParam = Number(item.payParam) item.payParam = Number(item.payParam)
// 付款方式: 1 - 账期,2 - 月结,3 - 现结 // 付款方式: 1 - 账期,2 - 月结,3 - 现结
......
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