diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index 3c4a30940..618b26228 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -23,7 +23,7 @@ style="border-top:none;position: absolute;right: 36px;">
- 企标评价 + 企标评价 @@ -1589,7 +1589,11 @@ export default { tabsClick(tab, event){ this.historyInfoLoading = true if (this.commentAverageScoreTag === '1' || this.commentActiveName === 'historyComment'){ - this.indexType = 'quality' + if (this.commentActiveName === 'dynamicComment') { + this.indexType = 'dynamic' + } else { + this.indexType = 'quality' + } //查询评分表 const allData = { lawId: this.$route.params.id, @@ -1607,7 +1611,7 @@ export default { this.historyInfoLoading = false }) } - else if (this.commentAverageScoreTag === '2' || this.commentActiveName === 'dynamicComment'){ + else if (this.commentAverageScoreTag === '2'){ this.indexType = 'dynamic' //查询评分表 const allData = { @@ -2857,7 +2861,58 @@ export default { let value2 = b[property] return value1 - value2 } - } + }, + + qbBtn() { + if (this.commentActiveName === 'historyComment'){ + this.indexType = 'quality' + //查询评分表 + const allData = { + lawId: this.$route.params.id, + userId: this.qualityFirstHistoryPeopleId, + evaluationType: this.indexType, + processNode: this.qualityHistoryPeopleTable.length>0?this.qualityHistoryPeopleTable[0].processNode:null + } + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , { + _this: this + }, res => { + this.qualityHistoryCommentTable = res.data + this.historyInfoLoading = false + + }, e => { + this.historyInfoLoading = false + }) + } + else if (this.commentActiveName === 'dynamicComment'){ + this.indexType = 'dynamic' + //查询评分表 + const allData = { + lawId: this.$route.params.id, + userId: this.dynamicFirstHistoryPeopleId, + evaluationType: this.indexType + } + this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , { + _this: this + }, res => { + this.dynamicHistoryCommentTable = res.data + this.historyCommentForm.revise = res.data[0].targetScore + this.historyCommentForm.reviseReason = res.data[0].commentReason + + let averageScore = 0 + res.data.forEach(item => { + if (item.valueType === 'number'){ + averageScore += parseInt(item.targetScore) + } + }) + averageScore = averageScore / 4 + this.historyCommentForm.averageScore = averageScore + this.historyInfoLoading = false + }, e => { + this.historyInfoLoading = false + }) + } + this.businessCommentDialog = true + }, }, computed: { titleShow () {