mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 21:06:44 +08:00
讲师费管理统计 --页面调整
This commit is contained in:
17
src/api/lecturerFeeManagement.js
Normal file
17
src/api/lecturerFeeManagement.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import http from "./config";
|
||||||
|
// 获取讲师费列表
|
||||||
|
export const getTeacherFeeList = (params) => http.get('/teacher/fee/getTeacherFeeList', {params})
|
||||||
|
//获取讲师费详情
|
||||||
|
export const getTeacherFeeDetail= (obj) => http.post('/teacher/fee/getTeacherFeeDetail',obj)
|
||||||
|
//添加讲师费
|
||||||
|
export const addTeacherFee= (obj) => http.post('/teacher/fee/addTeacherFee',obj)
|
||||||
|
//修改讲师费信息
|
||||||
|
export const updateTeacherFee= (obj) => http.post('/teacher/fee/updateTeacherFee',obj)
|
||||||
|
//修改讲师费状态(已提交)
|
||||||
|
export const updateStatusSubmit= (obj) => http.post('/teacher/fee/updateStatusSubmit',obj)
|
||||||
|
//修改讲师费状态(已撤回)
|
||||||
|
export const updateStatusWithDraw= (obj) => http.post('/teacher/fee/updateStatusWithDraw',obj)
|
||||||
|
//获取培训发生组织列表
|
||||||
|
export const getTrainOrg= (obj) => http.post('/teacher/fee/getTrainOrg',obj)
|
||||||
|
//获取讲师级别
|
||||||
|
export const getTeacherLevel= (obj) => http.post('/teacher/fee/getTeacherLevel',obj)
|
||||||
9
src/api/lecturerFeeStatistics.js
Normal file
9
src/api/lecturerFeeStatistics.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import http from "./config";
|
||||||
|
// 列表查看讲师费月度统计
|
||||||
|
export const queryTeacherFeeTotalList = (params) => http.get('teacher/fee/queryTeacherFeeTotalList',{ params })
|
||||||
|
// 列表查看讲师费月度统计详情
|
||||||
|
export const queryTeacherFeeMonthly = (obj) => http.post('teacher/fee/queryTeacherFeeMonthly', obj)
|
||||||
|
////讲师费月度统计--明细
|
||||||
|
export const getTeacherFeeDetailListByTeacherNo = (params) => http.get('teacher/fee/getTeacherFeeDetailListByTeacherNo',{ params })
|
||||||
|
//讲师费明细
|
||||||
|
export const getTeacherFeeListByTeacherNo = (obj) => http.post('teacher/fee/getTeacherFeeListByTeacherNo', obj)
|
||||||
@@ -164,6 +164,33 @@
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
n.indexOf("/lecturerfeemanagement") !== -1
|
||||||
|
) {
|
||||||
|
state.list = [
|
||||||
|
{
|
||||||
|
name: "讲师费",
|
||||||
|
href: "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "讲师费管理",
|
||||||
|
href: "",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}if (
|
||||||
|
n.indexOf("/lecturerfeestatistics") !== -1
|
||||||
|
) {
|
||||||
|
state.list = [
|
||||||
|
{
|
||||||
|
name: "讲师费",
|
||||||
|
href: "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "讲师费统计",
|
||||||
|
href: "",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
n.indexOf("/projectadd") !== -1 ||
|
n.indexOf("/projectadd") !== -1 ||
|
||||||
n.indexOf("/ProjectAdd") !== -1
|
n.indexOf("/ProjectAdd") !== -1
|
||||||
|
|||||||
@@ -655,7 +655,32 @@
|
|||||||
<router-link to="/externalteaching">外部授课</router-link>
|
<router-link to="/externalteaching">外部授课</router-link>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-sub-menu>
|
</a-sub-menu>
|
||||||
|
<a-sub-menu key="sub26" @titleClick="titleClick">
|
||||||
|
<template #icon>
|
||||||
|
<div class="imgBox">
|
||||||
|
<img style="width: 15px; height: 15px" src="../assets/images/navleft/project.png" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #title>讲师费</template>
|
||||||
|
<a-menu-item key="sub26-1">
|
||||||
|
<span
|
||||||
|
:class="{
|
||||||
|
circleActive: selectedKeys[0] === 'sub26-1' ? true : false,
|
||||||
|
circle: selectedKeys[0] === 'sub26-1' ? false : true,
|
||||||
|
}"
|
||||||
|
></span>
|
||||||
|
<router-link to="/lecturerfeemanagement">讲师费管理</router-link>
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="sub26-2">
|
||||||
|
<span
|
||||||
|
:class="{
|
||||||
|
circleActive: selectedKeys[0] === 'sub26-2' ? true : false,
|
||||||
|
circle: selectedKeys[0] === 'sub26-2' ? false : true,
|
||||||
|
}"
|
||||||
|
></span>
|
||||||
|
<router-link to="/lecturerfeestatistics">讲师费统计</router-link>
|
||||||
|
</a-menu-item>
|
||||||
|
</a-sub-menu>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ export default {
|
|||||||
state.teacherdialog = true;
|
state.teacherdialog = true;
|
||||||
state.teacherdialogtitle = '修改信息'
|
state.teacherdialogtitle = '修改信息'
|
||||||
state.lookTeacherId = record.id
|
state.lookTeacherId = record.id
|
||||||
TeacherSystem()
|
TeacherSystem(record)
|
||||||
}
|
}
|
||||||
//保存
|
//保存
|
||||||
const createTeacherDialog = () => {
|
const createTeacherDialog = () => {
|
||||||
@@ -497,7 +497,8 @@ export default {
|
|||||||
mobile: null,
|
mobile: null,
|
||||||
email: null,
|
email: null,
|
||||||
teacherIntrofuce: null,
|
teacherIntrofuce: null,
|
||||||
remark: null
|
remark: null,
|
||||||
|
id:null
|
||||||
}
|
}
|
||||||
console.log(state.formParam);
|
console.log(state.formParam);
|
||||||
}
|
}
|
||||||
@@ -509,17 +510,27 @@ export default {
|
|||||||
state.userNoid = record.userNo
|
state.userNoid = record.userNo
|
||||||
state.lookTeacherId = record.id
|
state.lookTeacherId = record.id
|
||||||
// alert(record.grade)
|
// alert(record.grade)
|
||||||
TeacherSystem()
|
TeacherSystem(record)
|
||||||
}
|
}
|
||||||
//外部讲师详情
|
//外部讲师详情
|
||||||
const TeacherSystem = () => {
|
const TeacherSystem = (record) => {
|
||||||
getOuterTeacherById(state.lookTeacherId).then((res) => {
|
// getOuterTeacherById(state.lookTeacherId).then((res) => {
|
||||||
console.log("外部讲师详情", res.data);
|
// console.log("外部讲师详情", res.data);
|
||||||
state.formParam = res.data.data
|
// state.formParam = res.data.data
|
||||||
})
|
// })
|
||||||
.catch((err) => {
|
// .catch((err) => {
|
||||||
console.log("外部讲师详情", err);
|
// console.log("外部讲师详情", err);
|
||||||
});
|
// });
|
||||||
|
state.formParam={
|
||||||
|
name:record.name,
|
||||||
|
mobile:record.mobile,
|
||||||
|
email:record.email,
|
||||||
|
teacherIntrofuce:record.teacherIntrofuce,
|
||||||
|
remark:record.remark,
|
||||||
|
}
|
||||||
|
if(record.id!=null ){
|
||||||
|
state.formParam.id = record.id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// tab 标签切换
|
// tab 标签切换
|
||||||
const particulars = () => {
|
const particulars = () => {
|
||||||
|
|||||||
@@ -271,6 +271,7 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
tableDataTotal: -1,//table列表总条数
|
tableDataTotal: -1,//table列表总条数
|
||||||
formParam: {
|
formParam: {
|
||||||
|
type1:1,
|
||||||
},
|
},
|
||||||
searchParam: {
|
searchParam: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
|
|||||||
@@ -750,17 +750,7 @@ export default {
|
|||||||
])
|
])
|
||||||
// 搜索
|
// 搜索
|
||||||
const searchSubmit = () => {
|
const searchSubmit = () => {
|
||||||
// getLevelLista()
|
getTableDate();
|
||||||
// LecturerSystemLista()
|
|
||||||
// PlaceOfPayLista()
|
|
||||||
// getTableDate();
|
|
||||||
// let obj ={
|
|
||||||
// id:0
|
|
||||||
// name :'修改测试'
|
|
||||||
// }
|
|
||||||
// updatelnTeacher().then((res)=>{
|
|
||||||
// message.success('修改成功')
|
|
||||||
// })
|
|
||||||
};
|
};
|
||||||
//重置
|
//重置
|
||||||
const searchReset = () => {
|
const searchReset = () => {
|
||||||
@@ -1161,7 +1151,7 @@ export default {
|
|||||||
state. teacherrepromo.userNo= state.lookTeacherId
|
state. teacherrepromo.userNo= state.lookTeacherId
|
||||||
// api接口
|
// api接口
|
||||||
let a = {
|
let a = {
|
||||||
userNo :'00004409',
|
userNo :state.teacherrepromo,
|
||||||
pageNo: "1",
|
pageNo: "1",
|
||||||
pageSize: "10",
|
pageSize: "10",
|
||||||
}
|
}
|
||||||
@@ -1691,3 +1681,20 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- //二级页面翻页
|
||||||
|
const feeMonthlyPagination = (page,pageSize) => {
|
||||||
|
state.queryFeeMonthly.pageNo = page;
|
||||||
|
TeacherSystem();
|
||||||
|
};
|
||||||
|
const handleLooka= (record)=>{
|
||||||
|
|
||||||
|
} -->
|
||||||
|
<!-- tableLoading:false,
|
||||||
|
tableLoadinga:false,
|
||||||
|
tableDataTotal: -1,//table列表总条数
|
||||||
|
feeMonthlytableDataTotal:-1,//二级列表总条数 -->
|
||||||
|
<!-- -->
|
||||||
@@ -369,6 +369,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script lang="jsx">
|
<script lang="jsx">
|
||||||
import { reactive, toRefs, ref } from "vue";
|
import { reactive, toRefs, ref } from "vue";
|
||||||
|
import moment, { Moment } from 'moment';
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import Editor from "@/components/project/Editor";
|
import Editor from "@/components/project/Editor";
|
||||||
import Upload from "@/components/project/Upload";
|
import Upload from "@/components/project/Upload";
|
||||||
@@ -696,7 +697,7 @@ export default {
|
|||||||
}
|
}
|
||||||
//保存
|
//保存
|
||||||
const createTeacherDialog =()=>{
|
const createTeacherDialog =()=>{
|
||||||
if (state.formParam.userNo != undefined) {
|
if (state.formParam.offcourseId != null ) {
|
||||||
updateInTeacherCourse (state.formParam).then(response => {
|
updateInTeacherCourse (state.formParam).then(response => {
|
||||||
message.success("修改成功");
|
message.success("修改成功");
|
||||||
});
|
});
|
||||||
@@ -756,6 +757,7 @@ export default {
|
|||||||
score:null,
|
score:null,
|
||||||
type:null,
|
type:null,
|
||||||
remark:null,
|
remark:null,
|
||||||
|
offcourseId:null
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -799,13 +801,17 @@ export default {
|
|||||||
defaultTeachingTime:record.defaultTeachingTime,
|
defaultTeachingTime:record.defaultTeachingTime,
|
||||||
tlevelName:record.tlevelName,
|
tlevelName:record.tlevelName,
|
||||||
name:record.name,
|
name:record.name,
|
||||||
// beginTime:record.beginTime,
|
beginTime: moment(record.beginTime, 'YYYY-MM-DD'),
|
||||||
|
// ref< moment.Moment >(moment(record.beginTime,'YYYY-MM-DD')),
|
||||||
|
// record.beginTime,
|
||||||
duration:record.duration,
|
duration:record.duration,
|
||||||
studys:record.studys,
|
studys:record.studys,
|
||||||
score:record.score,
|
score:record.score,
|
||||||
type:record.type,
|
type:record.type,
|
||||||
remark:record.remark,
|
remark:record.remark,
|
||||||
userNo:record.userNo
|
userNo:record.userNo,
|
||||||
|
type1:record.type1,
|
||||||
|
offcourseId:record.offcourseId,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//导出功能
|
//导出功能
|
||||||
|
|||||||
1531
src/views/lecturer/LecturerFeeManagement.vue
Normal file
1531
src/views/lecturer/LecturerFeeManagement.vue
Normal file
File diff suppressed because it is too large
Load Diff
1183
src/views/lecturer/LecturerFeeStatistics.vue
Normal file
1183
src/views/lecturer/LecturerFeeStatistics.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user