PCWG访视间隔必填校验
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-19 15:44:05 +08:00
parent fb92362e6b
commit 435c9b5d98
1 changed files with 11 additions and 0 deletions

View File

@ -951,6 +951,7 @@ export default {
this.answers = []
var isExistEvaluateResult = false
let isRequired = false
let hasVisitIntervalDay = false
this.answerArr.map(item => {
if (item.questionType === 13 || item.questionType === 42) {
evaluateResult = item.answer
@ -963,6 +964,7 @@ export default {
isBeill = item.answer
}
if (this.CriterionType === 10) {
if (!this.visitIntervalDay) hasVisitIntervalDay = true
if (!this.tumorEvaluationObj[item.visitTaskId]) isRequired = true
if (this.tumorEvaluationObj[item.visitTaskId] !== this.currentTumorEvaluationObj[item.visitTaskId] && this.currentTumorEvaluationObj[item.visitTaskId] && !this.taskReasonObj[item.visitTaskId]) isRequired = true
this.answers.push({ questionId: item.id, answer: item.answer, visitTaskId: item.visitTaskId })
@ -972,6 +974,15 @@ export default {
})
if (this.CriterionType === 10) {
if (hasVisitIntervalDay) {
this.$confirm(this.$t('trials:readingReport:message:msg299'), {
type: 'warning',
showCancelButton: false,
callback: action => { }
})
reject()
return
}
if (isRequired) {
//
this.$confirm(this.$t('trials:readingReport:message:msg2'), {