PET 5PS评分自动计算调整
parent
b4f58fddb7
commit
06761092e3
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue