This commit is contained in:
Air 2025-03-25 10:51:14 +08:00
parent 78d39f7f3f
commit 1097000d89
6 changed files with 716 additions and 38 deletions

View File

@ -104,40 +104,85 @@ export default [
meta: { title: '日常考评' },
children: [
{
path: '/day_evaluation/index',
name: 'dayEvaluationIndex',
component: () => import('../../views/day_evaluation/index.vue'),
meta: { title: '加减分管理', requireAuth: true, closable: true },
}, {
path: '/day_evaluation/examine',
name: 'dayEvaluationExamine',
component: () => import('../../views/day_evaluation/examine.vue'),
meta: { title: '加减分审核', requireAuth: true, closable: true },
path: '/day_evaluation_assess',
meta: { title: '日常填报' },
children: [
{
path: '/day_evaluation/index',
name: 'dayEvaluationIndex',
component: () => import('../../views/day_evaluation/index.vue'),
meta: { title: '加减分管理', requireAuth: true, closable: true },
}, {
path: '/day_evaluation/examine',
name: 'dayEvaluationExamine',
component: () => import('../../views/day_evaluation/examine.vue'),
meta: { title: '加减分审核', requireAuth: true, closable: true },
},
]
},
{
path: '/month_evaluation/index',
name: 'monthEvaluationIndex',
component: () => import('../../views/month_evaluation/index.vue'),
meta: { title: '月度考评填报', requireAuth: true, closable: true },
path: '/day_evaluation_self_assess',
meta: { title: '自评填报考评' },
children: [
{
path: '/month_evaluation/index',
name: 'monthEvaluationIndex',
component: () => import('../../views/month_evaluation/index.vue'),
meta: { title: '月度自评填报', requireAuth: true, closable: true },
}, {
path: '/month_evaluation/examine/:id*',
name: 'monthEvaluationExamine',
component: () => import('../../views/month_evaluation/examine.vue'),
meta: { title: '月度自评管理', closable: true },
}, {
path: '/month_evaluation/examine/:id*',
name: 'monthEvaluationExamine',
component: () => import('../../views/month_evaluation/examine.vue'),
meta: { title: '季度自评管理', closable: true },
}, {
path: '/season_evaluation/index',
name: 'seasonEvaluationIndex',
component: () => import('../../views/season_evaluation/index.vue'),
meta: { title: '季度自评填报', requireAuth: true, closable: true },
}, {
path: '/season_evaluation/examine/:id*',
name: 'seasonEvaluationExamine',
component: () => import('../../views/season_evaluation/examine.vue'),
meta: { title: '季度自评管理', closable: true },
}
]
}, {
path: '/month_evaluation/examine/:id*',
name: 'monthEvaluationExamine',
component: () => import('../../views/month_evaluation/examine.vue'),
meta: { title: '月度考评管理', closable: true },
},
{
path: '/season_evaluation/index',
name: 'seasonEvaluationIndex',
component: () => import('../../views/season_evaluation/index.vue'),
meta: { title: '季度考评', requireAuth: true, closable: true },
}, {
path: '/season_evaluation/examine/:id*',
name: 'seasonEvaluationExamine',
component: () => import('../../views/season_evaluation/examine.vue'),
meta: { title: '季度考评管理', closable: true },
path: '/day_evaluation_system_assess',
meta: { title: '考评评价管理' },
children: [
{
path: '/month_evaluation/assess',
name: 'monthEvaluationAssess',
component: () => import('../../views/month_evaluation/assess.vue'),
meta: { title: '月度评价填报', requireAuth: true, closable: true },
},
{
path: '/season_evaluation/assess',
name: 'seasonEvaluationAssess',
component: () => import('../../views/season_evaluation/assess.vue'),
meta: { title: '季度评价填报', requireAuth: true, closable: true },
},
{
path: '/year_evaluation/assess',
name: 'yearEvaluationAssess',
component: () => import('../../views/year_evaluation/assess.vue'),
meta: { title: '年度评价填报', requireAuth: true, closable: true },
},
{
path: '/year_evaluation/list',
name: 'yearEvaluationList',
component: () => import('../../views/year_evaluation/list.vue'),
meta: { title: '评价管理列表', requireAuth: true, closable: true },
},
]
}
]
},
},
// {
// path: '/month_evaluation',
// redirect: '/month_evaluation/index',
@ -208,27 +253,27 @@ export default [
path: '/year_evaluation/examine/:id*',
name: 'yearEvaluationExamine',
component: () => import('../../views/year_evaluation/examine.vue'),
meta: { title: '年度考评管理',closable: true },
meta: { title: '年度考评管理', closable: true },
}, {
path: '/year_evaluation/department',
name: 'yearEvaluationDepartment',
component: () => import('../../views/year_evaluation/department.vue'),
meta: { title: '年末科室考评管理',closable: true },
meta: { title: '年末科室考评管理', closable: true },
}, {
path: '/year_evaluation/branch',
name: 'yearEvaluationBranch',
component: () => import('../../views/year_evaluation/branch.vue'),
meta: { title: '年末支部考评管理',closable: true },
meta: { title: '年末支部考评管理', closable: true },
}, {
path: '/year_evaluation/overall',
name: 'yearEvaluationOverall',
component: () => import('../../views/year_evaluation/overall.vue'),
meta: { title: '年末总党支考评管理',closable: true },
meta: { title: '年末总党支考评管理', closable: true },
}, {
path: '/year_evaluation/hospital',
name: 'yearEvaluationHospital',
component: () => import('../../views/year_evaluation/hospital.vue'),
meta: { title: '年末医院考评管理',closable: true },
meta: { title: '年末医院考评管理', closable: true },
}
]
}, {
@ -249,7 +294,7 @@ export default [
meta: { title: '员工档案', requireAuth: true, closable: true },
}
]
},{
}, {
path: '/year_evaluation_summary',
redirect: '/year_evaluation_summary/index',
component: BasicLayout,
@ -259,7 +304,7 @@ export default [
path: '/year_evaluation_summary/index',
name: 'yearEvaluationSummaryIndex',
component: () => import('../../views/year_evaluation_summary/index.vue'),
meta: { title: '自动公示',closable: true },
meta: { title: '自动公示', closable: true },
}, {
path: '/year_evaluation_summary/examine',
name: 'yearEvaluationSummaryExamine',
@ -353,7 +398,7 @@ export default [
path: '/education/index',
name: 'educationIndex',
component: () => import('../../views/education/index.vue'),
meta: { title: '内容发布',closable: true },
meta: { title: '内容发布', closable: true },
}, {
path: '/education/question',
name: 'educationQuestion',

View File

@ -0,0 +1,142 @@
<template>
<lay-container fluid="true" style="padding: 20px">
<lay-row :space="10">
<lay-col :md="24">
<lay-card>
<lay-form style="margin-top: 20px">
<lay-row>
<lay-col :md="5">
<lay-form-item label="年度:" label-width="50">
<lay-date-picker type="year" v-model="searchAccount" placeholder="请选择"
allow-clear></lay-date-picker>
</lay-form-item>
</lay-col>
<lay-col :md="4">
<lay-form-item label-width="0">
<lay-button type="primary" @click="toSearch">查询</lay-button>
<lay-button @click="toReset">重置</lay-button>
</lay-form-item>
</lay-col>
</lay-row>
</lay-form>
</lay-card>
</lay-col>
<lay-col :md="24">
<lay-card>
<div style="padding: 10px">
<span style="font-size: 18px;vertical-align: center;margin-right: 20px">月度评价填报</span>
<lay-button type="primary" @click="addShow = true" size="sm">新增自我评价</lay-button>
</div>
<lay-table :columns="columns" :dataSource="dataSource" :even="true" height="500px"
size="lg"></lay-table>
</lay-card>
</lay-col>
</lay-row>
<lay-layer v-model="addShow" title="月度自评详情" :shade="true" :area="['500px', '500px']"
:btn="addIsInfo == 1 ? addButton : ''">
<lay-container fluid="true" style="padding: 20px">
<div style="margin-bottom: 20px">填报月份{{ month }}</div>
<lay-form :pane="true">
<lay-form-item label="自评内容" prop="desc">
<lay-textarea :rows="10" placeholder="请输入评价内容" v-model="addModel.desc"></lay-textarea>
</lay-form-item>
</lay-form>
</lay-container>
</lay-layer>
</lay-container>
</template>
<script setup lang="ts">
import { ref, onMounted, reactive } from 'vue'
import { layer } from '@layui/layer-vue'
import {
MonthlyList,
MonthlyContent
} from '../../api/module/home'
import { useUserStore } from "@/store/user";
import dayjs from "dayjs";
const addIsInfo = ref(1);
const dataSource = ref([]);
const addShow = ref(false);
const month = ref(dayjs().format('MM'));
const addModel = reactive({
desc: ''
})
onMounted(() => {
//getMonthlyList();
//getMonthlyContent();
})
const searchAccount = ref(dayjs().year())
function toReset() {
searchAccount.value = dayjs().year()
}
const columns = [
{
title: '月度',
width: '120px',
align: 'center',
key: 'month'
},
{
title: '考评对象',
width: '150px',
align: 'center',
key: 'user'
},
{
title: '评价时间',
width: '250px',
align: 'center',
key: 'createtime'
},
{
title: '我的评价',
key: 'self_score',
align: 'center',
}, {
title: '科室评价',
key: 'department_score',
customSlot: 'department_score',
align: 'center',
},
{
title: '操作',
width: '180px',
customSlot: 'operator',
key: 'operator',
align: 'center',
fixed: 'right'
}
]
const addButton = ref([
{
text: "确认",
callback: async () => {
// var json = JSON.stringify(dataSource6.value);
// var res = await MonthlyCreate({ 'json': json, 'user_id': userStore.userInfo.id, evaluation_schedule_id: current1.value });
// console.log(res)
// if (res.code == 1) {
// layer.msg('', { icon: 1 })
// visible11.value = false;
// getMonthlyList();
// //getMonthlyContent();
// } else {
// layer.msg(res.msg, { icon: 2 })
// }
}
},
{
text: "取消",
callback: () => {
addShow.value = false;
}
}
])
</script>
<style>
.layui-table-header .layui-table-cell {
background-color: #ECF8FA !important;
}
</style>

View File

@ -0,0 +1,148 @@
<template>
<lay-container fluid="true" style="padding: 20px">
<lay-row :space="10">
<lay-col :md="24">
<lay-card>
<lay-form style="margin-top: 20px">
<lay-row>
<lay-col :md="5">
<lay-form-item label="年度:" label-width="50">
<lay-date-picker type="year" v-model="searchAccount" placeholder="请选择"
allow-clear></lay-date-picker>
</lay-form-item>
</lay-col>
<lay-col :md="4">
<lay-form-item label-width="0">
<lay-button type="primary" @click="toSearch">查询</lay-button>
<lay-button @click="toReset">重置</lay-button>
</lay-form-item>
</lay-col>
</lay-row>
</lay-form>
</lay-card>
</lay-col>
<lay-col :md="24">
<lay-card>
<div style="padding: 10px">
<span style="font-size: 18px;vertical-align: center;margin-right: 20px">季度评价填报</span>
<lay-button type="primary" @click="addShow = true" size="sm">新增自我评价</lay-button>
</div>
<lay-table :columns="columns" :dataSource="dataSource" :even="true" height="500px"
size="lg"></lay-table>
</lay-card>
</lay-col>
</lay-row>
<lay-layer v-model="addShow" title="季度自评详情" :shade="true" :area="['500px', '500px']"
:btn="addIsInfo == 1 ? addButton : ''">
<lay-container fluid="true" style="padding: 20px">
<div style="margin-bottom: 20px">填报季度 {{ quarter }} 季度</div>
<lay-form :pane="true">
<lay-form-item label="自评内容" prop="desc">
<lay-textarea :rows="10" placeholder="请输入评价内容" v-model="addModel.desc"></lay-textarea>
</lay-form-item>
</lay-form>
</lay-container>
</lay-layer>
</lay-container>
</template>
<script setup lang="ts">
import { ref, onMounted, reactive } from 'vue'
import { layer } from '@layui/layer-vue'
import {
MonthlyList,
MonthlyContent
} from '../../api/module/home'
import { useUserStore } from "@/store/user";
import dayjs from "dayjs";
const addIsInfo = ref(1);
const dataSource = ref([]);
const addShow = ref(false);
//
const addModel = reactive({
desc: ''
})
const getQuarter = () => {
//
return dayjs().month() < 3 ? 1 : dayjs().month() < 6 ? 2 : dayjs().month() < 9 ? 3 : 4;
}
const quarter = ref(getQuarter());
onMounted(() => {
//getMonthlyList();
//getMonthlyContent();
})
const searchAccount = ref(dayjs().year())
function toReset() {
searchAccount.value = dayjs().year()
}
const columns = [
{
title: '季度',
width: '120px',
align: 'center',
key: 'quarter'
},
{
title: '考评对象',
width: '150px',
align: 'center',
key: 'user'
},
{
title: '评价时间',
width: '250px',
align: 'center',
key: 'createtime'
},
{
title: '我的评价',
key: 'self_score',
align: 'center',
}, {
title: '科室评价',
key: 'department_score',
customSlot: 'department_score',
align: 'center',
},
{
title: '操作',
width: '180px',
customSlot: 'operator',
key: 'operator',
align: 'center',
fixed: 'right'
}
]
const addButton = ref([
{
text: "确认",
callback: async () => {
// var json = JSON.stringify(dataSource6.value);
// var res = await MonthlyCreate({ 'json': json, 'user_id': userStore.userInfo.id, evaluation_schedule_id: current1.value });
// console.log(res)
// if (res.code == 1) {
// layer.msg('', { icon: 1 })
// visible11.value = false;
// getMonthlyList();
// //getMonthlyContent();
// } else {
// layer.msg(res.msg, { icon: 2 })
// }
}
},
{
text: "取消",
callback: () => {
addShow.value = false;
}
}
])
</script>
<style>
.layui-table-header .layui-table-cell {
background-color: #ECF8FA !important;
}
</style>

View File

@ -16,7 +16,7 @@
</template>
<template v-slot:operator="{ data }">
<lay-space size="lg">
<span style="color: #00A394;cursor: pointer" v-if="data.pid==0"
<span style="color: #00A394;cursor: pointer"
@click="addShowMsd(data, data.id)">子级新增</span>
<span style="color: #00A394;cursor: pointer" @click="editShowMsd(data)">编辑</span>
<lay-popconfirm trigger="click" content="确定要删除吗?" @confirm="delShowMsd(data)">

View File

@ -0,0 +1,143 @@
<template>
<lay-container fluid="true" style="padding: 20px">
<lay-row :space="10">
<lay-col :md="24">
<lay-card>
<lay-form style="margin-top: 20px">
<lay-row>
<lay-col :md="5">
<lay-form-item label="年度:" label-width="50">
<lay-date-picker type="year" v-model="searchAccount" placeholder="请选择"
allow-clear></lay-date-picker>
</lay-form-item>
</lay-col>
<lay-col :md="4">
<lay-form-item label-width="0">
<lay-button type="primary" @click="toSearch">查询</lay-button>
<lay-button @click="toReset">重置</lay-button>
</lay-form-item>
</lay-col>
</lay-row>
</lay-form>
</lay-card>
</lay-col>
<lay-col :md="24">
<lay-card>
<div style="padding: 10px">
<span style="font-size: 18px;vertical-align: center;margin-right: 20px">年度评价填报</span>
<lay-button type="primary" @click="addShow = true" size="sm">新增自我评价</lay-button>
</div>
<lay-table :columns="columns" :dataSource="dataSource" :even="true" height="500px"
size="lg"></lay-table>
</lay-card>
</lay-col>
</lay-row>
<lay-layer v-model="addShow" title="年度自评详情" :shade="true" :area="['500px', '500px']"
:btn="addIsInfo == 1 ? addButton : ''">
<lay-container fluid="true" style="padding: 20px">
<div style="margin-bottom: 20px">填报年度{{ searchAccount }} 年度</div>
<lay-form :pane="true">
<lay-form-item label="自评内容" prop="desc">
<lay-textarea :rows="10" placeholder="请输入评价内容" v-model="addModel.desc"></lay-textarea>
</lay-form-item>
</lay-form>
</lay-container>
</lay-layer>
</lay-container>
</template>
<script setup lang="ts">
import { ref, onMounted, reactive } from 'vue'
import { layer } from '@layui/layer-vue'
import {
MonthlyList,
MonthlyContent
} from '../../api/module/home'
import { useUserStore } from "@/store/user";
import dayjs from "dayjs";
const addIsInfo = ref(1);
const dataSource = ref([]);
const addShow = ref(false);
//
const addModel = reactive({
desc: ''
})
onMounted(() => {
//getMonthlyList();
//getMonthlyContent();
})
const searchAccount = ref(dayjs().year())
function toReset() {
searchAccount.value = dayjs().year()
}
const columns = [
{
title: '年度',
width: '120px',
align: 'center',
key: 'year'
},
{
title: '考评对象',
width: '150px',
align: 'center',
key: 'user'
},
{
title: '评价时间',
width: '250px',
align: 'center',
key: 'createtime'
},
{
title: '我的评价',
key: 'self_score',
align: 'center',
}, {
title: '科室评价',
key: 'department_score',
customSlot: 'department_score',
align: 'center',
},
{
title: '操作',
width: '180px',
customSlot: 'operator',
key: 'operator',
align: 'center',
fixed: 'right'
}
]
const addButton = ref([
{
text: "确认",
callback: async () => {
// var json = JSON.stringify(dataSource6.value);
// var res = await MonthlyCreate({ 'json': json, 'user_id': userStore.userInfo.id, evaluation_schedule_id: current1.value });
// console.log(res)
// if (res.code == 1) {
// layer.msg('', { icon: 1 })
// visible11.value = false;
// getMonthlyList();
// //getMonthlyContent();
// } else {
// layer.msg(res.msg, { icon: 2 })
// }
}
},
{
text: "取消",
callback: () => {
addShow.value = false;
}
}
])
</script>
<style>
.layui-table-header .layui-table-cell {
background-color: #ECF8FA !important;
}
</style>

View File

@ -0,0 +1,200 @@
<template>
<lay-container fluid="true" class="organization-box">
<div style="display: flex">
<div :style="{ width: isFold ? `0px` : `230px` }" class="left-tree">
<div v-if="!isFold">科室列表</div>
<lay-tree v-show="!isFold" style="margin-top: 10px" :data="data" v-model:selectedKey="group_id"
:showLine="false" @node-click="handleClick">
<template #title="{ data }">
<span :class="group_id == data.id ? 'isChecked' : ''">
{{ data.name }}
</span>
</template>
</lay-tree>
<div class="isFold" @click="isFold = !isFold">
&nbsp;<lay-icon v-if="!isFold" class="layui-icon-left"></lay-icon>
<lay-icon v-else class="layui-icon-right"></lay-icon>
</div>
</div>
<div style="flex: 1; padding: 10px; overflow: auto">
<!-- table -->
<lay-card>
<lay-form>
<lay-row>
<lay-col :md="5">
<lay-form-item label="类型" label-width="80">
<lay-select v-model="type" :show-search="true" placeholder="请选择" :allowClear="true">
<lay-select-option :value="1" label="月度"></lay-select-option>
<lay-select-option :value="2" label="季度"></lay-select-option>
<lay-select-option :value="3" label="年度"></lay-select-option>
</lay-select>
</lay-form-item>
</lay-col>
<lay-col :md="5">
<lay-form-item label="时间" label-width="80">
<lay-date-picker type="year" v-model="yearmonth" placeholder="年"
allow-clear></lay-date-picker>
</lay-form-item>
</lay-col>
<lay-col :md="5">
<lay-form-item label="考评对象" label-width="120">
<lay-input v-model="nickname" placeholder="请输入考评对象"></lay-input>
</lay-form-item>
</lay-col>
<lay-col :md="5">
<lay-form-item label-width="20">
<lay-button style="margin-left: 20px" type="primary" size="sm" @click="toSearch">
查询
</lay-button>
<lay-button size="sm" @click="toReset"> 重置</lay-button>
</lay-form-item>
</lay-col>
</lay-row>
</lay-form>
</lay-card>
<lay-table :page="page" height="600px" :columns="columns" :loading="loading" :data-source="dataSource"
@change="change">
<template v-slot:scoringrecord_status="{ row }">
<lay-tag v-if="row.scoringrecord_status == 1" type="primary">已自评</lay-tag>
<lay-tag v-if="row.scoringrecord_status == 2">未自评</lay-tag>
<lay-tag v-if="row.scoringrecord_status == 3" type="warm">科室已评</lay-tag>
<!-- <lay-tag v-if="row.scoringrecord_status == 4" type="danger">医院已评</lay-tag> -->
</template>
<template v-slot:nickname="{ row }">
<div style="color: #00A394;cursor: pointer" @click="openUserListShow(row)">{{ row.nickname }}
</div>
</template>
<template v-slot:operator="{ row }">
<lay-space>
<!-- <span style="color: #00A394;cursor: pointer"
v-if="row.scoringrecord_status == 3 && userStore.userInfo.level == 3"
@click="getInfo(row, 3)">医院评分</span> -->
<span style="color: #00A394;cursor: pointer" v-if="row.scoringrecord_status == 1"
@click="getInfo(row, 2)">科室评分</span>
<span style="color: #00A394;cursor: pointer" v-if="row.scoringrecord_status != 2"
@click="getInfo(row, 1)">考评详情</span>
<span style="color: #999999;cursor: not-allowed"
v-if="row.scoringrecord_status == 2">未自评</span>
</lay-space>
</template>
</lay-table>
</div>
</div>
</lay-container>
</template>
<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import { layer } from '@layui/layui-vue'
import {
getUserGroupNew,
getGroupEvaluation,
getMonthlyUserList,
MonthlyCreate,
getMonthlyListFind, getMonthlyListUpdate, getMonthlyFindData,
MonthlyInfo
} from "@/api/module/home";
import dayjs from "dayjs";
import { useUserStore } from '@/store/user';
import { useRoute } from 'vue-router'
const route = useRoute()
const userStore = useUserStore()
const userId = ref();
const isFold = ref(false)
const yearmonth = ref(dayjs().format('YYYY'));
onMounted(() => {
getLeftList();
})
const group_id = ref(1);
const data = ref([]);
const getLeftList = () => {
getUserGroupNew({}).then((res) => {
console.log(res)
if (res.code == 1) {
data.value = res.data;
group_id.value = res.data[0].id;
} else {
layer.msg(res.msg, { icon: 2 })
}
})
}
const loading = ref(false)
const columns = ref([
{ title: '时间', width: '80px', key: 'time', align: 'center' },
{ title: '考评对象', width: '100px', key: 'nickname', customSlot: 'nickname', align: 'center' },
{ title: '工号', width: '100px', key: 'code', align: 'center' },
{ title: '部门', width: '120px', key: 'group_name', align: 'center' },
{ title: '自我评价', width: '100px', key: 'user_scoringrecord', align: 'center' },
{ title: '科室评价', width: '100px', key: 'department_score_scoringrecord', align: 'center' },
{ title: '状态', width: '100px', key: 'scoringrecord_status', customSlot: 'scoringrecord_status', align: 'center' },
{
title: '操作',
width: '180px',
customSlot: 'operator',
key: 'operator',
fixed: 'right', align: 'center'
}
])
</script>
<style>
.layui-table-header .layui-table-cell {
background-color: #ECF8FA !important;
}
.organization-box {
width: calc(100vw - 240px);
height: calc(100vh - 110px);
margin-top: 10px;
box-sizing: border-box;
background-color: #fff;
overflow: hidden;
}
.left-tree {
display: inline-block;
padding: 20px 15px 0 5px;
height: 1200px;
border-right: 1px solid #e6e6e6;
box-sizing: border-box;
position: relative;
}
/* todo layui-tree-entry 设置无效 */
.layui-tree-entry {
position: relative;
padding: 10px 0;
height: 20px;
line-height: 20px;
white-space: nowrap;
}
.isFold {
position: absolute;
top: 36%;
right: -10px;
width: 26px;
height: 26px;
line-height: 26px;
border-radius: 13px;
background-color: #fff;
border: 1px solid #e6e6e6;
cursor: pointer;
}
.search-input {
display: inline-block;
width: 98%;
margin-right: 10px;
}
.isChecked {
display: inline-block;
background-color: #e8f1ff;
color: red;
}
.layui-tab-content {
padding: 0;
}
</style>