增加项目成本页面

This commit is contained in:
砂糖
2025-10-14 13:58:33 +08:00
parent d0520e7872
commit de492664c3
10 changed files with 715 additions and 297 deletions

View File

@@ -1,8 +1,8 @@
<template>
<view class="charts-box">
<qiun-data-charts
type="column"
:chartData="chartData"
<qiun-data-charts
type="column"
:chartData="chartData"
:opts="chartOpts"
/>
</view>
@@ -16,7 +16,7 @@ export default {
chartData: {
type: Object,
default: {
categories: [], // 日期1日-当前日或当月总天数)
categories: [],
series: [] // 库存趋势数据
}
}
@@ -25,9 +25,18 @@ export default {
return {
// 图表配置
chartOpts: {
title: { text:'月度收支', left:'center' },
tooltip:{ trigger:'axis' },
legend:{ data:['支出','收入(CNY)','收入(USD)'], bottom:0 },
legend: true, // 显示图例
dataLabel: false, // 不显示数据标签
xAxis: {
fontColor: "#666",
fontSize: 12
},
yAxis: {
fontColor: "#666",
fontSize: 12,
gridColor: "#eee"
},
color: ["#007aff", "#ff9500", '#22bbff']
}
};
},