1.30 财务分析部分模块完善,发展历程弹窗完善
This commit is contained in:
@@ -95,6 +95,7 @@ const _sfc_main = {
|
||||
},
|
||||
props: {
|
||||
stockInfo: Object,
|
||||
financialMetricsInfo: Object,
|
||||
barCategoryList: Array,
|
||||
barList: Array,
|
||||
lineList: Array,
|
||||
@@ -148,6 +149,18 @@ const _sfc_main = {
|
||||
chart.setOption(that.option2);
|
||||
}, 2e3);
|
||||
},
|
||||
/**
|
||||
* 获取资产负债状态
|
||||
*/
|
||||
getDebtStatusText(value) {
|
||||
if (value < 40)
|
||||
return { text: "安全", color: "green" };
|
||||
if (value < 60)
|
||||
return { text: "适中", color: "gold" };
|
||||
if (value < 70)
|
||||
return { text: "偏高", color: "orange" };
|
||||
return { text: "风险", color: "red" };
|
||||
},
|
||||
itemClick(index) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pagesStock/stockCenterDetails/cwDetails?index=${index}`
|
||||
@@ -166,16 +179,23 @@ if (!Math) {
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $props.stockInfo
|
||||
}, $props.stockInfo ? {
|
||||
}, $props.stockInfo ? common_vendor.e({
|
||||
b: common_vendor.t($data.getChgRateStr($props.stockInfo.growth_rates.profit_growth)),
|
||||
c: common_vendor.t($data.getChgRateStr($props.stockInfo.growth_rates.revenue_growth)),
|
||||
d: common_vendor.t($data.getChgRateStr($props.stockInfo.key_metrics.roe)),
|
||||
e: common_vendor.t($data.getChgRateStr($props.stockInfo.key_metrics.net_margin)),
|
||||
f: common_vendor.t($data.getChgRateStr($props.stockInfo.key_metrics.gross_margin))
|
||||
} : {}, {
|
||||
g: common_vendor.sr("chartRef1", "cf18d1d4-0"),
|
||||
h: common_vendor.sr("chartRef2", "cf18d1d4-1"),
|
||||
i: common_vendor.f(["业务", "毛利率", "利润", "营收", "营收"], (item, index, i0) => {
|
||||
f: common_vendor.t($data.getChgRateStr($props.stockInfo.key_metrics.gross_margin)),
|
||||
g: $props.financialMetricsInfo
|
||||
}, $props.financialMetricsInfo ? {
|
||||
h: common_vendor.t($props.financialMetricsInfo.solvency.asset_liability_ratio),
|
||||
i: common_vendor.t($options.getDebtStatusText($props.financialMetricsInfo.solvency.asset_liability_ratio).text),
|
||||
j: common_vendor.s("color: " + $options.getDebtStatusText($props.financialMetricsInfo.solvency.asset_liability_ratio).color),
|
||||
k: common_vendor.t($props.financialMetricsInfo.solvency.current_ratio),
|
||||
l: common_vendor.t($props.financialMetricsInfo.expense_ratios.rd_expense_ratio)
|
||||
} : {}) : {}, {
|
||||
m: common_vendor.sr("chartRef1", "cf18d1d4-0"),
|
||||
n: common_vendor.sr("chartRef2", "cf18d1d4-1"),
|
||||
o: common_vendor.f(["业务", "毛利率", "利润", "营收", "营收"], (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item),
|
||||
b: ["", "(2025年中报)", "(2025年中报)", "(2025年中报)", "(2024年年报)"][index].length > 0
|
||||
@@ -187,9 +207,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: index == 0 ? "flex-start" : "center"
|
||||
});
|
||||
}),
|
||||
j: $props.productClassificationList.length > 0
|
||||
p: $props.productClassificationList.length > 0
|
||||
}, $props.productClassificationList.length > 0 ? {
|
||||
k: common_vendor.f($props.productClassificationList[0].products, (item, index, i0) => {
|
||||
q: common_vendor.f($props.productClassificationList[0].products, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.content),
|
||||
b: common_vendor.t(item.profit_margin.toFixed(2)),
|
||||
|
||||
Reference in New Issue
Block a user