Răsfoiți Sursa

目标管理-年销售合并中的区域目标汇总和客户目标汇总的合计值修复BUG。

DongZ 1 an în urmă
părinte
comite
b20751502e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      src/views/business/spd/target/AnnualSaleGoalMerge.vue

+ 3 - 1
src/views/business/spd/target/AnnualSaleGoalMerge.vue

@@ -1457,7 +1457,9 @@
             console.log(key);
             if (map.has(key)) {
               const existingObj = map.get(key)
-              existingObj.totalGoal += obj.totalGoal
+              existingObj.totalGoal = parseFloat(existingObj.totalGoal)
+              existingObj.totalGoal += parseFloat(obj.totalGoal)
+              existingObj.totalGoal = existingObj.totalGoal.toFixed(2)
               existingObj.januaryGoal += obj.januaryGoal
               existingObj.februaryGoal += obj.februaryGoal
               existingObj.marchGoal += obj.marchGoal