sbd-npm 1.3.52 → 1.3.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stock_basics.js +32 -6
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -700,12 +700,38 @@ let Stock = {
|
|
700
700
|
_html.push("<td>", Util.to_float(item["gross_profit_rate"], 2), "%</td>");
|
701
701
|
_html.push("<td>", Util.to_float(item["eps"], 2), "元</td>");
|
702
702
|
_html.push("<td>", item["roe"], "%</td>");
|
703
|
-
|
704
|
-
_html.push("<td>",
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
703
|
+
let total_revenue = Util.to_unit(item["total_revenue"], 3);
|
704
|
+
_html.push("<td>", total_revenue, "</td>");
|
705
|
+
let total_revenue_yoy_title = "", total_revenue_yoy_ratio = "--";
|
706
|
+
if (item["yoy_total_revenue"]) {
|
707
|
+
total_revenue_yoy_title = " title='" + Util.strip_html(Util.to_unit(item["yoy_total_revenue"])) + " - " + Util.strip_html(total_revenue) + "'";
|
708
|
+
total_revenue_yoy_ratio = Util.to_float(((item["total_revenue"] - item["yoy_total_revenue"]) / item["yoy_total_revenue"]) * 100, 2);
|
709
|
+
total_revenue_yoy_ratio = Util.parse_ratio(total_revenue_yoy_ratio);
|
710
|
+
}
|
711
|
+
_html.push("<td", total_revenue_yoy_title, ">", total_revenue_yoy_ratio, "</td>");
|
712
|
+
let total_revenue_qoq_title = "", total_revenue_qoq_ratio = "--";
|
713
|
+
if (item["qoq_total_revenue"]) {
|
714
|
+
total_revenue_qoq_title = " title='" + Util.strip_html(Util.to_unit(item["qoq_total_revenue"])) + " - " + Util.strip_html(Util.to_unit(item["total_revenue_add"])) + "'";
|
715
|
+
total_revenue_qoq_ratio = Util.to_float(((item["total_revenue_add"] - item["qoq_total_revenue"]) / item["qoq_total_revenue"]) * 100, 2);
|
716
|
+
total_revenue_qoq_ratio = Util.parse_ratio(total_revenue_qoq_ratio);
|
717
|
+
}
|
718
|
+
_html.push("<td", total_revenue_qoq_title, ">", total_revenue_qoq_ratio, "</td>");
|
719
|
+
let net_profit = Util.to_unit(item["net_profit"], 3);
|
720
|
+
_html.push("<td>", net_profit, "</td>");
|
721
|
+
let net_profit_yoy_title = "", net_profit_yoy_ratio = "--";
|
722
|
+
if (item["yoy_net_profit"]) {
|
723
|
+
net_profit_yoy_title = " title='" + Util.strip_html(Util.to_unit(item["yoy_net_profit"])) + " - " + Util.strip_html(net_profit) + "'";
|
724
|
+
net_profit_yoy_ratio = Util.to_float(((item["net_profit"] - item["yoy_net_profit"]) / item["yoy_net_profit"]) * 100, 2);
|
725
|
+
net_profit_yoy_ratio = Util.parse_ratio(net_profit_yoy_ratio);
|
726
|
+
}
|
727
|
+
_html.push("<td", net_profit_yoy_title, ">", net_profit_yoy_ratio, "</td>");
|
728
|
+
let net_profit_qoq_title = "", net_profit_qoq_ratio = "--";
|
729
|
+
if (item["qoq_net_profit"]) {
|
730
|
+
net_profit_qoq_title = " title='" + Util.strip_html(Util.to_unit(item["qoq_net_profit"])) + " - " + Util.strip_html(Util.to_unit(item["net_profit_add"])) + "'";
|
731
|
+
net_profit_qoq_ratio = Util.to_float(((item["net_profit_add"] - item["qoq_net_profit"]) / item["qoq_net_profit"]) * 100, 2);
|
732
|
+
net_profit_qoq_ratio = Util.parse_ratio(net_profit_qoq_ratio);
|
733
|
+
}
|
734
|
+
_html.push("<td", net_profit_qoq_title, ">", net_profit_qoq_ratio, "</td>");
|
709
735
|
_html.push("<td>", Util.to_unit(item["adjusted_net_profit"], 3), "</td>");
|
710
736
|
_html.push("</tr>");
|
711
737
|
}
|