From 081a9908dd716f9d433acee14dafe762e950313d Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 2 Sep 2025 11:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90mRecist=E3=80=91=E5=9F=BA=E7=BA=BF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=9D=B6=E7=97=85=E7=81=B6=E6=9C=AA=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=85=B8=E5=9E=8B=E8=82=9D=E5=86=85=E7=97=85=E7=81=B6?= =?UTF-8?q?=E6=97=B6=E8=BF=9B=E8=A1=8C=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MRecist/QuestionForm.vue | 58 +++++++++++++------ 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionForm.vue index 1cc4895..8d2eeff 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/MRecist/QuestionForm.vue @@ -802,35 +802,55 @@ export default { async handleSave() { const valid = await this.$refs.measurementForm.validate() if (!valid) return + var IntrahepaticLesion = this.getQuestionVal(21) + if (this.lesionType === 0 && this.isBaseLineTask && !IntrahepaticLesion) { + let questions = this.tableQuestions.find(item => item.QuestionEnName === 'Target Lesion' && item.QuestionName === '靶病灶') + let num = 0 + if (questions.TableQuestions && Array.isArray(questions.TableQuestions.Answers)) { + questions.TableQuestions.Answers.forEach(item => { + if (item.LesionType === 0 && item.LesionName !== this.questionForm.LesionName) num++ + }) + } + if (num <= 0 && !this.questionForm.RowId) { + const confirm = await this.$confirm( + this.$t('trials:mRecist:warnning:msg7'), + { + type: 'warning', + distinguishCancelAndClose: true + } + ) + if (confirm !== 'confirm') return + } + } const loading = this.$loading({ fullscreen: true }) var measureData = this.questionForm.MeasureData var lesionState = this.getQuestionVal(7) var lesionLength = this.getQuestionVal(0) var lesionShort = this.getQuestionVal(1) var lymphNodes = this.getQuestionVal(2) - var IntrahepaticLesion = this.getQuestionVal(21) + // var IntrahepaticLesion = this.getQuestionVal(21) const lesionPart = this.getQuestionVal(8) if (this.isBaseLineTask) { // 添加为典型肝内病灶的非靶病灶时,判断靶病灶中典型肝内病灶数量,<2 时提示 - if (this.lesionType !== 0 && IntrahepaticLesion === 1) { - let questions = this.tableQuestions.find(item => item.QuestionEnName === 'Target Lesion' && item.QuestionName === '靶病灶') - let num = 0 - if (questions.TableQuestions && Array.isArray(questions.TableQuestions.Answers)) { - questions.TableQuestions.Answers.forEach(item => { - if (item.IntrahepaticLesion && item.IntrahepaticLesion > 0) num++ - }) - } - if (num < 2) { - this.$confirm(this.$t('trials:reading:warnning:msg199'), { - type: 'warning', - showCancelButton: false, - callback: action => { } - }) - loading.close() - return - } - } + // if (this.lesionType !== 0 && IntrahepaticLesion === 1) { + // let questions = this.tableQuestions.find(item => item.QuestionEnName === 'Target Lesion' && item.QuestionName === '靶病灶') + // let num = 0 + // if (questions.TableQuestions && Array.isArray(questions.TableQuestions.Answers)) { + // questions.TableQuestions.Answers.forEach(item => { + // if (item.IntrahepaticLesion && item.IntrahepaticLesion > 0) num++ + // }) + // } + // if (num < 2) { + // this.$confirm(this.$t('trials:reading:warnning:msg199'), { + // type: 'warning', + // showCancelButton: false, + // callback: action => { } + // }) + // loading.close() + // return + // } + // } // 基线 // 靶病灶且状态为存在(0) if (this.lesionType === 0 && lesionState === 0) {