浏览代码

利润率显示bug

ellisran 1 年之前
父节点
当前提交
2ca67a528d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/view/datacollect/index4GY18Y.ejs

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

@@ -1011,7 +1011,7 @@
             gclr_price = ZhCalc.sub(gcsr_price, gccb_price);
             $('.gclr_price').text(gclr_price);
             gclrl_num = ZhCalc.round(ZhCalc.div(gclr_price, gcsr_price)*100, 2);
-            $('.gclrl_num').text(gclrl_num + '%');
+            $('.gclrl_num').text((gclrl_num ? gclrl_num : 0) + '%');
 
             // 应收应付及已收已付
             const show_yingsf_option_data = {