营业收入-全成本分析页面修改

This commit is contained in:
2026-04-03 09:10:04 +08:00
parent f0ac88af3d
commit 9d91188b98
85 changed files with 1228 additions and 619 deletions

View File

@@ -35,7 +35,7 @@
<div class="dropdown-options" v-if="isDropdownShow">
<div class="dropdown-option" v-for="(item, index) in profitOptions" :key="index"
@click.stop="selectProfit(item)">
{{ item }}
{{ item.name }}
</div>
</div>
</div>
@@ -62,20 +62,18 @@ export default {
isDropdownShow: false,
selectedProfit: '经营性利润', // 选中的名称初始为null
profitOptions: [
'经营性利润',
'销量',
'单价',
'制造成本',
'管理费用',
'销售费用',
'财务费用',
]
{name:'经营性利润',unit:'万元'},
{name:'销量',unit:'万㎡'},
{name:'单价',unit:'元/㎡'},
{name:'制造成本',unit:'元/㎡'},
{name:'管理费用',unit:'万元'},
{name:'销售费用',unit:'万元'},
{name:'财务费用',unit:'万元'},
],
unit:'万元'
};
},
computed: {
// profitOptions() {
// return this.categoryData.map(item => item.name) || [];
// },
currentDataSource() {
return this.chartData
},
@@ -91,6 +89,7 @@ export default {
const salesData = {
allPlaceNames: this.locations,
unit: this.unit,
series: [
// 1. 完成率(折线图)
{
@@ -249,9 +248,10 @@ export default {
},
methods: {
selectProfit(item) {
this.selectedProfit = item;
this.selectedProfit = item.name;
this.unit = item.unit;
this.isDropdownShow = false;
this.$emit('handleGetItemData',item)
this.$emit('handleGetItemData',item.name)
}
},
};