diff --git a/src/views/kpi/assessment/goals/index.vue b/src/views/kpi/assessment/goals/index.vue index 98fff01..2bcc93d 100644 --- a/src/views/kpi/assessment/goals/index.vue +++ b/src/views/kpi/assessment/goals/index.vue @@ -93,7 +93,7 @@ 业务指标权重:{{handleGetWeight(i)}}% /{{Math.round((i.weight * 100)*1000)/1000}}%
- 所有指标总权重: {{ handleGetWeight1()}}% + 所有指标总权重: {{ handleGetWeight1()}}%/100%
diff --git a/src/views/kpi/assessment/performance/components/table.vue b/src/views/kpi/assessment/performance/components/table.vue index 671d41b..a2966e1 100644 --- a/src/views/kpi/assessment/performance/components/table.vue +++ b/src/views/kpi/assessment/performance/components/table.vue @@ -351,28 +351,44 @@ export default { }, handleGetScorlList (list) { if (!list) list = [] - return list.filter(i => i.acquireScore !== null || (i.approvalId === this.userInfo.userId && this.tableInfo.score)) + return list.filter(i => i.isEdit || (i.approvalId === this.userInfo.userId && this.tableInfo.score)) }, handleScore (item) { return this.scoreList.filter(i => i.score === item).length > 0 ? this.scoreList.filter(i => i.score === item)[0].name : 0 }, async handleGetNext () { - this.loadingTi = true - + // this.loadingTi = true const obj = { status: 1, menuName: this.tableInfo.result ? '提交了结果值' : '提交了评分' } const params = Object.assign({}, { resultRecordId: this.$route.query.id || '' }, obj) + if (!this.tableInfo.result) { + let isScore = true + this.obj.recortModelDtos.map(i => { + i.detailDtos.map(j => { + const obj = j.scoreDtos.find(k => k.approvalId === this.userInfo.userId) + if (obj.acquireScore) { + obj.isEdit = 1 + } else { + isScore = false + } + }) + }) + if (!isScore) { + return this.$message({ + message: '有未评分指标', + type: 'info' + }) + } + } let res = await apiSaveapproval(params) this.loadingTi = false if (res.code !== 200) { this.$message.error(res.msg) - return } this.obj.commentId = res.commentId let res1 = await apiSaveDetail(Object.assign({}, this.obj, this.score)) if (res1.code !== 200) { this.$message.error(res1.msg) this.loadingTi = false - return } this.$message({ message: res.msg,