Browse Source

feat: 四川养护(2021),工地转移,50km以内的工程按50km计算

zhangweicheng 4 years ago
parent
commit
1eeee3cc96
1 changed files with 4 additions and 0 deletions
  1. 4 0
      web/over_write/js/sichuan_2021.js

+ 4 - 0
web/over_write/js/sichuan_2021.js

@@ -445,6 +445,10 @@ if (typeof feeRateObject !== 'undefined') {
             result.valueKey = "5";
             result.value = scMathUtil.roundForObj(value, getDecimal("feeRate"));//设置显示的节点值
         }
+        if (subRate.name == "工地转移(km)" && value && value < 50) {//工地转移50km以内按50km算
+            result.valueKey = "50";
+            result.value = scMathUtil.roundForObj(value, getDecimal("feeRate"));//设置显示的节点值
+        }
         return result;
     }
 }