PET 5PS评分自动计算调整

uat_us
caiyiling 2024-04-12 16:56:57 +08:00
parent b4f58fddb7
commit 06761092e3
2 changed files with 11 additions and 36 deletions

View File

@ -545,6 +545,16 @@ export default {
this.questionForm[obj.key] = obj.val this.questionForm[obj.key] = obj.val
if (obj.key === this.pet5PSId) { if (obj.key === this.pet5PSId) {
this.setPet5PSCommentDisplay() this.setPet5PSCommentDisplay()
// 线
if (!this.isBaseLineTask && this.questionForm[this.pet5PSId] > 0) {
// 访PET 5ps线PET 5ps
// 访PET 5ps线PET 5ps
if (this.questionForm[this.pet5PSId] > this.baseLinePET5PS) {
this.questionForm[this.uptakeFromBaselineId] = '1'
} else if (this.questionForm[this.pet5PSId] < this.baseLinePET5PS) {
this.questionForm[this.uptakeFromBaselineId] = '2'
}
}
} }
}, },
setPet5PSCommentDisplay() { setPet5PSCommentDisplay() {
@ -563,17 +573,6 @@ export default {
} }
} }
} }
// 线
if (!this.isBaseLineTask && this.questionForm[this.pet5PSId] > 0) {
// 访PET 5ps线PET 5ps
// 访PET 5ps线PET 5ps
if (this.questionForm[this.pet5PSId] > this.baseLinePET5PS) {
this.questionForm[this.uptakeFromBaselineId] = '1'
} else if (this.questionForm[this.pet5PSId] < this.baseLinePET5PS) {
this.questionForm[this.uptakeFromBaselineId] = '2'
}
// this.questionForm[this.uptakeFromBaselineId] = this.questionForm[this.pet5PSId] > this.baseLinePET5PS ? '1' : this.questionForm[this.pet5PSId] < this.baseLinePET5PS ? '2' : ''
}
}, },
setpet5PS() { setpet5PS() {
console.log('setpet5PS') console.log('setpet5PS')
@ -623,7 +622,7 @@ export default {
this.setSuvChild(v.Childrens) this.setSuvChild(v.Childrens)
} }
var pet5PS = this.setpet5PS() var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS // this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay() this.setPet5PSCommentDisplay()
this.questionFormChangeState = true this.questionFormChangeState = true

View File

@ -193,30 +193,6 @@ export default {
this.loading = false this.loading = false
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },
async initList1() {
var i = this.visitTaskList.findIndex(i => i.VisitTaskId === this.visitTaskId)
if (i > -1) {
this.visitTaskId = this.visitTaskList[i].VisitTaskId
this.taskBlindName = this.visitTaskList[i].TaskBlindName
this.readingTaskState = this.visitTaskList[i].ReadingTaskState
this.isBaseLineTask = this.visitTaskList[i].IsBaseLineTask
this.isCurrentTask = this.visitTaskList[i].IsCurrentTask
this.activeName = ''
this.activeItem.activeRowIndex = null
this.activeItem.activeCollapseId = null
this.questions = this.visitTaskList[i].ReadingQuestions
this.$nextTick(() => {
this.getTableQuestions()
this.tableQuestions.forEach(item => {
item.TableQuestions.Answers.forEach(i => {
var refName = `${item.Id}_${i.RowIndex}`
this.$refs[refName] && this.$refs[refName][0].initForm()
})
})
})
}
},
getQuestions(questions, isRerender) { getQuestions(questions, isRerender) {
questions.forEach(item => { questions.forEach(item => {
if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) { if (item.Type === 'table' && item.TableQuestions && item.TableQuestions.Answers.length > 0) {