uat_us
caiyiling 2024-03-22 13:27:32 +08:00
commit efc40de310
2 changed files with 11 additions and 4 deletions

View File

@ -1417,7 +1417,7 @@ export default {
trialId: this.trialId, trialId: this.trialId,
SubjectId: this.data.SubjectId SubjectId: this.data.SubjectId
}).then(res => { }).then(res => {
if (res.Result) { if (res.Result&&res.Result.VisitId) {
this.$confirm(this.$t('trials:qcQuality:title:title2', '', { this.$confirm(this.$t('trials:qcQuality:title:title2', '', {
showCancelButton: false showCancelButton: false
})).then(() => { })).then(() => {
@ -1426,10 +1426,11 @@ export default {
SubjectId: this.data.SubjectId SubjectId: this.data.SubjectId
}).then(res => { }).then(res => {
this.$emit('getList') this.$emit('getList')
this.$emit('nextTask') this.$emit('nextTask',res.Result.VisitId);
}) })
}) })
} else { } else {
this.$emit('getList')
this.$alert('没有后续质控任务') this.$alert('没有后续质控任务')
} }
}) })

View File

@ -923,9 +923,15 @@ export default {
}) })
}).catch(() => {}) }).catch(() => {})
}, },
nextTask() { nextTask(visitId = null) {
this.loading = true this.loading = true
getNextQCInfo({ trialId: this.trialId }).then(res => { let obj = {
trialId: this.trialId
}
if(visitId){
obj.visitId = visitId;
}
getNextQCInfo(obj).then(res => {
this.loading = false this.loading = false
this.qcVisible = false this.qcVisible = false
if (res.Result) { if (res.Result) {