浏览代码

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

DongZ 1 年之前
父节点
当前提交
b20751502e
共有 1 个文件被更改,包括 3 次插入1 次删除
  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