Browse Source

修复工程量模式bug

laiguoran 4 years ago
parent
commit
04411acb6f
1 changed files with 3 additions and 0 deletions
  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',
         level: 'level',
         rootId: -1,
         rootId: -1,
         fullPath: 'full_path',
         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'],
         calcFields: ['plan_tp', 'next_plan_tp', 'end_plan_tp', 'year_plan_tp', 'total_price', 'end_gather_tp', 'year_gather_tp', 'gather_tp'],
     };
     };