zhangweicheng 6 anos atrás
pai
commit
c0f309c7da
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      modules/main/facade/project_facade.js

+ 2 - 2
modules/main/facade/project_facade.js

@@ -376,11 +376,11 @@ function getReportData(nameList,items,prjTypeNames,compilationScopes,decimal) {
                 tem['技术经济指标'].push(scMathUtil.roundForObj(p/bills.quantityMap[n],2));
             }else {
                 tem.billsAmounts.push(0);
-                tem['技术经济指标'].push(0);
+                tem['技术经济指标'].push(scMathUtil.roundForObj(p,2));
             }
         }
         tem.billsTtlPrice = scMathUtil.roundForObj(total,decimal.bills.totalPrice);
-        tem['技术经济综合指标'] = (tem.billsTtlAmt && parseFloat(tem.billsTtlAmt) !== 0)?scMathUtil.roundForObj(tem.billsTtlPrice/tem.billsTtlAmt,2):0;
+        tem['技术经济综合指标'] = (tem.billsTtlAmt && parseFloat(tem.billsTtlAmt) !== 0)?scMathUtil.roundForObj(tem.billsTtlPrice/tem.billsTtlAmt,2):scMathUtil.roundForObj(tem.billsTtlPrice,2);
         if(bills.flag == fixedFlag.TOTAL_COST) totalItem = tem;
         return tem
     }