From 3869ff242e358c8d7bf731bd2c32716acb0a26a5 Mon Sep 17 00:00:00 2001 From: aBin Date: Wed, 26 Jan 2022 14:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=8E=86=E5=8F=B2=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/projectFinance.js | 52 +- components/BonusCollection.vue | 122 ++++ components/HistoricalApplication.vue | 155 +++++ pages/Initiate-application.vue | 877 ++++++++++++++------------- pages/applicant.vue | 166 ++--- plugins/vant.js | 108 ++-- 6 files changed, 899 insertions(+), 581 deletions(-) create mode 100644 components/BonusCollection.vue create mode 100644 components/HistoricalApplication.vue diff --git a/apis/projectFinance.js b/apis/projectFinance.js index c597b1f..f4d354b 100644 --- a/apis/projectFinance.js +++ b/apis/projectFinance.js @@ -1,23 +1,29 @@ -import http from 'apis/axios'; - -const apiUrl = import.meta.env.VITE_API_URL; -const ptccsens = `${apiUrl}/ptccsens/v1.0`; -const projectFinance = `${ptccsens}/projectFinance`; - -// 追加预算 -export const addBudget = params => http.post(`${projectFinance}/addBudget`, params); - -// 查看所有的费用申请 -export const queryAllMoneyApply = params => http.post(`${projectFinance}/queryAllMoneyApply`, params); - -// 查看项目下的财务信息 -export const queryFinanceOfProject = params => http.post(`${projectFinance}/queryFinanceOfProject`, params); - -// 查看自己需要审批的申请 -export const queryNeedCheckByMe = params => http.post(`${projectFinance}/queryNeedCheckByMe`, params); - -// 查看项目下的所有任务对应的财务信息 -export const queryProjectFinance = params => http.post(`${projectFinance}/queryProjectFinance`, params); - -// 修改任务或项目的预算和奖金信息 -export const updateFinance = params => http.post(`${projectFinance}/updateFinance`, params); +import http from 'apis/axios'; + +const apiUrl = import.meta.env.VITE_API_URL; +const ptccsens = `${apiUrl}/ptccsens/v1.0`; +const projectFinance = `${ptccsens}/projectFinance`; + +// 追加预算 +export const addBudget = params => + http.post(`${projectFinance}/addBudget`, params); + +// 查看所有的费用申请 +export const queryAllMoneyApply = params => + http.post(`${projectFinance}/queryAllMoneyApply`, params); + +// 查看项目下的财务信息 +export const queryFinanceOfProject = params => + http.post(`${projectFinance}/queryFinanceOfProject`, params); + +// 查看自己需要审批的申请 +export const queryNeedCheckByMe = params => + http.post(`${projectFinance}/queryNeedCheckByMe`, params); + +// 查看项目下的所有任务对应的财务信息 +export const queryProjectFinance = params => + http.post(`${projectFinance}/queryProjectFinance`, params); + +// 修改任务或项目的预算和奖金信息 +export const updateFinance = params => + http.post(`${projectFinance}/updateFinance`, params); diff --git a/components/BonusCollection.vue b/components/BonusCollection.vue new file mode 100644 index 0000000..a5a4fa3 --- /dev/null +++ b/components/BonusCollection.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/components/HistoricalApplication.vue b/components/HistoricalApplication.vue new file mode 100644 index 0000000..5ec705b --- /dev/null +++ b/components/HistoricalApplication.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/pages/Initiate-application.vue b/pages/Initiate-application.vue index 4b7c0fb..282ab5d 100644 --- a/pages/Initiate-application.vue +++ b/pages/Initiate-application.vue @@ -1,427 +1,450 @@ - - - - + + + + diff --git a/pages/applicant.vue b/pages/applicant.vue index 3ac65aa..461b680 100644 --- a/pages/applicant.vue +++ b/pages/applicant.vue @@ -1,78 +1,88 @@ - - - - - - + + + + + diff --git a/plugins/vant.js b/plugins/vant.js index 8439da6..8f1edba 100644 --- a/plugins/vant.js +++ b/plugins/vant.js @@ -1,53 +1,55 @@ -// 目前在 nuxt 中无法按需引入样式,因此采用手动引入的方式 -import 'vant/lib/index.css'; - -import { - Button, - Cell, - CellGroup, - Col, - Icon, - Image, - Row, - NavBar, - Tabs, - Tab, - Search, - Pagination, - Field, - Uploader, - Form, - Popup, - Cascader, - Circle, - Empty, - Popover, - Dialog -} from 'vant'; - -import { defineNuxtPlugin } from '#app'; - -export default defineNuxtPlugin(nuxtApp => { - nuxtApp.vueApp - .use(Row) - .use(Col) - .use(Image) - .use(Icon) - .use(Cell) - .use(Button) - .use(CellGroup) - .use(NavBar) - .use(Tab) - .use(Search) - .use(Pagination) - .use(Field) - .use(Uploader) - .use(Form) - .use(Cascader) - .use(Popup) - .use(Circle) - .use(Tabs) - .use(Empty) - .use(Popover) - .use(Dialog) -}); +// 目前在 nuxt 中无法按需引入样式,因此采用手动引入的方式 +import 'vant/lib/index.css'; + +import { + Button, + Cell, + CellGroup, + Col, + Icon, + Image, + Row, + NavBar, + Tabs, + Tab, + Search, + Pagination, + Field, + Uploader, + Form, + Popup, + Cascader, + Circle, + Empty, + Popover, + Dialog, + Picker, +} from 'vant'; + +import { defineNuxtPlugin } from '#app'; + +export default defineNuxtPlugin(nuxtApp => { + nuxtApp.vueApp + .use(Row) + .use(Col) + .use(Image) + .use(Icon) + .use(Cell) + .use(Button) + .use(CellGroup) + .use(NavBar) + .use(Tab) + .use(Search) + .use(Pagination) + .use(Field) + .use(Uploader) + .use(Form) + .use(Cascader) + .use(Popup) + .use(Circle) + .use(Tabs) + .use(Empty) + .use(Popover) + .use(Dialog) + .use(Picker); +});