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}}
- +
- +
- 搜索 - 重置 + 搜索 + 重置
-