PCWG访视间隔必填校验
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
fb92362e6b
commit
435c9b5d98
|
@ -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'), {
|
||||
|
|
Loading…
Reference in New Issue