mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
Merge branch 'zcwy-teacher-manage' into master_1202
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div style="margin-bottom: 20px;font-size: 18px;font-weight: 700;">选择讲师费汇总:<span style="color:red;margin-left:20px;">{{payableExpense.toFixed(2)||0}}元</span></div>
|
<div style="margin-bottom: 20px;font-size: 18px;font-weight: 700;">选择讲师费汇总:<span style="color:red;margin-left:20px;">{{expense.toFixed(2)||0}}元</span></div>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<a-input @pressEnter="searchData(true)" style="border-radius: 8px;width:240px;height: 40px;" v-model:value="nameUserNo" placeholder="请输入工号/讲师名称进行搜索" allowClear />
|
<a-input @pressEnter="searchData(true)" style="border-radius: 8px;width:240px;height: 40px;" v-model:value="nameUserNo" placeholder="请输入工号/讲师名称进行搜索" allowClear />
|
||||||
@@ -134,14 +134,14 @@ const addList = (item) => {
|
|||||||
selectedRowKeys.value.push(item.id)
|
selectedRowKeys.value.push(item.id)
|
||||||
selectsData.value.push(item)
|
selectsData.value.push(item)
|
||||||
}
|
}
|
||||||
const payableExpense = ref(0)
|
const expense = ref(0)
|
||||||
watch(()=>selectsData.value.length,(val)=>{
|
watch(()=>selectsData.value.length,(val)=>{
|
||||||
if(val){
|
if(val){
|
||||||
payableExpense.value = selectsData.value.reduce((a,b)=>{
|
expense.value = selectsData.value.reduce((a,b)=>{
|
||||||
return Number(a) + Number(b.payableExpense)
|
return Number(a) + Number(b.expense)
|
||||||
},0)
|
},0)
|
||||||
}else{
|
}else{
|
||||||
payableExpense.value = 0
|
expense.value = 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const removeList = (item) => {
|
const removeList = (item) => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<a-drawer :visible="visible" class="largeDrawerInside" placement="right" :closable="false" :maskClosable="false"
|
<a-drawer :visible="visible" class="largeDrawerInside" placement="right" :closable="false"
|
||||||
width="80%" :title="false">
|
width="80%" :title="false" @close="handleBack">
|
||||||
<!-- 外部讲师查看详情 -->
|
<!-- 外部讲师查看详情 -->
|
||||||
<div class="LookExternalLecturer">
|
<div class="LookExternalLecturer">
|
||||||
<div class="header" style="margin-top: -24px;">
|
<div class="header" style="margin-top: -24px;">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-drawer class="largeDrawerInside" :visible="visible" placement="right" :closable="false" :maskClosable="false"
|
<a-drawer class="largeDrawerInside" :visible="visible" placement="right" :closable="false"
|
||||||
width="80%" :title="false">
|
width="80%" :title="false" @close="handleClose">
|
||||||
<!-- 内部讲师查看详情 -->
|
<!-- 内部讲师查看详情 -->
|
||||||
<div class="LookInsideLecturer">
|
<div class="LookInsideLecturer">
|
||||||
<div class="header" style="margin-top: -24px;margin-left: -24px;">
|
<div class="header" style="margin-top: -24px;margin-left: -24px;">
|
||||||
|
|||||||
@@ -158,6 +158,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)
|
||||||
orgId.value = l.orgId
|
orgId.value = l.orgId
|
||||||
payrollPlaceCode.value = l.payrollPlaceCode
|
payrollPlaceCode.value = l.payrollPlaceCode
|
||||||
payrollPlaceName.value = l.payrollPlaceName
|
payrollPlaceName.value = l.payrollPlaceName
|
||||||
@@ -166,7 +167,7 @@ const handleChange = (e,l) => {
|
|||||||
neworgName.value= neworgName.value[ neworgName.value.length-1]
|
neworgName.value= neworgName.value[ neworgName.value.length-1]
|
||||||
}
|
}
|
||||||
changeValue.value = l
|
changeValue.value = l
|
||||||
emit('tlevel',l)
|
// emit('tlevel',l)
|
||||||
emit('tlevel',changeValue.value)
|
emit('tlevel',changeValue.value)
|
||||||
// selectData.value = teacherName.value
|
// selectData.value = teacherName.value
|
||||||
emit('update:value',selectData.value)
|
emit('update:value',selectData.value)
|
||||||
@@ -379,7 +380,7 @@ const notChange = () => {
|
|||||||
payrollPlaceName.value = ''
|
payrollPlaceName.value = ''
|
||||||
}
|
}
|
||||||
const loadingChange = ref(false)
|
const loadingChange = ref(false)
|
||||||
watch(()=>teacherId.value,(val)=>{
|
const byUserId = (val)=>{
|
||||||
if(val){
|
if(val){
|
||||||
loadingChange.value = true
|
loadingChange.value = true
|
||||||
getSystemInfoByUserId(teacherId.value).then(res=>{
|
getSystemInfoByUserId(teacherId.value).then(res=>{
|
||||||
@@ -397,6 +398,7 @@ watch(()=>teacherId.value,(val)=>{
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
emit('update:system',systemName.value)
|
emit('update:system',systemName.value)
|
||||||
|
emit('byUserIdData',res.data?.data)
|
||||||
}
|
}
|
||||||
loadingChange.value = false
|
loadingChange.value = false
|
||||||
// emit('update:system',systemName.value)
|
// emit('update:system',systemName.value)
|
||||||
@@ -405,7 +407,7 @@ watch(()=>teacherId.value,(val)=>{
|
|||||||
loadingChange.value = false
|
loadingChange.value = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
const changeOut = () => {
|
const changeOut = () => {
|
||||||
if(!teacherName.value){
|
if(!teacherName.value){
|
||||||
message.error('请选择讲师')
|
message.error('请选择讲师')
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
class="drawerStyle impotergroupleader"
|
class="drawerStyle impotergroupleader"
|
||||||
placement="right"
|
placement="right"
|
||||||
width="80%"
|
width="80%"
|
||||||
|
@close="closeDrawer"
|
||||||
>
|
>
|
||||||
<div class="drawerMain">
|
<div class="drawerMain">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
|||||||
@@ -105,7 +105,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">编辑</a-button>
|
||||||
<a-button v-if="record.isSuperPermission==='true'" type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
<a-button v-if="record.isSuperPermission==='true'" type="link" @click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -204,17 +204,14 @@
|
|||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<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">
|
||||||
<a-radio :value="'0'">未开课</a-radio>
|
<a-radio :value="'0'">未开课</a-radio>
|
||||||
<a-radio :value="'1'">已开课</a-radio>
|
<a-radio :value="'1'">已开课</a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col> -->
|
||||||
</a-row>
|
|
||||||
<!-- 授课日期 teachingDate 授课时长defaultTeachingTime-->
|
|
||||||
<a-row :gutter="16">
|
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item name="teachingDate">
|
<a-form-item name="teachingDate">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
@@ -229,6 +226,10 @@
|
|||||||
placeholder="请选择课程日期" />
|
placeholder="请选择课程日期" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- 授课日期 teachingDate 授课时长defaultTeachingTime-->
|
||||||
|
<a-row :gutter="16">
|
||||||
|
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item name="teaching">
|
<a-form-item name="teaching">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
@@ -248,9 +249,6 @@
|
|||||||
<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评分 score-->
|
|
||||||
<a-row :gutter="16">
|
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item name="studys">
|
<a-form-item name="studys">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
@@ -266,6 +264,10 @@
|
|||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<!-- 参训人数 studys评分 score-->
|
||||||
|
<a-row :gutter="16">
|
||||||
|
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item name="score">
|
<a-form-item name="score">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
@@ -312,7 +314,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<!-- 查看授课记录 -->
|
<!-- 查看授课记录 -->
|
||||||
<a-drawer class="largeDrawerInside" v-model:visible="teachingdialog" placement="right" :maskClosable="false" :closable="false"
|
<a-drawer class="largeDrawerInside" v-model:visible="teachingdialog" placement="right" :maskClosable="true" :closable="false"
|
||||||
width="60%" :title="false">
|
width="60%" :title="false">
|
||||||
<div style="padding:24px;">
|
<div style="padding:24px;">
|
||||||
<div class="headers" style="margin-top:-24px;">
|
<div class="headers" style="margin-top:-24px;">
|
||||||
|
|||||||
@@ -799,7 +799,7 @@ export default {
|
|||||||
dataIndex: 'tsystemName',
|
dataIndex: 'tsystemName',
|
||||||
key: 'tsystemName',
|
key: 'tsystemName',
|
||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 120,
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '级别 ',
|
title: '级别 ',
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
<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))"
|
<a-button type="link" @click="() => handleModify(record, String(record.courseform))"
|
||||||
v-if="record.createFrom == 1 && record.courseStatus == 0">编辑 </a-button>
|
v-if="record.createFrom == 1">编辑 </a-button>
|
||||||
<a-button type="link" v-if="record.createFrom == 1 && record.isSuperPermission === 'true'"
|
<a-button type="link" v-if="record.createFrom == 1 && record.isSuperPermission === 'true'"
|
||||||
@click="() => deleteModal(record, String(record.courseform))">删除</a-button>
|
@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> -->
|
||||||
@@ -299,14 +299,14 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
<!-- 授课时长 teaching 评分 score-->
|
<!-- 授课时长 teaching 评分 score-->
|
||||||
<a-row :gutter="16">
|
<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">
|
||||||
<a-radio :value="'0'">未开课</a-radio>
|
<a-radio :value="'0'">未开课</a-radio>
|
||||||
<a-radio :value="'1'">已开课</a-radio>
|
<a-radio :value="'1'">已开课</a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col> -->
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item name="teaching">
|
<a-form-item name="teaching">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
@@ -325,10 +325,6 @@
|
|||||||
<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 name="score">
|
<a-form-item name="score">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
@@ -345,6 +341,10 @@
|
|||||||
style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" />
|
style="width:100%; height: 40px; border-radius: 8px ; " placeholder="请输入评分" />
|
||||||
</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 name="studys">
|
<a-form-item name="studys">
|
||||||
<template v-slot:label>
|
<template v-slot:label>
|
||||||
@@ -389,7 +389,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<!--查看授课详情 -->
|
<!--查看授课详情 -->
|
||||||
<a-drawer class="largeDrawerInside" v-model:visible="teachingdialog" :closable="false" placement="right" :maskClosable="false"
|
<a-drawer class="largeDrawerInside" v-model:visible="teachingdialog" :closable="false" placement="right" :maskClosable="true"
|
||||||
width="60%" :title="false">
|
width="60%" :title="false">
|
||||||
<div style="padding:24px;">
|
<div style="padding:24px;">
|
||||||
<div class="headers" style="margin-top:-24px;">
|
<div class="headers" style="margin-top:-24px;">
|
||||||
@@ -756,7 +756,7 @@ export default {
|
|||||||
dataIndex: 'tsystemName',
|
dataIndex: 'tsystemName',
|
||||||
key: 'tsystemName',
|
key: 'tsystemName',
|
||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 120,
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '培训发生组织 ',
|
title: '培训发生组织 ',
|
||||||
@@ -944,7 +944,7 @@ export default {
|
|||||||
trainOrgId: [{ required: true, message: '', log: '培训发生组织不能为空' }],
|
trainOrgId: [{ 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: '开课状态不能为空' }],
|
||||||
score: [{ required: true, message: '', log: '评分不能为空' }],
|
score: [{ required: true, message: '', log: '评分不能为空' }],
|
||||||
studys: [{ required: true, message: '', log: '参训人数不能为空' }],
|
studys: [{ required: true, message: '', log: '参训人数不能为空' }],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -837,6 +837,7 @@ export default {
|
|||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
message.success('移除成功')
|
message.success('移除成功')
|
||||||
search()
|
search()
|
||||||
|
state.formData.summaryTotal = Number(state.formData.summaryTotal) - Number(record.expense)
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
message.error(err.msg)
|
message.error(err.msg)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
<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>
|
||||||
<!-- :disabled="record.createFrom==1 ?false :true" -->
|
<!-- :disabled="record.createFrom==1 ?false :true" -->
|
||||||
<a-button type="link" v-if="record.status != 2&&record.status!=3" @click="() => handleModify(record, String(record.courseform))">编辑</a-button>
|
<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 :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="handleOperate(record)">撤回</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> -->
|
||||||
@@ -180,7 +180,7 @@
|
|||||||
/>
|
/>
|
||||||
讲师名称
|
讲师名称
|
||||||
</template>
|
</template>
|
||||||
<SearchTeacher :disabled="!!id" @tlevel="tlevelChange" v-model:id="formParam.teacherId" v-model:value="formParam.name" v-model:orgId="formParam.orgId" v-model:lable="formParam.orgNames" v-model:user="formParam.userNo"
|
<SearchTeacher :disabled="!!id" @byUserIdData="byUserIdData" @tlevel="tlevelChange" v-model:id="formParam.teacherId" v-model:value="formParam.name" v-model:orgId="formParam.orgId" v-model:lable="formParam.orgNames" v-model:user="formParam.userNo"
|
||||||
v-model:system="tSystemNames" v-model:payrollPlaceCode="formParam.payrollPlaceId"
|
v-model:system="tSystemNames" v-model:payrollPlaceCode="formParam.payrollPlaceId"
|
||||||
v-model:payrollPlaceName="formParam.payrollPlace" ></SearchTeacher>
|
v-model:payrollPlaceName="formParam.payrollPlace" ></SearchTeacher>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -912,7 +912,7 @@ getAllLevelList().then((res) => {
|
|||||||
dataIndex: 'trainOrgName',
|
dataIndex: 'trainOrgName',
|
||||||
key: 'trainOrgName',
|
key: 'trainOrgName',
|
||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 120,
|
width: 200,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -1510,7 +1510,8 @@ getAllLevelList().then((res) => {
|
|||||||
state.allFeedialog=true
|
state.allFeedialog=true
|
||||||
}
|
}
|
||||||
const visibleAll = (val) => {
|
const visibleAll = (val) => {
|
||||||
state.allFeedialog = val
|
state.allFeedialog = val
|
||||||
|
searchSubmit()
|
||||||
}
|
}
|
||||||
const selectedRowKey = (val) => {
|
const selectedRowKey = (val) => {
|
||||||
state.selectsIds = val?.join(',');
|
state.selectsIds = val?.join(',');
|
||||||
@@ -1708,12 +1709,19 @@ const column = ref([
|
|||||||
|
|
||||||
])
|
])
|
||||||
const tlevelChange = (e) => {
|
const tlevelChange = (e) => {
|
||||||
console.log(e,'eeeee')
|
|
||||||
state.formParam.tlevelName = e?.tlevelName
|
state.formParam.tlevelName = e?.tlevelName
|
||||||
state.formParam.tlevelId = e?.tlevelId
|
state.formParam.tlevelId = e?.tlevelId
|
||||||
// state.formParam.payrollPlace = e?.salaryName
|
// state.formParam.payrollPlace = e?.salaryName
|
||||||
// state.formParam.payrollPlaceId = e?.salaryId
|
// state.formParam.payrollPlaceId = e?.salaryId
|
||||||
state.formParam.levelPay = e?.levelPay
|
// state.formParam.levelPay = e?.levelPay
|
||||||
|
}
|
||||||
|
const byUserIdData = (e) => {
|
||||||
|
e?.levelVoList.some(item=>{
|
||||||
|
if(item.id == e?.levelId){
|
||||||
|
state.formParam.levelPay = item.levelPay
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
//导出功能
|
//导出功能
|
||||||
const handleExport = ()=>{
|
const handleExport = ()=>{
|
||||||
@@ -1817,6 +1825,7 @@ const column = ref([
|
|||||||
column,
|
column,
|
||||||
tableDatas,
|
tableDatas,
|
||||||
tlevelChange,
|
tlevelChange,
|
||||||
|
byUserIdData,
|
||||||
validateField,
|
validateField,
|
||||||
clearstudysNumber,
|
clearstudysNumber,
|
||||||
clearscoreNumber,
|
clearscoreNumber,
|
||||||
|
|||||||
@@ -168,6 +168,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
|
<MonthlyStatistics v-model:visible="opendrawer" :id="drawerId" ></MonthlyStatistics>
|
||||||
</template>
|
</template>
|
||||||
<script lang="jsx">
|
<script lang="jsx">
|
||||||
import { reactive, toRefs, ref, watch } from "vue";
|
import { reactive, toRefs, ref, watch } from "vue";
|
||||||
@@ -180,14 +181,18 @@ import { queryTeacherFeeMonthly, getTeacherFeeDetailListByTeacherNo, getTeacher
|
|||||||
;
|
;
|
||||||
import {expenseSummaryList,getTrainOrg,CreateMonthSummary} from "../../api/lecturerFeeManagement";
|
import {expenseSummaryList,getTrainOrg,CreateMonthSummary} from "../../api/lecturerFeeManagement";
|
||||||
import dialog from '@/utils/dialog'
|
import dialog from '@/utils/dialog'
|
||||||
|
import MonthlyStatistics from './MonthlyStatistics'
|
||||||
export default {
|
export default {
|
||||||
name: "LecturerFeeStatistics",
|
name: "LecturerFeeStatistics",
|
||||||
components: {
|
components: {
|
||||||
|
MonthlyStatistics,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
opendrawer: false,
|
||||||
|
drawerId: '',
|
||||||
summaryDate: null,
|
summaryDate: null,
|
||||||
resbgTxt: null,
|
resbgTxt: null,
|
||||||
tableDataTotal: -1,//table列表总条数,
|
tableDataTotal: -1,//table列表总条数,
|
||||||
@@ -235,7 +240,7 @@ export default {
|
|||||||
key: 'trainOrgId',
|
key: 'trainOrgId',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
width:200,
|
width:'100px',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '资源归属 ',
|
title: '资源归属 ',
|
||||||
@@ -243,7 +248,7 @@ export default {
|
|||||||
key: 'trainOrgName',
|
key: 'trainOrgName',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 200,
|
width: '200px',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '汇总周期 ',
|
title: '汇总周期 ',
|
||||||
@@ -251,7 +256,7 @@ export default {
|
|||||||
key: 'summaryDate',
|
key: 'summaryDate',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
width:200
|
width:'60px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '汇总日期 ',
|
title: '汇总日期 ',
|
||||||
@@ -259,7 +264,7 @@ export default {
|
|||||||
key: 'summaryTime',
|
key: 'summaryTime',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 200,
|
width: '88px',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '汇总金额 ',
|
title: '汇总金额 ',
|
||||||
@@ -267,16 +272,16 @@ export default {
|
|||||||
key: 'summaryTotal',
|
key: 'summaryTotal',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 200,
|
width: '60px',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作 ',
|
title: '操作 ',
|
||||||
dataIndex: 'operation',
|
dataIndex: 'operation',
|
||||||
key: 'operation',
|
key: 'operation',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "right",
|
align: "center",
|
||||||
fixed: "right",
|
fixed: "right",
|
||||||
width: 120,
|
width: '60px',
|
||||||
scopedSlots: { customRender: "action" },
|
scopedSlots: { customRender: "action" },
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
@@ -424,9 +429,11 @@ export default {
|
|||||||
}
|
}
|
||||||
//表格内查看数据操作
|
//表格内查看数据操作
|
||||||
const handleLook = (record) => {
|
const handleLook = (record) => {
|
||||||
let id = record.id
|
// let id = record.id
|
||||||
const trainOrgId = record.trainOrgId
|
// const trainOrgId = record.trainOrgId
|
||||||
router.push({ path: '/MonthlyStatistics', query: { id,trainOrgId,name:'' } })
|
state.opendrawer = true
|
||||||
|
state.drawerId = record.id
|
||||||
|
// router.push({ path: '/MonthlyStatistics', query: { id,trainOrgId,name:'' } })
|
||||||
// state.teacherdialog = true;
|
// state.teacherdialog = true;
|
||||||
// state.teacherdialogtitle = '讲师费月度统计详情'
|
// state.teacherdialogtitle = '讲师费月度统计详情'
|
||||||
// state.summaryDate = record.summaryDate;
|
// state.summaryDate = record.summaryDate;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="jsx">
|
<script lang="jsx">
|
||||||
import { reactive, toRefs, ref, watch,onMounted } from "vue";
|
import { reactive, toRefs, ref, watch,onMounted,nextTick } from "vue";
|
||||||
import InsideLecturer from "../lecturer/InsideLecturer.vue"
|
import InsideLecturer from "../lecturer/InsideLecturer.vue"
|
||||||
import ExternalLecturer from "../lecturer/ExternalLecturer.vue"
|
import ExternalLecturer from "../lecturer/ExternalLecturer.vue"
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<!-- 讲师费月度统计详情页面 -->
|
<!-- 讲师费月度统计详情页面 -->
|
||||||
<template>
|
<template>
|
||||||
|
<a-drawer :visible="visible" class="largeDrawerInside" placement="right" :closable="false"
|
||||||
|
width="80%" :title="false" @close="handleBack">
|
||||||
<div class="MonthlyStatistics">
|
<div class="MonthlyStatistics">
|
||||||
<!-- 搜索框及按钮 -->
|
<!-- 搜索框及按钮 -->
|
||||||
<!-- <a-layout-header style="background: white;color: black; font-size: 20px ;">
|
<!-- <a-layout-header style="background: white;color: black; font-size: 20px ;">
|
||||||
@@ -13,12 +15,11 @@
|
|||||||
</a-layout-header> -->
|
</a-layout-header> -->
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="headerTitle">讲师费月度统计详情</div>
|
<div class="headerTitle">讲师费月度统计详情</div>
|
||||||
<router-link to="/LecturerFeeStatistics">
|
<img
|
||||||
<img
|
style="width: 29px; height: 29px; cursor: pointer"
|
||||||
style="width: 29px; height: 29px; cursor: pointer"
|
src="../../assets/images/basicinfo/close.png"
|
||||||
src="../../assets/images/basicinfo/close.png"
|
@click="handleBack"
|
||||||
/>
|
/>
|
||||||
</router-link>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <a-divider style="height: 1px; background-color: #b7b8b7 ;margin: 0;" /> -->
|
<!-- <a-divider style="height: 1px; background-color: #b7b8b7 ;margin: 0;" /> -->
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
@@ -149,6 +150,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</div>
|
</div>
|
||||||
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
<script lang="jsx">
|
<script lang="jsx">
|
||||||
import { reactive, toRefs, ref, watch,computed } from "vue";
|
import { reactive, toRefs, ref, watch,computed } from "vue";
|
||||||
@@ -169,7 +171,17 @@ export default {
|
|||||||
UploadOutlined,//图标--导出,
|
UploadOutlined,//图标--导出,
|
||||||
ProjectManager,CostDetails
|
ProjectManager,CostDetails
|
||||||
},
|
},
|
||||||
setup() {
|
props:{
|
||||||
|
visible:{
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
id:{
|
||||||
|
type: String,
|
||||||
|
default: ""
|
||||||
|
},
|
||||||
|
},
|
||||||
|
setup(props,emits) {
|
||||||
const router=useRouter();
|
const router=useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { query: { id }} = useRoute();
|
const { query: { id }} = useRoute();
|
||||||
@@ -197,7 +209,7 @@ export default {
|
|||||||
payrollPlaceId: null,
|
payrollPlaceId: null,
|
||||||
departId: null,
|
departId: null,
|
||||||
summaryDate:null,
|
summaryDate:null,
|
||||||
id: route.query.id,
|
id: props.id,
|
||||||
// trainOrgId: '',
|
// trainOrgId: '',
|
||||||
},
|
},
|
||||||
name:null,
|
name:null,
|
||||||
@@ -210,8 +222,25 @@ export default {
|
|||||||
startTime: '',
|
startTime: '',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
watch(
|
const handleBack = () => {
|
||||||
)
|
emits.emit('update:visible',false)
|
||||||
|
}
|
||||||
|
watch(()=>props.visible,(val)=>{
|
||||||
|
if(val){
|
||||||
|
state.searchParam.id = props.id
|
||||||
|
getTableDate()
|
||||||
|
}else{
|
||||||
|
state.searchParam = {
|
||||||
|
pageNo: "1",
|
||||||
|
pageSize: "10",
|
||||||
|
name: '',
|
||||||
|
payrollPlaceId: null,
|
||||||
|
departId: null,
|
||||||
|
summaryDate:null,
|
||||||
|
id: null,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
const endOrg = (val) => {
|
const endOrg = (val) => {
|
||||||
if(val){
|
if(val){
|
||||||
const parts = val.split('/');
|
const parts = val.split('/');
|
||||||
@@ -351,7 +380,6 @@ export default {
|
|||||||
state.tableLoading = false
|
state.tableLoading = false
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
getTableDate()
|
|
||||||
|
|
||||||
//获取所属组织
|
//获取所属组织
|
||||||
const getOrganizationList = ref([
|
const getOrganizationList = ref([
|
||||||
@@ -420,7 +448,7 @@ export default {
|
|||||||
state.searchParam = {
|
state.searchParam = {
|
||||||
pageNo: "1",
|
pageNo: "1",
|
||||||
pageSize: "10",
|
pageSize: "10",
|
||||||
id: route.query.id,
|
id: props.id,
|
||||||
name : '',
|
name : '',
|
||||||
payrollPlaceId: null,
|
payrollPlaceId: null,
|
||||||
departId: '',
|
departId: '',
|
||||||
@@ -614,6 +642,7 @@ export default {
|
|||||||
searchResetdrawer,
|
searchResetdrawer,
|
||||||
sysTypeOptions,
|
sysTypeOptions,
|
||||||
endOrg,
|
endOrg,
|
||||||
|
handleBack,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-table style="border: 1px solid #f2f6fe" :columns="columns" :data-source="tableData" :loading="tableLoading"
|
<a-table style="border: 1px solid #f2f6fe" :columns="columns" :data-source="tableData" :loading="tableLoading"
|
||||||
@expand="expandTable" :pagination="false">
|
@expand="expandTable" :pagination="false">
|
||||||
<template #bodyCell="{ record, column }">
|
<template #bodyCell="{ record, column }">
|
||||||
<template v-if="column.key === 'operation'">
|
<template v-if="column.key === 'operation'">
|
||||||
<a-space >
|
<a-space >
|
||||||
@@ -391,41 +391,21 @@ export default{
|
|||||||
key: 'affiliationCode',
|
key: 'affiliationCode',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 200,
|
width: '100px',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '培训发生组织名称 ',
|
title: '培训发生组织名称 ',
|
||||||
dataIndex: 'affiliationName',
|
dataIndex: 'affiliationName',
|
||||||
key: 'affiliationName',
|
key: 'affiliationName',
|
||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 200,
|
width: '200px',
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '是否为根节点名称',
|
|
||||||
dataIndex: 'parentName',
|
|
||||||
key: 'parentName',
|
|
||||||
align: "center",
|
|
||||||
width: 200,
|
|
||||||
customRender: ({text,record})=>{
|
|
||||||
return (
|
|
||||||
text ? <div>否({text})</div> : <div>是({{1:'一',2:'二',3:'三'}[record.code]}级审批)</div>
|
|
||||||
)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '担当',
|
|
||||||
dataIndex: 'leaderName',
|
|
||||||
key: 'leaderName',
|
|
||||||
ellipsis: true,
|
|
||||||
align: "center",
|
|
||||||
width: 200,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
ellipsis: true, align: "center",
|
ellipsis: true, align: "center",
|
||||||
width: 160,
|
width: '100px',
|
||||||
customRender: ({text})=>{
|
customRender: ({text})=>{
|
||||||
switch (text) {
|
switch (text) {
|
||||||
case '1':
|
case '1':
|
||||||
@@ -443,6 +423,27 @@ export default{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '是否为根节点名称',
|
||||||
|
dataIndex: 'parentName',
|
||||||
|
key: 'parentName',
|
||||||
|
align: "center",
|
||||||
|
width: '200px',
|
||||||
|
customRender: ({text,record})=>{
|
||||||
|
return (
|
||||||
|
text ? <div>否({text})</div> : <div>是({{1:'一',2:'二',3:'三'}[record.code]}级审批)</div>
|
||||||
|
)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '担当',
|
||||||
|
dataIndex: 'leaderName',
|
||||||
|
key: 'leaderName',
|
||||||
|
ellipsis: true,
|
||||||
|
align: "center",
|
||||||
|
width: '200px',
|
||||||
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// title: '备注 ',
|
// title: '备注 ',
|
||||||
// dataIndex: 'remark',
|
// dataIndex: 'remark',
|
||||||
@@ -454,7 +455,7 @@ export default{
|
|||||||
title: '操作 ',
|
title: '操作 ',
|
||||||
dataIndex: 'operation',
|
dataIndex: 'operation',
|
||||||
key: 'operation',
|
key: 'operation',
|
||||||
width: 200,
|
width: '120px',
|
||||||
align: "center",
|
align: "center",
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
scopedSlots: { customRender: "action" },
|
scopedSlots: { customRender: "action" },
|
||||||
|
|||||||
Reference in New Issue
Block a user