diff --git a/api/finance/financialaid.js b/api/finance/financialaid.js new file mode 100644 index 0000000..9e2786f --- /dev/null +++ b/api/finance/financialaid.js @@ -0,0 +1,137 @@ +import request from '@/utils/request' + +// 获取当前用户的助学金申请记录 +export function listOwn(params) { + return request({ + url: '/comprehensive/zxj/apply/listOwn', + method: 'get', + params + }) +} + +// 查询助学金申请详细 +export function getApply(id) { + return request({ + url: '/comprehensive/zxj/apply/' + id, + method: 'get' + }) +} + +// 新增助学金申请 +export function addApply(data) { + return request({ + url: '/comprehensive/zxj/apply/add', + method: 'post', + data: data + }) +} + +// 修改助学金申请 +export function updateApply(data) { + return request({ + url: '/comprehensive/zxj/apply/update', + method: 'post', + data: data + }) +} + +// 删除助学金申请 +export function delApply(id) { + return request({ + url: '/comprehensive/zxj/apply/' + id, + method: 'post' + }) +} + +// 撤回助学金申请 +export function revoke(data) { + return request({ + url: '/comprehensive/zxj/apply/revoke', + method: 'post', + data: data + }) +} + +// 获取助学金学年信息 +export function getYearByTag(tag) { + return request({ + url: '/system/year/by-tag', + method: 'get', + params: { tag } + }) +} + +// 检查是否为贫困生 +export function isPoor(data) { + return request({ + url: '/comprehensive/zxj/apply/isPoor', + method: 'post', + data + }) +} + +// 获取学生基本信息 +export function getStuInfo() { + return request({ + url: '/comprehensive/stuInfoView/getOwnInfo', + method: 'get' + }) +} + +// 获取学生扩展信息 +export function getExtraInfo() { + return request({ + url: '/comprehensive/extraInfo/getOwnInfo', + method: 'get' + }) +} + +// 获取家庭成员信息 +export function getFamilyInfo() { + return request({ + url: '/comprehensive/member/getOwnFamily', + method: 'get' + }) +} + +// 获取当前学年信息 +export function getCurrentYear() { + return request({ + url: '/system/year/current', + method: 'get' + }) +} + +// 获取助学金等级选项 +export function getAidLevels() { + return request({ + url: '/comprehensive/zxj/apply/aidLevels', + method: 'get' + }) +} + +// 获取助学金学生信息 +export function getZxjStudentInfo(data = {}) { + return request({ + url: '/comprehensive/zxj/apply/getStudentInfo', + method: 'post', + data: data + }) +} + +// 获取学生个人信息 +export function getOwnStudentInfo() { + return request({ + url: '/system/student/getOwnInfo', + method: 'get' + }) +} + +// 根据学号和学年查询贫困申请 +export function findByXhAndApplyYear(data) { + return request({ + url: '/knrdApply/apply/findByXhAndApplyYear', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/pages.json b/pages.json index 31248d7..c95255f 100644 --- a/pages.json +++ b/pages.json @@ -111,7 +111,7 @@ }, { - "path": "pages/Financialaid/Financialaid", + "path": "pages/finance/aid/index", "style": { "navigationBarTitleText": "助学金", "enablePullDownRefresh": false, @@ -119,6 +119,15 @@ "navigationBarTextStyle": "white" } + }, { + "path": "pages/finance/aid/apply", + "style": { + "navigationBarTitleText": "助学金申请", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#1890FF", + "navigationBarTextStyle": "white" + } + }, { "path": "pages/finance/poverty/index", "style": { diff --git a/pages/finance/aid/apply.vue b/pages/finance/aid/apply.vue new file mode 100644 index 0000000..78ca0e5 --- /dev/null +++ b/pages/finance/aid/apply.vue @@ -0,0 +1,1625 @@ + + + + + \ No newline at end of file diff --git a/pages/finance/aid/index.vue b/pages/finance/aid/index.vue new file mode 100644 index 0000000..57d5dd5 --- /dev/null +++ b/pages/finance/aid/index.vue @@ -0,0 +1,794 @@ + + + + + \ No newline at end of file