fix: 企标详情页的评分计算修改
This commit is contained in:
@@ -1373,6 +1373,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
score: 0,
|
score: 0,
|
||||||
|
XGLC:'',
|
||||||
externalStatus:'',
|
externalStatus:'',
|
||||||
QFTP: false,
|
QFTP: false,
|
||||||
textOptions: [],
|
textOptions: [],
|
||||||
@@ -1672,7 +1673,7 @@ export default {
|
|||||||
getScore () {
|
getScore () {
|
||||||
//查询动态评价总平均分和质量评价总平均分
|
//查询动态评价总平均分和质量评价总平均分
|
||||||
let standId = this.$route.params.id
|
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
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
@@ -2490,6 +2491,12 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.sarStandardsInfoEO = res.data || {}
|
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) {
|
if (this.sarStandardsInfoEO.standCode && this.sarStandardsInfoEO.standCode.indexOf('Q/QCBFC') !== -1) {
|
||||||
this.QFTP = true
|
this.QFTP = true
|
||||||
}
|
}
|
||||||
@@ -3395,7 +3402,7 @@ export default {
|
|||||||
this.STANDSOURCEREVISION = res.data.STANDSOURCEREVISION
|
this.STANDSOURCEREVISION = res.data.STANDSOURCEREVISION
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
this.getScore()
|
|
||||||
/*
|
/*
|
||||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
|
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
|
||||||
_this: this
|
_this: this
|
||||||
@@ -3448,6 +3455,7 @@ export default {
|
|||||||
this.getOrgTreeSource()
|
this.getOrgTreeSource()
|
||||||
this.standItemEO.standId = this.$route.params.id
|
this.standItemEO.standId = this.$route.params.id
|
||||||
Promise.all([this.queryDisplayLocation(), this.selectStandMessage(), this.getAddFormFieldList()]).then(async(values) => {
|
Promise.all([this.queryDisplayLocation(), this.selectStandMessage(), this.getAddFormFieldList()]).then(async(values) => {
|
||||||
|
this.getScore()
|
||||||
const [displayLocation, {attrInfoMap: dynamicFormField}, formFieldList] = values
|
const [displayLocation, {attrInfoMap: dynamicFormField}, formFieldList] = values
|
||||||
// const relatedPlansRes = await this.queryRelatedPlans()
|
// const relatedPlansRes = await this.queryRelatedPlans()
|
||||||
// const relatedPlans = relatedPlansRes.list
|
// const relatedPlans = relatedPlansRes.list
|
||||||
|
|||||||
Reference in New Issue
Block a user