Commit 9eadb3a8 authored by 潘自豪's avatar 潘自豪

营业额明显页面修改

parent a6919a14
//环比值=(当日营业额-昨日营业额)/昨日营业额*100%计算 //环比值=(当日营业额-昨日营业额)/昨日营业额*100%计算
export const calc_hb_str = function (cur, pre) { export const calc_hb_str = function (cur, pre) {
if (cur == 0 || pre == 0) { if (pre == 0) {
return '0.00%' return '0.00%'
} }
return conver_num_rate(formater((cur - pre) / pre * 100)); return conver_num_rate(formater((cur - pre) / pre * 100));
...@@ -8,7 +8,7 @@ export const calc_hb_str = function (cur, pre) { ...@@ -8,7 +8,7 @@ export const calc_hb_str = function (cur, pre) {
//同比值=(当日营业额-上个月同一日营业额)/上个月同一日营业额*100%计算 //同比值=(当日营业额-上个月同一日营业额)/上个月同一日营业额*100%计算
export const calc_tb_str = function (cur, pre) { export const calc_tb_str = function (cur, pre) {
if (cur == 0 || pre == 0) { if (pre == 0) {
return '0.00%' return '0.00%'
} }
return calc_hb_str(cur, pre) return calc_hb_str(cur, pre)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment