fix: 企标详情页的评分计算修改

This commit is contained in:
wxyclub
2024-03-29 15:51:50 +08:00
parent 2a8c9930b9
commit 8d473b0c76
@@ -1373,6 +1373,7 @@ export default {
data () {
return {
score: 0,
XGLC:'',
externalStatus:'',
QFTP: false,
textOptions: [],
@@ -1672,7 +1673,7 @@ export default {
getScore () {
//查询动态评价总平均分和质量评价总平均分
let standId = this.$route.params.id
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId,prcNum:this.XGLC}, {
_this: this
}, res => {
if (res.ok) {
@@ -2490,6 +2491,12 @@ export default {
_this: this
}, res => {
this.sarStandardsInfoEO = res.data || {}
if (res.data.attrInfoMap && res.data.attrInfoMap.XGLC){
let XGLCData = res.data.attrInfoMap.XGLC.split(',')
this.XGLC = XGLCData[XGLCData.length - 1]
}else{
this.XGLC = ''
}
if (this.sarStandardsInfoEO.standCode && this.sarStandardsInfoEO.standCode.indexOf('Q/QCBFC') !== -1) {
this.QFTP = true
}
@@ -3395,7 +3402,7 @@ export default {
this.STANDSOURCEREVISION = res.data.STANDSOURCEREVISION
}, e => {
})
this.getScore()
/*
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
_this: this
@@ -3448,6 +3455,7 @@ export default {
this.getOrgTreeSource()
this.standItemEO.standId = this.$route.params.id
Promise.all([this.queryDisplayLocation(), this.selectStandMessage(), this.getAddFormFieldList()]).then(async(values) => {
this.getScore()
const [displayLocation, {attrInfoMap: dynamicFormField}, formFieldList] = values
// const relatedPlansRes = await this.queryRelatedPlans()
// const relatedPlans = relatedPlansRes.list