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 385b298..e9c8825 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,7 +207,7 @@ 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 || parseInt(value) < 0)) { + } else if (!reg.test(value) || (parseInt(value) > 99 || (this.isBaseLineTask && parseInt(value) <= 0) || (!this.isBaseLineTask && parseInt(value) < 0))) { callback(new Error(this.$t('trials:readingPGWC:warnning:msg1'))) } else if (!this.isBaseLineTask && parseInt(value) > parseInt(this.questionForm.BaseLineLesionNumber)) { @@ -221,7 +221,7 @@ 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 || parseInt(value) < 0)) { + } else if (this.focusQs && this.focusQs.QuestionMark === 11 && (parseInt(value) > 99 || (this.isBaseLineTask && parseInt(value) <= 0) || (!this.isBaseLineTask && parseInt(value) < 0))) { callback(new Error(this.$t('trials:readingPGWC:warnning:msg1'))) } else { callback()