|
@@ -82,7 +82,7 @@
|
|
|
|
|
|
<el-table-column width="80" label="自评分" align="center" prop="selfScoring" v-if="form.status > 3"/>
|
|
|
<el-table-column :show-overflow-tooltip="!isUnfold" label="自评语" align="center" prop="selfComment" v-if="form.status > 3"/>
|
|
|
-
|
|
|
+
|
|
|
<el-table-column width="80" label="自评分" align="center" prop="selfScoring" :render-header="addRedStar" v-if="this.$store.state.user.name == form.staff && form.status == '3'">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item :prop="'performanceItem.'+scope.$index+'.selfScoring'" :rules="{required: true,message: ' ',trigger: 'blur'}">
|
|
@@ -101,7 +101,7 @@
|
|
|
<el-table-column width="80" label="上级评分" align="center" prop="leaderScoring" v-if="form.status > 4"/>
|
|
|
<el-table-column :show-overflow-tooltip="!isUnfold" label="评分说明" align="center" prop="leaderComment" v-if="form.status > 4"/>
|
|
|
<!-- <el-table-column width="80" label="加权得分" align="center" prop="weightedScore" v-if="form.status > 4"/> -->
|
|
|
-
|
|
|
+
|
|
|
<el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" v-if="this.$store.state.user.name == form.staff && form.status == '0'">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" @click="btnEdit(scope.row)">修改</el-button>
|
|
@@ -112,7 +112,7 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
-
|
|
|
+
|
|
|
<el-dialog title="指标明细" :visible.sync="rowDataOpen" width="1000px" :close-on-click-modal="false" :show-close="false">
|
|
|
<el-form size="mini" label-position="right" ref="rowDataForm" :model="rowData" :rules="rowRules" label-width="80px">
|
|
|
<el-form-item label="评估方面" prop="aspect">
|
|
@@ -305,10 +305,6 @@ export default {
|
|
|
this.$modal.msgWarning("已勾选加减分项,不允许有权重!");
|
|
|
return;
|
|
|
}
|
|
|
- // if(this.form.staffDivide == 'C1' && this.rowData.aspect == 0 && this.rowData.weight < 80){
|
|
|
- // this.$modal.msgWarning("业务组的业绩考核权重不能低于80!");
|
|
|
- // return;
|
|
|
- // }
|
|
|
let sum = 100;
|
|
|
if(this.rowData.id){
|
|
|
let arr = this.form.performanceItem.filter(ele => ele.id != this.rowData.id);
|
|
@@ -361,7 +357,7 @@ export default {
|
|
|
}else{
|
|
|
this.$modal.msgSuccess("已经是当前页最后一条了!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//合计
|
|
|
getSummaries(param){
|
|
@@ -385,17 +381,6 @@ export default {
|
|
|
this.$modal.msgWarning("权重不为100%无法提交!");
|
|
|
return;
|
|
|
}
|
|
|
- //业务组的业务指标不得小于80
|
|
|
- if(this.form.staffDivide == 'C1'){
|
|
|
- let arr = this.form.performanceItem.filter(ele => ele.aspect == '0');
|
|
|
- console.log('arr',arr);
|
|
|
- let weight = arr.reduce((sum, e) => sum + (Number(e.weight || 0)), 0);
|
|
|
- console.log('weight',weight);
|
|
|
- if(weight < 80){
|
|
|
- this.$modal.msgWarning("业务组的业绩考核总权重不能低于80!");
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
let that = this;
|
|
|
this.$modal.confirm('确认提交吗?').then(async function() {
|
|
|
that.loading = true;
|