diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue index 7336fc8d..d620d7d8 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue @@ -45,7 +45,7 @@ @click="locateAnnotation(question)" >{{ $t('trials:lugano:button:locateAnnotation') }} - + diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue index 40daaef4..ef4f0f3f 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue @@ -328,6 +328,10 @@ export default { var idx = this.measurements.findIndex(i => i.QuestionId === Id) if (idx === -1) return this.$set(this.questionForm, Id, '') + + if (!this.questionForm[this.liverSuvmaxId] && !this.questionForm[this.lungSuvmaxId]) { + this.clearPet5PS() + } // var pet5PS = this.setpet5PS() // this.questionForm[this.pet5PSId] = pet5PS // this.calculatePet5PS = pet5PS @@ -336,6 +340,7 @@ export default { FusionEvent.$emit('removeAnnotation', { otherMeasureData: this.measurements[idx].OtherMeasureData, type: 'clear' }) var remark = this.measurements[idx].OtherMeasureData.data.remark remark === 'Liver' ? this.liverIsInsideVolume = true : remark === 'Mediastinum' ? this.lungIsInsideVolume = true : '' + this.setQuestionStatus(this.questions, this.measurements[idx].QuestionType) this.measurements.splice(idx, 1) }, locateAnnotation(obj) { @@ -347,6 +352,18 @@ export default { FusionEvent.$emit('imageLocation', { otherMeasureData: otherMeasureData }) }, + clearPet5PS() { + this.questionForm[this.pet5PSId] = '' + this.questionForm[this.uptakeFromBaselineId] = '' + 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 + } + } + }, saveAnnotation(question) { if ((question.QuestionType === 51 && !this.liverIsInsideVolume) || (question.QuestionType === 52 && !this.lungIsInsideVolume)) { // 当前标记在图像外 diff --git a/src/views/trials/trials-panel/reading/dicoms/components/QuestionItem.vue b/src/views/trials/trials-panel/reading/dicoms/components/QuestionItem.vue index 021f4fb1..2e6fdb8f 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/QuestionItem.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/QuestionItem.vue @@ -46,7 +46,7 @@ {{ $t('trials:lugano:button:locateAnnotation') }} - + diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue index a60bf11b..84e3efad 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Questions.vue @@ -505,17 +505,33 @@ export default { var idx = this.measurements.findIndex(i => i.QuestionId === Id) if (idx === -1) return this.$set(this.questionForm, Id, '') + if (!this.questionForm[this.spleenTopId] && !this.questionForm[this.spleenBottomId]) { + this.clearSpleenStatus() + } // if (obj.QuestionType === 60 || obj.QuestionType === 61) { // this.$set(this.questionForm, this.spleenStatusId, '') // this.$set(this.questionForm, this.spleenLengthId, '') // } await store.dispatch('reading/removeNonTargetMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.measurements[idx].MeasureData, questionId: Id }) + this.setQuestionStatus(this.questions, this.measurements[idx].QuestionType) this.measurements.splice(idx, 1) DicomEvent.$emit('getMeasureData') // this.calculateSpleenStatus = '' // this.setSpleenCommentDisplay() this.formChanged = true }, + clearSpleenStatus() { + this.$set(this.questionForm, this.spleenStatusId, '') + this.$set(this.questionForm, this.spleenLengthId, '') + 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 + } + } + }, saveAnnotation(question) { this.loading = true // 获取截图