From 663c78ef51062abed6369e247e2422857ef3c3d5 Mon Sep 17 00:00:00 2001
From: caiyiling <1321909229@qq.com>
Date: Wed, 17 Jul 2024 15:13:55 +0800
Subject: [PATCH] =?UTF-8?q?iRecist=E5=92=8CRecist=E9=98=85=E7=89=87?=
=?UTF-8?q?=E6=A0=87=E5=87=86=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/reading.js | 7 +
.../dicoms/components/Fusion/QuestionItem.vue | 6 +-
.../components/IRecist/QuestionForm.vue | 2005 ++++++++---------
.../components/IRecist/QuestionList.vue | 65 +-
.../reading/dicoms/components/Questions.vue | 12 +
.../dicoms/components/Recist/QuestionForm.vue | 1304 +++++------
.../dicoms/components/Recist/QuestionList.vue | 66 +-
.../components/RecistBM/QuestionForm.vue | 60 +-
.../components/RecistBM/QuestionList.vue | 49 +-
9 files changed, 1836 insertions(+), 1738 deletions(-)
diff --git a/src/api/reading.js b/src/api/reading.js
index 0f670256..e2596fde 100644
--- a/src/api/reading.js
+++ b/src/api/reading.js
@@ -187,3 +187,10 @@ export function setSkipReadingCache(param) {
data: param
})
}
+export function resetReadingTask(param) {
+ return request({
+ url: `/ReadingImageTask/resetReadingTask`,
+ method: 'post',
+ data: param
+ })
+}
diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue
index 15be4395..294b31ff 100644
--- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/QuestionItem.vue
@@ -7,7 +7,7 @@
{{ language==='en'?question.GroupEnName:question.GroupName }}
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
0mm,自动给“存在”状态,如果淋巴结靶病灶短径>=10mm,自动给“存在”状态。淋巴结靶病灶在短径小于10mm时,用十字线标记测量时标记为消失
- // if (!this.isBaseLineTask && this.lesionType === 0 && ((isLymphLesion === 0 && lesionLength > 0) || (isLymphLesion === 1 && lesionShort >= 10))) {
- // const stateId = this.getQuestionId(7)
- // this.$set(this.questionForm, stateId, 0)
- // lesionState = 0
- // }
-
- // if (!this.isBaseLineTask && this.lesionType === 0 && (isLymphLesion === 1 && measureData.type === 'Bidirectional' && lesionShort < 10)) {
- // const stateId = this.getQuestionId(7)
- // this.$set(this.questionForm, stateId, 3)
- // lesionState = 3
- // }
- // // 基线时,默认状态都为存在
- // if (this.isBaseLineTask && !lesionState) {
- // const stateId = this.getQuestionId(7)
- // this.$set(this.questionForm, stateId, 0)
- // lesionState = 0
- // }
-
+ const lesionL = this.getQuestionVal(0)
+ const lesionS = this.getQuestionVal(1)
+ var lesionState = this.getQuestionVal(7)
this.$emit('resetQuestions', { isLymphLesion: isLymph, lesionPart, lesionOrgan, lesionShort: lesionS, lesionLength: lesionL, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
this.toolType = measureData.type
DicomEvent.$emit('refreshStudyListMeasureData')
@@ -839,29 +815,33 @@ export default {
}
},
getQuestionVal(questionMark) {
- var idx = this.questions.findIndex(i => i.QuestionMark === questionMark)
+ const idx = this.questions.findIndex(i => i.QuestionMark === questionMark)
if (idx > -1) {
- var questionId = this.questions[idx].Id
- return this.questionForm[questionId]
+ const questionId = this.questions[idx].Id
+ const answer = this.questionForm[questionId]
+ if (isNaN(parseFloat(answer))) {
+ return answer
+ } else {
+ return parseFloat(answer)
+ }
} else {
return ''
}
},
filterState(arr) {
if (!this.isBaseLineTask) {
- var isLymphLesion = this.getQuestionVal(2)
- isLymphLesion = !isNaN(parseInt(isLymphLesion)) ? parseInt(isLymphLesion) : null
- const lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : 0
- const lesionShort = !isNaN(parseInt(this.getQuestionVal(1))) ? this.getQuestionVal(1) : 0
- const lastLesionL = !isNaN(parseInt(this.answers.LastTaskMajorAxis)) ? parseInt(this.answers.LastTaskMajorAxis) : 0
- const lastLesionS = !isNaN(parseInt(this.answers.LastTaskShortAxis)) ? parseInt(this.answers.LastTaskShortAxis) : 0
- if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionShort < lastLesionS) {
+ const isLymphLesion = this.getQuestionVal(2)
+ const lesionLength = this.getQuestionVal(0)
+ const lesionShort = this.getQuestionVal(1)
+ const bLesionL = !isNaN(parseFloat(this.answers.LastTaskMajorAxis)) ? parseFloat(this.answers.BaseLineMajorAxis) : 0
+ const bLesionS = !isNaN(parseFloat(this.answers.LastTaskShortAxis)) ? parseFloat(this.answers.BaseLineShortAxis) : 0
+ if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort < bLesionS) {
const v = this.isConvertedTask ? 4 : 1
arr = arr.filter(i => i.value !== v)
- } else if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionShort >= 10 && lesionShort > lastLesionS) {
+ } else if (this.lesionType === 1 && isLymphLesion === 1 && this.questionForm.MeasureData && this.questionForm.MeasureData.type === 'Bidirectional' && lesionShort >= 10 && lesionShort > bLesionS) {
const v = this.isConvertedTask ? 4 : 1
arr = arr.filter(i => i.value === 0 || i.value === v)
- } else if (this.lesionType === 1 && isLymphLesion === 0 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionLength < lastLesionL) {
+ } else if (this.lesionType === 1 && isLymphLesion === 0 && this.questionForm.MeasureData && (this.questionForm.MeasureData.type === 'Length' || this.questionForm.MeasureData.type === 'Bidirectional') && lesionLength < bLesionL) {
const v = this.isConvertedTask ? 4 : 1
arr = arr.filter(i => i.value !== v)
}
@@ -926,210 +906,693 @@ export default {
// 生成Blob对象(文件对象)
return new Blob([bytesCode], { type: imgtype })
},
- handleSave() {
- this.$refs.measurementForm.validate(async valid => {
- if (!valid) return
- const loading = this.$loading({ fullscreen: true })
- var measureData = this.questionForm.MeasureData
- var lesionState = this.getQuestionVal(7)
- var lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
- var lesionShort = !isNaN(parseInt(this.getQuestionVal(1))) ? this.getQuestionVal(1) : ''
- var lymphNodes = this.getQuestionVal(2)
- lymphNodes = (lymphNodes !== null && lymphNodes !== undefined) ? parseInt(lymphNodes) : null
- if (this.isBaseLineTask) {
- // 基线
- // 靶病灶且状态为存在(0)
- if (this.lesionType === 0 && lesionState === 0) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具,短径大于等于15mm
- if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 15)) {
- // 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记,且短径须大于15mm!
- this.$confirm(this.$t('trials:reading:warnning:msg19'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
- if (!(measureData && measureData.type === 'Length' && lesionLength >= 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) {
- // 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚!
- this.$confirm(this.$t('trials:reading:warnning:msg20'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
+ async handleSave() {
+ const valid = await this.$refs.measurementForm.validate()
+ if (!valid) 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)
+ if (this.isBaseLineTask) {
+ // 基线
+ // 靶病灶且状态为存在(0)
+ if (this.lesionType === 0 && lesionState === 0) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具,短径大于等于15mm
+ if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 15)) {
+ // 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记,且短径须大于15mm!
+ this.$confirm(this.$t('trials:reading:warnning:msg19'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
+ if (!(measureData && measureData.type === 'Length' && lesionLength >= 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) {
+ // 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚!
+ this.$confirm(this.$t('trials:reading:warnning:msg20'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
}
}
+ }
- // 非靶病灶且状态为存在(0)
- if (this.lesionType === 1 && lesionState === 0) {
- if (lymphNodes === 1) {
- // 淋巴结非靶病灶 必须使用长短径测量工具或箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
- this.$confirm(this.$t('trials:reading:warnning:msg21'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具或箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg22'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
+ // 非靶病灶且状态为存在(0)
+ if (this.lesionType === 1 && lesionState === 0) {
+ if (lymphNodes === 1) {
+ // 淋巴结非靶病灶 必须使用长短径测量工具或箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
+ // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记
+ this.$confirm(this.$t('trials:reading:warnning:msg21'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具或箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
+ // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg22'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
}
}
- } else {
- // 非基线
- // 靶病灶且状态为存在(0)
- if (this.lesionType === 0 && lesionState === 0) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具
- if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 10)) {
- // 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg23'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结靶病灶 直径测量工具
- if (!(measureData && measureData.type === 'Length')) {
- // `评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记!`
- this.$confirm(this.$t('trials:reading:warnning:msg24'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
+ }
+ } else {
+ // 非基线
+ // 靶病灶且状态为存在(0)
+ if (this.lesionType === 0 && lesionState === 0) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具
+ if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 10)) {
+ // 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg23'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结靶病灶 直径测量工具
+ if (!(measureData && measureData.type === 'Length')) {
+ // `评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记!`
+ this.$confirm(this.$t('trials:reading:warnning:msg24'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
}
}
- // 靶病灶且状态为太小(1)
- if (this.lesionType === 0 && lesionState === 1) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用箭头工具,短径记录为5mm
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg25'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- } else if (measureData && measureData.type === 'ArrowAnnotate') {
- const shortId = this.getQuestionId(1)
- this.$set(this.questionForm, shortId, 5)
- lesionShort = 5
- }
- } else {
- // 非淋巴结靶病灶 箭头工具,长径记录为5mm
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg26'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- } else if (measureData && measureData.type === 'ArrowAnnotate') {
- const lengthId = this.getQuestionId(0)
- this.$set(this.questionForm, lengthId, 5)
- lesionLength = 5
- }
+ }
+ // 靶病灶且状态为太小(1)
+ if (this.lesionType === 0 && lesionState === 1) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用箭头工具,短径记录为5mm
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg25'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ } else if (measureData && measureData.type === 'ArrowAnnotate') {
+ const shortId = this.getQuestionId(1)
+ this.$set(this.questionForm, shortId, 5)
+ lesionShort = 5
+ }
+ } else {
+ // 非淋巴结靶病灶 箭头工具,长径记录为5mm
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg26'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ } else if (measureData && measureData.type === 'ArrowAnnotate') {
+ const lengthId = this.getQuestionId(0)
+ this.$set(this.questionForm, lengthId, 5)
+ lesionLength = 5
}
}
+ }
- // 靶病灶且状态为无法评估(2)
- if (this.lesionType === 0 && lesionState === 2) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 不需要添加标记
- if (measureData) {
- // 评估状态为无法评估的淋巴结靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg27'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
+ // 靶病灶且状态为无法评估(2)
+ if (this.lesionType === 0 && lesionState === 2) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 不需要添加标记
+ if (measureData) {
+ // 评估状态为无法评估的淋巴结靶病灶不需要添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg27'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结靶病灶 不需要添加标记
+ if (measureData) {
+ // 状态为无法评估的非淋巴结靶病灶不需要添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg28'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 靶病灶且状态为消失(3)
+ if (this.lesionType === 0 && lesionState === 3) {
+ if (lymphNodes === 1) {
+ if (!(measureData && (measureData.type === 'Bidirectional' && lesionShort < 10))) {
+ // `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
+ this.$confirm(this.$t('trials:reading:warnning:msg29'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结靶病灶 箭头工具
+ if (!(measureData && measureData.type === 'ArrowAnnotate')) {
+ // 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg30'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ } else if (measureData && measureData.type === 'ArrowAnnotate') {
+ const lId = this.getQuestionId(0)
+ this.$set(this.questionForm, lId, 0)
+ lesionLength = 0
+ }
+ }
+ }
+
+ // 非靶病灶且状态为存在(0)
+ if (this.lesionType === 1 && lesionState === 0) {
+ if (lymphNodes === 1) {
+ // 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
+ // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg31'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
+ // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg32'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 非靶病灶且状态为显著增大(1)
+ if (this.lesionType === 1 && lesionState === 1) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
+ // `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
+ this.$confirm(this.$t('trials:reading:warnning:msg33'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
+ // 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg34'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 非靶病灶且状态为无法评估(2)
+ if (this.lesionType === 1 && lesionState === 2) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 无标记
+ if (measureData) {
+ // 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg35'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 无标记
+ if (measureData) {
+ // 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg36'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 非靶病灶且状态为消失(3)
+ if (this.lesionType === 1 && lesionState === 3) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg37'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 箭头工具
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg38'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 非靶病灶且状态为显著增大(4)
+ if (this.lesionType === 1 && lesionState === 4) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
+ // `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
+ this.$confirm(this.$t('trials:reading:warnning:msg33'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
+ // 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg34'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 非靶病灶且状态为进一步增大(5)
+ if (this.lesionType === 1 && lesionState === 5) {
+ if (lymphNodes === 1) {
+ // 淋巴结非靶病灶 必须使用长短径测量工具、矩形工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
+ // `评估状态为进一步增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
+ this.$confirm(this.$t('trials:iRecist:warnning:msg50'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
+ // 评估状态为进一步增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg51'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 新病灶且状态为明确(0)
+ if (this.lesionType === 2 && lesionState === 0) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为存在的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg39'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg40'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 新病灶且状态为疑似(1)
+ if (this.lesionType === 2 && lesionState === 1) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg41'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
+ // `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
+ this.$confirm(this.$t('trials:reading:warnning:msg42'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 新病灶且状态为无法评估(2)
+ if (this.lesionType === 2 && lesionState === 2) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (measureData) {
+ // `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
+ this.$confirm(this.$t('trials:reading:warnning:msg43'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (measureData) {
+ // 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg44'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 新病灶且状态为消失(3)
+ if (this.lesionType === 2 && lesionState === 3) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg45'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 箭头工具
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:reading:warnning:msg46'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ /** 新靶病灶 **/
+ if (this.lesionType === 5) {
+ if (this.isFirstChangeTask) {
+ // 靶病灶且状态为存在(0)
+ if (lesionState === 1) {
+ if (lymphNodes === 1) {
+ // 淋巴结新靶病灶 必须使用长短径测量工具,短径大于等于15mm
+ if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 15)) {
+ // 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记,且短径须大于15mm!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg31'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结新靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
+ if (!(measureData && measureData.type === 'Length' && lesionLength >= 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) {
+ // 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg32'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
}
- } else {
- // 非淋巴结靶病灶 不需要添加标记
- if (measureData) {
- // 状态为无法评估的非淋巴结靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg28'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
+ }
+ } else {
+ // 靶病灶且状态为存在(1)
+ if (lesionState === 1) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具
+ if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 10)) {
+ // 评估状态为存在的淋巴结新靶病灶需使用长短径测量工具添加标记! 短径应不小于10mm
+ this.$confirm(this.$t('trials:iRecist:warnning:msg1'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结靶病灶 直径测量工具
+ if (!(measureData && measureData.type === 'Length')) {
+ // `评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记!`
+ this.$confirm(this.$t('trials:iRecist:warnning:msg2'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+ // 靶病灶且状态为消失(2)
+ if (lesionState === 2) {
+ if (lymphNodes === 1) {
+ if (!(measureData && (measureData.type === 'Bidirectional' && lesionShort < 10))) {
+ // `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
+ this.$confirm(this.$t('trials:iRecist:warnning:msg3'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结靶病灶 箭头工具
+ if (!(measureData && measureData.type === 'ArrowAnnotate')) {
+ // 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg4'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ } else if (measureData && measureData.type === 'ArrowAnnotate') {
+ const lId = this.getQuestionId(0)
+ this.$set(this.questionForm, lId, 0)
+ lesionLength = 0
+ }
+ }
+ }
+
+ // 新靶病灶且状态为无法评估(3)
+ if (lesionState === 3) {
+ if (lymphNodes === 1) {
+ // 淋巴结新靶病灶 不需要添加标记
+ if (measureData) {
+ // 评估状态为无法评估的淋巴结新靶病灶不需要添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg5'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结靶病灶 不需要添加标记
+ if (measureData) {
+ // 状态为无法评估的非淋巴结新靶病灶不需要添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg6'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+
+ // 新靶病灶且状态为太小(4)
+ if (lesionState === 4) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用箭头工具,短径记录为5mm
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg33'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ } else if (measureData && measureData.type === 'ArrowAnnotate') {
+ const shortId = this.getQuestionId(1)
+ this.$set(this.questionForm, shortId, 5)
+ lesionShort = 5
+ }
+ } else {
+ // 非淋巴结靶病灶 箭头工具,长径记录为5mm
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg34'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ } else if (measureData && measureData.type === 'ArrowAnnotate') {
+ const lengthId = this.getQuestionId(0)
+ this.$set(this.questionForm, lengthId, 5)
+ lesionLength = 5
+ }
}
}
}
// 靶病灶且状态为消失(3)
- if (this.lesionType === 0 && lesionState === 3) {
- if (lymphNodes === 1) {
- if (!(measureData && (measureData.type === 'Bidirectional' && lesionShort < 10))) {
- // `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
- this.$confirm(this.$t('trials:reading:warnning:msg29'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结靶病灶 箭头工具
- if (!(measureData && measureData.type === 'ArrowAnnotate')) {
- // 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg30'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- } else if (measureData && measureData.type === 'ArrowAnnotate') {
- const lId = this.getQuestionId(0)
- this.$set(this.questionForm, lId, 0)
- lesionLength = 0
- }
- }
- }
+ // if (lesionState === 3) {
+ // if (lymphNodes === 1) {
+ // if (!(measureData && (measureData.type === 'Bidirectional' && lesionShort < 10))) {
+ // // `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
+ // this.$confirm(this.$t('trials:reading:warnning:msg29'), {
+ // type: 'warning',
+ // showCancelButton: false,
+ // callback: action => {}
+ // })
+ // loading.close()
+ // return
+ // }
+ // } else {
+ // // 非淋巴结靶病灶 箭头工具
+ // if (!(measureData && measureData.type === 'ArrowAnnotate')) {
+ // // 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
+ // this.$confirm(this.$t('trials:reading:warnning:msg30'), {
+ // type: 'warning',
+ // showCancelButton: false,
+ // callback: action => {}
+ // })
+ // loading.close()
+ // return
+ // } else if (measureData && measureData.type === 'ArrowAnnotate') {
+ // const lId = this.getQuestionId(0)
+ // this.$set(this.questionForm, lId, 0)
+ // lesionLength = 0
+ // }
+ // }
+ // }
+ }
- // 非靶病灶且状态为存在(0)
- if (this.lesionType === 1 && lesionState === 0) {
+ /** 新非靶病灶 **/
+ if (this.lesionType === 6) {
+ // 新非靶病灶且状态为存在(0)
+ if (lesionState === 0) {
if (lymphNodes === 1) {
// 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg31'), {
+ // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg7'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1140,8 +1603,8 @@ export default {
} else {
// 非淋巴结非靶病灶 直径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg32'), {
+ // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg8'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1151,14 +1614,13 @@ export default {
}
}
}
-
- // 非靶病灶且状态为显著增大(1)
- if (this.lesionType === 1 && lesionState === 1) {
+ // 非靶病灶且状态为增大(0)
+ if (lesionState === 1) {
if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
- // `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
- this.$confirm(this.$t('trials:reading:warnning:msg33'), {
+ // `评估状态为增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
+ this.$confirm(this.$t('trials:iRecist:warnning:msg9'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1169,8 +1631,8 @@ export default {
} else {
// 非淋巴结非靶病灶 直径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg34'), {
+ // 评估状态为增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg10'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1180,14 +1642,13 @@ export default {
}
}
}
-
// 非靶病灶且状态为无法评估(2)
- if (this.lesionType === 1 && lesionState === 2) {
+ if (lesionState === 2) {
if (lymphNodes === 1) {
// 淋巴结靶病灶 无标记
if (measureData) {
// 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg35'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg11'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1199,7 +1660,7 @@ export default {
// 非淋巴结非靶病灶 无标记
if (measureData) {
// 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg36'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg12'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1209,14 +1670,13 @@ export default {
}
}
}
-
// 非靶病灶且状态为消失(3)
- if (this.lesionType === 1 && lesionState === 3) {
+ if (lesionState === 3) {
if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
// 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg37'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg13'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1228,65 +1688,7 @@ export default {
// 非淋巴结非靶病灶 箭头工具
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
// 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg38'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
-
- // 非靶病灶且状态为显著增大(4)
- if (this.lesionType === 1 && lesionState === 4) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
- // `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
- this.$confirm(this.$t('trials:reading:warnning:msg33'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg34'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
-
- // 非靶病灶且状态为进一步增大(5)
- if (this.lesionType === 1 && lesionState === 5) {
- if (lymphNodes === 1) {
- // 淋巴结非靶病灶 必须使用长短径测量工具、矩形工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
- // `评估状态为进一步增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg50'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为进一步增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg51'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg14'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1296,14 +1698,17 @@ export default {
}
}
}
+ }
+ /** 其他既往新病灶 **/
+ if (this.lesionType === 7) {
// 新病灶且状态为明确(0)
- if (this.lesionType === 2 && lesionState === 0) {
+ if (lesionState === 0) {
if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为存在的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg39'), {
+ // 评估状态为明确的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg15'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1314,8 +1719,8 @@ export default {
} else {
// 非淋巴结非靶病灶 直径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg40'), {
+ // 评估状态为明确的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg16'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1327,12 +1732,12 @@ export default {
}
// 新病灶且状态为疑似(1)
- if (this.lesionType === 2 && lesionState === 1) {
+ if (lesionState === 1) {
if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
// 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg41'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg17'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1344,7 +1749,7 @@ export default {
// 非淋巴结非靶病灶 直径测量工具、箭头工具
if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
// `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
- this.$confirm(this.$t('trials:reading:warnning:msg42'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg18'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1356,12 +1761,12 @@ export default {
}
// 新病灶且状态为无法评估(2)
- if (this.lesionType === 2 && lesionState === 2) {
+ if (lesionState === 2) {
if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
if (measureData) {
// `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
- this.$confirm(this.$t('trials:reading:warnning:msg43'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg19'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1373,7 +1778,7 @@ export default {
// 非淋巴结非靶病灶 直径测量工具、箭头工具
if (measureData) {
// 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg44'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg20'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1385,12 +1790,12 @@ export default {
}
// 新病灶且状态为消失(3)
- if (this.lesionType === 2 && lesionState === 3) {
+ if (lesionState === 3) {
if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
// 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg45'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg21'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1402,7 +1807,38 @@ export default {
// 箭头工具
if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
// 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:reading:warnning:msg46'), {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg22'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ }
+ }
+ }
+ /** 触发iRecist后的新病灶 **/
+ if (this.lesionType === 8) {
+ // 新病灶且状态为明确(1)
+ if (lesionState === 1) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为明确的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg23'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
+ // 非淋巴结非靶病灶 直径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg24'), {
type: 'warning',
showCancelButton: false,
callback: action => {}
@@ -1413,554 +1849,98 @@ export default {
}
}
- /** 新靶病灶 **/
- if (this.lesionType === 5) {
- if (this.isFirstChangeTask) {
- // 靶病灶且状态为存在(0)
- if (lesionState === 1) {
- if (lymphNodes === 1) {
- // 淋巴结新靶病灶 必须使用长短径测量工具,短径大于等于15mm
- if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 15)) {
- // 评估状态为存在的淋巴结靶病灶需使用长短径测量工具添加标记,且短径须大于15mm!
- this.$confirm(this.$t('trials:iRecist:warnning:msg31'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结新靶病灶 直径测量工具 长径须大于等于10mm且不小于2倍层厚
- if (!(measureData && measureData.type === 'Length' && lesionLength >= 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) {
- // 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚!
- this.$confirm(this.$t('trials:iRecist:warnning:msg32'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
+ // 新病灶且状态为疑似(2)
+ if (lesionState === 2) {
+ if (lymphNodes === 1) {
+ // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
+ if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
+ // 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
+ this.$confirm(this.$t('trials:iRecist:warnning:msg25'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
}
} else {
- // 靶病灶且状态为存在(1)
- if (lesionState === 1) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具
- if (!(measureData && measureData.type === 'Bidirectional' && lesionShort >= 10)) {
- // 评估状态为存在的淋巴结新靶病灶需使用长短径测量工具添加标记! 短径应不小于10mm
- this.$confirm(this.$t('trials:iRecist:warnning:msg1'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结靶病灶 直径测量工具
- if (!(measureData && measureData.type === 'Length')) {
- // `评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg2'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
- // 靶病灶且状态为消失(2)
- if (lesionState === 2) {
- if (lymphNodes === 1) {
- if (!(measureData && (measureData.type === 'Bidirectional' && lesionShort < 10))) {
- // `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg3'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结靶病灶 箭头工具
- if (!(measureData && measureData.type === 'ArrowAnnotate')) {
- // 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg4'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- } else if (measureData && measureData.type === 'ArrowAnnotate') {
- const lId = this.getQuestionId(0)
- this.$set(this.questionForm, lId, 0)
- lesionLength = 0
- }
- }
- }
-
- // 新靶病灶且状态为无法评估(3)
- if (lesionState === 3) {
- if (lymphNodes === 1) {
- // 淋巴结新靶病灶 不需要添加标记
- if (measureData) {
- // 评估状态为无法评估的淋巴结新靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg5'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结靶病灶 不需要添加标记
- if (measureData) {
- // 状态为无法评估的非淋巴结新靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg6'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
-
- // 新靶病灶且状态为太小(4)
- if (lesionState === 4) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用箭头工具,短径记录为5mm
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为太小的淋巴结靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg33'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- } else if (measureData && measureData.type === 'ArrowAnnotate') {
- const shortId = this.getQuestionId(1)
- this.$set(this.questionForm, shortId, 5)
- lesionShort = 5
- }
- } else {
- // 非淋巴结靶病灶 箭头工具,长径记录为5mm
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为太小的非淋巴结靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg34'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- } else if (measureData && measureData.type === 'ArrowAnnotate') {
- const lengthId = this.getQuestionId(0)
- this.$set(this.questionForm, lengthId, 5)
- lesionLength = 5
- }
- }
- }
- }
-
- // 靶病灶且状态为消失(3)
- // if (lesionState === 3) {
- // if (lymphNodes === 1) {
- // if (!(measureData && (measureData.type === 'Bidirectional' && lesionShort < 10))) {
- // // `评估状态为消失的淋巴结靶病灶需使用长短径工具添加标记,且短径需小于10mm!`
- // this.$confirm(this.$t('trials:reading:warnning:msg29'), {
- // type: 'warning',
- // showCancelButton: false,
- // callback: action => {}
- // })
- // loading.close()
- // return
- // }
- // } else {
- // // 非淋巴结靶病灶 箭头工具
- // if (!(measureData && measureData.type === 'ArrowAnnotate')) {
- // // 评估状态为消失的非淋巴结靶病灶只能使用箭头工具添加标记!
- // this.$confirm(this.$t('trials:reading:warnning:msg30'), {
- // type: 'warning',
- // showCancelButton: false,
- // callback: action => {}
- // })
- // loading.close()
- // return
- // } else if (measureData && measureData.type === 'ArrowAnnotate') {
- // const lId = this.getQuestionId(0)
- // this.$set(this.questionForm, lId, 0)
- // lesionLength = 0
- // }
- // }
- // }
- }
-
- /** 新非靶病灶 **/
- if (this.lesionType === 6) {
- // 新非靶病灶且状态为存在(0)
- if (lesionState === 0) {
- if (lymphNodes === 1) {
- // 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg7'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
// 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg8'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
- // 非靶病灶且状态为增大(0)
- if (lesionState === 1) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'RectangleRoi'))) {
- // `评估状态为增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg9'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'RectangleRoi'))) {
- // 评估状态为增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg10'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
- // 非靶病灶且状态为无法评估(2)
- if (lesionState === 2) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 无标记
- if (measureData) {
- // 评估状态为无法评估的淋巴结非靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg11'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 无标记
- if (measureData) {
- // 评估状态为无法评估的非淋巴结非靶病灶不需要添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg12'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
- // 非靶病灶且状态为消失(3)
- if (lesionState === 3) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为消失的淋巴结非靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg13'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 箭头工具
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为消失的非淋巴结非靶病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg14'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
- }
-
- /** 其他既往新病灶 **/
- if (this.lesionType === 7) {
- // 新病灶且状态为明确(0)
- if (lesionState === 0) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为明确的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg15'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为明确的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg16'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
-
- // 新病灶且状态为疑似(1)
- if (lesionState === 1) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg17'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
+ if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
// `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg18'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
-
- // 新病灶且状态为无法评估(2)
- if (lesionState === 2) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (measureData) {
- // `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg19'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (measureData) {
- // 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg20'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
-
- // 新病灶且状态为消失(3)
- if (lesionState === 3) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg21'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 箭头工具
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg22'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
+ this.$confirm(this.$t('trials:iRecist:warnning:msg26'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
}
}
}
- /** 触发iRecist后的新病灶 **/
- if (this.lesionType === 8) {
- // 新病灶且状态为明确(1)
- if (lesionState === 1) {
- if (lymphNodes === 1) {
+ // 新病灶且状态为消失(3)
+ if (lesionState === 3) {
+ if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为明确的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg23'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为存在的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg24'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
-
- // 新病灶且状态为疑似(2)
- if (lesionState === 2) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Bidirectional' || measureData.type === 'ArrowAnnotate'))) {
- // 评估状态为疑似的淋巴结新病灶需使用长短径测量工具或箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg25'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
- // 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'Length' || measureData.type === 'ArrowAnnotate'))) {
- // `评估状态为疑似的非淋巴结新病灶需使用直径测量工具或箭头工具添加标记!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg26'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- }
- }
- // 新病灶且状态为消失(3)
- if (lesionState === 3) {
- if (lymphNodes === 1) {
- // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
// 评估状态为消失的淋巴结新病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg27'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg27'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
// 箭头工具
- if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
+ if (!(measureData && (measureData.type === 'ArrowAnnotate'))) {
// 评估状态为消失的非淋巴结新病灶需使用箭头工具添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg28'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
+ this.$confirm(this.$t('trials:iRecist:warnning:msg28'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
}
}
- // 新病灶且状态为无法评估(4)
- if (lesionState === 4) {
- if (lymphNodes === 1) {
+ }
+ // 新病灶且状态为无法评估(4)
+ if (lesionState === 4) {
+ if (lymphNodes === 1) {
// 淋巴结靶病灶 必须使用长短径测量工具、箭头工具
- if (measureData) {
+ if (measureData) {
// `评估状态为无法评估的淋巴结新病灶不需要添加标记!`
- this.$confirm(this.$t('trials:iRecist:warnning:msg29'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
- } else {
+ this.$confirm(this.$t('trials:iRecist:warnning:msg29'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
+ }
+ } else {
// 非淋巴结非靶病灶 直径测量工具、箭头工具
- if (measureData) {
+ if (measureData) {
// 评估状态为无法评估的非淋巴结新病灶不需要添加标记!
- this.$confirm(this.$t('trials:iRecist:warnning:msg30'), {
- type: 'warning',
- showCancelButton: false,
- callback: action => {}
- })
- loading.close()
- return
- }
+ this.$confirm(this.$t('trials:iRecist:warnning:msg30'), {
+ type: 'warning',
+ showCancelButton: false,
+ callback: action => {}
+ })
+ loading.close()
+ return
}
}
}
}
+ }
- DicomEvent.$emit('getScreenshots', { questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, visitTaskId: this.visitTaskId, lesionName: this.lesionMark, lesionType: this.lesionType, isMarked: !!measureData }, async val => {
- // 靶病灶状态为0(存在)时,一定存在长径或者长短径(长径、十字线 )
- // 普通靶病灶:长径大于10mm且不小于2倍层厚(基线校验)
- // 淋巴结靶病灶:短径大于15mm且不小于2倍层厚(基线校验)
+ DicomEvent.$emit('getScreenshots', { questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, visitTaskId: this.visitTaskId, lesionName: this.lesionMark, lesionType: this.lesionType, isMarked: !!measureData }, async val => {
+ // 靶病灶状态为0(存在)时,一定存在长径或者长短径(长径、十字线 )
+ // 普通靶病灶:长径大于10mm且不小于2倍层厚(基线校验)
+ // 淋巴结靶病灶:短径大于15mm且不小于2倍层厚(基线校验)
+ try {
var picturePath = ''
if (val && measureData && this.questionForm.IsDicomReading) {
var pictureObj = await this.uploadScreenshots(`${new Date().getTime()}`, val)
@@ -2003,8 +1983,9 @@ export default {
this.deleteInfo = null
params.rowId = ''
}
- submitTableQuestion(params).then(async res => {
- // 保存成功!
+ const res = await submitTableQuestion(params)
+ if (res.IsSuccess) {
+ // 保存成功!
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.currentMarkTool = measureData ? measureData.type : ''
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
@@ -2013,11 +1994,10 @@ export default {
this.originalQuestionForm = { ...this.questionForm }
loading.close()
var isLymphLesion = this.getQuestionVal(2)
- isLymphLesion = isLymphLesion ? parseInt(isLymphLesion) : null
var lesionOrgan = this.getQuestionVal(6)
this.$set(this.questionForm, 'RowId', res.Result.RowId)
const lesionPart = this.getQuestionVal(8)
- const lesionState = Number(this.getQuestionVal(7))
+ const lesionState = this.getQuestionVal(7)
this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, lesionState, rowIndex: this.rowIndex, rowId: res.Result.RowId, questionId: this.parentQsId, anwsers: this.questionForm })
// await store.dispatch('reading/refreshMeasuredData', this.visitTaskId)
@@ -2025,140 +2005,134 @@ export default {
this.$emit('close')
DicomEvent.$emit('getReportInfo', true)
DicomEvent.$emit('setMeasuredToolsPassive')
- }).catch(() => { loading.close() })
- })
+ }
+ } catch (e) {
+ console.log(e)
+ loading.close()
+ }
})
},
- handleDeleteMeasureData() {
+ async handleDeleteMeasureData() {
// 是否确认清除标记?
- this.$confirm(this.$t('trials:reading:warnning:msg47'), {
- type: 'warning',
- distinguishCancelAndClose: true
- })
- .then(async() => {
- this.organList = []
- await this.getOrganInfoList()
- // 重置长短径 和 状态
- var lengId = this.getQuestionId(0)
- this.$set(this.questionForm, lengId, '')
- var shortId = this.getQuestionId(1)
- this.$set(this.questionForm, shortId, '')
- if (!(this.isFirstChangeTask && (this.lesionType === 5 || this.lesionType === 6))) {
- var stateId = this.getQuestionId(7)
- this.$set(this.questionForm, stateId, '')
- }
+ const confirm = await this.$confirm(
+ this.$t('trials:reading:warnning:msg47'),
+ {
+ type: 'warning',
+ distinguishCancelAndClose: true
+ }
+ )
+ if (confirm !== 'confirm') return
+ this.organList = []
+ await this.getOrganInfoList()
+ // 重置长短径 和 状态
+ var lengId = this.getQuestionId(0)
+ this.$set(this.questionForm, lengId, '')
+ var shortId = this.getQuestionId(1)
+ this.$set(this.questionForm, shortId, '')
+ if (!(this.isFirstChangeTask && (this.lesionType === 5 || this.lesionType === 6))) {
+ var stateId = this.getQuestionId(7)
+ this.$set(this.questionForm, stateId, '')
+ }
- // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断)
- if (this.questionForm.RowId) {
- this.$set(this.questionForm, 'saveTypeEnum', 1)
- } else {
- this.$set(this.questionForm, 'saveTypeEnum', 0)
- }
- await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
- DicomEvent.$emit('getMeasureData')
- // Store.$emit('updateImage', this.questionForm.MeasureData.instanceId)
- var isLymphLesion = this.getQuestionVal(2)
- isLymphLesion = !isNaN(parseInt(isLymphLesion)) ? parseInt(isLymphLesion) : null
- const lesionPart = this.getQuestionVal(8)
- const lesionOrgan = this.getQuestionVal(6)
- const lesionLength = ''
- const lesionShort = ''
- const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
+ // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断)
+ if (this.questionForm.RowId) {
+ this.$set(this.questionForm, 'saveTypeEnum', 1)
+ } else {
+ this.$set(this.questionForm, 'saveTypeEnum', 0)
+ }
+ await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
+ DicomEvent.$emit('getMeasureData')
+ // Store.$emit('updateImage', this.questionForm.MeasureData.instanceId)
+ var isLymphLesion = this.getQuestionVal(2)
+ const lesionPart = this.getQuestionVal(8)
+ const lesionOrgan = this.getQuestionVal(6)
+ const lesionLength = ''
+ const lesionShort = ''
+ const lesionState = this.getQuestionVal(7)
- if (!this.questionForm.IsDicomReading) {
- DicomEvent.$emit('removeNoneDicomMeasureData', this.questionForm.MeasureData)
- }
- this.$set(this.questionForm, 'IsDicomReading', true)
+ if (!this.questionForm.IsDicomReading) {
+ DicomEvent.$emit('removeNoneDicomMeasureData', this.questionForm.MeasureData)
+ }
+ this.$set(this.questionForm, 'IsDicomReading', true)
- this.$set(this.questionForm, 'MeasureData', '')
- let anwsers = null
- if (this.answers.measureObj) {
- anwsers = Object.assign({ measureObj: '' }, this.questionForm)
- } else {
- anwsers = Object.assign({}, this.questionForm)
- }
- this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: anwsers })
- DicomEvent.$emit('refreshStudyListMeasureData')
- })
- .catch(() => {})
+ this.$set(this.questionForm, 'MeasureData', '')
+ let anwsers = null
+ if (this.answers.measureObj) {
+ anwsers = Object.assign({ measureObj: '' }, this.questionForm)
+ } else {
+ anwsers = Object.assign({}, this.questionForm)
+ }
+ this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: anwsers })
+ DicomEvent.$emit('refreshStudyListMeasureData')
},
- handleDelete() {
- // 是否确认删除?
- this.$confirm(this.$t('trials:reading:warnning:msg48'), {
- type: 'warning',
- distinguishCancelAndClose: true
- })
- .then(async() => {
- if (this.questionForm.RowId) {
- const loading = this.$loading({ fullscreen: true })
- var param = {
- visitTaskId: this.visitTaskId,
- questionId: this.parentQsId,
- rowId: this.questionForm.RowId
- }
- deleteReadingRowAnswer(param)
- .then(async res => {
- loading.close()
- if (res.IsSuccess) {
- if (this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
- await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
- }
- if (!this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
- DicomEvent.$emit('removeNoneDicomMeasureData', this.questionForm.MeasureData)
- }
- this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
- DicomEvent.$emit('getReportInfo', true)
- // '删除成功!'
- this.$message.success(this.$t('common:message:deletedSuccessfully'))
- loading.close()
- }
- }).catch(() => { loading.close() })
- } else {
- // const loading = this.$loading({ fullscreen: true })
- // 移除新建病灶并关闭窗口
+ async handleDelete() {
+ const loading = this.$loading({ fullscreen: true })
+ try {
+ const confirm = await this.$confirm(
+ this.$t('trials:reading:warnning:msg48'),
+ {
+ type: 'warning',
+ distinguishCancelAndClose: true
+ }
+ )
+ if (confirm !== 'confirm') return
+ if (this.questionForm.RowId) {
+ var param = {
+ visitTaskId: this.visitTaskId,
+ questionId: this.parentQsId,
+ rowId: this.questionForm.RowId
+ }
+ const res = await deleteReadingRowAnswer(param)
+ if (res.IsSuccess) {
if (this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
}
- // DicomEvent.$emit('getMeasureData')
if (!this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
DicomEvent.$emit('removeNoneDicomMeasureData', this.questionForm.MeasureData)
}
this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
- // loading.close()
+ DicomEvent.$emit('getReportInfo', true)
+ // '删除成功!'
+ this.$message.success(this.$t('common:message:deletedSuccessfully'))
}
- DicomEvent.$emit('refreshStudyListMeasureData')
- })
+ } else {
+ // 移除新建病灶并关闭窗口
+ if (this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
+ await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
+ }
+ // DicomEvent.$emit('getMeasureData')
+ if (!this.questionForm.IsDicomReading && this.questionForm.MeasureData) {
+ DicomEvent.$emit('removeNoneDicomMeasureData', this.questionForm.MeasureData)
+ }
+ this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
+ }
+ DicomEvent.$emit('refreshStudyListMeasureData')
+ loading.close()
+ } catch (e) {
+ loading.close()
+ console.log(e)
+ }
},
- handleClose() {
+ async handleClose() {
if (!this.questionForm.RowId) {
// '当前病灶为新建病灶,未保存。如果关闭窗口,将会删除病灶信息,是否继续?'
- this.$confirm(this.$t('trials:reading:warnning:msg49'), {
- type: 'warning',
- distinguishCancelAndClose: true
- })
- .then(async() => {
- // 移除新建病灶并关闭窗口
- if (this.questionForm.MeasureData) {
- await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
- }
- // await store.dispatch('reading/removeReadingQuestionAndAnswer', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
- DicomEvent.$emit('getMeasureData')
- this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
- })
- .catch(() => {})
+ const confirm = await this.$confirm(
+ this.$t('trials:reading:warnning:msg49'),
+ {
+ type: 'warning',
+ distinguishCancelAndClose: true
+ }
+ )
+ if (confirm !== 'confirm') return
+ // 移除新建病灶并关闭窗口
+ if (this.questionForm.MeasureData) {
+ await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: this.questionForm.MeasureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex })
+ }
+ // await store.dispatch('reading/removeReadingQuestionAndAnswer', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
+ DicomEvent.$emit('getMeasureData')
+ this.$emit('close', { lesionType: this.lesionType, rowIndex: this.rowIndex, visitTaskId: this.visitTaskId })
} else {
- // saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断)
-
if (this.questionForm.saveTypeEnum === 1) {
- // // 当前病灶信息有更新,未保存,是否继续?
- // this.$confirm(this.$t('trials:reading:warnning:msg50'), {
- // type: 'warning',
- // distinguishCancelAndClose: true
- // })
- // .then(() => {
- // this.$emit('close')
- // })
- // .catch(() => {})
this.$emit('close')
} else {
this.$emit('close')
@@ -2178,13 +2152,12 @@ export default {
} else if (this.lesionType === 8) {
this.$set(this.questionForm, stateId, 4)
}
- var isLymphLesion = this.getQuestionVal(2)
- isLymphLesion = !isNaN(parseInt(isLymphLesion)) ? parseInt(isLymphLesion) : null
+ const isLymphLesion = this.getQuestionVal(2)
const lesionPart = this.getQuestionVal(8)
const lesionOrgan = this.getQuestionVal(6)
- const lesionLength = !isNaN(parseInt(this.getQuestionVal(0))) ? this.getQuestionVal(0) : ''
- const lesionShort = !isNaN(parseInt(this.getQuestionVal(1))) ? this.getQuestionVal(1) : ''
- const lesionState = !isNaN(parseInt(this.getQuestionVal(7))) ? parseInt(this.getQuestionVal(7)) : ''
+ const lesionLength = this.getQuestionVal(0)
+ const lesionShort = this.getQuestionVal(1)
+ const lesionState = this.getQuestionVal(7)
this.$emit('resetQuestions', { isLymphLesion, lesionPart, lesionOrgan, lesionShort, lesionState, saveTypeEnum: this.questionForm.saveTypeEnum, lesionLength, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
}
diff --git a/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue
index 4044213f..31bbc9d2 100644
--- a/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue
+++ b/src/views/trials/trials-panel/reading/dicoms/components/IRecist/QuestionList.vue
@@ -2,10 +2,20 @@
-
- {{ subjectCode }}
- {{ taskBlindName }}
-
+
+
+ {{ subjectCode }}
+ {{ taskBlindName }}
+
+
+
+
+
+
+