diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue index 44082087..a641c2b1 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Recist/QuestionList.vue @@ -145,6 +145,7 @@ :model="innerFormData[`${table.Id}_${answer.RowIndex}`]" > = 10 && (measureData.thick && lesionLength >= 2 * measureData.thick || !measureData.thick))) { + if (!(measureData && measureData.markTool === 'Length' && lesionLength >= 10 && (measureData.sliceThickness && lesionLength >= 2 * measureData.sliceThickness || !measureData.sliceThickness))) { // 评估状态为存在的非淋巴结靶病灶需使用直径测量工具添加标记,长径须大于10mm且不小于2倍层厚! this.$confirm(this.$t('trials:reading:warnning:msg20'), { type: 'warning', @@ -809,7 +812,7 @@ export default { if (lesionType === 1 && lesionState === 0) { if (lymphNodes === 1) { // 淋巴结非靶病灶 必须使用长短径测量工具或箭头工具 - if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) { // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记 this.$confirm(this.$t('trials:reading:warnning:msg21'), { type: 'warning', @@ -821,7 +824,7 @@ export default { } } else { // 非淋巴结非靶病灶 直径测量工具或箭头工具 - if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) { // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg22'), { type: 'warning', @@ -965,7 +968,7 @@ export default { if (lesionType === 1 && lesionState === 0) { if (lymphNodes === 1) { // 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) { // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg31'), { type: 'warning', @@ -977,7 +980,7 @@ export default { } } else { // 非淋巴结非靶病灶 直径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) { // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或箭头工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg32'), { type: 'warning', @@ -994,7 +997,7 @@ export default { if (lesionType === 1 && lesionState === 1) { if (lymphNodes === 1) { // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) { // `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!` this.$confirm(this.$t('trials:reading:warnning:msg33'), { type: 'warning', @@ -1006,7 +1009,7 @@ export default { } } else { // 非淋巴结非靶病灶 直径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) { // 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg34'), { type: 'warning', @@ -1653,9 +1656,9 @@ export default { if (this.activeName) { return this.checkToolCanActive(toolName) } else { - if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) { + if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) { return { isCanActiveTool: true, reason: '' } - } else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) { + } else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) { return { isCanActiveTool: true, reason: '' } } else if (this.isBaseLineTask && toolName === 'ArrowAnnotate') { return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg54') } @@ -1678,10 +1681,10 @@ export default { } else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length') { // '非淋巴结靶病灶需使用直径测量工具' return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg7') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleROI') { // '淋巴结非靶病灶需使用长短径测量工具或矩形工具' return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg8') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleROI') { // '非淋巴结非靶病灶需使用直径测量工具或矩形工具' return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg9') } } else if (toolName === 'ArrowAnnotate') { @@ -1696,10 +1699,10 @@ export default { } else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate') { // 非淋巴结靶病灶需使用直径测量工具或箭头工具 return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg11') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') { // 淋巴结非靶病灶需使用长短径测量工具或矩形工具或矩形工具或箭头工具 return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg52') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') { // 非淋巴结非靶病灶需使用直径测量工具或矩形工具或矩形工具或箭头工具 return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg53') } } else if (innerForm.LesionType === 2 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate') { diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue index ca36a4bc..a4999cbf 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/mRecist/QuestionList.vue @@ -839,7 +839,7 @@ export default { if (lesionType === 1 && lesionState === 0) { if (lymphNodes === 1) { // 淋巴结非靶病灶 必须使用长短径测量工具或箭头工具 - if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRo'))) { // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记 this.$confirm(this.$t('trials:reading:warnning:msg21'), { type: 'warning', @@ -851,7 +851,7 @@ export default { } } else { // 非淋巴结非靶病灶 直径测量工具或箭头工具 - if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) { // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg22'), { type: 'warning', @@ -995,7 +995,7 @@ export default { if (lesionType === 1 && lesionState === 0) { if (lymphNodes === 1) { // 淋巴结非靶病灶 必须使用长短径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) { // 评估状态为存在的淋巴结非靶病灶需使用长短径测量工具或箭头工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg31'), { type: 'warning', @@ -1007,7 +1007,7 @@ export default { } } else { // 非淋巴结非靶病灶 直径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) { // 评估状态为存在的非淋巴结非靶病灶需使用直径测量工具或箭头工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg32'), { type: 'warning', @@ -1024,7 +1024,7 @@ export default { if (lesionType === 1 && lesionState === 1) { if (lymphNodes === 1) { // 淋巴结靶病灶 必须使用长短径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Bidirectional' || measureData.markTool === 'RectangleROI'))) { // `评估状态为显著增大的淋巴结非靶病灶需使用长短径测量工具或矩形工具添加标记!` this.$confirm(this.$t('trials:reading:warnning:msg33'), { type: 'warning', @@ -1036,7 +1036,7 @@ export default { } } else { // 非淋巴结非靶病灶 直径测量工具、箭头工具 - if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleRoi'))) { + if (!(measureData && (measureData.markTool === 'Length' || measureData.markTool === 'RectangleROI'))) { // 评估状态为显著增大的非淋巴结非靶病灶需使用直径测量工具或矩形工具添加标记! this.$confirm(this.$t('trials:reading:warnning:msg34'), { type: 'warning', @@ -1742,9 +1742,9 @@ export default { if (this.activeName) { return this.checkToolCanActive(toolName) } else { - if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) { + if (this.isBaseLineTask && (toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) { return { isCanActiveTool: true, reason: '' } - } else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleRoi')) { + } else if (!this.isBaseLineTask && (toolName === 'ArrowAnnotate' || toolName === 'Bidirectional' || toolName === 'Length' || toolName === 'RectangleROI')) { return { isCanActiveTool: true, reason: '' } } else if (this.isBaseLineTask && toolName === 'ArrowAnnotate') { return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg54') } @@ -1767,10 +1767,10 @@ export default { } else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length') { // '非淋巴结靶病灶需使用直径测量工具' return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg7') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'RectangleROI') { // '淋巴结非靶病灶需使用长短径测量工具或矩形工具' return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg8') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'RectangleROI') { // '非淋巴结非靶病灶需使用直径测量工具或矩形工具' return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg9') } } else if (toolName === 'ArrowAnnotate') { @@ -1785,10 +1785,10 @@ export default { } else if (innerForm.LesionType === 0 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate') { // 非淋巴结靶病灶需使用直径测量工具或箭头工具 return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg11') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') { // 淋巴结非靶病灶需使用长短径测量工具或矩形工具或矩形工具或箭头工具 return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg52') } - } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleRoi') { + } else if (innerForm.LesionType === 1 && isLymphNodes === 0 && toolName !== 'Length' && toolName !== 'ArrowAnnotate' && toolName !== 'RectangleROI') { // 非淋巴结非靶病灶需使用直径测量工具或矩形工具或矩形工具或箭头工具 return { isCanActiveTool: false, reason: this.$t('trials:reading:warnning:msg53') } } else if (innerForm.LesionType === 2 && isLymphNodes === 1 && toolName !== 'Bidirectional' && toolName !== 'ArrowAnnotate') {