diff --git a/src/mocks/data/financial.js b/src/mocks/data/financial.js index f48c9365..f2681ba2 100644 --- a/src/mocks/data/financial.js +++ b/src/mocks/data/financial.js @@ -258,18 +258,75 @@ export const generateFinancialData = (stockCode) => { } })), - // 主营业务 + // 主营业务 - 按产品/业务分类 mainBusiness: { - by_product: [ - { name: '对公业务', revenue: 68540, ratio: 42.2, yoy_growth: 6.8 }, - { name: '零售业务', revenue: 81320, ratio: 50.1, yoy_growth: 11.2 }, - { name: '金融市场业务', revenue: 12490, ratio: 7.7, yoy_growth: 3.5 } + product_classification: [ + { + period: '2024-09-30', + report_type: '2024年三季报', + products: [ + { content: '零售金融业务', revenue: 81320000000, gross_margin: 68.5, profit_margin: 42.3, profit: 34398160000 }, + { content: '对公金融业务', revenue: 68540000000, gross_margin: 62.8, profit_margin: 38.6, profit: 26456440000 }, + { content: '金融市场业务', revenue: 12490000000, gross_margin: 75.2, profit_margin: 52.1, profit: 6507290000 }, + { content: '合计', revenue: 162350000000, gross_margin: 67.5, profit_margin: 41.2, profit: 66883200000 }, + ] + }, + { + period: '2024-06-30', + report_type: '2024年中报', + products: [ + { content: '零售金融业务', revenue: 78650000000, gross_margin: 67.8, profit_margin: 41.5, profit: 32639750000 }, + { content: '对公金融业务', revenue: 66280000000, gross_margin: 61.9, profit_margin: 37.8, profit: 25053840000 }, + { content: '金融市场业务', revenue: 11870000000, gross_margin: 74.5, profit_margin: 51.2, profit: 6077440000 }, + { content: '合计', revenue: 156800000000, gross_margin: 66.8, profit_margin: 40.5, profit: 63504000000 }, + ] + }, + { + period: '2024-03-31', + report_type: '2024年一季报', + products: [ + { content: '零售金融业务', revenue: 38920000000, gross_margin: 67.2, profit_margin: 40.8, profit: 15879360000 }, + { content: '对公金融业务', revenue: 32650000000, gross_margin: 61.2, profit_margin: 37.1, profit: 12113150000 }, + { content: '金融市场业务', revenue: 5830000000, gross_margin: 73.8, profit_margin: 50.5, profit: 2944150000 }, + { content: '合计', revenue: 77400000000, gross_margin: 66.1, profit_margin: 39.8, profit: 30805200000 }, + ] + }, + { + period: '2023-12-31', + report_type: '2023年年报', + products: [ + { content: '零售金融业务', revenue: 152680000000, gross_margin: 66.5, profit_margin: 40.2, profit: 61377360000 }, + { content: '对公金融业务', revenue: 128450000000, gross_margin: 60.5, profit_margin: 36.5, profit: 46884250000 }, + { content: '金融市场业务', revenue: 22870000000, gross_margin: 73.2, profit_margin: 49.8, profit: 11389260000 }, + { content: '合计', revenue: 304000000000, gross_margin: 65.2, profit_margin: 39.2, profit: 119168000000 }, + ] + }, ], - by_region: [ - { name: '华南地区', revenue: 56800, ratio: 35.0, yoy_growth: 9.2 }, - { name: '华东地区', revenue: 48705, ratio: 30.0, yoy_growth: 8.5 }, - { name: '华北地区', revenue: 32470, ratio: 20.0, yoy_growth: 7.8 }, - { name: '其他地区', revenue: 24375, ratio: 15.0, yoy_growth: 6.5 } + industry_classification: [ + { + period: '2024-09-30', + report_type: '2024年三季报', + industries: [ + { content: '华南地区', revenue: 56817500000, gross_margin: 69.2, profit_margin: 43.5, profit: 24715612500 }, + { content: '华东地区', revenue: 48705000000, gross_margin: 67.8, profit_margin: 41.2, profit: 20066460000 }, + { content: '华北地区', revenue: 32470000000, gross_margin: 65.5, profit_margin: 38.8, profit: 12598360000 }, + { content: '西南地区', revenue: 16235000000, gross_margin: 64.2, profit_margin: 37.5, profit: 6088125000 }, + { content: '其他地区', revenue: 8122500000, gross_margin: 62.8, profit_margin: 35.2, profit: 2859120000 }, + { content: '合计', revenue: 162350000000, gross_margin: 67.5, profit_margin: 41.2, profit: 66883200000 }, + ] + }, + { + period: '2024-06-30', + report_type: '2024年中报', + industries: [ + { content: '华南地区', revenue: 54880000000, gross_margin: 68.5, profit_margin: 42.8, profit: 23488640000 }, + { content: '华东地区', revenue: 47040000000, gross_margin: 67.1, profit_margin: 40.5, profit: 19051200000 }, + { content: '华北地区', revenue: 31360000000, gross_margin: 64.8, profit_margin: 38.1, profit: 11948160000 }, + { content: '西南地区', revenue: 15680000000, gross_margin: 63.5, profit_margin: 36.8, profit: 5770240000 }, + { content: '其他地区', revenue: 7840000000, gross_margin: 62.1, profit_margin: 34.5, profit: 2704800000 }, + { content: '合计', revenue: 156800000000, gross_margin: 66.8, profit_margin: 40.5, profit: 63504000000 }, + ] + }, ] },