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:
@@ -141,7 +141,7 @@
|
|||||||
<template v-if="column.key === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
|
||||||
<a-button type="link" @click="() => handleModify(record, String(record.courseform))" v-if="record.createFrom == 1 && record.courseStatus == 0 ">编辑 </a-button>
|
<a-button type="link" @click="() => handleModify(record, String(record.courseform))" v-if="record.createFrom == 1 && record.courseStatus == 0 ">编辑 </a-button>
|
||||||
<a-button type="link" v-if="record.createFrom == 1 &&record.isSuperPermission==='true'" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
<a-button type="link" v-if="record.createFrom == 1 &&record.isSuperPermission==='true'" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||||
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
<!-- <a-button type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button> -->
|
||||||
</a-space>
|
</a-space>
|
||||||
@@ -165,7 +165,7 @@
|
|||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="讲师名称" name="name">
|
<a-form-item label="讲师名称" name="name">
|
||||||
<SearchTeacher @tlevel="tlevelChange" v-model:value="formParam.name" v-model:lable="formParam.orgNames"
|
<SearchTeacher @tlevel="tlevelChange" v-model:value="formParam.name" v-model:lable="formParam.orgNames" v-model:id="formParam.teacherId"
|
||||||
v-model:system="tSystemNames" v-model:level="formParam.tlevelId"></SearchTeacher>
|
v-model:system="tSystemNames" v-model:level="formParam.tlevelId"></SearchTeacher>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -233,6 +233,14 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
<!-- 授课日期 teachingDate 开课状态 courseStatus -->
|
<!-- 授课日期 teachingDate 开课状态 courseStatus -->
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
|
<a-col :span="12">
|
||||||
|
<a-form-item label="课程归属组织" name="sourceBelongId">
|
||||||
|
<OrgClass
|
||||||
|
v-model:value="formParam.sourceBelongId"
|
||||||
|
v-model:name="formParam.sourceBelongFullName"
|
||||||
|
></OrgClass>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="授课/课程日期 :" name="teachingDate">
|
<a-form-item label="授课/课程日期 :" name="teachingDate">
|
||||||
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm" :show-time="{ format: 'HH:mm' }"
|
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm" :show-time="{ format: 'HH:mm' }"
|
||||||
@@ -240,6 +248,9 @@
|
|||||||
placeholder="请选择课程日期" />
|
placeholder="请选择课程日期" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- 授课时长 teaching 评分 score-->
|
||||||
|
<a-row :gutter="16">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="开课状态">
|
<a-form-item label="开课状态">
|
||||||
<a-radio-group v-model:value="formParam.courseStatus" class="draitem">
|
<a-radio-group v-model:value="formParam.courseStatus" class="draitem">
|
||||||
@@ -248,9 +259,6 @@
|
|||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
|
||||||
<!-- 授课时长 teaching 评分 score-->
|
|
||||||
<a-row :gutter="16">
|
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="授课时长" name="teaching">
|
<a-form-item label="授课时长" name="teaching">
|
||||||
<a-input v-model:value="formParam.teaching" style="width:80%; height: 40px; border-radius: 8px ; "
|
<a-input v-model:value="formParam.teaching" style="width:80%; height: 40px; border-radius: 8px ; "
|
||||||
@@ -263,6 +271,9 @@
|
|||||||
<span style="margin-left: 5px ;" v-if="formParam.teaching == null">0.00小时</span>
|
<span style="margin-left: 5px ;" v-if="formParam.teaching == null">0.00小时</span>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- 参训人数 studys-->
|
||||||
|
<a-row :gutter="16">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="评分" name="score">
|
<a-form-item label="评分" name="score">
|
||||||
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
|
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
|
||||||
@@ -271,10 +282,7 @@
|
|||||||
style="width:100%; height: 40px; border-radius: 8px ; " />
|
style="width:100%; height: 40px; border-radius: 8px ; " />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
<a-col :span="12">
|
||||||
<!-- 参训人数 studys-->
|
|
||||||
<a-row :gutter="16">
|
|
||||||
<a-col :span="24">
|
|
||||||
<a-form-item label="参训人数" name="studys">
|
<a-form-item label="参训人数" name="studys">
|
||||||
<a-input v-model:value="formParam.studys" class="draitem" placeholder="0 " :maxLength="8"
|
<a-input v-model:value="formParam.studys" class="draitem" placeholder="0 " :maxLength="8"
|
||||||
@blur="clearstudysNumber" allowClear showSearch>
|
@blur="clearstudysNumber" allowClear showSearch>
|
||||||
@@ -420,6 +428,7 @@ import ImportWork from "../../components/lecturer/ImportWork.vue";
|
|||||||
import { fileUp } from "../../api/Lecturer";
|
import { fileUp } from "../../api/Lecturer";
|
||||||
import SearchTeacher from "@/components/project/SearchTeacher";
|
import SearchTeacher from "@/components/project/SearchTeacher";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
export default {
|
export default {
|
||||||
name: "InsideTeaching",
|
name: "InsideTeaching",
|
||||||
components: {
|
components: {
|
||||||
@@ -436,6 +445,7 @@ export default {
|
|||||||
UploadOutlined,//图标--导出
|
UploadOutlined,//图标--导出
|
||||||
DownloadOutlined,//图标-导入
|
DownloadOutlined,//图标-导入
|
||||||
FolderAddOutlined,//图标--新增
|
FolderAddOutlined,//图标--新增
|
||||||
|
OrgClass,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -485,7 +495,9 @@ export default {
|
|||||||
teaching: null,
|
teaching: null,
|
||||||
name:null,
|
name:null,
|
||||||
teacherName: null,
|
teacherName: null,
|
||||||
teachingDate:null
|
teachingDate:null,
|
||||||
|
sourceBelongId: null,
|
||||||
|
sourceBelongFullName:null,
|
||||||
},
|
},
|
||||||
startTime:null,
|
startTime:null,
|
||||||
searchParam:
|
searchParam:
|
||||||
@@ -789,6 +801,7 @@ export default {
|
|||||||
// tsystemName: [{ required: true, message: '',log:'讲师体系不能为空' }],
|
// tsystemName: [{ required: true, message: '',log:'讲师体系不能为空' }],
|
||||||
courseTypeId: [{ required: true, message: '',log:'内容分类不能为空' }],
|
courseTypeId: [{ required: true, message: '',log:'内容分类不能为空' }],
|
||||||
courseName: [{ required: true, message: '',log:'课程名称不能为空' }],
|
courseName: [{ required: true, message: '',log:'课程名称不能为空' }],
|
||||||
|
sourceBelongId: [{ required: true, message: '',log:'课程归属组织不能为空' }],
|
||||||
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
|
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
|
||||||
teaching: [{ required: true, message:'',log: '授课时长不能为空' }],
|
teaching: [{ required: true, message:'',log: '授课时长不能为空' }],
|
||||||
courseStatus: [{ required: true, message: '',log:'开课状态不能为空' }],
|
courseStatus: [{ required: true, message: '',log:'开课状态不能为空' }],
|
||||||
@@ -1010,6 +1023,8 @@ export default {
|
|||||||
score: null,
|
score: null,
|
||||||
type: null,
|
type: null,
|
||||||
remark: null,
|
remark: null,
|
||||||
|
sourceBelongId:null,
|
||||||
|
sourceBelongFullName:null,
|
||||||
offcourseId: null,
|
offcourseId: null,
|
||||||
createFrom: null,
|
createFrom: null,
|
||||||
teachingDate:null,
|
teachingDate:null,
|
||||||
|
|||||||
@@ -15,12 +15,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="desc">
|
<div class="desc">
|
||||||
<a-descriptions :column="2" bordered>
|
<a-descriptions :column="2" bordered>
|
||||||
<a-descriptions-item label="培训发生组织编号">{{formData?.code||'-'}}</a-descriptions-item>
|
<a-descriptions-item label="审批编号">{{formData?.code||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="培训发生组名称">{{formData?.trainOrgName||'-'}}</a-descriptions-item>
|
<a-descriptions-item label="培训发生组名称">{{formData?.trainOrgName||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="是否为根节点">{{formData?.isParent==1?'否':'是'}}</a-descriptions-item>
|
<a-descriptions-item label="提交时间">{{formData?.summaryTime||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="组织担当">{{formData?.act||'-'}}</a-descriptions-item>
|
<a-descriptions-item label="汇总金额">{{formData?.summaryTotal||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="状态">
|
<a-descriptions-item label="状态">
|
||||||
{{{0:'待确认' ,1:'待提交' ,2:'审核中', 3:'审核通过', 4:'审核拒绝'}[formData?.status]}}
|
{{{0:'待确认' ,1:'待提交' ,2:'审核中', 3:'已完成', 4:'审核拒绝',5:'待提交'}[formData?.status]}}
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
</a-descriptions>
|
</a-descriptions>
|
||||||
</div>
|
</div>
|
||||||
@@ -613,7 +613,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
state.teacherdialog = true
|
state.teacherdialog = true
|
||||||
getTeacherFeeDetail({id : record.id||168}).then((res) => {
|
getTeacherFeeDetail({id : record.id}).then((res) => {
|
||||||
state.formParam=res.data.data
|
state.formParam=res.data.data
|
||||||
state.formParam.courseType = String(res.data.data.courseType)
|
state.formParam.courseType = String(res.data.data.courseType)
|
||||||
state.formParam.levelPay = String(res.data.data.levelPay)
|
state.formParam.levelPay = String(res.data.data.levelPay)
|
||||||
@@ -637,7 +637,7 @@ export default {
|
|||||||
content: '确定要移除此条数据吗?',
|
content: '确定要移除此条数据吗?',
|
||||||
ok: () => {
|
ok: () => {
|
||||||
withdrawRecord({
|
withdrawRecord({
|
||||||
billId: 0,
|
billId: route.query.id,
|
||||||
ids: [record.id]
|
ids: [record.id]
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
message.success('移除成功')
|
message.success('移除成功')
|
||||||
|
|||||||
@@ -125,12 +125,12 @@
|
|||||||
<span class="line"></span>
|
<span class="line"></span>
|
||||||
<span>讲师费用详情</span>
|
<span>讲师费用详情</span>
|
||||||
<a-descriptions bordered :column="2" :contentStyle="rowCenter" :labelStyle="rowCenter">
|
<a-descriptions bordered :column="2" :contentStyle="rowCenter" :labelStyle="rowCenter">
|
||||||
<a-descriptions-item label="审批编号">{{formParam?.teacherName}}</a-descriptions-item>
|
<a-descriptions-item label="审批编号">{{formParam?.teacherName||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="培训发生组织">{{formParam?.trainOrgName}}</a-descriptions-item>
|
<a-descriptions-item label="培训发生组织">{{formParam?.trainOrgName||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item v-if="activeKey==2" label="汇总周期" >{{formParam?.summaryDate}}</a-descriptions-item>
|
<a-descriptions-item v-if="activeKey==2" label="汇总周期" >{{formParam?.summaryDate||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="提交时间">{{formParam?.summaryTime}}</a-descriptions-item>
|
<a-descriptions-item label="提交时间">{{formParam?.summaryTime||'-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="汇总金额">{{formParam?.summaryTotal}}</a-descriptions-item>
|
<a-descriptions-item label="汇总金额">{{formParam?.summaryTotal||'-'}}</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>
|
</a-descriptions>
|
||||||
<!-- <span>审批详情</span> -->
|
<!-- <span>审批详情</span> -->
|
||||||
<span class="line" style="margin-top:12px;"></span>
|
<span class="line" style="margin-top:12px;"></span>
|
||||||
@@ -464,7 +464,7 @@
|
|||||||
case 4:
|
case 4:
|
||||||
return "审核拒绝"
|
return "审核拒绝"
|
||||||
case 5:
|
case 5:
|
||||||
return "撤回"
|
return "待提交"
|
||||||
default:
|
default:
|
||||||
return "-"
|
return "-"
|
||||||
}
|
}
|
||||||
@@ -687,6 +687,7 @@
|
|||||||
}
|
}
|
||||||
const tableDataExamine = ref([])
|
const tableDataExamine = ref([])
|
||||||
const gettableDataExamine = () => {
|
const gettableDataExamine = () => {
|
||||||
|
state.examinetableLoading = true
|
||||||
queryExpnseByBillId({
|
queryExpnseByBillId({
|
||||||
billId : state.id,
|
billId : state.id,
|
||||||
pageNo: state.tableDataParams.pageNo,
|
pageNo: state.tableDataParams.pageNo,
|
||||||
@@ -697,6 +698,10 @@
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
tableDataExamine.value = res.data.data.records
|
tableDataExamine.value = res.data.data.records
|
||||||
state.tableDataParams.total = Number(res.data.data.total);
|
state.tableDataParams.total = Number(res.data.data.total);
|
||||||
|
state.examinetableLoading = false
|
||||||
|
}).catch(err=>{
|
||||||
|
state.examinetableLoading = false
|
||||||
|
message.error(err.data.msg)
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
const pagination = computed(() => ({
|
const pagination = computed(() => ({
|
||||||
|
|||||||
@@ -410,7 +410,7 @@
|
|||||||
<a-descriptions-item label="计划费用 ">{{formParam.expense || '-'}}</a-descriptions-item>
|
<a-descriptions-item label="计划费用 ">{{formParam.expense || '-'}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="应发费用 ">{{formParam.payableExpense || '-'}}</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="费用发放时间">{{formParam.payableExpenseTime || '-'}}</a-descriptions-item> -->
|
||||||
<a-descriptions-item label="状态">{{formParam.status=="0"?'待确认' :formParam.status=="1"?'待提交':formParam.status== "2" ?'审核中':formParam.status== "3"?'审核通过':'-'}}</a-descriptions-item>
|
<a-descriptions-item label="状态">{{{0:'待确认' ,1:'待提交' ,2:'审核中', 3:'已完成', 4:'拒绝',5:'待提交'}[formParam?.status]}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="备注 ">{{formParam.remark || '-'}}</a-descriptions-item>
|
<a-descriptions-item label="备注 ">{{formParam.remark || '-'}}</a-descriptions-item>
|
||||||
</a-descriptions>
|
</a-descriptions>
|
||||||
<div style="margin-bottom: 20px;">
|
<div style="margin-bottom: 20px;">
|
||||||
@@ -671,6 +671,8 @@ getAllLevelList().then((res) => {
|
|||||||
{ value:"1", label: "待提交", },
|
{ value:"1", label: "待提交", },
|
||||||
{ value:"2", label: "审核中", },
|
{ value:"2", label: "审核中", },
|
||||||
{ value:"3", label: "审核通过", },
|
{ value:"3", label: "审核通过", },
|
||||||
|
{ value:"4", label: "审核拒绝", },
|
||||||
|
{ value:"5", label: "待提交", },
|
||||||
])
|
])
|
||||||
watch(()=>state.formParam.name,(val)=>{
|
watch(()=>state.formParam.name,(val)=>{
|
||||||
state.formParam.userNo = val?.split('/')[1]
|
state.formParam.userNo = val?.split('/')[1]
|
||||||
@@ -851,6 +853,8 @@ getAllLevelList().then((res) => {
|
|||||||
"1": "待提交",
|
"1": "待提交",
|
||||||
"2": "审核中",
|
"2": "审核中",
|
||||||
"3": "审核通过",
|
"3": "审核通过",
|
||||||
|
'4': '审核拒绝',
|
||||||
|
'5': '待提交',
|
||||||
}[value.record.status + ""] || ""
|
}[value.record.status + ""] || ""
|
||||||
: "-"}
|
: "-"}
|
||||||
</div>
|
</div>
|
||||||
@@ -1437,6 +1441,8 @@ const column = ref([
|
|||||||
"1": "待提交",
|
"1": "待提交",
|
||||||
"2": "审核中",
|
"2": "审核中",
|
||||||
"3": "审核通过",
|
"3": "审核通过",
|
||||||
|
'4': '审核拒绝',
|
||||||
|
'5': '待提交',
|
||||||
}[value.record.status + ""] || ""
|
}[value.record.status + ""] || ""
|
||||||
: "-"}
|
: "-"}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user