From b2ca803f94da32ecb8a33a135aa6cb8c86b8ddbd Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Wed, 8 Jan 2025 15:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=9D=E5=88=86=E6=AE=B5=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/reading.js | 2 +- .../dicoms/components/MRIPDFF/QuestionForm.vue | 12 +++++++----- .../dicoms/components/MRIPDFF/QuestionList.vue | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/store/modules/reading.js b/src/store/modules/reading.js index 51b7fd20..e53aaa8b 100644 --- a/src/store/modules/reading.js +++ b/src/store/modules/reading.js @@ -75,7 +75,7 @@ function getQuestions(questions) { let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj) answerObj.isMeasurable = isMeasurable answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj) - answerObj.saveTypeEnum = isNaN(parseFloat(isMeasurable)) ? 1 : 2 + answerObj.saveTypeEnum = parseInt(isMeasurable) === 1 && isNaN(parseFloat(answerObj.mean)) ? 1 : 2 } else { answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj) answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj) 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 21bbd120..6820fba2 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 @@ -273,7 +273,8 @@ export default { digitPlaces: 2, isMeasurableId: '', isExitsMarks: false, - isDisabledMeasurableRadio: false + isDisabledMeasurableRadio: false, + liverSeg: '' } }, mounted() { @@ -312,17 +313,18 @@ export default { // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整 let isMeasurable = this.getQuestionVal(1105) + const mean = this.getQuestionVal(1104) if (this.questionForm.saveTypeEnum !== 1) { - this.$set(this.questionForm, 'saveTypeEnum', isMeasurable === '' ? 1 : 2) + this.$set(this.questionForm, 'saveTypeEnum', parseInt(isMeasurable) === 1 && isNaN(parseFloat(mean)) ? 1 : 2) } - - this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex) this.lesionMark = this.getLesionName(this.orderMark, 1101) this.originalQuestionForm = { ...this.questionForm } this.markList = [] this.isExitsMarks = false this.isDisabledMeasurableRadio = false + let seg = this.getQuestionVal(1106) + this.liverSeg = this.$fd('LiverSegmentation', seg) if (this.answers.TableQuestionMarkList) { let arr = JSON.parse(this.answers.TableQuestionMarkList) arr.map(i=>{ @@ -336,7 +338,7 @@ export default { this.markList.push({tableQuestionId: i.TableQuestionId, measureData: i, saveEnum: 1}) }) } - const mean = this.getQuestionVal(1104) + let newMean = this.getMean() if (newMean !== mean) { let meanId = this.getQuestionId(1104) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionList.vue index 9496a11e..036ddf99 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/MRIPDFF/QuestionList.vue @@ -513,7 +513,7 @@ export default { item.TableQuestions.Answers.map(t => { const refName = `${item.Id}_${t.RowIndex}` if (this.$refs[refName] && this.$refs[refName][0] && this.$refs[refName][0].questionForm.saveTypeEnum !== 2) { - var lessionName = this.getLesionName(item.OrderMark, t.RowIndex) + var lessionName = this.$refs[refName][0].liverSeg arr.push({ lessionName: lessionName, rowIndex: t.RowIndex, questionId: item.Id }) } })