mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
讲师管理bug
This commit is contained in:
@@ -97,3 +97,7 @@ export const isConfirm = (obj) => http.post('/admin/expenseBill/isConfirm',obj)
|
||||
export const parentList = () => http.get('/admin/affiliation/parentList')
|
||||
//讲师级别获取
|
||||
export const getAllLevelList = () => http.get('/admin/system/getAllLevelList')
|
||||
//删除讲师费
|
||||
export const deleteLecturerFee = (obj) => http.post(`/admin/teacherExpense/delById?id=${obj.id}`,obj)
|
||||
//停用/启用讲师费
|
||||
export const updateLecturerFee = (obj) => http.post(`/admin/teacherExpense/isEnable?id=${obj.id}&status=${obj.status}`,obj)
|
||||
|
||||
@@ -102,10 +102,10 @@
|
||||
<a-button @click="handleExport()" class="resetbtn">
|
||||
<UploadOutlined /> 导出
|
||||
</a-button>
|
||||
<a-button @click="handleTeacher()" type="primary" class="langbtn">
|
||||
<a-button v-if="orgList.length" @click="handleTeacher()" type="primary" class="langbtn">
|
||||
一键确认讲师费
|
||||
</a-button>
|
||||
<a-button @click="allFee()" type="primary" class="langbtn">
|
||||
<a-button v-if="orgList.length" @click="allFee()" type="primary" class="langbtn">
|
||||
批量确认讲师费
|
||||
</a-button>
|
||||
<!-- <div style="line-height: 40px;" >当前页面汇总金额:<span style="line-height: 40px; font-size: 24px; color: rgb(207, 34, 34) ;font-weight: 600;">1,230,490</span>元 当前总汇总金额:<span style="line-height: 40px; font-size: 24px; color: rgb(207, 34, 34) ;font-weight: 600;">9,230,490</span>元</div> -->
|
||||
@@ -117,12 +117,13 @@
|
||||
<template #bodyCell="{ record, column }">
|
||||
<template v-if="column.key === 'operation'">
|
||||
<a-space >
|
||||
<a-button type="link" v-if="record.status==0||record.status==5" @click="updateModal(record,record.status)">{{record.status==0?'停用':'启用'}}</a-button>
|
||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||
<!-- :disabled="record.createFrom==1 ?false :true" -->
|
||||
<a-button type="link" v-if="record.createFrom==1&&record.status != 2&&record.status!=3" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
||||
<!-- <a-button :disabled="record.status==='A20' || record.status==='A30'||record.status==='S20' ?true :false" type="link" @click="() => handleOperate(record, String(record.courseform))">提交</a-button> -->
|
||||
<!-- <a-button type="link" @click="handleOperate(record)">撤回</a-button> -->
|
||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
||||
<a-button type="link" v-if="record.status==0||record.status==4||record.status==5" @click="deleteModal(record)">删除</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
@@ -528,7 +529,7 @@
|
||||
<a-descriptions-item label="计划费用 ">{{formParam.expense?formParam.expense+'元': '-'}}</a-descriptions-item>
|
||||
<!-- <a-descriptions-item label="应发费用 ">{{formParam.payableExpense || '-'}}</a-descriptions-item> -->
|
||||
<!-- <a-descriptions-item label="费用发放时间">{{formParam.payableExpenseTime || '-'}}</a-descriptions-item> -->
|
||||
<a-descriptions-item label="状态">{{{0:'待确认' ,1:'待提交' ,2:'审核中', 3:'审核通过', 4:'审核拒绝',5:'待提交'}[formParam?.status]}}</a-descriptions-item>
|
||||
<a-descriptions-item label="状态">{{{0:'待确认' ,1:'待提交' ,2:'审核中', 3:'审核通过', 4:'审核拒绝',5:'停用'}[formParam?.status]}}</a-descriptions-item>
|
||||
<!-- <a-descriptions-item label="课程类型">{{{"0": "在线课","1": "面授课","2": "课程开发","3": "作业员入模培训","4": "其他",}[formParam.courseType + ""]}}</a-descriptions-item> -->
|
||||
<a-descriptions-item label="备注 ">{{formParam.remark || '-'}}</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
@@ -583,7 +584,7 @@
|
||||
import ImportWork from "../../components/lecturer/ImportWork.vue";
|
||||
import SearchTeacher from "@/components/project/SearchTeacher";
|
||||
import {getTeacherFeeList,getTeacherFeeDetail,getListByTeacherExpenseId,addTeacherFee ,getListByIds,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTeacherLevel,deleteInTeacher,confirm} from "../../api/lecturerFeeManagement";
|
||||
import {getTeacherSystemList, getAllLevelList,getPayRollPlace,fileUp,submitApproval } from "../../api/Lecturer";
|
||||
import {getTeacherSystemList, getAllLevelList,getPayRollPlace,fileUp,submitApproval,deleteLecturerFee,updateLecturerFee } from "../../api/Lecturer";
|
||||
// lecturerFeeManagement
|
||||
// import {getProjSt} from "../../api/indexProjStu";
|
||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||
@@ -1051,7 +1052,7 @@ getAllLevelList().then((res) => {
|
||||
"2": "审核中",
|
||||
"3": "审核通过",
|
||||
'4': '审核拒绝',
|
||||
'5': '待提交',
|
||||
'5': '停用',
|
||||
}[value.record.status + ""] || ""
|
||||
: "-"}
|
||||
</div>
|
||||
@@ -1102,7 +1103,7 @@ getAllLevelList().then((res) => {
|
||||
key: 'operation',
|
||||
ellipsis: true, align: "center",
|
||||
fixed: "right",
|
||||
width: 160,
|
||||
width: 180,
|
||||
scopedSlots: { customRender: "action" },
|
||||
},
|
||||
|
||||
@@ -1275,10 +1276,43 @@ getAllLevelList().then((res) => {
|
||||
}
|
||||
};
|
||||
//删除弹窗
|
||||
// const deleteModal = (record) => {
|
||||
// state.deleteInTeacherdialog = true
|
||||
// state.delTeacherId = record.id
|
||||
// };
|
||||
const deleteModal = (record) => {
|
||||
dialog({
|
||||
content: '是否确认进行删除?',
|
||||
ok: () => {
|
||||
deleteLecturerFee({id:record.id}).then(res=>{
|
||||
if(typeof (res.data.data) != 'object'){
|
||||
message.error(res.data.data)
|
||||
return
|
||||
}
|
||||
message.success("删除成功");
|
||||
searchSubmit()
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}
|
||||
})
|
||||
};
|
||||
const updateModal = (record) => {
|
||||
dialog({
|
||||
content: `是否确认${record.status == 5 ? '启用':'停用'}?`,
|
||||
ok: () => {
|
||||
const status = record.status ==0 ? 5 : 0
|
||||
updateLecturerFee({id:record.id,status}).then(res=>{
|
||||
if(typeof (res.data.data) != 'object'){
|
||||
message.error(res.data.data)
|
||||
return
|
||||
}
|
||||
message.success(`${status == 0 ? '启用':'停用'}成功`);
|
||||
searchSubmit()
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
//修改状态窗口
|
||||
const handleOperate = (record) => {
|
||||
dialog({
|
||||
@@ -1742,7 +1776,7 @@ const column = ref([
|
||||
"2": "审核中",
|
||||
"3": "审核通过",
|
||||
'4': '审核拒绝',
|
||||
'5': '待提交',
|
||||
'5': '停用',
|
||||
}[value.record.status + ""] || ""
|
||||
: "-"}
|
||||
</div>
|
||||
@@ -1866,7 +1900,8 @@ const column = ref([
|
||||
handleLook,
|
||||
orgSplit,
|
||||
cancel,
|
||||
// deleteModal,
|
||||
deleteModal,
|
||||
updateModal,
|
||||
handleModify,
|
||||
// closeDeleteTeacher,
|
||||
createTeacherDialog,
|
||||
|
||||
Reference in New Issue
Block a user