|
@@ -51,14 +51,18 @@
|
|
|
<!-- <el-button size="mini" @click="btnUnfold">{{isUnfold == true ? "收起" : "展开"}}</el-button> -->
|
|
|
</div>
|
|
|
<el-table size="mini" :data="form.performanceItem" show-summary :summary-method="getSummaries" border>
|
|
|
- <el-table-column type="index" width="50" label="序号"/>
|
|
|
+ <el-table-column type="index" width="50" align="center" label="序号"/>
|
|
|
<el-table-column width="100" :show-overflow-tooltip="!isUnfold" label="评估方面" align="center" prop="aspect">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag :options="dict.type.ehr_pm_aspect" :value="scope.row.aspect"/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="100" :show-overflow-tooltip="!isUnfold" label="评估指标" align="center" prop="target" />
|
|
|
- <el-table-column width="80" label="权重(%)" align="center" prop="weight"/>
|
|
|
+ <el-table-column width="80" label="权重(%)" align="center" prop="weight">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.asItem ? "+/-" : scope.row.weight}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column :show-overflow-tooltip="!isUnfold" label="指标说明" align="center" prop="instructions">
|
|
|
<template slot-scope="scope">
|
|
|
<div style="white-space: pre-wrap;text-align: left">{{scope.row.instructions}}</div>
|
|
@@ -223,6 +227,8 @@ export default {
|
|
|
isUnfold:false,
|
|
|
//明细权重合计值
|
|
|
weightSum: 0,
|
|
|
+ //自评分
|
|
|
+ saMark: 0,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -360,9 +366,10 @@ export default {
|
|
|
if(this.form.saMark){
|
|
|
selfScoring = this.form.saMark;
|
|
|
}else{
|
|
|
- selfScoring = data.reduce((sum, e) => sum + Number(e.selfScoring || 0) * (Number(e.weight || 0) / 100), 0);
|
|
|
+ selfScoring = data.reduce((sum, e) => sum + (e.asItem ? Number(e.selfScoring || 0) : Number(e.selfScoring || 0) * (Number(e.weight || 0) / 100)), 0);
|
|
|
selfScoring = selfScoring.toFixed(1);
|
|
|
}
|
|
|
+ this.saMark = selfScoring;
|
|
|
return ['合计','','',weight,'','','',selfScoring,'',this.form.ldMark];
|
|
|
},
|
|
|
//提交
|
|
@@ -385,6 +392,14 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if(this.form.status == '3'){
|
|
|
+ if(this.form.staffDivide == 'C1' && this.saMark > 150){
|
|
|
+ this.$modal.msgWarning("业务组自评总分不能超过150!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(this.form.staffDivide == 'C2' && this.saMark > 100){
|
|
|
+ this.$modal.msgWarning("非务组自评总分不能超过100!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$refs["dataForm"].validate(async valid => {
|
|
|
if (valid) {
|
|
|
let that = this;
|