企标评价

This commit is contained in:
shenyanpei
2022-01-29 17:22:51 +08:00
parent 1bab862ca7
commit f2520e939d
@@ -23,7 +23,7 @@
style="border-top:none;position: absolute;right: 36px;">
<div class="modular-header" style="height: 50px;">
<div class="modular-header-btn">
<el-button type="warning" icon="el-icon-edit" @click="businessCommentDialog = true">企标评价</el-button>
<el-button type="warning" icon="el-icon-edit" @click="qbBtn">企标评价</el-button>
<el-dialog title="企业标准评价" :visible.sync="businessCommentDialog" :width="(commentAverageScoreTag === '1' && commentActiveName !== 'dynamicComment')?'90%':'65%'" :close-on-click-modal="false">
<el-tabs v-model="commentActiveName" @tab-click="tabsClick">
<el-tab-pane label="动态评价" name="dynamicComment">
@@ -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 () {