ソースを参照

成本大屏修改

ellisran 12 時間 前
コミット
c5ba77429c
1 ファイル変更4 行追加2 行削除
  1. 4 2
      app/view/datacollect/index_cost.ejs

+ 4 - 2
app/view/datacollect/index_cost.ejs

@@ -1006,9 +1006,11 @@
 
 
                         const item = tender.list.find(v => v.yearmonth === month);
                         const item = tender.list.find(v => v.yearmonth === month);
 
 
-                        const value = item ? ZhCalc.round(ZhCalc.div(item.tp, 10000), 0) : 0;
+                        // const value = item ? ZhCalc.round(ZhCalc.div(item.tp, 10000), 0) : 0;
 
 
-                        total = ZhCalc.add(total, value);   // 累计
+                        const endtp = item ? ZhCalc.round(ZhCalc.div(item.end_tp, 10000), 0) : 0;
+
+                        total = endtp ? endtp : total;   // 累计
 
 
                         data.push(total);
                         data.push(total);
                         option4_data.totalMap[month] = ZhCalc.add((option4_data.totalMap[month] || 0), total);
                         option4_data.totalMap[month] = ZhCalc.add((option4_data.totalMap[month] || 0), total);