讲师管理bug

This commit is contained in:
zhangsir
2024-12-02 15:57:24 +08:00
parent 1ffe96bc90
commit f887d740f4
5 changed files with 144 additions and 45 deletions

View File

@@ -62,7 +62,9 @@ export const getAffiliationCode = () => http.get('/admin/affiliation/getAffiliat
//查看或编辑回显培训发生组织 //查看或编辑回显培训发生组织
export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`) export const getAffiliationById = (id) => http.get(`/admin/affiliation/queryById?id=${id}`)
//审核记录 //审核记录
export const getByBusinessIdList = (obj) => http.post(`/admin/approval/getByBusinessIdList?businessId=${obj.businessId}&businessType=${obj.businessType}&pageNo=${obj.pageNo}&pageSize=${obj.pageSize}`) export const getByBusinessIdList = (obj) => http.post(`/admin/approval/getByBusinessIdListPage?businessId=${obj.businessId}&businessType=${obj.businessType}&pageNo=${obj.pageNo}&pageSize=${obj.pageSize}`)
//审批中心查看详情
export const getApprovalResultByBusinessIdList = (obj) => http.post(`/admin/approval/getApprovalResultByBusinessIdList?businessId=${obj.businessId}&businessType=${obj.businessType}`)
//审核记录查看操作 //审核记录查看操作
export const getApprovalResultByApprovalIdList = (approvalId) => http.post(`/admin/approval/getApprovalResultByApprovalIdList?approvalId=${approvalId}`) export const getApprovalResultByApprovalIdList = (approvalId) => http.post(`/admin/approval/getApprovalResultByApprovalIdList?approvalId=${approvalId}`)
//恢复培训发生组织的数据 //恢复培训发生组织的数据

View File

@@ -415,14 +415,14 @@
<router-link to="/teacheropinion">意见</router-link> <router-link to="/teacheropinion">意见</router-link>
</a-menu-item> </a-menu-item>
</a-sub-menu> </a-sub-menu>
<a-sub-menu key="sub24" @titleClick="titleClick" v-if="checkMenu('instructorcertification')"> <a-sub-menu key="sub24" @titleClick="titleClick" v-if="checkMenu('lecturer')">
<template #icon> <template #icon>
<div class="imgBox"> <div class="imgBox">
<img style="width: 15px; height: 15px" src="../assets/images/navleft/project.png" /> <img style="width: 15px; height: 15px" src="../assets/images/navleft/project.png" />
</div> </div>
</template> </template>
<template #title>讲师管理</template> <template #title>讲师管理</template>
<a-menu-item key="sub24-1" v-if="checkMenu('instructorcertification')"> <a-menu-item key="sub24-1" v-if="checkMenu('lecturer')">
<span <span
:class="{ :class="{
circleActive: selectedKeys[0] === 'sub24-1' ? true : false, circleActive: selectedKeys[0] === 'sub24-1' ? true : false,

View File

@@ -68,7 +68,7 @@
</a-table> </a-table>
</div> </div>
<div style="margin-bottom: 100px"> <div style="margin-bottom: 100px">
<a-table v-if="threeList" :columns="columnsThree" :data-source="formData?.tableDataThree" :pagination="false"/> <a-table v-if="threeList" :columns="columnsThree" :loading="formData?.loadingThree" :data-source="formData?.tableDataThree" :pagination="false"/>
</div> </div>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
@@ -246,18 +246,28 @@ const columnsTwo = ref([
slots: { customRender: "action" }, slots: { customRender: "action" },
} }
]) ])
const approvalData = ref(null)
const threeList = ref(false) const threeList = ref(false)
const lookList = (record) => { const lookList = (record) => {
console.log(record,'resssssss') console.log(record,'resssssss')
threeList.value = true if(!threeList.value||record.approvalId!=approvalData.value){
api.getApprovalResultByApprovalIdList(record.approvalId).then(res=>{ threeList.value = true
if(res.data.code == 200){ approvalData.value = record.approvalId
formData.value.tableDataThree = res.data.data formData.value.loadingThree = true
} api.getApprovalResultByApprovalIdList(record.approvalId).then(res=>{
}).catch(err=>{ if(res.data.code == 200){
message.destroy() formData.value.tableDataThree = res.data.data
message.error(err.data.msg) }
}) formData.value.loadingThree = false
}).catch(err=>{
message.destroy()
formData.value.loadingThree = false
message.error(err.data.msg)
})
}else{
threeList.value = false
approvalData.value = null
}
} }
const visible = ref(false); const visible = ref(false);
watch(visible, (val)=>{ watch(visible, (val)=>{
@@ -288,7 +298,6 @@ const getTwoData = () => {
params.total = res.data.data.total params.total = res.data.data.total
} }
formData.value.loadingTwo = false formData.value.loadingTwo = false
console.log(formData.value.tableDataTwo,'xixixi')
}).catch(err=>{ }).catch(err=>{
message.destroy() message.destroy()
message.error(err.data.msg) message.error(err.data.msg)
@@ -358,7 +367,8 @@ function openDrawer() {
.impotergroupleader { .impotergroupleader {
.drawerMain { .drawerMain {
min-width: 600px; min-width: 600px;
margin: 0px 32px 0px 32px; margin:0;
padding: 0px 32px 0px 32px;
overflow-x: auto; overflow-x: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -379,6 +389,7 @@ function openDrawer() {
color: #333333; color: #333333;
line-height: 25px; line-height: 25px;
// margin-left: 24px; // margin-left: 24px;
margin: 0;
} }
} }
.content{ .content{

View File

@@ -131,7 +131,7 @@
/> />
</div> </div>
<span class="line"></span> <span class="line"></span>
<span>讲师费用详情</span> <span style="font-weight:600;">讲师费用详情</span>
<a-descriptions style="margin-top:16px" bordered :column="2" :contentStyle="rowCenter" :labelStyle="rowCenter"> <a-descriptions style="margin-top:16px" bordered :column="2" :contentStyle="rowCenter" :labelStyle="rowCenter">
<a-descriptions-item label="审批编号">{{formParam?.approvalNumber||'-'}}</a-descriptions-item> <a-descriptions-item label="审批编号">{{formParam?.approvalNumber||'-'}}</a-descriptions-item>
<a-descriptions-item label="培训发生组织">{{formParam?.trainOrgName||'-'}}</a-descriptions-item> <a-descriptions-item label="培训发生组织">{{formParam?.trainOrgName||'-'}}</a-descriptions-item>
@@ -141,8 +141,8 @@
<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> </a-descriptions>
<!-- <span>审批详情</span> --> <!-- <span>审批详情</span> -->
<span class="line" style="margin-top:12px;"></span> <span class="line" style="margin-top:15px;"></span>
<a-tabs v-model:activeKey="activeKey"> <a-tabs v-model:activeKey="activeKey" @change="tabsChange">
<a-tab-pane key="1" tab="讲师费列表"> <a-tab-pane key="1" tab="讲师费列表">
<div style="padding: 10px 0;"> <div style="padding: 10px 0;">
<div style="display: flex;margin-bottom: 20px;"> <div style="display: flex;margin-bottom: 20px;">
@@ -167,7 +167,7 @@
<a-tab-pane key="2" tab="讲师费审批记录" force-render> <a-tab-pane key="2" tab="讲师费审批记录" force-render>
<div style="padding-bottom:70px"> <div style="padding-bottom:70px">
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe" :columns="columnsExamineTwo" <a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe" :columns="columnsExamineTwo"
:data-source="tableDataExamineTwo" :loading="examinetableLoading" @expand="expandTable" :pagination="pagination"> :data-source="tableDataExamineTwo" :loading="tableDataExamineLoading" @expand="expandTable" :pagination="false">
</a-table> </a-table>
</div> </div>
</a-tab-pane> </a-tab-pane>
@@ -242,7 +242,7 @@
} from '@ant-design/icons-vue'; } from '@ant-design/icons-vue';
import ProjectManager from "@/components/project/ProjectManagerNew"; import ProjectManager from "@/components/project/ProjectManagerNew";
import {expenseBillList,queryById,queryExpnseByBillId ,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTrainOrg,isConfirm} from "../../api/lecturerFeeManagement"; import {expenseBillList,queryById,queryExpnseByBillId ,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTrainOrg,isConfirm} from "../../api/lecturerFeeManagement";
import { getTeacherSystemList } from "../../api/Lecturer"; import { getTeacherSystemList,getApprovalResultByBusinessIdList } from "../../api/Lecturer";
// lecturerFeeManagement // lecturerFeeManagement
// import {getProjSt} from "../../api/indexProjStu"; // import {getProjSt} from "../../api/indexProjStu";
// import AddTeacher from "../../components/drawers/project/AddTeacher" // import AddTeacher from "../../components/drawers/project/AddTeacher"
@@ -270,6 +270,8 @@
}) })
const router = useRouter() const router = useRouter()
const state = reactive({ const state = reactive({
tableDataExamineLoading: false,
tableDataExamineTwo: [],
tableDataParams:{ tableDataParams:{
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
@@ -632,11 +634,54 @@
} }
//表格内查看数据操作 //表格内查看数据操作
const handleLook = (record) => { const handleLook = (record) => {
state.activeKey = '1'
state.teachingdialog = true; state.teachingdialog = true;
state.id= record.id state.id= record.id
TeacherSystem() TeacherSystem()
gettableDataExamine() gettableDataExamine()
} }
const params = reactive({
pageNo: 1,
pageSize: 10,
total: 0,
businessType: 1,
businessId: '366'
})
const paginations = computed(() => ({
total: params.total,
showSizeChanger: true,
showQuickJumper:true,
current: params.pageNo,
pageSize: params.pageSize,
onChange: paginationChanges,
}));
const paginationChanges = (e,pageSize) => {
params.pageNo = e;
params.pageSize = pageSize
// getListData()
};
const tabsChange = (val) => {
if(val == 2){
getListData()
}
}
const getListData = () => {
state.tableDataExamineLoading = true
getApprovalResultByBusinessIdList({
businessType: 1,
businessId: state.id
}).then(res=>{
if(res.data.code == 200){
state.tableDataExamineTwo = res.data.data
// params.total = res.data.data.total
}
state.tableDataExamineLoading = false
}).catch(err=>{
message.destroy()
state.tableDataExamineLoading = false
message.error(err.data.msg)
})
}
const submit = (record) => { const submit = (record) => {
console.log(record,'record') console.log(record,'record')
dialog({ dialog({
@@ -712,7 +757,6 @@
} }
} }
const tableDataExamine = ref([]) const tableDataExamine = ref([])
const tableDataExamineTwo = ref([])
const gettableDataExamine = () => { const gettableDataExamine = () => {
state.examinetableLoading = true state.examinetableLoading = true
queryExpnseByBillId({ queryExpnseByBillId({
@@ -747,51 +791,66 @@
const columnsExamineTwo = ref([ const columnsExamineTwo = ref([
{ {
title: '审批层级 ', title: '审批层级 ',
dataIndex: 'name', dataIndex: 'levelName',
key: 'name', key: 'levelName',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
width: 120, width: 120,
}, },
{ {
title: '层级审批人 ', title: '层级审批人 ',
dataIndex: 'name', dataIndex: 'employeeNames',
key: 'name', key: 'employeeNames',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
width: 120, width: 120,
}, },
{ {
title: '操作 ', title: '操作 ',
dataIndex: 'name', dataIndex: 'approvalStatus',
key: 'name', key: 'approvalStatus',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
width: 120, width: 120,
customRender: ({text})=>{
switch (text) {
case -1:
return <span>未处理</span>;
case 3:
return <span>通过</span>;
case 4:
return <span>拒绝</span>;
default:
return <span>-</span>;
}
}
}, },
{ {
title: '审批人 ', title: '审批人 ',
dataIndex: 'name', dataIndex: 'employeeName',
key: 'name', key: 'employeeName',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
width: 120, width: 120,
}, },
{ {
title: '审批时间 ', title: '审批时间 ',
dataIndex: 'name', dataIndex: 'approvalTime',
key: 'name', key: 'approvalTime',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
width: 120, width: 120,
}, },
{ {
title: '审批建议 ', title: '审批建议 ',
dataIndex: 'name', dataIndex: 'approvalMsg',
key: 'name', key: 'approvalMsg',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
width: 120, width: 120,
customRender: ({text}) => {
return text||'-'
}
}, },
]) ])
//二级页面 //二级页面
@@ -978,13 +1037,14 @@
columnsExamineTwo, columnsExamineTwo,
tableData, tableData,
tableDataExamine, tableDataExamine,
tableDataExamineTwo,
seeDateChange, seeDateChange,
changePagination, changePagination,
addTeacher, addTeacher,
cancelTeachingDialog, cancelTeachingDialog,
handleLook, handleLook,
submit, submit,
getListData,
tabsChange,
withdraw, withdraw,
goDdit, goDdit,
cancel, cancel,
@@ -1000,6 +1060,8 @@
paginationChange, paginationChange,
searchTeacherFeeApprovalList, searchTeacherFeeApprovalList,
resetSearch, resetSearch,
paginations,
paginationChanges,
} }
}, },
}; };
@@ -1322,10 +1384,11 @@
.line { .line {
float: left; float: left;
width: 3px; width: 3px;
height: 25px; height: 17px;
background: #4ea6ff; background: #4ea6ff;
border-radius: 30%; border-radius: 30%;
margin-right: 5px; margin-right: 5px;
margin-top: 3px;
} }
//抽屉功能 //抽屉功能

View File

@@ -701,38 +701,61 @@ getAllLevelList().then((res) => {
const columnSee = ref([ const columnSee = ref([
{ {
title: '审批层级', title: '审批层级',
dataIndex: 'name', dataIndex: 'levelName',
key: 'name', key: 'levelName',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
}, },
{ {
title: '审批人 ', title: '审批人 ',
dataIndex: 'name', dataIndex: 'employeeNames',
key: 'name', key: 'employeeNames',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
}, },
{ {
title: '审批状态 ', title: '审批状态 ',
dataIndex: 'name', dataIndex: 'approvalStatus',
key: 'name', key: 'approvalStatus',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
customRender: ({text})=>{
switch (text) {
case 0:
return <span>待提交</span>;
case 1:
return <span>待审核</span>;
case 2:
return <span>审核中</span>;
case 3:
return <span>审核通过</span>;
case 4:
return <span>拒绝</span>;
case 5:
return <span>撤销中</span>;
case 6:
return <span>已撤销</span>;
default:
return <span>-</span>;
}
}
}, },
{ {
title: '审批时间 ', title: '审批时间 ',
dataIndex: 'name', dataIndex: 'approvalTime',
key: 'name', key: 'approvalTime',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
}, },
{ {
title: '备注 ', title: '备注 ',
dataIndex: 'name', dataIndex: 'approvalMsg',
key: 'name', key: 'approvalMsg',
ellipsis: true, ellipsis: true,
align: "center", align: "center",
customRender:({text})=>{
return text||'-'
}
}, },
]) ])
const columns = ref([ const columns = ref([