删除打印

This commit is contained in:
zhangsir
2025-01-13 11:03:45 +08:00
parent 12c0ba73ca
commit caf9471732
9 changed files with 21 additions and 81 deletions

View File

@@ -130,7 +130,6 @@ watch(()=>props.value,(val)=>{
} }
},{immediate:true}) },{immediate:true})
onMounted(()=>{ onMounted(()=>{
console.log('hahhahahahahhaha')
}) })
const teacherName = ref('') const teacherName = ref('')
const selectName = ref(null) const selectName = ref(null)
@@ -158,7 +157,7 @@ const handleChange = (e,l) => {
// systemName.value = l.systemName // systemName.value = l.systemName
levelName.value = l.levelName levelName.value = l.levelName
teacherId.value = l.key teacherId.value = l.key
byUserId(teacherId.value) byUserId(teacherId.value,l)
orgId.value = l.orgId orgId.value = l.orgId
payrollPlaceCode.value = l.payrollPlaceCode payrollPlaceCode.value = l.payrollPlaceCode
payrollPlaceName.value = l.payrollPlaceName payrollPlaceName.value = l.payrollPlaceName
@@ -241,7 +240,6 @@ const searchMember = (keyword) => {
status: 1, status: 1,
} }
!props.lecturer && getTeacherList(params).then(res=>{ !props.lecturer && getTeacherList(params).then(res=>{
console.log(res,'ressss')
if(res.data.code == 200){ if(res.data.code == 200){
loading.value = false loading.value = false
options.value = res.data.data.records.map((item) => { options.value = res.data.data.records.map((item) => {
@@ -254,6 +252,7 @@ const searchMember = (keyword) => {
orgName: item.orgName, orgName: item.orgName,
orgId: item.orgId, orgId: item.orgId,
tSystemName:item.tsystemName, tSystemName:item.tsystemName,
tSystemId:item.tsystemId,
sLevelName:item.sLevelName, sLevelName:item.sLevelName,
payrollPlaceCode: item.salaryId, payrollPlaceCode: item.salaryId,
payrollPlaceName:item.salaryName, payrollPlaceName:item.salaryName,
@@ -380,8 +379,8 @@ const notChange = () => {
payrollPlaceName.value = '' payrollPlaceName.value = ''
} }
const loadingChange = ref(false) const loadingChange = ref(false)
const byUserId = (val)=>{ const byUserId = (val,list)=>{
if(val){ if(val&&props.lecturer){
loadingChange.value = true loadingChange.value = true
getSystemInfoByUserId(teacherId.value).then(res=>{ getSystemInfoByUserId(teacherId.value).then(res=>{
if(res.data.code == 200){ if(res.data.code == 200){
@@ -403,9 +402,17 @@ const byUserId = (val)=>{
loadingChange.value = false loadingChange.value = false
// emit('update:system',systemName.value) // emit('update:system',systemName.value)
}).catch(err=>{ }).catch(err=>{
message.error('讲师体系获取失败,请重新选择') message.destroy()
message.error(err.data.msg)
loadingChange.value = false loadingChange.value = false
}) })
}else{
systemName.value = {
systemName:list.tSystemName,
systemId:list.tSystemId
}
emit('update:system',systemName.value)
emit('byUserIdData',list.levelPay)
} }
} }
const changeOut = () => { const changeOut = () => {

View File

@@ -385,7 +385,6 @@ export default {
return false; return false;
} }
let isLt1M = file.size < 500000; let isLt1M = file.size < 500000;
console.log(file.size, isLt1M)
if (!isLt1M) { if (!isLt1M) {
message.error("图片不能超过500KB! 请重新上传"); message.error("图片不能超过500KB! 请重新上传");
return false; return false;
@@ -393,10 +392,8 @@ export default {
const formDatas = new FormData(); const formDatas = new FormData();
formDatas.append("file", file); formDatas.append("file", file);
console.log("file", file)
fileUp(formDatas).then((res) => { fileUp(formDatas).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
console.log(res.data.data, 45);
state.formParam.photo = process.env.VUE_APP_FILE_PATH + res.data.data; state.formParam.photo = process.env.VUE_APP_FILE_PATH + res.data.data;
// state.hasImgName = file.name; // state.hasImgName = file.name;
@@ -662,7 +659,6 @@ export default {
id: state.editTeacherid, id: state.editTeacherid,
status: state.newStatus status: state.newStatus
} }
console.log(ids)
updateTeacherState(ids).then((res) => { updateTeacherState(ids).then((res) => {
// message.success("操作成功"); // message.success("操作成功");
state.editTeacher = false state.editTeacher = false
@@ -707,7 +703,6 @@ export default {
id:null, id:null,
supplier:null, supplier:null,
} }
console.log(state.formParam);
} }
const rules = { const rules = {
name: [{ required: true, message: '',log: '讲师不能为空' }], name: [{ required: true, message: '',log: '讲师不能为空' }],
@@ -753,7 +748,6 @@ export default {
//外部讲师详情 //外部讲师详情
const TeacherSystem = () => { const TeacherSystem = () => {
getTeacherById({id:state.id}).then((res) => { getTeacherById({id:state.id}).then((res) => {
console.log("外部讲师详情", res.data);
state.formParam = res.data.data state.formParam = res.data.data
state.formParam.defaultTeachingTime = state.formParam.defaultTeachingTime == null ? 0 : state.formParam.defaultTeachingTime state.formParam.defaultTeachingTime = state.formParam.defaultTeachingTime == null ? 0 : state.formParam.defaultTeachingTime
state.formParam.description = state.formParam.description == null ? '<p><br></p>' : state.formParam.description state.formParam.description = state.formParam.description == null ? '<p><br></p>' : state.formParam.description
@@ -762,7 +756,6 @@ export default {
.catch((err) => { .catch((err) => {
message.destroy() message.destroy()
message.error(err.data.msg) message.error(err.data.msg)
console.log("外部讲师详情", err);
}); });
} }
const sendName=()=>{ const sendName=()=>{
@@ -776,7 +769,6 @@ export default {
} }
const sendPhone=()=>{ const sendPhone=()=>{
state.phoneEmil = 0 state.phoneEmil = 0
console.log(state.formParam.mobile)
const reg = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/; const reg = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
if (!state.formParam.mobile) { if (!state.formParam.mobile) {
} else if (!reg.test(state.formParam.mobile)) { } else if (!reg.test(state.formParam.mobile)) {
@@ -836,7 +828,6 @@ export default {
      }       }
//回车 //回车
const enterPressHadlerSearch = e => { const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {     if (e.keyCode === 13) {
      searchSubmit()       searchSubmit()

View File

@@ -783,7 +783,6 @@ export default {
tableData.value = res.data.data.records tableData.value = res.data.data.records
state.tableDataTotal = Number(res.data.data.total); state.tableDataTotal = Number(res.data.data.total);
state.tableLoading = false state.tableLoading = false
console.log("获取tableData", tableData);
}) })
.catch(err => { .catch(err => {
state.tableLoading = false state.tableLoading = false
@@ -830,7 +829,6 @@ export default {
//保存 //保存
const createTeacherDialog = async () => { const createTeacherDialog = async () => {
state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : "" state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
console.log(state.formParam)
if(state.formParam.studys==0){ if(state.formParam.studys==0){
state.formParam.studys = null state.formParam.studys = null
} }
@@ -952,7 +950,6 @@ export default {
state.formParam.name=state.formParam.teacherName state.formParam.name=state.formParam.teacherName
state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : "" state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
state.formParam.courseStatus = String(state.formParam.courseStatus) state.formParam.courseStatus = String(state.formParam.courseStatus)
console.log(state.formParam.teachingDate)
}) })
.catch((err) => { .catch((err) => {
}); });
@@ -961,7 +958,6 @@ export default {
// console.log(e, l, d, t, orgName,'e, l, d, t, orgName'); // console.log(e, l, d, t, orgName,'e, l, d, t, orgName');
state.formParam.mobile=e?l.mobile:'' state.formParam.mobile=e?l.mobile:''
state.formParam.teacherId=e?l.id:'' state.formParam.teacherId=e?l.id:''
console.log(state.formParam)
// state.searchParam.userNo = d; // state.searchParam.userNo = d;
// state.searchParam.name = t; // state.searchParam.name = t;
// state.searchParam.trainorgName=orgName // state.searchParam.trainorgName=orgName
@@ -987,7 +983,6 @@ export default {
} }
//回车 //回车
const enterPressHadlerSearch = e => { const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {     if (e.keyCode === 13) {
      searchSubmit()       searchSubmit()

View File

@@ -577,7 +577,6 @@ export default {
return false; return false;
} }
let isLt1M = file.size < 500000; let isLt1M = file.size < 500000;
console.log(file.size, isLt1M)
if (!isLt1M) { if (!isLt1M) {
message.error("图片不能超过500KB! 请重新上传"); message.error("图片不能超过500KB! 请重新上传");
return false; return false;
@@ -585,10 +584,8 @@ export default {
const formDatas = new FormData(); const formDatas = new FormData();
formDatas.append("file", file); formDatas.append("file", file);
console.log("file", file)
fileUp(formDatas).then((res) => { fileUp(formDatas).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
console.log(res.data.data, 45);
state.formParam.photo = process.env.VUE_APP_FILE_PATH + res.data.data; state.formParam.photo = process.env.VUE_APP_FILE_PATH + res.data.data;
// state.hasImgName = file.name; // state.hasImgName = file.name;
@@ -623,12 +620,10 @@ export default {
const formData = new FormData(); const formData = new FormData();
formData.append("file", file); formData.append("file", file);
console.log(file);
teacherUpload(formData).then((res) => { teacherUpload(formData).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
// state.formParam.filesList = [res.data.data]; // state.formParam.filesList = [res.data.data];
state.formParam.filesList = file.name state.formParam.filesList = file.name
console.log(state.formParam.filesList);
// state.hasImgName = res.data.data; // state.hasImgName = res.data.data;
} }
}); });
@@ -966,7 +961,6 @@ export default {
getTeacherList(objA) getTeacherList(objA)
.then((res) => { .then((res) => {
// tableData.value = res.data.data.records // tableData.value = res.data.data.records
console.log(tableData.value,'tableData.value')
let objA = res.data.data.records let objA = res.data.data.records
objA.map((item) => { objA.map((item) => {
if (item.orgName !== null) { if (item.orgName !== null) {
@@ -1020,7 +1014,6 @@ export default {
}); });
} }
const teacherTlevel = (val) => { const teacherTlevel = (val) => {
console.log(val,'vallll')
if(val?.avatar){ if(val?.avatar){
val.avatar = val.avatar.includes('upload') ? val.avatar : '/upload' + val.avatar val.avatar = val.avatar.includes('upload') ? val.avatar : '/upload' + val.avatar
state.formParam.photo = val.avatar state.formParam.photo = val.avatar
@@ -1173,7 +1166,6 @@ export default {
id: state.editTeacherid, id: state.editTeacherid,
status: state.newStatus status: state.newStatus
} }
console.log(ids)
updateTeacherState(ids).then((res) => { updateTeacherState(ids).then((res) => {
message.success("操作成功"); message.success("操作成功");
state.editTeacher = false state.editTeacher = false
@@ -1293,7 +1285,6 @@ export default {
} }
//内部讲师详情 //内部讲师详情
const TeacherSystem = () => { const TeacherSystem = () => {
console.log(state.id)
getTeacherById({id:state.id}).then((res) => { getTeacherById({id:state.id}).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
// let objA= res.data.data[0] // let objA= res.data.data[0]
@@ -1336,7 +1327,6 @@ export default {
} }
console.log("内部讲师详情", state.formParam);
}) })
.catch((err) => { .catch((err) => {
console.log("内部讲师详情", err); console.log("内部讲师详情", err);

View File

@@ -681,7 +681,6 @@ export default {
label: '全部' label: '全部'
}) })
} }
console.log("获取讲师", LecturerSystemList);
}) })
} }
LecturerSystemLista() LecturerSystemLista()
@@ -689,7 +688,6 @@ export default {
const store = useStore(); const store = useStore();
const sysTypeOptions = computed(() => store.state.content_type); const sysTypeOptions = computed(() => store.state.content_type);
const treetype = (val, lab) => { const treetype = (val, lab) => {
console.log(lab)
state.formParam.courseTypeName = lab.toString() state.formParam.courseTypeName = lab.toString()
} }
const OnTheJobStatusList = ref([ const OnTheJobStatusList = ref([
@@ -965,7 +963,6 @@ export default {
pageSize:50 pageSize:50
} }
queryTrainOrgPor(obj).then((res) => { queryTrainOrgPor(obj).then((res) => {
console.log(res,'rssssss')
state.orgList = res.data.data?.map(item=>{ state.orgList = res.data.data?.map(item=>{
return{ return{
label: item.affiliationName, label: item.affiliationName,
@@ -984,7 +981,6 @@ export default {
}) })
} }
const changeOrg = (e,l) => { const changeOrg = (e,l) => {
console.log(e,'eeeee',l)
state.formParam.trainOrgName = l?.label state.formParam.trainOrgName = l?.label
} }
const rules = { const rules = {
@@ -1143,7 +1139,6 @@ export default {
state.formParam.tlevelId = e?.tlevelId state.formParam.tlevelId = e?.tlevelId
} }
watch(() => state.formParam.orgNames, (val) => { watch(() => state.formParam.orgNames, (val) => {
console.log(val, 'orgName')
if (val) { if (val) {
const parts = val.split('/'); const parts = val.split('/');
const reversedParts = parts.reverse(); const reversedParts = parts.reverse();
@@ -1177,7 +1172,6 @@ export default {
} }
state.formParam.orgName = state.formParam.orgNames state.formParam.orgName = state.formParam.orgNames
state.formParam = { ...state.formParam, ...state.tSystemNames } state.formParam = { ...state.formParam, ...state.tSystemNames }
console.log(state.formParam)
if (state.vf == false) { if (state.vf == false) {
updateInTeacherCourse(state.formParam).then(response => { updateInTeacherCourse(state.formParam).then(response => {
message.success("编辑成功"); message.success("编辑成功");
@@ -1331,7 +1325,6 @@ export default {
state.formParam.orgNames = state.formParam.orgName state.formParam.orgNames = state.formParam.orgName
state.formParam.teachingDate = res.data.data.teachingDate ? dayjs(res.data.data.teachingDate).format("YYYY-MM-DD HH:mm").toString() : "-" state.formParam.teachingDate = res.data.data.teachingDate ? dayjs(res.data.data.teachingDate).format("YYYY-MM-DD HH:mm").toString() : "-"
state.formParam.courseStatus = String(state.formParam.courseStatus) state.formParam.courseStatus = String(state.formParam.courseStatus)
console.log(state.formParam);
}) })
.catch((err) => { .catch((err) => {
}); });
@@ -1354,7 +1347,6 @@ export default {
// remark: record.remark, // remark: record.remark,
// createFrom: record.createFrom // createFrom: record.createFrom
// } // }
console.log(state.formParam)
} }
const column = ref([{ const column = ref([{
title: '基准课酬 ', title: '基准课酬 ',
@@ -1417,7 +1409,6 @@ export default {
const gettableDatas = (record) => { const gettableDatas = (record) => {
getExpenseByCourseId({ courseId: record.courseId,teacherId:record.teacherId }) getExpenseByCourseId({ courseId: record.courseId,teacherId:record.teacherId })
.then((res) => { .then((res) => {
console.log(res)
tableDatas.value = res.data.data tableDatas.value = res.data.data
// state.tableDataTotal = Number(res.data.data.total); // state.tableDataTotal = Number(res.data.data.total);
}).catch(err => { }).catch(err => {
@@ -1437,13 +1428,11 @@ export default {
window.open( window.open(
`${process.env.VUE_APP_BASE_API}/admin/export/exportInTeacherRecord?recordType=1&name=${state.searchParam.name || ''}&courseName=${state.searchParam.courseName || ''}&type=${state.searchParam.type || ''}&courseStatus=${state.searchParam.courseStatus || ''}&createdFee=${state.searchParam.createdFee || ''}&beginTime=${state.searchParam.beginTime || ''}&endTime=${state.searchParam.endTime || ''}&trainOrgId=${state.searchParam.trainOrgId || ''}&score=${state.searchParam.score || ''}&studys=${state.searchParam.studys || ''} `${process.env.VUE_APP_BASE_API}/admin/export/exportInTeacherRecord?recordType=1&name=${state.searchParam.name || ''}&courseName=${state.searchParam.courseName || ''}&type=${state.searchParam.type || ''}&courseStatus=${state.searchParam.courseStatus || ''}&createdFee=${state.searchParam.createdFee || ''}&beginTime=${state.searchParam.beginTime || ''}&endTime=${state.searchParam.endTime || ''}&trainOrgId=${state.searchParam.trainOrgId || ''}&score=${state.searchParam.score || ''}&studys=${state.searchParam.studys || ''}
`) `)
console.log(state.searchParam.name, state.searchParam, '参数')
} }
const handleImport = () => { const handleImport = () => {
state.showWork = true state.showWork = true
} }
const beforeUpload2 = (file) => { const beforeUpload2 = (file) => {
console.log(file);
const fileType = [ const fileType = [
"xls", "xls",
"xlsx", "xlsx",
@@ -1458,7 +1447,6 @@ export default {
const formData = new FormData(); const formData = new FormData();
formData.append("file", file); formData.append("file", file);
console.log(file);
fileUp(formData).then((res) => { fileUp(formData).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
state.imgList.push({ state.imgList.push({
@@ -1466,7 +1454,6 @@ export default {
name: file.name, name: file.name,
size: file.size, size: file.size,
}); });
console.log(state.imgList);
// state.hasImgName = res.data.data; // state.hasImgName = res.data.data;
} }
}); });
@@ -1490,7 +1477,6 @@ export default {
} }
//回车 //回车
const enterPressHadlerSearch = e => { const enterPressHadlerSearch = e => {
console.log("e", e);
if (e.keyCode === 13) { if (e.keyCode === 13) {
searchSubmit() searchSubmit()

View File

@@ -659,7 +659,6 @@ export default {
pageSize:50 pageSize:50
} }
queryTrainOrgPor(obj).then((res) => { queryTrainOrgPor(obj).then((res) => {
console.log(res,'rssssss')
state.orgList = res.data.data?.map(item=>{ state.orgList = res.data.data?.map(item=>{
return{ return{
label: item.affiliationName, label: item.affiliationName,
@@ -669,11 +668,9 @@ export default {
}) })
} }
const changeOrg = (e,l) => { const changeOrg = (e,l) => {
console.log(e,'eeeee',l)
state.formParam.trainOrgName = l?.label state.formParam.trainOrgName = l?.label
} }
const createTeacherDialog = async () => { const createTeacherDialog = async () => {
console.log(state.formParam,'formParam')
state.formParam.expense = String(state.formParam.expense) state.formParam.expense = String(state.formParam.expense)
state.formParam.teachingDate=state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : "" state.formParam.teachingDate=state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
state.formParam.tsystemName = state.tSystemNames.systemName state.formParam.tsystemName = state.tSystemNames.systemName
@@ -818,7 +815,6 @@ export default {
} }
}) })
const edit = (record) => { const edit = (record) => {
console.log(record,'record')
if(record.id == 2){ if(record.id == 2){
state.modalVisible = true; state.modalVisible = true;
state.copyName = record.name state.copyName = record.name
@@ -845,7 +841,6 @@ export default {
}); });
} }
const recome = (record) => { const recome = (record) => {
console.log(record,'record')
dialog({ dialog({
content: '确定要移除此条数据吗?', content: '确定要移除此条数据吗?',
ok: () => { ok: () => {

View File

@@ -615,7 +615,6 @@
const cancelTeachingDialog = (val) => { const cancelTeachingDialog = (val) => {
if(state.teachingdialog = true ) if(state.teachingdialog = true )
{ {
console.log(val,'valllllll')
if(val == 1){ if(val == 1){
submit(state.formParam) submit(state.formParam)
return return
@@ -713,7 +712,6 @@
}) })
} }
const submit = (record) => { const submit = (record) => {
console.log(record,'record')
dialog({ dialog({
content: '请仔细核对讲师费信息,确认无误后,将自动进入(BPM系统)审批流程', content: '请仔细核对讲师费信息,确认无误后,将自动进入(BPM系统)审批流程',
ok: () => { ok: () => {
@@ -743,7 +741,6 @@
state.example = val state.example = val
} }
const withdraw = (record) => { const withdraw = (record) => {
console.log(record,'record')
dialog({ dialog({
content: '确定要撤回此条数据吗?', content: '确定要撤回此条数据吗?',
ok: () => { ok: () => {
@@ -769,7 +766,6 @@
queryById({id : state.id}).then((res) => { queryById({id : state.id}).then((res) => {
// state.formParam=Object.assign({} ,res.data.data) // state.formParam=Object.assign({} ,res.data.data)
state.formParam=res.data.data state.formParam=res.data.data
console.log( state.formParam)
}) })
.catch((err) => { .catch((err) => {
console.log("详情", err); console.log("详情", err);
@@ -1060,7 +1056,6 @@
}, },
]) ])
function managerChange(e, l, d, t, orgName) { function managerChange(e, l, d, t, orgName) {
console.log(e, l);
state.searchParam.teacherNo = d; state.searchParam.teacherNo = d;
state.searchParam.teacherName = t; state.searchParam.teacherName = t;
// state.searchParam.trainorgName=orgName // state.searchParam.trainorgName=orgName
@@ -1076,7 +1071,6 @@
} }
//回车 //回车
const enterPressHadlerSearch = e => { const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {     if (e.keyCode === 13) {
      searchSubmit()       searchSubmit()

View File

@@ -703,7 +703,6 @@
pageSize:50 pageSize:50
} }
queryTrainOrgPor(obj).then((res) => { queryTrainOrgPor(obj).then((res) => {
console.log(res,'rssssss')
state.orgList = res.data.data?.map(item=>{ state.orgList = res.data.data?.map(item=>{
return{ return{
label: item.affiliationName, label: item.affiliationName,
@@ -781,7 +780,6 @@
]) ])
const changetlevel = () => { const changetlevel = () => {
getAllLevelList().then((res) => { getAllLevelList().then((res) => {
console.log(res,'rssssss')
if (res.data.code === 200) { if (res.data.code === 200) {
let arr = res.data.data; let arr = res.data.data;
let array = []; let array = [];
@@ -1166,7 +1164,6 @@ getAllLevelList().then((res) => {
tableData.value = res.data.data.records tableData.value = res.data.data.records
state.tableDataTotal = Number(res.data.data.total); state.tableDataTotal = Number(res.data.data.total);
state.tableLoading=false state.tableLoading=false
console.log("获取讲师tableData", tableData);
}).catch(err=>{ }).catch(err=>{
state.tableLoading=false state.tableLoading=false
message.destroy() message.destroy()
@@ -1213,7 +1210,6 @@ getAllLevelList().then((res) => {
}); });
} }
watch(() => state.formParam.orgNames, (val) => { watch(() => state.formParam.orgNames, (val) => {
console.log(val, 'orgName')
if(val){ if(val){
const parts = val.split('/'); const parts = val.split('/');
const reversedParts = parts.reverse(); const reversedParts = parts.reverse();
@@ -1221,12 +1217,10 @@ getAllLevelList().then((res) => {
} }
}) })
const changeOrg = (e,l) => { const changeOrg = (e,l) => {
console.log(e,'eeeee',l)
state.formParam.trainOrgName = l?.label state.formParam.trainOrgName = l?.label
} }
//保存 //保存
const createTeacherDialog = async () => { const createTeacherDialog = async () => {
console.log(state.formParam,'formParam')
state.formParam.expense = String(state.formParam.expense) state.formParam.expense = String(state.formParam.expense)
state.formParam.teachingDate=state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : "" state.formParam.teachingDate=state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
state.formParam.tsystemName = state.tSystemNames.systemName state.formParam.tsystemName = state.tSystemNames.systemName
@@ -1347,7 +1341,6 @@ getAllLevelList().then((res) => {
let ids ={ let ids ={
id : state.id id : state.id
} }
console.log(state.handleOperate1)
if ( state.handleOperate1 === 'A10'){ if ( state.handleOperate1 === 'A10'){
updateStatusSubmit(ids).then((res) => { updateStatusSubmit(ids).then((res) => {
message.success("提交成功"); message.success("提交成功");
@@ -1429,7 +1422,6 @@ getAllLevelList().then((res) => {
const getListData = () => { const getListData = () => {
state.SeeLoading = true state.SeeLoading = true
getListByTeacherExpenseId(state.id).then(res=>{ getListByTeacherExpenseId(state.id).then(res=>{
console.log(res,'ressssss')
if(res.data.code == 200){ if(res.data.code == 200){
state.tableDataSee = res.data.data state.tableDataSee = res.data.data
} }
@@ -1515,7 +1507,6 @@ getAllLevelList().then((res) => {
content: '是否确认讲师费信息无误?提交后按“培训发生组织”汇总至审批中心,等待验证后“提交”进入审批流程。', content: '是否确认讲师费信息无误?提交后按“培训发生组织”汇总至审批中心,等待验证后“提交”进入审批流程。',
ok: () => { ok: () => {
submitApproval({ids:state.formParam.id}).then(res=>{ submitApproval({ids:state.formParam.id}).then(res=>{
console.log(res,'resssss')
if(res.data.code == 200){ if(res.data.code == 200){
message.success('提交成功') message.success('提交成功')
state.teachingdialog = false state.teachingdialog = false
@@ -1818,12 +1809,13 @@ const column = ref([
// state.formParam.levelPay = e?.levelPay // state.formParam.levelPay = e?.levelPay
} }
const byUserIdData = (e) => { const byUserIdData = (e) => {
e?.levelVoList.some(item=>{ // e?.levelVoList.some(item=>{
if(item.id == e?.levelId){ // if(item.id == e?.levelId){
state.formParam.levelPay = item.levelPay // state.formParam.levelPay = item.levelPay
return true // return true
} // }
}) // })
state.formParam.levelPay = e
} }
//导出功能 //导出功能
const handleExport = ()=>{ const handleExport = ()=>{
@@ -1836,7 +1828,6 @@ const column = ref([
// }, `project_${new Date().getTime()}.xlsx` ) // }, `project_${new Date().getTime()}.xlsx` )
} }
const beforeUpload2 = (file) => { const beforeUpload2 = (file) => {
console.log(file);
const fileType = [ const fileType = [
"xls", "xls",
"xlsx", "xlsx",
@@ -1851,7 +1842,6 @@ const column = ref([
const formData = new FormData(); const formData = new FormData();
formData.append("file", file); formData.append("file", file);
console.log(file);
fileUp(formData).then((res) => { fileUp(formData).then((res) => {
if (res.data.code === 200) { if (res.data.code === 200) {
state.imgList.push({ state.imgList.push({
@@ -1859,7 +1849,6 @@ const column = ref([
name: file.name, name: file.name,
size: file.size, size: file.size,
}); });
console.log(state.imgList);
// state.hasImgName = res.data.data; // state.hasImgName = res.data.data;
} }
}); });
@@ -1867,7 +1856,6 @@ const column = ref([
}; };
//回车 //回车
const enterPressHadlerSearch = e => { const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {     if (e.keyCode === 13) {
      searchSubmit()       searchSubmit()

View File

@@ -520,7 +520,6 @@ const getTableDate = (obj) => {
let objA = { ...state.searchParam }; let objA = { ...state.searchParam };
queryTrainOrg(objA) queryTrainOrg(objA)
.then((res) => { .then((res) => {
console.log(res,'res')
tableData.value = res.data.data.records tableData.value = res.data.data.records
state.tableDataTotal = Number(res.data.data.total); state.tableDataTotal = Number(res.data.data.total);
state.tableLoading = false state.tableLoading = false
@@ -556,11 +555,9 @@ const getTableDate = (obj) => {
content: '是否确认撤回 ?', content: '是否确认撤回 ?',
ok: () => { ok: () => {
lecturer.affiliatIsConfirm(record.id).then(res=>{ lecturer.affiliatIsConfirm(record.id).then(res=>{
console.log(res,'res')
message.success("撤回成功") message.success("撤回成功")
getTableDate(); getTableDate();
}).catch(err=>{ }).catch(err=>{
console.log(err,'errr')
message.destroy() message.destroy()
message.error(err.data.msg) message.error(err.data.msg)
}) })
@@ -664,7 +661,6 @@ const getTableDate = (obj) => {
//修改信息弹窗 //修改信息弹窗
const handleModify = (record) => { const handleModify = (record) => {
lecturer.getAffiliationById(record.id).then(res=>{ lecturer.getAffiliationById(record.id).then(res=>{
console.log(res,'resssss')
res.data.data.status==3 && (state.editParams = false) res.data.data.status==3 && (state.editParams = false)
state.formParam = res.data.data state.formParam = res.data.data
const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0).reduce((accumulator, current) => { const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0).reduce((accumulator, current) => {
@@ -796,7 +792,6 @@ const getTableDate = (obj) => {
} }
//保存 //保存
const createTeacherDialog = async (val) => { const createTeacherDialog = async (val) => {
console.log(state.formParam,'state.formParam')
state.formParam.affiliationName = state.formParam.affiliationName?.trim() state.formParam.affiliationName = state.formParam.affiliationName?.trim()
state.formParam.affiliationUserList = [...state.formParam?.actArray,...state.formParam?.leveOneArray,...state.formParam?.leveTwoArray,...state.formParam?.leveThreeArray] state.formParam.affiliationUserList = [...state.formParam?.actArray,...state.formParam?.leveOneArray,...state.formParam?.leveTwoArray,...state.formParam?.leveThreeArray]
state.formParam.orglistName = state.formParam.affiliationOrgList?.map(item=>item.id).join(',') state.formParam.orglistName = state.formParam.affiliationOrgList?.map(item=>item.id).join(',')
@@ -874,7 +869,6 @@ const getTableDate = (obj) => {
} }
//回车 //回车
const enterPressHadlerSearch = e => { const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {     if (e.keyCode === 13) {
      searchSubmit()       searchSubmit()