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

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>
@@ -64,7 +64,15 @@ export default {
activeButton: 0,
isDropdownShow: false,
selectedProfit: '全成本', // 关键修改:默认赋值为「净价」,初始化即展示该类目数据
profitOptions: ['全成本', '制造成本', '管理费用', '财务费用', '运费', '销售费用']
profitOptions:[
{name:'全成本',unit:'元/㎡'},
{name:'制造成本',unit:'元/㎡'},
{name:'管理费用',unit:'万元'},
{name:'财务费用',unit:'万元'},
{name:'运费',unit:'元/㎡'},
{name:'销售费用',unit:'万元'},
],
unit:'元/㎡'
};
},
computed: {
@@ -128,6 +136,7 @@ export default {
// 销量场景数据(保留原有结构,替换数据来源)
const salesData = {
allPlaceNames: months, // 优先用基地名称,无则用月份
unit: this.unit,
series: [
// 1. 完成率(折线图)
{
@@ -296,7 +305,8 @@ export default {
},
methods: {
selectProfit(item) {
this.selectedProfit = item;
this.selectedProfit = item.name;
this.unit = item.unit;
this.isDropdownShow = false;
},
// 复用达标状态判断方法