From f04092313606c8b2989f4d4dbd98f1170fab4307 Mon Sep 17 00:00:00 2001 From: sundongyu <2811054731@qq.com> Date: Thu, 11 Apr 2024 16:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=E6=B7=BB=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E4=BA=A4=E8=B4=B9=E5=88=86=E6=9E=90=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/modules/sdy.js | 122 +++- src/api/receivables-management/management.js | 14 +- src/layout/components/LayoutAside.vue | 3 + .../receivables-management/chargeSchedule.vue | 192 +++++- src/pages/receivables-management/daily.vue | 204 +++++- .../facultyAnalysis.vue | 582 ++++++++++++++++++ src/router/modules/receivablesManagement.js | 6 + 7 files changed, 1089 insertions(+), 34 deletions(-) create mode 100644 src/pages/receivables-management/facultyAnalysis.vue 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 @@ 学生催款单 + + 部门分析表 +