zhangweicheng пре 6 година
родитељ
комит
86058e628d

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

@@ -81,10 +81,10 @@ let exportUtil = {
         coe = coe?coe:1;
         return scMathUtil.roundForObj(total*coe,decimal);
     },
-    calUnitWidthCoe:function (total) {
+    calUnitWidthCoe:function (total,noNeedCoe) {
         let areas = exportUtil.getBuildArea(projectObj.project.property.engineerFeatures);
         let f = _.find(projectObj.project.property.engineerFeatures,{index:true});
-        return f?exportUtil.calcUnitB(total,areas,f.coe):exportUtil.calcUnitB(total,areas);
+        return f && noNeedCoe!==true?exportUtil.calcUnitB(total,areas,f.coe):exportUtil.calcUnitB(total,areas);
     },
     getIndexBills:function (bills) {
         let parentMap = {},datas = [],totalCost = 0;

+ 1 - 1
web/building_saas/main/js/views/index_view.js

@@ -337,7 +337,7 @@ let indexObj= {
                 cost = scMathUtil.roundForObj(cost + i.totalFee,getDecimal("process"));
             }
             data.cost = scMathUtil.roundForObj(cost,priceDe);
-            data.unitCost = exportUtil.calUnitWidthCoe(data.cost);
+            data.unitCost = exportUtil.calUnitWidthCoe(data.cost,true);//noNeedCoe = true 这里不需要乘以系数
             data.per = engineerCost?scMathUtil.roundForObj(data.cost/engineerCost * 100,2):0;
         }