@@ -294,24 +294,25 @@
讲师信息
- {{ formParam.name }}
+ {{ formParam.teacherName }}
{{ formParam.userNo }}
{{ formParam.organizationName }}
- {{ formParam.systemName }}
- {{ formParam.sLevelName }}
+ {{ formParam.tsystemName }}
+ {{ formParam.tlevelName
+ }}
{{ formParam.createFrom == 0 ? '系统生成' : formParam.createFrom == 1 ? '手动录入' : '' }}
{{ formParam.type == 1 ? '项目开课' : formParam.type == 2 ? '路径开课' : formParam.type == 3
? '面授开课' : '' }}
{{ formParam.coursename }}
- {{ formParam.courseStatus == 0 ? '未开课' : formParam.courseStatus == 1
+ {{ formParam.courseStatus == 1? '未开课' : formParam.courseStatus == 0
? '已开课' : '' }}
- {{
- (formParam.duration / 60).toFixed(2) }}小时
- {{ formParam.beginTime }}
+ {{
+ (formParam.teaching / 60).toFixed(2) }}小时
+ {{ formParam.teachingDate }}
{{ formParam.studys }}
{{ formParam.score }}
- {{ formParam.courseTypeId }}
+ {{ formParam.courseTypeName }}
{{ formParam.remark }}
@@ -390,7 +391,8 @@ import dayjs from "dayjs";
import ProjectManager from "@/components/project/ProjectManagerNew";
import { message } from "ant-design-vue";
import { getTeacherSystemList, infoteacher, getTeacherExpertise } from "../../api/Lecturer";
-import { getNewInTeacherCourseList, getOrganization, getTeacherCourseList, insertInTeacherCourse, updateInTeacherCourse, getCharges, deleteInTeacherCourse } from "../../api/Teaching";
+import { getNewInTeacherCourseList, getOrganization, getTeacherCourseList, insertInTeacherCourse, updateInTeacherCourse, deleteInTeacherCourse } from "../../api/Teaching";
+import{getTeacherFeeDetail} from "../../api/lecturerFeeManagement";
// import AddTeacher from "../../components/drawers/project/AddTeacher"
import ImportWork from "../../components/lecturer/ImportWork.vue";
import { fileUp } from "../../api/Lecturer";
@@ -448,7 +450,7 @@ export default {
formParam: {
courseStatus: 1,
createFrom: 1,
- duration: null,
+ teaching: null,
name:null,
teacherName: null
},
@@ -691,15 +693,15 @@ export default {
},
{
title: '内容分类',
- dataIndex: 'courseTypeId',
- key: 'courseTypeId',
+ dataIndex: 'courseTypeName',
+ key: 'courseTypeName',
elipsis: true, align: "center",
width: 120,
},
{
title: '授课时长(H) ',
- dataIndex: 'duration',
- key: 'duration',
+ dataIndex: 'teaching',
+ key: 'teaching',
elipsis: true, align: "center",
width: 120,
},
@@ -940,7 +942,7 @@ export default {
tsystemName: null,
levelId: null,
courseName: null,
- duration:null,
+ teaching:null,
studys: null,
score: null,
type: null,
@@ -1001,7 +1003,7 @@ export default {
// beginTime: dayjs(record.beginTime, 'YYYY-MM-DD'),
// // ref< moment.Moment >(moment(record.beginTime,'YYYY-MM-DD')),
// // record.beginTime,
- // duration: record.duration,
+ // teaching: record.teaching,
// score: record.score,
// studys: record.studys,
// remark: record.remark,
@@ -1014,9 +1016,14 @@ export default {
getTeacherCourseList({id:record.id}).then((res) => {
state.formParam = res.data.data
state.tSystemNames.systemName = res.data.data.tsystemName
+ state.tSystemNames.systemId = res.data.data.tsystemId
state.tSystemNames.systemCode = res.data.data.systemCode
state.tSystemNames.systemId = res.data.data.systemId
state.tSystemNames.levelVoList = res.data.data.levelVoList
+ state.formParam.tlevelName = res.data.data.tlevelName
+ state.formParam.tlevelId = res.data.data.tlevelId
+ state.formParam.name = res.data.data.teacherName+'/'+res.data.data.userNo
+ state.formParam.orgLists = res.data.data.expertiseNames?.split(',').map(item=>({ name: item }))
console.log( state.formParam);
})
.catch((err) => {
@@ -1034,7 +1041,7 @@ export default {
// beginTime:record.beginTime,
// // ref< moment.Moment >(moment(record.beginTime,'YYYY-MM-DD')),
// // record.beginTime,
- // duration: record.duration,
+ // teaching: record.teaching,
// score: record.score,
// studys: record.studys,
// remark: record.remark,
@@ -1094,7 +1101,7 @@ export default {
},
])
const gettableDatas = (record) => {
- getCharges({ id: record.id })
+ getTeacherFeeDetail({ id: record.id })
.then((res) => {
console.log(res)
tableDatas.value = res.data.data.records
@@ -1110,7 +1117,7 @@ export default {
courseTypeId: [{ required: true, message: '',log:'内容分类不能为空' }],
courseName: [{ required: true, message: '',log:'课程名称不能为空' }],
teachingDate: [{ required: true, message: '',log:'授课/课程日期不能为空' }],
- duration: [{ required: true, message:'',log: '授课时长不能为空' }],
+ teaching: [{ required: true, message:'',log: '授课时长不能为空' }],
courseStatus: [{ required: true, message: '',log:'开课状态不能为空' }],
}
@@ -1122,6 +1129,7 @@ export default {
// }
const handleformlevel = (val) => {
state.formParam.tlevelName = state.tSystemNames.levelVoList.find(item=>item.id===val)?.levelName
+ state.formParam.tlevelId = state.tSystemNames.levelVoList.find(item=>item.id===val)?.id
}
//导出功能
const handleExport = () => {
@@ -1177,8 +1185,8 @@ export default {
return false;
};
const clearNonNumber = () => {
- state.formParam.duration = state.formParam.duration.replace(/\D/g, '');
- // state.formParam.duration
+ state.formParam.teaching = state.formParam.teaching.replace(/\D/g, '');
+ // state.formParam.teaching
}
const clearscoreNumber = () => {
state.formParam.score = state.formParam.score.replace(/\D/g, '');