Explorar o código

修复工程量模式bug

laiguoran %!s(int64=4) %!d(string=hai) anos
pai
achega
04411acb6f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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'],
     };