From 9140481715dedc20081dd39d6348e52c90184adf Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 26 Dec 2024 17:13:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B2=E5=B8=88=E7=AE=A1=E7=90=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/lecturerFeeManagement.js | 2 + src/components/project/BatchLecturer.vue | 43 +++++++++++++++----- src/components/project/ConfirmLecturer.vue | 43 ++++++++++++++++---- src/views/lecturer/InsideTeaching.vue | 19 +++++---- src/views/lecturer/LecturerAPPEdit.vue | 30 +++++++------- src/views/lecturer/LecturerApproval.vue | 2 +- src/views/lecturer/LecturerFee.vue | 19 ++++++--- src/views/lecturer/LecturerFeeStatistics.vue | 23 ++++++++--- src/views/lecturer/MonthlyStatistics.vue | 20 ++++----- src/views/lecturer/Organization.vue | 12 +++--- 10 files changed, 143 insertions(+), 70 deletions(-) diff --git a/src/api/lecturerFeeManagement.js b/src/api/lecturerFeeManagement.js index 08ae7b91..fdd837ad 100644 --- a/src/api/lecturerFeeManagement.js +++ b/src/api/lecturerFeeManagement.js @@ -43,6 +43,8 @@ export const queryTeacherFeeTotalList= (obj) => http.post('/teacher/fee/queryTea export const getPreviousTeacherFee= (obj) => http.post('/teacher/fee/getPreviousTeacherFee',obj) //汇总上月讲师费月度数据 export const CreateMonthSummary= (obj) => http.post('/admin/expenseSummary/createMonthSummary',obj) +//是否显示重汇按钮 +export const isShowReimport= () => http.get('/admin/expenseSummary/isAdmin') //讲师费统计列表 export const expenseSummaryList= (obj) => http.get('/admin/expenseSummary/list',{params:obj}) //提交/撤回 diff --git a/src/components/project/BatchLecturer.vue b/src/components/project/BatchLecturer.vue index 38429d5f..42797a83 100644 --- a/src/components/project/BatchLecturer.vue +++ b/src/components/project/BatchLecturer.vue @@ -4,9 +4,9 @@ :closable="false" class="largeDrawerInside" placement="right" - width="70%" + width="80%" > -
+
{{ name }}
-
+
搜索 重置 @@ -32,10 +32,11 @@
{ }, }; }; +const pageHeight = computed(() => { + return window.innerHeight - 360 +}); watch(()=>props.visible,(val)=>{ if(val){ loading.value = true @@ -98,7 +102,7 @@ watch(()=>props.visible,(val)=>{ }else{ selectedRowKeys.value = [] selectsData.value = [] - drawerContent.value.scrollTo({top:0,behavior: 'smooth'}) + drawerContent.value?.$el.querySelector('.ant-table-body')?.scrollTo({top:0,behavior: 'smooth'}) resetData() } }) @@ -115,7 +119,7 @@ const searchData = (val) => { // drawerContent.value.scrollTo({top:200,behavior: 'smooth'}) searchTrue.value = val if(!nameUserNo.value&&!dateValue.value){ - // searchList.value = tableData.value; + searchList.value = []; return } //搜索 数组expenseList.value 参数名字或者工号:nameUserNo.value 日期:dateValue.value @@ -137,7 +141,7 @@ const searchData = (val) => { let scrollHeight = null filteredList.length && (scrollHeight = tableData.value.findIndex(item => item.id === filteredList[0].id)) if(scrollHeight||scrollHeight==0){ - drawerContent.value.scrollTo({top:(scrollHeight+1)*50+200,behavior: 'smooth'}) + drawerContent.value?.$el.querySelector('.ant-table-body')?.scrollTo({top:scrollHeight*55,behavior: 'smooth'}) } } const loading = ref(false) @@ -172,12 +176,14 @@ const columns = [ dataIndex: 'name', key: 'name', align: 'center', + width:120, }, { title: '讲师工号', dataIndex: 'userNo', key: 'userNo', align: 'center', + width:120 }, { title: '所属组织', @@ -185,6 +191,7 @@ const columns = [ key: 'orgName', align: 'center', ellipsis: true, + width:100, customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, }, @@ -193,12 +200,15 @@ const columns = [ dataIndex: 'tsystemName', key: 'tsystemName', align: 'center', + width:100, + customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, }, { title: '讲师等级', dataIndex: 'tlevelName', key: 'tlevelName', align: 'center', + width:100, customRender: ({ text })=>{ return text||'-' } @@ -208,6 +218,7 @@ const columns = [ dataIndex: 'payrollPlace', key: 'payrollPlace', align: 'center', + width:120, customRender: ({ text })=>{ return text||'-' } @@ -218,6 +229,7 @@ const columns = [ dataIndex: 'courseType', key: 'courseType', align: 'center', + width:120, customRender: ({ text,record })=>{ switch (text) { case 0: @@ -240,18 +252,22 @@ const columns = [ dataIndex: 'courseName', key: 'courseName', align: 'center', + width:100, + customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, }, { title: '授课/开发课程日期', dataIndex: 'teachingDate', key: 'teachingDate', align: 'center', + width:150 }, { title: '授课/开发课程时长', dataIndex: 'teachingTime', key: 'teachingTime', align: 'center', + width:150, customRender: ({ text,record })=>{ return (text/60).toFixed(2)+'小时' } @@ -261,6 +277,7 @@ const columns = [ dataIndex: 'studys', key: 'studys', align: 'center', + width:100, customRender: ({ text })=>{ return text||'0' } @@ -270,6 +287,7 @@ const columns = [ dataIndex: 'score', key: 'score', align: 'center', + width:100, customRender: (value) => { return (
@@ -283,12 +301,14 @@ const columns = [ dataIndex: 'levelPay', key: 'levelPay', align: 'center', + width:100 }, { title: '计划费用', dataIndex: 'expense', key: 'expense', align: 'center', + width:100 }, // { // title: '应发费用', @@ -349,7 +369,10 @@ const queryDrawer = () => { ::v-deep .ant-table-row-selected td { // background: none !important; } - +::v-deep .ant-table-thead > tr > th { + background-color: #eff4fc !important; + text-align: center !important; +} .largeDrawerInside { .drawerMains { @@ -425,7 +448,7 @@ const queryDrawer = () => { } .table{ ::v-deep .ant-table-cell-fix-right { - width: 160px !important; + width: 120px !important; } } } diff --git a/src/components/project/ConfirmLecturer.vue b/src/components/project/ConfirmLecturer.vue index b276a057..2cd02f7d 100644 --- a/src/components/project/ConfirmLecturer.vue +++ b/src/components/project/ConfirmLecturer.vue @@ -4,10 +4,10 @@ :closable="false" class="largeDrawerInside" placement="right" - width="64%" + width="76%" :zIndex="1001" > -
+
{{ name }}
-
+
搜索 重置 @@ -44,10 +44,11 @@
@@ -175,6 +176,9 @@ const clickItem = (item,i) => { indexList.value = i resetData() } +const pageHeight = computed(() => { + return window.innerHeight - 450 +}); watch(()=>props.visible,(val)=>{ if(val){ loadingData.value = true @@ -202,7 +206,7 @@ watch(()=>props.visible,(val)=>{ }else{ nameUserNo.value = null dateValue.value = null - drawerContent.value.scrollTo({top:0,behavior: 'smooth'}) + drawerContent.value?.$el.querySelector('.ant-table-body')?.scrollTo({top:0,behavior: 'smooth'}) } }) const removeId = (e,i) =>{ @@ -244,7 +248,7 @@ const customRow = (record) => { const searchData = (val) => { searchTrue.value = val if(!nameUserNo.value&&!dateValue.value){ - // searchList.value = expenseList.value; + searchList.value = []; return } //搜索 数组expenseList.value 参数名字或者工号:nameUserNo.value 日期:dateValue.value @@ -266,7 +270,7 @@ const searchData = (val) => { let scrollHeight = null filteredList.length && (scrollHeight = expenseList.value.findIndex(item => item.id === filteredList[0].id)) if(scrollHeight||scrollHeight==0){ - drawerContent.value.scrollTo({top:(scrollHeight+1)*50+300,behavior: 'smooth'}) + drawerContent.value?.$el.querySelector('.ant-table-body')?.scrollTo({top:scrollHeight*55,behavior: 'smooth'}) } } const resetData = () => { @@ -281,12 +285,14 @@ const columns = [ dataIndex: 'name', key: 'name', align: 'center', + width:120, }, { title: '讲师工号', dataIndex: 'userNo', key: 'userNo', align: 'center', + width:120, }, { title: '所属组织', @@ -294,6 +300,7 @@ const columns = [ key: 'orgName', align: 'center', ellipsis: true, + width:100, customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, }, @@ -302,12 +309,15 @@ const columns = [ dataIndex: 'tsystemName', key: 'tsystemName', align: 'center', + width:100, + customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, }, { title: '讲师等级', dataIndex: 'tlevelName', key: 'tlevelName', align: 'center', + width:100, customRender: ({ text })=>{ return text||'-' } @@ -317,6 +327,7 @@ const columns = [ dataIndex: 'payrollPlace', key: 'payrollPlace', align: 'center', + width:120, customRender: ({ text })=>{ return text||'-' } @@ -327,6 +338,7 @@ const columns = [ dataIndex: 'courseType', key: 'courseType', align: 'center', + width:120, customRender: ({ text,record })=>{ switch (text) { case 0: @@ -349,18 +361,22 @@ const columns = [ dataIndex: 'courseName', key: 'courseName', align: 'center', + width:100, + customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, }, { title: '授课/开发课程日期', dataIndex: 'teachingDate', key: 'teachingDate', align: 'center', + width:150, }, { title: '授课/开发课程时长', dataIndex: 'teachingTime', key: 'teachingTime', align: 'center', + width:150, customRender: ({ text,record })=>{ return (text/60).toFixed(2)+'小时' } @@ -370,6 +386,7 @@ const columns = [ dataIndex: 'studys', key: 'studys', align: 'center', + width:100, customRender: ({ text })=>{ return text||'0' } @@ -379,6 +396,7 @@ const columns = [ dataIndex: 'score', key: 'score', align: 'center', + width:100, customRender: (value) => { return (
@@ -392,12 +410,14 @@ const columns = [ dataIndex: 'levelPay', key: 'levelPay', align: 'center', + width:100, }, { title: '计划费用', dataIndex: 'expense', key: 'expense', align: 'center', + width:100, }, // { // title: '应发费用', @@ -409,6 +429,7 @@ const columns = [ title: '操作', align: 'center', fixed: 'right', + width:100, customCell:()=>{return {style:{background:'#fff'}}}, slots: { customRender: "action" }, }, @@ -459,6 +480,10 @@ const config = () => { ::v-deep .ant-table-tbody > tr:not(.ant-table-row-selected):not(:hover) > td { background: none; } +::v-deep .ant-table-thead > tr > th { + background-color: #eff4fc !important; + text-align: center !important; +} .delete { min-width: 424px; background: #ffffff; @@ -661,7 +686,7 @@ const config = () => { } .table{ ::v-deep .ant-table-cell-fix-right { - width: 160px !important; + width: 120px !important; } } } diff --git a/src/views/lecturer/InsideTeaching.vue b/src/views/lecturer/InsideTeaching.vue index d56bb751..80c5d2ca 100644 --- a/src/views/lecturer/InsideTeaching.vue +++ b/src/views/lecturer/InsideTeaching.vue @@ -757,18 +757,25 @@ export default { ellipsis: true, align: "center", width: 120, }, + { + title: '课程名称 ', + dataIndex: 'courseName', + key: 'courseName ', + ellipsis: true, align: "left", + width: 200, + }, { title: '讲师体系 ', dataIndex: 'tsystemName', key: 'tsystemName', - ellipsis: true, align: "center", + ellipsis: true, align: "left", width: 200, }, { title: '培训发生组织 ', dataIndex: 'trainOrgName', key: 'trainOrgName', - ellipsis: true, align: "center", + ellipsis: true, align: "left", width: 200, customRender: (value, record) => { return ( @@ -797,13 +804,7 @@ export default { ) } }, - { - title: '课程名称 ', - dataIndex: 'courseName', - key: 'courseName ', - ellipsis: true, align: "center", - width: 120, - }, + { title: '课程类型 ', dataIndex: 'type', diff --git a/src/views/lecturer/LecturerAPPEdit.vue b/src/views/lecturer/LecturerAPPEdit.vue index 33502202..83221639 100644 --- a/src/views/lecturer/LecturerAPPEdit.vue +++ b/src/views/lecturer/LecturerAPPEdit.vue @@ -851,7 +851,7 @@ export default { key: 'name', ellipsis: true, align: "center", - width: 160, + width: 120, }, { title: '讲师工号', @@ -859,7 +859,7 @@ export default { key: 'userNo', align: "center", ellipsis: true, - width: 160, + width: 120, }, { title: '所属组织 ', @@ -867,7 +867,7 @@ export default { key: 'orgName', ellipsis: true, align: "center", - width: 200, + width: 160, slots: { customRender: "orgName" }, }, { @@ -876,7 +876,7 @@ export default { key: 'tsystemName', ellipsis: true, align: "center", - width: 160, + width: 120, }, { title: '讲师级别', @@ -884,7 +884,7 @@ export default { key: 'tlevelName', ellipsis: true, align: "center", - width: 160, + width: 100, }, { title: '发薪地', @@ -892,7 +892,7 @@ export default { key: 'payrollPlace', ellipsis: true, align: "center", - width: 160, + width: 100, customRender: ({text}) => { return text || '-' } @@ -903,7 +903,7 @@ export default { key: 'courseType', ellipsis: true, align: "center", - width: 160, + width: 100, customRender: (value) => { return (
@@ -926,7 +926,7 @@ export default { key: 'courseName', ellipsis: true, align: "center", - width: 200, + width: 160, }, { title: '授课/开发课程日期', @@ -934,7 +934,7 @@ export default { key: 'teachingDate', ellipsis: true, align: "center", - width: 200, + width: 160, }, { title: '授课/开发课程时长 ', @@ -957,7 +957,7 @@ export default { key: 'studys', ellipsis: true, align: "center", - width: 160, + width: 100, customRender: ({text}) => { return text || "0"; } @@ -968,7 +968,7 @@ export default { key: 'score', ellipsis: true, align: "center", - width: 160, + width: 100, customRender: (value) => { return (
@@ -983,7 +983,7 @@ export default { key: 'levelPay', ellipsis: true, align: "center", - width: 160, + width: 120, }, { title: '计划费用 ', @@ -991,7 +991,7 @@ export default { key: 'expense', ellipsis: true, align: "center", - width: 160, + width: 120, }, // { // title: '应发费用 ', @@ -1008,7 +1008,7 @@ export default { ellipsis: true, align: "center", fixed: "right", - width: 160, + width: 120, slots: { customRender: "appEdit" }, }, ]) @@ -1259,7 +1259,7 @@ export default { .table{ padding-bottom: 70px; ::v-deep .ant-table-cell-fix-right { - width: 160px !important; + width: 120px !important; } } } diff --git a/src/views/lecturer/LecturerApproval.vue b/src/views/lecturer/LecturerApproval.vue index 53295d5f..c81bf68e 100644 --- a/src/views/lecturer/LecturerApproval.vue +++ b/src/views/lecturer/LecturerApproval.vue @@ -511,7 +511,7 @@ title: '操作 ', dataIndex: 'operation', key: 'operation', - ellipsis: true, align: "right", + ellipsis: true, align: "center", fixed: "right", width: 120, scopedSlots: { customRender: "action" }, diff --git a/src/views/lecturer/LecturerFee.vue b/src/views/lecturer/LecturerFee.vue index aa95871c..63bb649c 100644 --- a/src/views/lecturer/LecturerFee.vue +++ b/src/views/lecturer/LecturerFee.vue @@ -18,7 +18,7 @@ @@ -611,6 +611,7 @@ tableDataSee: [], SeeLoading: false, orgList: [], + orgListSearch: [], selectsIds: '', visibleConfirm: false, title:'导入讲师费记录', @@ -699,7 +700,13 @@ value: item.id } }) - state.orgList.unshift({ + state.orgListSearch = res.data.data?.map(item=>{ + return{ + label: item.affiliationName, + value: item.id + } + }) + state.orgListSearch.unshift({ label: '全部', value: '' }) }) @@ -916,14 +923,14 @@ getAllLevelList().then((res) => { dataIndex: 'courseName', key: 'courseName', ellipsis: true, - align: "center", + align: "left", width: 200, }, { title: '培训发生组织', dataIndex: 'trainOrgName', key: 'trainOrgName', - ellipsis: true, align: "center", + ellipsis: true, align: "left", width: 200, }, @@ -953,8 +960,8 @@ getAllLevelList().then((res) => { title: '讲师体系', dataIndex: 'tsystemName', key: 'tsystemName', - ellipsis: true, align: "center", - width: 120, + ellipsis: true, align: "left", + width: 200, customRender: ({ text })=>{ return text||'-' } diff --git a/src/views/lecturer/LecturerFeeStatistics.vue b/src/views/lecturer/LecturerFeeStatistics.vue index 30eb8f49..9396dab7 100644 --- a/src/views/lecturer/LecturerFeeStatistics.vue +++ b/src/views/lecturer/LecturerFeeStatistics.vue @@ -25,7 +25,7 @@
-
+
重新汇总上月讲师费 @@ -171,7 +171,7 @@