laiguoran пре 3 година
родитељ
комит
a67d116494
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/view/datacollect/index.ejs

+ 1 - 1
app/view/datacollect/index.ejs

@@ -1421,7 +1421,7 @@
             }
             }
             // console.log(tenderList);
             // console.log(tenderList);
             $('.data_tender_num').text(tenderList.length);
             $('.data_tender_num').text(tenderList.length);
-            const rate = total_price ? ZhCalc.round(ZhCalc.div(total_stage_price, total_price) * 100, 2) : 0;
+            const rate = total_price && total_change_price ? ZhCalc.round(ZhCalc.div(total_stage_price, ZhCalc.add(total_price, total_change_price)) * 100, 2) : 0;
             $('.data_tender_rate').text(rate ? rate + '%' : '0%');
             $('.data_tender_rate').text(rate ? rate + '%' : '0%');
             $('.data_total_price').text(formatMoney(total_price));
             $('.data_total_price').text(formatMoney(total_price));
             $('.data_total_change_price').text(formatMoney(total_change_price));
             $('.data_total_change_price').text(formatMoney(total_change_price));