From cbc1b2880941ef13e6189d9a3a4472e19b448d70 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 30 Oct 2024 14:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B2=E5=B8=88=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Lecturer.js | 5 + src/api/lecturerFeeManagement.js | 4 + src/components/project/BatchLecturer.vue | 12 +- src/components/project/ConfirmLecturer.vue | 165 +++++++++++++------ src/components/project/SearchTeacher.vue | 4 +- src/views/lecturer/LecturerFee.vue | 26 +-- src/views/lecturer/LecturerFeeStatistics.vue | 32 ++-- src/views/lecturer/MonthlyStatistics.vue | 17 +- 8 files changed, 173 insertions(+), 92 deletions(-) diff --git a/src/api/Lecturer.js b/src/api/Lecturer.js index 66a14ad6..1658ef7a 100644 --- a/src/api/Lecturer.js +++ b/src/api/Lecturer.js @@ -69,3 +69,8 @@ export const queryDetailId = (obj) => http.get(`/admin/expenseSummary/queryDetai export const getListByStatus = (obj) => http.get(`/admin/teacherExpense/getListByStatus`) //根据发生组织查询汇总的数据(一键确认弹框使用) export const getListByAffiliation = (obj) => http.get(`/admin/teacherExpense/getListByAffiliation?ids=${obj.ids}&beginTime=${obj.beginTime}&endTime=${obj.endTime}&name=${obj.name}&`) +//确认/一键确认 +export const teacherExpenseConfirm = (obj) => http.post('/admin/teacherExpense/confirm',obj) +//提交/撤回 +export const isConfirm = (obj) => http.post('/admin/expenseBill/isConfirm',obj) + diff --git a/src/api/lecturerFeeManagement.js b/src/api/lecturerFeeManagement.js index f11efd18..5f2528a2 100644 --- a/src/api/lecturerFeeManagement.js +++ b/src/api/lecturerFeeManagement.js @@ -37,3 +37,7 @@ export const getTeacherFeeApprovalList= (obj) => http.post('/teacher/fee/getTeac export const queryTeacherFeeTotalList= (obj) => http.post('/teacher/fee/queryTeacherFeeTotalList',obj) //汇总上月讲师费 export const getPreviousTeacherFee= (obj) => http.post('/teacher/fee/getPreviousTeacherFee',obj) +//汇总上月讲师费月度数据 +export const CreateMonthSummary= (obj) => http.post('/admin/expenseSummary/CreateMonthSummary',obj) +//讲师费统计列表 +export const expenseSummaryList= (obj) => http.get('/admin/expenseSummary/list',{params:obj}) \ No newline at end of file diff --git a/src/components/project/BatchLecturer.vue b/src/components/project/BatchLecturer.vue index f59d03d3..290a7b3f 100644 --- a/src/components/project/BatchLecturer.vue +++ b/src/components/project/BatchLecturer.vue @@ -16,7 +16,7 @@
-
选择讲师费汇总:256元
+
选择讲师费汇总:{{levelPay||0}}元
{ selectedRowKeys.value.push(item.id) selectsData.value.push(item) } +const levelPay = ref(0) +watch(()=>selectsData.value.length,(val)=>{ + if(val){ + levelPay.value = selectsData.value.reduce((a,b)=>{ + return a + b.levelPay + },0) + }else{ + levelPay.value = 0 + } +}) const removeList = (item) => { selectedRowKeys.value = selectedRowKeys.value.filter(t=> t != item.id) selectsData.value = selectsData.value.filter(t=>t.id != item.id) diff --git a/src/components/project/ConfirmLecturer.vue b/src/components/project/ConfirmLecturer.vue index 876875ee..fe504e25 100644 --- a/src/components/project/ConfirmLecturer.vue +++ b/src/components/project/ConfirmLecturer.vue @@ -16,40 +16,40 @@
-
+
培训发生组织
汇总金额
-
{{item.name}}
-
{{item.name}}
+
{{item?.trainOrgName}}
+
{{item?.summaryTotal}}
- +
- +
- 搜索 - 重置 + 搜索 + 重置
-