From 1255bd667f2b430921139691ee6af02cefbc54e0 Mon Sep 17 00:00:00 2001 From: aBin Date: Wed, 26 Jan 2022 18:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=BB=9F=E8=AE=A1=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=AF=B9=E6=8E=A5=E5=8F=8A=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/finance.js | 59 +++++--- components/Expenditure.vue | 168 +++++++++++++++++++++ components/RingEcharts.vue | 295 ++++++++++++++++++++++--------------- pages/index.vue | 100 ++++++++----- 4 files changed, 442 insertions(+), 180 deletions(-) create mode 100644 components/Expenditure.vue diff --git a/apis/finance.js b/apis/finance.js index df55123..be5f1f6 100644 --- a/apis/finance.js +++ b/apis/finance.js @@ -1,23 +1,36 @@ -import http from 'apis/axios'; - -const apiUrl = import.meta.env.VITE_API_URL; -const ptccsens = `${apiUrl}/ptccsens/v1.0`; -const finance = `${ptccsens}/finance`; - -// 发起申请 -export const apply = params => http.post(`${finance}/apply`, params); - -// 审批 -export const audit = params => http.post(`${finance}/audit`, params); - -// 查询申请详情 -export const getApplyDetail = params => http.post(`${finance}/getApplyDetail`, params); - -// 通过任务id查看任务关联的财务信息 -export const getByTask = params => http.post(`${finance}/getByTask`, params); - -// 查看当前用户的费用申请历史信息(奖金) -export const personalHistory = params => http.post(`${finance}/personalHistory`, params); - -// 查询费用申请类型 -export const queryType = params => http.post(`${finance}/queryType`, params); +import http from 'apis/axios'; + +const apiUrl = import.meta.env.VITE_API_URL; +const ptccsens = `${apiUrl}/ptccsens/v1.0`; +const finance = `${ptccsens}/finance`; + +// 发起申请 +export const apply = params => http.post(`${finance}/apply`, params); + +// 审批 +export const audit = params => http.post(`${finance}/audit`, params); + +// 查询申请详情 +export const getApplyDetail = params => + http.post(`${finance}/getApplyDetail`, params); + +// 通过任务id查看任务关联的财务信息 +export const getByTask = params => http.post(`${finance}/getByTask`, params); + +// 查看当前用户的费用申请历史信息(奖金) +export const personalHistory = params => + http.post(`${finance}/personalHistory`, params); + +// 查询费用申请类型 +export const queryType = params => http.post(`${finance}/queryType`, params); + +// 任务支出统计 +export const taskExpense = params => + http.post(`${finance}/taskExpense`, params); + +// 名目支出统计 +export const rowExpense = params => http.post(`${finance}/rowExpense`, params); + +// 成员财务统计 +export const memberFinance = params => + http.post(`${finance}/memberFinance`, params); diff --git a/components/Expenditure.vue b/components/Expenditure.vue new file mode 100644 index 0000000..6407722 --- /dev/null +++ b/components/Expenditure.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/components/RingEcharts.vue b/components/RingEcharts.vue index 781c268..d71c1a8 100644 --- a/components/RingEcharts.vue +++ b/components/RingEcharts.vue @@ -1,148 +1,201 @@ - - + diff --git a/pages/index.vue b/pages/index.vue index de2eda2..1dd6d91 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -32,65 +32,93 @@ 财务统计 财务明细统计查看 - +
- + 任务支出统计
- 图表 - 表格 + 图表 + 表格
- +
- +
- +
-
-
- - 名目支出统计 -
-
- 图表 - 表格 -
-
- -
- - +
+
+ + 名目支出统计
- -
- +
+ 图表 + 表格
+
+ +
+ + +
+ +
+ +
- + 成员财务图
- +
-
- - 时间财务图 -
- +
+ + 时间财务图 +
+
@@ -115,6 +143,7 @@ export default {