mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 01:36:47 +08:00
讲师管理bug
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
/>
|
||||
</div>
|
||||
<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-item label="审批编号">{{formParam?.approvalNumber||'-'}}</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>
|
||||
<!-- <span>审批详情</span> -->
|
||||
<span class="line" style="margin-top:12px;"></span>
|
||||
<a-tabs v-model:activeKey="activeKey">
|
||||
<span class="line" style="margin-top:15px;"></span>
|
||||
<a-tabs v-model:activeKey="activeKey" @change="tabsChange">
|
||||
<a-tab-pane key="1" tab="讲师费列表">
|
||||
<div style="padding: 10px 0;">
|
||||
<div style="display: flex;margin-bottom: 20px;">
|
||||
@@ -167,7 +167,7 @@
|
||||
<a-tab-pane key="2" tab="讲师费审批记录" force-render>
|
||||
<div style="padding-bottom:70px">
|
||||
<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>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
@@ -242,7 +242,7 @@
|
||||
} from '@ant-design/icons-vue';
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import {expenseBillList,queryById,queryExpnseByBillId ,updateTeacherFee,updateStatusSubmit,approveTeacherFee,getTrainOrg,isConfirm} from "../../api/lecturerFeeManagement";
|
||||
import { getTeacherSystemList } from "../../api/Lecturer";
|
||||
import { getTeacherSystemList,getApprovalResultByBusinessIdList } from "../../api/Lecturer";
|
||||
// lecturerFeeManagement
|
||||
// import {getProjSt} from "../../api/indexProjStu";
|
||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||
@@ -270,6 +270,8 @@
|
||||
})
|
||||
const router = useRouter()
|
||||
const state = reactive({
|
||||
tableDataExamineLoading: false,
|
||||
tableDataExamineTwo: [],
|
||||
tableDataParams:{
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
@@ -632,11 +634,54 @@
|
||||
}
|
||||
//表格内查看数据操作
|
||||
const handleLook = (record) => {
|
||||
state.activeKey = '1'
|
||||
state.teachingdialog = true;
|
||||
state.id= record.id
|
||||
TeacherSystem()
|
||||
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) => {
|
||||
console.log(record,'record')
|
||||
dialog({
|
||||
@@ -712,7 +757,6 @@
|
||||
}
|
||||
}
|
||||
const tableDataExamine = ref([])
|
||||
const tableDataExamineTwo = ref([])
|
||||
const gettableDataExamine = () => {
|
||||
state.examinetableLoading = true
|
||||
queryExpnseByBillId({
|
||||
@@ -747,51 +791,66 @@
|
||||
const columnsExamineTwo = ref([
|
||||
{
|
||||
title: '审批层级 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'levelName',
|
||||
key: 'levelName',
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
title: '层级审批人 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'employeeNames',
|
||||
key: 'employeeNames',
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
title: '操作 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'approvalStatus',
|
||||
key: 'approvalStatus',
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
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: '审批人 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'employeeName',
|
||||
key: 'employeeName',
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
title: '审批时间 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'approvalTime',
|
||||
key: 'approvalTime',
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
title: '审批建议 ',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
dataIndex: 'approvalMsg',
|
||||
key: 'approvalMsg',
|
||||
ellipsis: true,
|
||||
align: "center",
|
||||
width: 120,
|
||||
customRender: ({text}) => {
|
||||
return text||'-'
|
||||
}
|
||||
},
|
||||
])
|
||||
//二级页面
|
||||
@@ -978,13 +1037,14 @@
|
||||
columnsExamineTwo,
|
||||
tableData,
|
||||
tableDataExamine,
|
||||
tableDataExamineTwo,
|
||||
seeDateChange,
|
||||
changePagination,
|
||||
addTeacher,
|
||||
cancelTeachingDialog,
|
||||
handleLook,
|
||||
submit,
|
||||
getListData,
|
||||
tabsChange,
|
||||
withdraw,
|
||||
goDdit,
|
||||
cancel,
|
||||
@@ -1000,6 +1060,8 @@
|
||||
paginationChange,
|
||||
searchTeacherFeeApprovalList,
|
||||
resetSearch,
|
||||
paginations,
|
||||
paginationChanges,
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -1322,10 +1384,11 @@
|
||||
.line {
|
||||
float: left;
|
||||
width: 3px;
|
||||
height: 25px;
|
||||
height: 17px;
|
||||
background: #4ea6ff;
|
||||
border-radius: 30%;
|
||||
margin-right: 5px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
//抽屉功能
|
||||
|
||||
Reference in New Issue
Block a user