gaoluyang
2025-12-11 c4e7a4be56f5fa865843574b6f0ad91f1861f1b9
1.润泰-BI大屏展示修改
已修改2个文件
37 ■■■■ 文件已修改
src/api/viewIndex.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/dataDashboard/index.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/viewIndex.js
@@ -45,3 +45,10 @@
        method: 'get'
    })
}
// 生产数据
export const productionStatistics = () => {
    return request({
        url: '/home/productionStatistics',
        method: 'get'
    })
}
src/views/reportAnalysis/dataDashboard/index.vue
@@ -174,14 +174,14 @@
        </div>
                
                <div class="financial-header">
                    <span class="financial-title">财务分析</span>
                    <span class="financial-title">生产分析</span>
                </div>
                <div class="main-panel">
                    <div class="panel-item-customers">
                        <div class="event-header">
                            <img src="@/assets/BI/shijianmingxiicon@2x.png" alt="图标" class="event-icon" />
                            <span class="event-title">经营成果分析</span>
                        </div>
<!--                        <div class="event-header">-->
<!--                            <img src="@/assets/BI/shijianmingxiicon@2x.png" alt="图标" class="event-icon" />-->
<!--                            <span class="event-title">经营成果分析</span>-->
<!--                        </div>-->
                        <Echarts ref="chart"
                                         :chartStyle="chartStyle"
                                         :grid="grid"
@@ -245,7 +245,7 @@
import useUserStore from '@/store/modules/user'
import {
    analysisCustomerContractAmounts, getAmountHalfYear,
    homeTodos,
    homeTodos, productionStatistics,
    qualityStatistics,
    statisticsReceivablePayable
} from "@/api/viewIndex.js";
@@ -417,11 +417,11 @@
const barLegend1 = {
    show: true,
    textStyle: { color: '#B8C8E0' },
    data: ['总收入', '总支出', '净收入']
    data: ['待生产', '生产中', '已生产']
}
const barSeries11 = ref([
    {
        name: '总收入',
        name: '待生产',
        type: 'bar',
        barGap: 0,
        emphasis: {
@@ -443,7 +443,7 @@
        data: []
    },
    {
        name: '总支出',
        name: '生产中',
        type: 'bar',
        emphasis: {
            focus: 'series'
@@ -464,7 +464,7 @@
        data: []
    },
    {
        name: '净收入',
        name: '已生产',
        type: 'bar',
        emphasis: {
            focus: 'series'
@@ -643,6 +643,15 @@
// 财务统计
const accountStatisticsInfo = () => {
    listPageAnalysis().then((res) => {
        xAxis3.value[0].data = res.data.days
        barSeries11.value[0].data = res.data.totalIncome
        barSeries11.value[1].data = res.data.totalExpense
        barSeries11.value[2].data = res.data.netIncome
    })
}
// 财务统计
const productionStatisticsInfo = () => {
    productionStatistics().then((res) => {
        xAxis3.value[0].data = res.data.days
        barSeries11.value[0].data = res.data.totalIncome
        barSeries11.value[1].data = res.data.totalExpense
@@ -986,6 +995,7 @@
  window.addEventListener('resize', handleResize)
  analysisCustomer()
  qualityStatisticsInfo()
    productionStatisticsInfo()
    accountStatisticsInfo()
  getNum()
  getLedgerNum()