瀏覽代碼

fix: 限价空值标红bug

vian 4 年之前
父節點
當前提交
0bbc6acb50
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      web/building_saas/main/js/models/calc_program.js

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

@@ -1037,7 +1037,7 @@ let calcTools = {
         const totalFee = this.getFee(node, feeField);
         const maxPrice = node.data.maxPrice;
         // 最高限价有值才对比
-        if (!commonUtil.isDef(maxPrice)) {
+        if (!commonUtil.isNumber(maxPrice)) {
             return false;
         }
         return totalFee > maxPrice;
@@ -1050,7 +1050,7 @@ let calcTools = {
         const totalFee = this.getFee(node, feeField);
         const minPrice = node.data.minPrice;
         // 最低限价有值才对比
-        if (!commonUtil.isDef(minPrice)) {
+        if (!commonUtil.isNumber(minPrice)) {
             return false;
         }
         return totalFee < minPrice;