Commit a6919a14 authored by 潘自豪's avatar 潘自豪

营业额明显页面修改

parent 7d0c808c
......@@ -6,12 +6,12 @@ export const calc_hb_str = function (cur, pre) {
return conver_num_rate(formater((cur - pre) / pre * 100));
};
//同比值=(当日营业额上个月同一日营业额)/上个月同一日营业额*100%计算
//同比值=(当日营业额-上个月同一日营业额)/上个月同一日营业额*100%计算
export const calc_tb_str = function (cur, pre) {
if (cur == 0 || pre == 0) {
return '0.00%'
}
return conver_num_rate(formater(cur / pre * 100));
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