diff --git a/src/views/research/components/BaseInfo.vue b/src/views/research/components/BaseInfo.vue index 9be7d419..04bd5b82 100644 --- a/src/views/research/components/BaseInfo.vue +++ b/src/views/research/components/BaseInfo.vue @@ -413,7 +413,10 @@ export default { handleSave(isAutoCommit, isCheck = false) { return new Promise((resolve, reject) => { if (this.IsOnlyUploadFile && !isCheck) { - if (!this.form.CommonUploadRecordId) return this.$message.warning(this.$t("trials:researchForm:message:notCommonUploadRecordId")) + if (!this.form.CommonUploadRecordId) { + this.$message.warning(this.$t("trials:researchForm:message:notCommonUploadRecordId")) + return resolve(false) + } this.btnLoading = true const param = { id: this.form.Id, @@ -448,7 +451,7 @@ export default { this.btnLoading = false reject(false) }) - return false + return resolve(true) } this.$refs['researchBSForm'].validate(valid => { if (valid) {