From 1255bd667f2b430921139691ee6af02cefbc54e0 Mon Sep 17 00:00:00 2001 From: aBin Date: Wed, 26 Jan 2022 18:15:13 +0800 Subject: [PATCH 1/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 2/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 }}
Date: Wed, 26 Jan 2022 19:02:06 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=A5=A8=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/ocr.js | 8 + components/FinanceExamine.vue | 29 ++- components/HistoricalApplication.vue | 21 +- pages/Initiate-application.vue | 181 +++++++++++------ pages/application-details.vue | 13 +- pages/financial-approval-details.vue | 280 +++++++++++++++++---------- plugins/vant.js | 4 +- 7 files changed, 356 insertions(+), 180 deletions(-) create mode 100644 apis/ocr.js diff --git a/apis/ocr.js b/apis/ocr.js new file mode 100644 index 0000000..82a3d54 --- /dev/null +++ b/apis/ocr.js @@ -0,0 +1,8 @@ +import http from 'apis/axios'; + +const apiUrl = import.meta.env.VITE_API_URL; +const ptccsens = `${apiUrl}/ptccsens/v1.0`; +const ocr = `${ptccsens}/ocr`; + +// 发起申请 +export const bill = `${ocr}/bill`; diff --git a/components/FinanceExamine.vue b/components/FinanceExamine.vue index 14bc41e..8106927 100644 --- a/components/FinanceExamine.vue +++ b/components/FinanceExamine.vue @@ -1,19 +1,19 @@