|
@@ -236,12 +236,13 @@ const commitProjectReport = async (row: { reportId: string }) => {
|
|
|
}
|
|
|
const reportProgressHandle = (row) => {
|
|
|
if (row.reportProgress) {
|
|
|
- row.periodValue = (
|
|
|
- ((row.reportProgress - row.finishProgress) / 100) *
|
|
|
- row.virtualAmount
|
|
|
- ).toFixed(2)
|
|
|
- row.surplusValue = (((100 - row.reportProgress) / 100) * row.virtualAmount).toFixed(2)
|
|
|
- row.periodCheckValue = (row.shareRatio * row.periodValue).toFixed(2)
|
|
|
+ row.periodValue = parseFloat(
|
|
|
+ (((row.reportProgress - row.finishProgress) / 100) * row.virtualAmount).toFixed(2)
|
|
|
+ )
|
|
|
+ row.surplusValue = parseFloat(
|
|
|
+ (((100 - row.reportProgress) / 100) * row.virtualAmount).toFixed(2)
|
|
|
+ )
|
|
|
+ row.periodCheckValue = parseFloat((row.shareRatio * row.periodValue).toFixed(2))
|
|
|
}
|
|
|
}
|
|
|
const editorHandle = async (row) => {
|