diff --git a/src/views/month_evaluation/examine.vue b/src/views/month_evaluation/examine.vue index 0b609a9..a667e6b 100644 --- a/src/views/month_evaluation/examine.vue +++ b/src/views/month_evaluation/examine.vue @@ -55,23 +55,27 @@ + @change="change"> @@ -80,22 +84,30 @@ + :btn="addIsInfo != 1 ? addButton : ''"> + @@ -123,15 +135,19 @@ - + - + + @@ -155,7 +171,8 @@ import { MonthlyInfo } from "@/api/module/home"; import dayjs from "dayjs"; - +import { useUserStore } from '@/store/user'; +const userStore = useUserStore() onMounted(() => { getLeftList(); }) @@ -185,9 +202,9 @@ const getUserListInfo = () => { 'time': searchAccountUser.value }).then((res) => { console.log(res) - if(res.code==1){ + if (res.code == 1) { userDataSource.value = res.data; - }else{ + } else { userDataSource.value = []; } }) @@ -198,11 +215,11 @@ const openUserTab = (d) => { userDataSource.value = []; getUserListInfo(); } -const getMonthlyInfo = (item) => { - addIsInfo.value=2; +const getMonthlyInfo = (item, type) => { + addIsInfo.value = type; infoShow.value = true; console.log(item); - item.time=item.month; + item.time = item.month; getInfoMode(item); } const toUserSearch = () => { @@ -249,6 +266,18 @@ const getInfo = (row, type) => { console.log(row); thisInfo.value = row; getInfoMode(row); + + if (row.scoringrecord_status == 4) { + columns6.push({ + title: "医院评分", + width: "100px", + align: 'center', + customSlot: 'yyinput', + key: "yyinput" + }); + } + + } const getInfoMode = (row) => { getMonthlyListFind({ @@ -308,13 +337,6 @@ function toReset() { } } -function handleClick(node: any) { - // selectedNode.value = JSON.parse(JSON.stringify(node)) - page.current = 1; - getList(); - // change(page) -} - function toSearch() { page.current = 1; getList(); @@ -323,13 +345,12 @@ function toSearch() { const loading = ref(false) const selectedKeys = ref() const columns = ref([ - { title: '选项', width: '55px', type: 'checkbox', align: 'center' }, { title: '序号', width: '60px', key: 'id', align: 'center' }, { title: '月度', width: '80px', key: 'time', align: 'center' }, { title: '考评对象', width: '100px', key: 'nickname', customSlot: 'nickname', align: 'center' }, - { title: '工号', width: '100px', key: 'work_number', align: 'center' }, + { title: '工号', width: '100px', key: 'code', align: 'center' }, { title: '部门', width: '120px', key: 'group_name', align: 'center' }, - { title: '医院评分', width: '100px', key: 'hospital_score', align: 'center' }, + { title: '医院评分', width: '100px', key: 'hospital_score_scoringrecord', align: 'center' }, { title: '科室评分', width: '100px', key: 'department_score_scoringrecord', align: 'center' }, { title: '自评总分', width: '100px', key: 'user_scoringrecord', align: 'center' }, { title: '自评状态', width: '100px', key: 'scoringrecord_status', customSlot: 'scoringrecord_status', align: 'center' }, @@ -379,7 +400,7 @@ const columns6 = [ }, { title: "分值", - width: "100px", + width: "50px", align: 'center', key: "base_score" }, @@ -398,6 +419,17 @@ const columns6 = [ key: "ksinput" } ] + +// 根据用户级别动态添加医院评分列 +if (userStore.userInfo.level == 3) { + columns6.push({ + title: "医院评分", + width: "100px", + align: 'center', + customSlot: 'yyinput', + key: "yyinput" + }); +} const dataSource6 = ref([]) diff --git a/src/views/season_evaluation/index.vue b/src/views/season_evaluation/index.vue index e31eb25..6e1b836 100644 --- a/src/views/season_evaluation/index.vue +++ b/src/views/season_evaluation/index.vue @@ -61,25 +61,6 @@ - -
- - - - - - - - -
-