肝脏及pet5ps逻辑优化

uat_us
caiyiling 2024-04-24 17:03:27 +08:00
parent 612724cbea
commit 88f2c34db9
2 changed files with 27 additions and 8 deletions

View File

@ -664,9 +664,16 @@ export default {
// this.calculatePet5PS = pet5PS // this.calculatePet5PS = pet5PS
// this.setPet5PSCommentDisplay() // this.setPet5PSCommentDisplay()
// this.setUptakeFormBaseline() // this.setUptakeFormBaseline()
this.questionFormChangeState = true
}) })
for (let i = 0; i < this.questions[0].Childrens[0].Childrens.length; i++) {
if (this.questions[0].Childrens[0].Childrens[i].QuestionType === 59) {
this.questions[0].Childrens[0].Childrens[i].ShowQuestion = 2
this.questions[0].Childrens[0].Childrens[i].IsRequired = 3
this.questionForm[this.pet5PSCommentsId] = ''
break
}
}
this.questionFormChangeState = true
this.loading = false this.loading = false
}).catch(() => { this.loading = false }) }).catch(() => { this.loading = false })
}, },

View File

@ -283,7 +283,6 @@ export default {
currentSpleenStatus = isNaN(parseInt(currentSpleenStatus)) ? null : parseInt(currentSpleenStatus) currentSpleenStatus = isNaN(parseInt(currentSpleenStatus)) ? null : parseInt(currentSpleenStatus)
var stIdx = this.measurements.findIndex(i => i.QuestionType === 60) var stIdx = this.measurements.findIndex(i => i.QuestionType === 60)
var slIdx = this.measurements.findIndex(i => i.QuestionType === 61) var slIdx = this.measurements.findIndex(i => i.QuestionType === 61)
var chenckVaild = this.checkAnnotationValid(stIdx, slIdx)
if (currentSpleenLength && currentSpleenStatus === 5) { if (currentSpleenLength && currentSpleenStatus === 5) {
// '!' // '!'
@ -299,11 +298,6 @@ export default {
this.$alert(this.$t('trials:lugano:message:validSpleen2'), this.$t('trials:lugano:fusionDialog:warning'), { this.$alert(this.$t('trials:lugano:message:validSpleen2'), this.$t('trials:lugano:fusionDialog:warning'), {
callback: _ => {} callback: _ => {}
}) })
} else if (!chenckVaild) {
//
this.$alert(this.$t('trials:lugano:message:validSpleen3'), this.$t('trials:lugano:fusionDialog:warning'), {
callback: _ => {}
})
} else { } else {
this.saveQuestionsList() this.saveQuestionsList()
} }
@ -533,6 +527,16 @@ export default {
} }
}, },
saveAnnotation(question) { saveAnnotation(question) {
var stIdx = this.measurements.findIndex(i => i.QuestionType === 60)
var slIdx = this.measurements.findIndex(i => i.QuestionType === 61)
var chenckVaild = this.checkAnnotationValid(stIdx, slIdx)
if (!chenckVaild) {
//
this.$alert(this.$t('trials:lugano:message:validSpleen3'), this.$t('trials:lugano:fusionDialog:warning'), {
callback: _ => {}
})
return
}
this.loading = true this.loading = true
// //
var annotationObj = this.measurements.find(i => i.QuestionType === question.QuestionType) var annotationObj = this.measurements.find(i => i.QuestionType === question.QuestionType)
@ -578,6 +582,14 @@ export default {
await saveTaskQuestion(qsType, params) await saveTaskQuestion(qsType, params)
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(this.$t('common:message:savedSuccessfully'))
await this.setQuestions() await this.setQuestions()
for (let i = 0; i < this.questions[0].Childrens.length; i++) {
if (this.questions[0].Childrens[i].QuestionType === 58) {
this.questions[0].Childrens[i].ShowQuestion = 2
this.questions[0].Childrens[i].IsRequired = 3
this.questionForm[this.spleenCommentsId] = ''
break
}
}
this.loading = false this.loading = false
this.$set(question, 'SaveEnum', 0) this.$set(question, 'SaveEnum', 0)
DicomEvent.$emit('getReportInfo', true) DicomEvent.$emit('getReportInfo', true)