应收账款等4个新增页面

This commit is contained in:
2026-04-03 16:14:28 +08:00
parent 9d91188b98
commit ed0fd63474
33 changed files with 140 additions and 201 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>
@@ -60,20 +60,19 @@ export default {
data() {
return {
isDropdownShow: false,
selectedProfit: '原片电费', // 选中的名称初始为null
profitOptions: [
'原片电费',
'加工电费',
'外围电费',
'发电量',
'日均发电量'
]
selectedProfit: '电费', // 选中的名称初始为null
profitOptions:[
{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
},
@@ -89,6 +88,7 @@ export default {
const salesData = {
allPlaceNames: this.locations,
unit: this.unit,
series: [
// 1. 完成率(折线图)
{
@@ -247,9 +247,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)
}
},
};