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

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>
@@ -63,8 +63,14 @@ export default {
return {
activeButton: 0,
isDropdownShow: false,
selectedProfit: '双镀成本', // 关键修改:默认赋值为「净价」,初始化即展示该类目数据
profitOptions: ['双镀成本', '双镀均价', '双镀毛利']
selectedProfit: '双镀销量',
profitOptions:[
{name:'双镀销量',unit:'万㎡'},
{name:'双镀成本',unit:'元/㎡'},
{name:'双镀均价',unit:'元/㎡'},
{name:'双镀毛利',unit:'元'},
],
unit:'万㎡'
};
},
computed: {
@@ -128,6 +134,7 @@ export default {
// 销量场景数据(保留原有结构,替换数据来源)
const salesData = {
allPlaceNames: months, // 优先用基地名称,无则用月份
unit: this.unit,
series: [
// 1. 完成率(折线图)
{
@@ -286,8 +293,9 @@ export default {
},
methods: {
selectProfit(item) {
this.selectedProfit = item;
this.selectedProfit = item.name;
this.isDropdownShow = false;
this.unit = item.unit;
},
// 复用达标状态判断方法
getRateFlag(rate) {