From 3b8c2de88bb9d2d3fab0df78e23284c6b53c743c Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 23 Sep 2025 14:43:29 +0800 Subject: [PATCH] 1 --- .../reading/dicoms/components/PCWG/QuestionForm.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/PCWG/QuestionForm.vue b/src/views/trials/trials-panel/reading/dicoms/components/PCWG/QuestionForm.vue index e9c8825..b7cf12b 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/PCWG/QuestionForm.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/PCWG/QuestionForm.vue @@ -207,9 +207,12 @@ export default { const reg = /^(?:[1-9]|[1-9][0-9])$/ if (!value) { callback(new Error(this.$t('common:ruleMessage:specify'))) - } else if (!reg.test(value) || (parseInt(value) > 99 || (this.isBaseLineTask && parseInt(value) <= 0) || (!this.isBaseLineTask && parseInt(value) < 0))) { + } else if (!this.isBaseLineTask && (parseInt(value) < 0 || parseInt(value) > 99)) { callback(new Error(this.$t('trials:readingPGWC:warnning:msg1'))) } + else if (!reg.test(value) && (this.isBaseLineTask && (parseInt(value) <= 0 || parseInt(value) > 99))) { + callback(new Error(this.$t('trials:readingPGWC:warnning:msg1_baseLine'))) + } else if (!this.isBaseLineTask && parseInt(value) > parseInt(this.questionForm.BaseLineLesionNumber)) { callback(new Error(this.$t('trials:reading:pcwg:msg6') + this.questionForm.BaseLineLesionNumber)) } else { @@ -221,9 +224,13 @@ export default { if (this.focusQs && !this.isBaseLineTask && this.focusQs.QuestionMark === 11 && (parseInt(value) > parseInt(this.questionForm.BaseLineLesionNumber))) { // '基线病灶初始数量为' callback(new Error(this.$t('trials:reading:pcwg:msg6') + this.questionForm.BaseLineLesionNumber)) - } else if (this.focusQs && this.focusQs.QuestionMark === 11 && (parseInt(value) > 99 || (this.isBaseLineTask && parseInt(value) <= 0) || (!this.isBaseLineTask && parseInt(value) < 0))) { + } else if (this.focusQs && this.focusQs.QuestionMark === 11 && (!this.isBaseLineTask && (parseInt(value) < 0 || parseInt(value) > 99))) { callback(new Error(this.$t('trials:readingPGWC:warnning:msg1'))) - } else { + } + else if (this.focusQs && this.focusQs.QuestionMark === 11 && (this.isBaseLineTask && (parseInt(value) <= 0 || parseInt(value) > 99))) { + callback(new Error(this.$t('trials:readingPGWC:warnning:msg1_baseLine'))) + } + else { callback() } },