diff --git a/mock/modules/sdy.js b/mock/modules/sdy.js index 400c7fa..48c1a3a 100644 --- a/mock/modules/sdy.js +++ b/mock/modules/sdy.js @@ -110,6 +110,247 @@ const analysis = Mock.mock({ } ] }) +const message = Mock.mock({ + 'list|10': [ + { + 'id|+1': 1, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(132000000,1329999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + //学院 + 'date': '@date', + //籍贯 + 'nativePlace': "@city", + //民族 + 'nation': '汉族', + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '机电工程系', + //专业 + 'major': '机械制造与自动化', + //部门 + 'grade': '机制1班', + //辅导员 + 'tutor': '王刚', + //手机号 + 'phone': '@integer(13200000000,13299999999)', + }, + { + 'id|+1': 11, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(188000000,18899999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + //学院 + 'date': '@date', + //籍贯 + 'nativePlace': "@city", + //民族 + 'nation': '汉族', + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '护理分院', + //专业 + 'major': '护理学', + //部门 + 'grade': '护理学1班', + //辅导员 + 'tutor': '张明', + //手机号 + 'phone': '@integer(18800000000,18899999999)', + }, + { + 'id|+1': 21, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(186000000,1869999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + //出生时间 + 'date': '@date', + //籍贯 + 'nativePlace': "@city", + //民族 + 'nation': '汉族', + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '建筑系', + //专业 + 'major': '建筑工程', + //部门 + 'grade': '建筑1班', + //辅导员 + 'tutor': '李宇', + //手机号 + 'phone': '@integer(18600000000,18699999999)', + } + ] +}) +const mitigate = Mock.mock({ + 'list|10': [ + { + 'id|+1': 1, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(132000000,1329999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + //学费 + 'tuition': 16800, + //减免金额 + 'mitigate': 12800, + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '机电工程系', + //专业 + 'major': '机械制造与自动化', + //部门 + 'grade': '机制1班', + //辅导员 + 'tutor': '王刚', + }, + { + 'id|+1': 11, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(188000000,18899999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + 'tuition': 16800, + //减免金额 + 'mitigate': 10000, + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '护理分院', + //专业 + 'major': '护理学', + //部门 + 'grade': '护理学1班', + //辅导员 + 'tutor': '张明', + }, + { + 'id|+1': 21, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(186000000,1869999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + 'tuition': 16800, + //减免金额 + 'mitigate': 12000, + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '建筑系', + //专业 + 'major': '建筑工程', + //部门 + 'grade': '建筑1班', + //辅导员 + 'tutor': '李宇', + } + ] +}) +const premium = Mock.mock({ + 'list|10': [ + { + 'id|+1': 1, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(132000000,1329999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + //退费金额 + 'tuition': 16800, + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '机电工程系', + //专业 + 'major': '机械制造与自动化', + //部门 + 'grade': '机制1班', + //辅导员 + 'tutor': '王刚', + }, + { + 'id|+1': 11, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(188000000,18899999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + //退费金额 + 'tuition': 16800, + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '护理分院', + //专业 + 'major': '护理学', + //部门 + 'grade': '护理学1班', + //辅导员 + 'tutor': '张明', + }, + { + 'id|+1': 21, + //学生姓名 + 'name': '@cname', + //学生学号 + 'studentNumber': '@integer(186000000,1869999999)', + //性别 + 'gender': '@pick(["男","女"])', + //年龄 + 'age': '@integer(20,21)', + //退费金额 + 'tuition': 16800, + //入学时间 + 'enrollmentyear': '@now("yyyy")', + //部门 + 'college': '建筑系', + //专业 + 'major': '建筑工程', + //部门 + 'grade': '建筑1班', + //辅导员 + 'tutor': '李宇', + } + ] +}) export default [ //应收管理列表 @@ -247,8 +488,8 @@ export default [ } else if (req.body.counselor !== '') { const arr = paragraph.list.filter(item => item.counselor.includes(req.body.counselor)) return arr - } else if (req.body.grade !== '') { - const arr = paragraph.list.filter(item => item.grade.includes(req.body.grade)) + } else if (req.body.tutor !== '') { + const arr = paragraph.list.filter(item => item.grade.includes(req.body.tutor)) return arr } @@ -268,5 +509,110 @@ export default [ data: analysis } } - } -] \ No newline at end of file + }, + // 学生信息统计 + { + url: '/get-sdy-message-list', + method: 'get', + response: () => { + return { + code: 200, + data: message + } + } + }, + // 学生信息统计搜索 + { + url: '/post-sdy-message-find', + method: 'post', + response: (req) => { + if (req.body.name !== '') { + const arr = message.list.filter(item => item.name.includes(req.body.name)) + return arr + } else if (req.body.studentnumber !== '') { + const arr = message.list.filter(item => item.department.includes(req.body.studentnumber)) + return arr + } else if (req.body.college !== '') { + const arr = message.list.filter(item => item.counselor.includes(req.body.counselor)) + return arr + } else if (req.body.grade !== '') { + const arr = message.list.filter(item => item.grade.includes(req.body.grade)) + return arr + } + return { + code: 200, + data: arr + } + } + }, + // 减免管理 + { + url: '/get-sdy-mitigate-list', + method: 'get', + response: () => { + return { + code: 200, + data: mitigate + } + } + }, + // 减免管理搜索 + { + url: '/post-sdy-mitigate-find', + method: 'post', + response: (req) => { + if (req.body.name !== '') { + const arr = mitigate.list.filter(item => item.name.includes(req.body.name)) + return arr + } else if (req.body.studentnumber !== '') { + const arr = mitigate.list.filter(item => item.department.includes(req.body.studentnumber)) + return arr + } else if (req.body.college !== '') { + const arr = mitigate.list.filter(item => item.counselor.includes(req.body.counselor)) + return arr + } else if (req.body.tutor !== '') { + const arr = mitigate.list.filter(item => item.tutor.includes(req.body.tutor)) + return arr + } + return { + code: 200, + data: arr + } + } + }, + // 退费管理 + { + url: '/get-sdy-premium-list', + method: 'get', + response: () => { + return { + code: 200, + data: premium + } + } + }, + // 退费管理搜索 + { + url: '/post-sdy-premium-find', + method: 'post', + response: (req) => { + if (req.body.name !== '') { + const arr = premium.list.filter(item => item.name.includes(req.body.name)) + return arr + } else if (req.body.studentnumber !== '') { + const arr = premium.list.filter(item => item.department.includes(req.body.studentnumber)) + return arr + } else if (req.body.college !== '') { + const arr = premium.list.filter(item => item.counselor.includes(req.body.counselor)) + return arr + } else if (req.body.tutor !== '') { + const arr = premium.list.filter(item => item.tutor.includes(req.body.tutor)) + return arr + } + return { + code: 200, + data: arr + } + } + }, +] diff --git a/src/api/receivables-management/management.js b/src/api/receivables-management/management.js index 5029ab6..02c3069 100644 --- a/src/api/receivables-management/management.js +++ b/src/api/receivables-management/management.js @@ -35,3 +35,27 @@ export function APIParagraphFind(data) { export function APIAnalysisList() { return request.get('/get-sdy-analysis-list') } +//学生信息统计 +export function APIMessageList() { + return request.get('/get-sdy-message-list') +} +//学生信息搜索 +export function APIMessageFind(data) { + return request.post('/post-sdy-message-find', data) +} +//减免管理 +export function APIMitigateList() { + return request.get('/get-sdy-mitigate-list') +} +//减免搜索 +export function APIMitigateFind(data) { + return request.post('/post-sdy-mitigate-find', data) +} +// 退费管理 +export function APIPremiumList() { + return request.get('/get-sdy-premium-list') +} +//退费搜索 +export function APIPremiumFind(data) { + return request.post('/post-sdy-premium-find', data) +} diff --git a/src/layout/components/LayoutAside.vue b/src/layout/components/LayoutAside.vue index 8f15e23..5ee21e2 100644 --- a/src/layout/components/LayoutAside.vue +++ b/src/layout/components/LayoutAside.vue @@ -52,14 +52,26 @@ 助学贷款 - 收费日报及收费明细 + 收费日报表 - + + 减免明细表 + + + 退费明细表 + + + 欠费明细表 + + 学生催款单 - + 部门分析表 + + 学生信息统计表 +