From fcc239b54e010cf618869c53ea95fa58d06897e3 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 23 Feb 2024 14:33:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?lugano=E7=97=85=E7=81=B6=E8=9E=8D=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms/components/DicomCanvas.vue | 8 +++ .../dicoms/components/Lugano/QuestionForm.vue | 72 +++++++++++++------ .../dicoms/components/Lugano/QuestionList.vue | 11 +-- 3 files changed, 65 insertions(+), 26 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue index 7fa1137d..8273b0fd 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue @@ -680,6 +680,14 @@ export default { const imageId = this.stack.imageIds[this.stack.currentImageIdIndex] ToolStateManager.clearImageIdToolState(imageId) cornerstone.updateImage(this.canvas, true) + var criterionType = parseInt(localStorage.getItem('CriterionType')) + if (this.isFirstChangeTask) { + this.disabledMarks = this.getDisabledMarks(this.visitTaskList[idx].MeasureData) + } else if (criterionType === 2) { + this.disabledMarks = this.getMergeMarks(this.visitTaskList[idx].MeasureData) + } else { + this.disabledMarks = [] + } return true }, onContextmenu(event) { diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue index 1e52c47a..eebc9993 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue @@ -470,27 +470,39 @@ export default { sdiIncrease = isNaN(parseFloat(sdiIncrease)) ? 0 : parseFloat(sdiIncrease) if (!this.isBaseLineTask && state === 4 && this.lesionType === 0 && ldi && pddIncrease && ldiIncrease && sdiIncrease) { - if (this.splitLesionTargetPDD) { - var minPPD = this.getQuestionVal(13) - minPPD = parseFloat(minPPD) - pddIncrease = ((((this.splitLesionTargetPDD - minPPD) / minPPD)) * 100).toFixed(this.digitPlaces) - } - /** 疾病进展 + /** 融合主病灶疾病进展 + * 当前融合靶病灶LDi>15 + * 相比最低点PPD增加百分比 ≥50% + **/ + if (this.answers.SplitOrMergeType === '4') { + if (ldi > 15 && pddIncrease >= 50) { + this.stateDisabled = true + } else { + this.stateDisabled = false + } + } else { + if (this.splitLesionTargetPDD) { + var minPPD = this.getQuestionVal(13) + minPPD = parseFloat(minPPD) + pddIncrease = ((((this.splitLesionTargetPDD - minPPD) / minPPD)) * 100).toFixed(this.digitPlaces) + } + /** 疾病进展 * 15mm<当前靶病灶LDi≤20mm * 相比最低点PPD增加百分比 ≥50% * 相比PPD最低点LDi增加值 ≥5 mm 或者 相比PPD最低点SDi增加值≥5 mm **/ - if ((ldi > 15 && ldi <= 20) && (pddIncrease >= 50) && (ldiIncrease >= 5 || sdiIncrease >= 5)) { - this.stateDisabled = true - } else if ((ldi > 20) && (pddIncrease >= 50) && (ldiIncrease >= 10 || sdiIncrease >= 10)) { + if ((ldi > 15 && ldi <= 20) && (pddIncrease >= 50) && (ldiIncrease >= 5 || sdiIncrease >= 5)) { + this.stateDisabled = true + } else if ((ldi > 20) && (pddIncrease >= 50) && (ldiIncrease >= 10 || sdiIncrease >= 10)) { /** 疾病进展 * 当前靶病灶LDi>20 mm * 相比最低点PPD增加百分比 ≥50% * 相比PPD最低点LDi增加值 ≥10 mm 或者 相比PPD最低点SDi增加值Sdi ≥10 mm **/ - this.stateDisabled = true - } else { - this.stateDisabled = false + this.stateDisabled = true + } else { + this.stateDisabled = false + } } } else { this.stateDisabled = false @@ -968,32 +980,48 @@ export default { } /** 疾病进展* **/ if (!this.isBaseLineTask && ldi && pddIncreaseNum && ldiIncrease && sdiIncrease && this.lesionType === 0 && this.isCurrentTaskAdd === 'False') { + if (this.answers.SplitOrMergeType === '4') { + /** 融合主病灶疾病进展 + * 当前融合靶病灶LDi>15 + * 相比最低点PPD增加百分比 ≥50% + **/ + if (ldi > 15 && pddIncreaseNum >= 50) { + console.log('融合主病灶疾病进展') + const stateId = this.getQuestionId(7) + this.$set(this.questionForm, stateId, 4) + this.stateDisabled = true + } else { + // 不符合疾病进展是否需要清空修改前疾病进展的状态 + this.stateDisabled = false + } + } else { /** 疾病进展 * 15mm<当前靶病灶LDi≤20mm * 相比最低点PPD增加百分比 ≥50% * 相比PPD最低点LDi增加值 ≥5 mm 或者 相比PPD最低点SDi增加值≥5 mm **/ - if ((ldi > 15 && ldi <= 20) && (pddIncreaseNum >= 50) && (ldiIncrease >= 5 || sdiIncrease >= 5)) { - const stateId = this.getQuestionId(7) - this.$set(this.questionForm, stateId, 4) - this.stateDisabled = true - } else if ((ldi > 20) && (pddIncreaseNum >= 50) && (ldiIncrease >= 10 || sdiIncrease >= 10)) { + if ((ldi > 15 && ldi <= 20) && (pddIncreaseNum >= 50) && (ldiIncrease >= 5 || sdiIncrease >= 5)) { + const stateId = this.getQuestionId(7) + this.$set(this.questionForm, stateId, 4) + this.stateDisabled = true + } else if ((ldi > 20) && (pddIncreaseNum >= 50) && (ldiIncrease >= 10 || sdiIncrease >= 10)) { /** 疾病进展 * 当前靶病灶LDi>20 mm * 相比最低点PPD增加百分比 ≥50% * 相比PPD最低点LDi增加值 ≥10 mm 或者 相比PPD最低点SDi增加值Sdi ≥10 mm **/ - const stateId = this.getQuestionId(7) - this.$set(this.questionForm, stateId, 4) - this.stateDisabled = true - } else { + const stateId = this.getQuestionId(7) + this.$set(this.questionForm, stateId, 4) + this.stateDisabled = true + } else { // 不符合疾病进展是否需要清空修改前疾病进展的状态 // const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : '' // if (lesionState === 4) { // const stateId = this.getQuestionId(7) // this.$set(this.questionForm, stateId, null) // } - this.stateDisabled = false + this.stateDisabled = false + } } } else { // 不符合疾病进展是否需要清空修改前疾病进展的状态 diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue index df68e89e..f92dff6c 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionList.vue @@ -66,11 +66,14 @@
- +
+
+
{{ item.TableQuestions.Answers[i].lesionPart }} @@ -95,7 +98,7 @@
- + @@ -708,8 +711,8 @@ export default { var params = { visitTaskId: this.visitTaskId, questionId: this.mergeInfo.questionId, - mergeRowId: this.mergeInfo.mergeRowId, - meltingInToLesionList: this.mergeList + mergeMainRowId: this.mergeInfo.mergeRowId, + mergeRowIdList: this.mergeList } mergeLesion(params).then(res => { this.merge.loading = false From c1faaf9ef0cc1b8cd2986d72a9613ce2cd65c248 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 23 Feb 2024 14:35:55 +0800 Subject: [PATCH 2/3] =?UTF-8?q?lugano=E7=97=85=E7=81=B6=E8=9E=8D=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms/components/Lugano/QuestionForm.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue index eebc9993..80a38d01 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue @@ -986,7 +986,6 @@ export default { * 相比最低点PPD增加百分比 ≥50% **/ if (ldi > 15 && pddIncreaseNum >= 50) { - console.log('融合主病灶疾病进展') const stateId = this.getQuestionId(7) this.$set(this.questionForm, stateId, 4) this.stateDisabled = true From 0c4065102cb619a027a1c621900c39ff82de83bd Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Fri, 23 Feb 2024 14:46:54 +0800 Subject: [PATCH 3/3] =?UTF-8?q?lugano=E7=97=85=E7=81=B6=E8=9E=8D=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms/components/Lugano/QuestionForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue index 80a38d01..26f50181 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Lugano/QuestionForm.vue @@ -474,7 +474,7 @@ export default { * 当前融合靶病灶LDi>15 * 相比最低点PPD增加百分比 ≥50% **/ - if (this.answers.SplitOrMergeType === '4') { + if (this.answers.SplitOrMergeType === '4' || this.answers.SplitOrMergeType === '5') { if (ldi > 15 && pddIncrease >= 50) { this.stateDisabled = true } else { @@ -980,7 +980,7 @@ export default { } /** 疾病进展* **/ if (!this.isBaseLineTask && ldi && pddIncreaseNum && ldiIncrease && sdiIncrease && this.lesionType === 0 && this.isCurrentTaskAdd === 'False') { - if (this.answers.SplitOrMergeType === '4') { + if (this.answers.SplitOrMergeType === '4' || this.answers.SplitOrMergeType === '5') { /** 融合主病灶疾病进展 * 当前融合靶病灶LDi>15 * 相比最低点PPD增加百分比 ≥50%