|
@@ -42,33 +42,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<detail v-model="isList" v-if="!isList" :pageStu="page" :rowId="rowId" :ids="ids" @refresh="refresh" />
|
|
|
-
|
|
|
- <el-dialog title="分数调整" :visible.sync="stageListOpen" width="1000px" :close-on-click-modal="false">
|
|
|
- <el-table size="mini" height="500px" v-loading="stageListLoading" :data="stageList" @row-dblclick="btnDetails">
|
|
|
- <el-table-column label="名称" align="center" prop="name" />
|
|
|
- <el-table-column label="月份" align="center" prop="month" />
|
|
|
- <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-search"
|
|
|
- @click="btnEntryAdjust(scope.row)"
|
|
|
- >进入调整</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import detail from './detail.vue'
|
|
|
import { listPerformance,getCurrentMonthId,getNextMonthId} from "@/api/business/ehr/pm/performance";
|
|
|
-import { getGradeAdjustConut,toDoList} from "@/api/business/ehr/pm/gradeadjust";
|
|
|
-import { getPmVerifyConut} from "@/api/business/ehr/pm/pmverify";
|
|
|
-import { getPmMarkConut} from "@/api/business/ehr/pm/pmmark";
|
|
|
-import { listDept} from "@/api/business/ehr/ehr/dept";
|
|
|
|
|
|
export default {
|
|
|
name: "assess",
|
|
@@ -86,10 +65,6 @@ export default {
|
|
|
listData: [],
|
|
|
// id集合
|
|
|
ids: [],
|
|
|
- // 弹出层标题
|
|
|
- title: "",
|
|
|
- // 是否显示弹出层
|
|
|
- open: false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -97,11 +72,7 @@ export default {
|
|
|
params:{
|
|
|
dataPermission: 'Y',
|
|
|
oneself: true,
|
|
|
- staffCodeOrName: null,
|
|
|
},
|
|
|
- status: null,
|
|
|
- month: null,
|
|
|
- dept: null,
|
|
|
},
|
|
|
//页面显示
|
|
|
isList: true,
|
|
@@ -109,35 +80,9 @@ export default {
|
|
|
page: '',
|
|
|
//详情id
|
|
|
rowId: '',
|
|
|
- //等级调整数量
|
|
|
- adjustCount: null,
|
|
|
- //等级调整周期列表
|
|
|
- stageList:[],
|
|
|
- //等级调整周期列表弹出层
|
|
|
- stageListOpen:false,
|
|
|
- //等级调整周期列表遮罩层
|
|
|
- stageListLoading: true,
|
|
|
- //待确认数量
|
|
|
- verifyCount: null,
|
|
|
- //待评分数量
|
|
|
- markCount: null,
|
|
|
- //部门树
|
|
|
- deptTree: [],
|
|
|
- //value
|
|
|
- treeValue: [],
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
- //查询等级调整数量
|
|
|
- let res = await getGradeAdjustConut();
|
|
|
- this.adjustCount = res.row;
|
|
|
- //查询待确认数量
|
|
|
- res = await getPmVerifyConut();
|
|
|
- this.verifyCount = res.row;
|
|
|
- //查询待评分数量
|
|
|
- res = await getPmMarkConut();
|
|
|
- this.markCount = res.row;
|
|
|
- this.getList();
|
|
|
//如果是跳转过来的页面带了参数flowId则直接进入填写页面
|
|
|
if(this.$route['query'] !== undefined && this.$route.query['flowId'] !== undefined){
|
|
|
this.rowId = this.$route.query.performanceId;
|
|
@@ -145,23 +90,12 @@ export default {
|
|
|
this.ids = [this.$route.query.performanceId];
|
|
|
this.isList = false;
|
|
|
}
|
|
|
- listDept().then(response => {
|
|
|
- let arr = response.rows;
|
|
|
- arr.forEach(function(element) {
|
|
|
- element.parent_id = element.superiorsDept;
|
|
|
- element.value = element.code;
|
|
|
- element.label = element.name;
|
|
|
- });
|
|
|
- console.log("arr",arr);
|
|
|
- this.deptTree = this.arrayToTree(arr,null);
|
|
|
- console.log("deptTree",this.deptTree);
|
|
|
- });
|
|
|
+ this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
/** 查询绩效列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- this.queryParams.dept = this.treeValue[this.treeValue.length - 1];
|
|
|
listPerformance(this.queryParams).then(response => {
|
|
|
this.listData = response.rows;
|
|
|
this.ids = response.rows.map(item => item.id);
|
|
@@ -169,21 +103,10 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
- /** 搜索按钮操作 */
|
|
|
- async btnSearch() {
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- /** 重置按钮操作 */
|
|
|
- btnResetQuery() {
|
|
|
- this.resetForm("queryForm");
|
|
|
- this.treeValue = [];
|
|
|
- this.queryParams.params.staffCodeOrName = null;
|
|
|
- this.btnSearch();
|
|
|
- },
|
|
|
/** 刷新 */
|
|
|
refresh(){
|
|
|
this.resetForm("queryForm");
|
|
|
+ this.dateRange = [];
|
|
|
this.treeValue = [];
|
|
|
this.getList();
|
|
|
},
|
|
@@ -193,15 +116,6 @@ export default {
|
|
|
this.page = 'add';
|
|
|
this.isList = false;
|
|
|
},
|
|
|
- //只看自己按钮
|
|
|
- btnOneself(){
|
|
|
- this.btnSearch();
|
|
|
- },
|
|
|
- //等级调整
|
|
|
- btnGradeAdjust(){
|
|
|
- this.stageListOpen = true;
|
|
|
- this.getlistStage();
|
|
|
- },
|
|
|
//查看当月绩效
|
|
|
async btnCurrentMonth(){
|
|
|
let res = await getCurrentMonthId();
|
|
@@ -226,45 +140,6 @@ export default {
|
|
|
this.isList = false;
|
|
|
}
|
|
|
},
|
|
|
- //查询周期列表
|
|
|
- getlistStage() {
|
|
|
- this.stageListLoading = true;
|
|
|
- toDoList().then(response => {
|
|
|
- this.stageList = response.rows;
|
|
|
- this.stageListLoading = false;
|
|
|
- });
|
|
|
- },
|
|
|
- //进入调整
|
|
|
- btnEntryAdjust(row){
|
|
|
- this.$router.push({ name: 'AdjustGrade', query: { id: row.id,flowId: row.flowId } });
|
|
|
- },
|
|
|
- //待确认
|
|
|
- btnPmVerify(){
|
|
|
- this.$router.push({name:'PmVerify'});
|
|
|
- },
|
|
|
- //待评分
|
|
|
- btnPmMark(){
|
|
|
- this.$router.push({name:'PmMark'});
|
|
|
- },
|
|
|
- arrayToTree(data, pid) {
|
|
|
- let result = []
|
|
|
- this.getChildren(data, result, pid)
|
|
|
- return result
|
|
|
- },
|
|
|
- getChildren(data, result, pid) {
|
|
|
- for (const item of data) {
|
|
|
- if (item.parent_id === pid) {
|
|
|
- const newItem = { children: [], ...item }
|
|
|
- result.push(newItem)
|
|
|
- this.getChildren(data, newItem.children, item.code)
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- //
|
|
|
- handleChange(value){
|
|
|
- console.log("value",value);
|
|
|
- this.$refs.cascaderHandle.dropDownVisible = false;
|
|
|
- },
|
|
|
}
|
|
|
};
|
|
|
</script>
|