与基线摄取值变化自动计算逻辑更改

uat_us
caiyiling 2024-04-18 16:45:45 +08:00
parent 28b644a0ce
commit 8618b188ae
2 changed files with 26 additions and 19 deletions

View File

@ -348,6 +348,7 @@ export default {
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
this.setUptakeFormBaseline()
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 : ''
@ -454,13 +455,14 @@ export default {
}
if (measurement.type === 'CircleROI') {
const suvMax = measurement.suvMax
if(this.questionForm[obj.QuestionId] !== suvMax){
if (this.questionForm[obj.QuestionId] !== suvMax) {
this.setPet5PSCommentDisplay()
this.$set(this.questionForm, obj.QuestionId, suvMax || null)
var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setUptakeFormBaseline()
}
}
FusionEvent.$emit('addOrUpdateAnnotations', { data })
@ -517,11 +519,12 @@ export default {
OrderMarkName: remark
}
if (measurement.type === 'CircleROI') {
this.setPet5PSCommentDisplay()
this.$set(this.questionForm, obj.QuestionId, null)
var pet5PS = this.setpet5PS()
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
this.setUptakeFormBaseline()
}
FusionEvent.$emit('addOrUpdateAnnotations', { data })
this.questionFormChangeState = true
@ -535,6 +538,7 @@ export default {
this.questionForm[this.pet5PSId] = pet5PS
this.calculatePet5PS = pet5PS
this.setPet5PSCommentDisplay()
this.setUptakeFormBaseline()
this.measurements[idx].OtherMeasureData = ''
this.currentQsId = this.measurements[idx].QuestionId
// const { QuestionId, QuestionType } = this.measurements[idx]
@ -548,16 +552,7 @@ export default {
this.questionForm[obj.key] = obj.val
if (obj.key === this.pet5PSId) {
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'
}
}
this.setUptakeFormBaseline()
}
},
setPet5PSCommentDisplay() {
@ -577,6 +572,18 @@ export default {
}
}
},
setUptakeFormBaseline() {
// 线
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'
}
}
},
setpet5PS() {
console.log('setpet5PS')
// 1

View File

@ -28,11 +28,11 @@
>
<!-- 下拉框 -->
<el-select
:ref="`select_LesionType`"
v-model="questionForm.LesionType"
filterable
:disabled="!isCurrentTask || readingTaskState>=2 || !isBaseLineTask || answers.SplitOrMergeType === '1'"
@change="((val)=>{lesionTypeChange(val)})"
:ref="`select_LesionType`"
>
<el-option
@ -85,12 +85,12 @@
<el-select
v-if="qs.Type==='select'"
:ref="`select_${qs.Id}`"
v-model="questionForm[qs.Id]"
filterable
:placeholder="qs.QuestionMark === 8 ? $t('common:placeholder:selectorsearch') : $t('common:placeholder:select')"
:disabled="!isCurrentTask || readingTaskState>=2 || qs.QuestionMark === 0 || qs.QuestionMark === 1 || qs.QuestionMark === 2 || qs.QuestionMark === 5 || (qs.QuestionMark === 6 && (isCurrentTaskAdd === 'False' || (isCurrentTaskAdd === 'True' && !questionForm.IsCanEditPosition) || !!answers.SplitOrMergeLesionName))|| (qs.QuestionMark === 8 && (isCurrentTaskAdd === 'False'|| !!answers.SplitOrMergeLesionName)) || (qs.QuestionMark === 10 && (isCurrentTaskAdd === 'False' || (isCurrentTaskAdd === 'True' && !questionForm.IsCanEditPosition) || !!answers.SplitOrMergeLesionName)) || (qs.QuestionMark === 7 && stateDisabled) || answers.SplitOrMergeType === '1' || (qs.QuestionMark === 7 && answers.SplitOrMergeType === '3')"
@change="((val)=>{formItemChange(val, qs)})"
:ref="`select_${qs.Id}`"
>
<template v-if="qs.QuestionMark === 8" #prefix>
<span style="padding-left: 5px;">
@ -366,11 +366,11 @@ export default {
},
methods: {
scrollHandle() {
for(let k in this.$refs) {
if(k.indexOf('select_') === -1) continue
if(this.$refs[k] instanceof Array){
for (const k in this.$refs) {
if (k.indexOf('select_') === -1) continue
if (this.$refs[k] instanceof Array) {
this.$refs[k][0].blur()
}else{
} else {
this.$refs[k].blur()
}
}