From 85b3960f9747eeddc9715ce4632740ff8b803151 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 10 Jan 2025 11:37:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=AE=B5=E6=98=AF=E5=90=A6=E5=8F=AF?= =?UTF-8?q?=E6=B5=8B=E9=87=8F=E9=80=BB=E8=BE=91=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms/components/MRIPDFF/QuestionForm.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionForm.vue index b409588d..3a6ad741 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionForm.vue @@ -299,18 +299,20 @@ export default { if (item.DictionaryCode) { val = isNaN(parseInt(this.answers[item.Id])) ? this.answers[item.Id] : parseInt(this.answers[item.Id]) } - if (item.Id === this.isMeasurableId && !isNaN(parseInt(this.questionForm[item.Id]))) { - // 不做处理? - console.log(this.questionForm[item.Id]) - } else { - this.$set(this.questionForm, item.Id, val) - } + this.$set(this.questionForm, item.Id, val) }) this.$set(this.questionForm, 'MeasureData', this.answers.MeasureData ? JSON.parse(this.answers.MeasureData) : '') this.$set(this.questionForm, 'RowIndex', this.answers.RowIndex ? this.answers.RowIndex : '') this.$set(this.questionForm, 'RowId', this.answers.RowId ? this.answers.RowId : '') - + // 如果存在标记且是否可测量为否,则将是否可测量更改为是 + if (this.isCurrentTask && this.readingTaskState < 2) { + let arr = JSON.parse(this.answers.TableQuestionMarkList) + let isExitsMarks = arr.findIndex(i=>i.MeasureData) > -1 + if (isExitsMarks && parseInt(this.questionForm[this.isMeasurableId]) === 0) { + this.$set(this.questionForm, this.isMeasurableId, 1) + } + } // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整 let isMeasurable = this.getQuestionVal(1105) const mean = this.getQuestionVal(1104) @@ -330,7 +332,7 @@ export default { arr.map(i=>{ if (i.MeasureData) { this.isExitsMarks = true - if (!isNaN(parseInt(isMeasurable)) && parseInt(isMeasurable) === 1) { + if (!isNaN(parseInt(isMeasurable)) && parseInt(isMeasurable) === 1 && this.isCurrentTask && this.readingTaskState < 2) { this.isDisabledMeasurableRadio = true } i.MeasureData = JSON.parse(i.MeasureData)