diff --git a/mock/modules/sdy.js b/mock/modules/sdy.js index 893a20c..400c7fa 100644 --- a/mock/modules/sdy.js +++ b/mock/modules/sdy.js @@ -23,14 +23,14 @@ const loans = Mock.mock({ 'department': '@pick(["机电工程系","护理分院","建筑系","材料科学与工程系","环境科学与工程系"])', 'cation': '@pick(["2021-2022学年度","2022-2023学年度"])', 'loanTerm': '@pick(["已放款","未放款"])', - 'timeofapplication': '@date("yyyy-MM-dd")', + 'timeofapplication': "@now('yyyy-MM-dd')", } ] }) const daily = Mock.mock({ 'list|10': [ { - 'date': '@date("yyyy-MM-dd")', + 'date': "@now('yyyy-MM-dd')", 'tuiti': '@integer(10000,50000)', 'incidentals': '@integer(1000,5000)', 'materials': '@integer(1000,5000)', @@ -42,6 +42,74 @@ const daily = Mock.mock({ } ] }) +const paragraph = Mock.mock({ + 'list|15': [ + { + 'name': '@cname', + department: '机电工程系', + grade: '机制1班', + counselor: '王刚', + cellPhone: '13354679999', + money: 16800, + condition: '未还款' + }, + { + 'name': '@cname', + department: '护理分院', + grade: '护理1班', + counselor: '李昆', + cellPhone: '18845065230', + money: 24000, + condition: '未还款' + }, + { + 'name': '@cname', + department: '建筑系', + grade: '建筑1班', + counselor: '张明', + cellPhone: '16656664666', + money: 12000, + condition: '未还款' + } + ] +}) +const analysis = Mock.mock({ + list: [ + { + id: 1, + name: '机电工程系', + studentnumber: 120, + department: 120, + major: 80, + grade: '1344000', + tuition: 40, + weigrade: 672000, + shition: 2016000 + }, + { + id: 2, + name: '护理分院', + studentnumber: 200, + department: 200, + major: 120, + grade: '2016000', + tuition: 80, + weigrade: 1344000, + shition: 33600000 + }, + { + id: 3, + name: '建筑系', + studentnumber: 300, + department: 300, + major: 200, + grade: '2016000', + tuition: 100, + weigrade: 1680000, + shition: 5040000 + } + ] +}) export default [ //应收管理列表 @@ -145,7 +213,7 @@ export default [ }, // 当日明细列表 { - url: '/post-sdy-daily-list', + url: '/get-sdy-daily-list', method: 'get', response: () => { return { @@ -153,6 +221,52 @@ export default [ data: daily } } - } + }, + // 学生催款表 + { + url: '/get-sdy-paragraph-list', + method: 'get', + response: () => { + return { + code: 200, + data: paragraph + } + } + }, + // 学生催款表搜索 + { + url: '/post-sdy-paragraph-find', + method: 'post', + response: (req) => { + if (req.body.name !== '') { + const arr = paragraph.list.filter(item => item.name.includes(req.body.name)) + return arr + } else if (req.body.studentnumber !== '') { + const arr = paragraph.list.filter(item => item.department.includes(req.body.studentnumber)) + return arr + } 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)) + return arr + } + return { + code: 200, + data: arr + } + } + }, + // 学院分析 + { + url: '/get-sdy-analysis-list', + method: 'get', + response: () => { + return { + code: 200, + data: analysis + } + } + } ] \ No newline at end of file diff --git a/src/api/receivables-management/management.js b/src/api/receivables-management/management.js index ce8f9e9..5029ab6 100644 --- a/src/api/receivables-management/management.js +++ b/src/api/receivables-management/management.js @@ -21,5 +21,17 @@ export function APILoansAdd(data) { } // 借款管理 export function APIDailyList() { - return request.get('/post-sdy-daily-list') + return request.get('/get-sdy-daily-list') +} +//催缴管理 +export function APIParagraphList() { + return request.get('/get-sdy-paragraph-list') +} +//催缴搜索 +export function APIParagraphFind(data) { + return request.post('/post-sdy-paragraph-find', data) +} +//学院分析 +export function APIAnalysisList() { + return request.get('/get-sdy-analysis-list') } diff --git a/src/layout/components/LayoutAside.vue b/src/layout/components/LayoutAside.vue index 47bcb73..c3eb3b1 100644 --- a/src/layout/components/LayoutAside.vue +++ b/src/layout/components/LayoutAside.vue @@ -54,6 +54,9 @@ 学生催款单 + + 部门分析表 +