【update】-全所收入统计 修改成 全院经营数据统计

This commit is contained in:
fengchenchen
2024-01-09 15:02:26 +08:00
parent d3ed56ef3d
commit 37ea4f22e9
6 changed files with 22 additions and 28 deletions
@@ -2,7 +2,7 @@
<template>
<div class="container">
<!-- echarts-->
<div class="title">全所收入统计 (累计)</div>
<div class="title">全院经营数据统计 (累计)</div>
<div class="echarts-box" id="singleMonthTotalEcharts"></div>
<!-- echarts-->
@@ -132,7 +132,7 @@ export default {
// 树形结构的数据 ,修改成table可以直接展示的数据,默认只有四行数据
let tableData = [
// {indexName: '年度待确收金额'},
{indexName: '预计到账金额'},
{indexName: '预估收入金额'},
{indexName: '确认收入金额'},
{indexName: '开票金额'},
{indexName: '到账金额'}
@@ -142,8 +142,7 @@ export default {
let keyItem = MonthDataTotal.find(ele => Number(ele.value) === (index + 1))
if (keyItem) {
let key = keyItem.key
tableData[0][key] = item.estimatedArrivalMoney // todo 需要替换字段 预计到账金额--也可能放在第一条
// tableData[0][key] = Number(item.comeAllMoney) + 100000 // todo 需要替换字段 预计到账金额--也可能放在第一条
tableData[0][key] = item.estimatedArrivalMoney // 预估收入金额--也可能放在第一条
// tableData[0][key] = item.allMoney // 年度待确收金额
tableData[1][key] = item.confirmAmount // 确认收入金额
tableData[2][key] = item.billMoney // 开票金额
@@ -172,8 +171,6 @@ export default {
this.echartsData.billMoney.push(item.billMoney)
this.echartsData.comeAllMoney.push(item.comeAllMoney)
this.echartsData.estimatedArrivalMoney.push(item.estimatedArrivalMoney)
// todo 后端开发完以后替换掉
// this.echartsData.estimatedArrivalMoney.push(Number(item.comeAllMoney) + 100000)
})
},
initEcharts() {
@@ -206,7 +203,7 @@ export default {
}
},
legend: {
data: ['预计到账金额', '确认收入金额', '开票金额', '到账金额'],
data: ['预估收入金额', '确认收入金额', '开票金额', '到账金额'],
right: '2%'
},
grid: {
@@ -287,7 +284,7 @@ export default {
// },
// },
{
name: '预计到账金额',
name: '预估收入金额',
type: 'line',
showSymbol: false,
symbol: 'circle',