浏览代码

修复工程量模式bug

laiguoran 4 年之前
父节点
当前提交
04411acb6f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/public/js/schedule_stage_gcl.js

+ 3 - 0
app/public/js/schedule_stage_gcl.js

@@ -320,6 +320,9 @@ $(function () {
         level: 'level',
         rootId: -1,
         fullPath: 'full_path',
+        calcFun: function (node) {
+            node.dgn_price = ZhCalc.round(ZhCalc.div(node.total_price, node.dgn_qty1), 2);
+        },
         calcFields: ['plan_tp', 'next_plan_tp', 'end_plan_tp', 'year_plan_tp', 'total_price', 'end_gather_tp', 'year_gather_tp', 'gather_tp'],
     };