Explorar o código

fix: 限价空值标红bug

vian %!s(int64=4) %!d(string=hai) anos
pai
achega
0bbc6acb50
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;