From 081f0729f4a6256e067f198d12b75f1161fb63bd Mon Sep 17 00:00:00 2001 From: Min5203 <2318556978@qq.com> Date: Wed, 26 Jan 2022 16:12:31 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9F=B1=E7=8A=B6=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BarEcharts.vue | 57 ++++++++++------------------ components/BonusCollection.vue | 2 +- components/HistoricalApplication.vue | 2 +- components/RingEcharts.vue | 5 --- pages/Initiate-application.vue | 2 - pages/index.vue | 7 +++- 6 files changed, 27 insertions(+), 48 deletions(-) diff --git a/components/BarEcharts.vue b/components/BarEcharts.vue index ea31046..ced2ee3 100644 --- a/components/BarEcharts.vue +++ b/components/BarEcharts.vue @@ -1,5 +1,5 @@ - diff --git a/pages/index.vue b/pages/index.vue index 0e78d2c..06188be 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -163,10 +163,6 @@ async function scrollToElementByHash() { border-radius: 30px 0 0 30px; margin-bottom: 15px; } -.button{ - padding: 0px; - margin:0px; -} .van-button--mini{ padding: 0.5rem 1rem; } From 1255bd667f2b430921139691ee6af02cefbc54e0 Mon Sep 17 00:00:00 2001 From: aBin Date: Wed, 26 Jan 2022 18:15:13 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=AF=B9=E6=8E=A5=E5=8F=8A?= =?UTF-8?q?=E8=A1=A8=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 { From b2373db78bcb24eb692daab5c2af12dc1b8aaf2d Mon Sep 17 00:00:00 2001 From: aBin Date: Wed, 26 Jan 2022 18:27:18 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E6=97=B6id=E4=B8=BA0=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Expenditure.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Expenditure.vue b/components/Expenditure.vue index 6407722..08cf6e6 100644 --- a/components/Expenditure.vue +++ b/components/Expenditure.vue @@ -18,7 +18,7 @@ {{ item.budget - 0 }}