Jelajahi Sumber

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/YangHuCost

vian 4 tahun lalu
induk
melakukan
abea0ed771
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      web/building_saas/main/js/models/calc_program.js

+ 1 - 1
web/building_saas/main/js/models/calc_program.js

@@ -1125,7 +1125,7 @@
    // 取树结点的调价系数。
    getCoe: function (node, tender) {
      if (tender == tenderTypes.ttReverseGLJ)
-       return (calcTools.isVP_or_GLJR(node)) ? node.data.rationQuantityCoe : node.data.quantityCoe.labour
+       return calcTools.isVP_or_GLJR(node) ? node.data.rationQuantityCoe : (node.data.quantityCoe ? node.data.quantityCoe.labour : 0)
      else if (tender == tenderTypes.ttReverseRation)
        return node.data.rationQuantityCoe;
    }