中心调研表提交校验修改
continuous-integration/drone/push Build is passing Details

rj
wangxiaoshuang 2026-07-02 13:51:44 +08:00
parent 433cfdc123
commit 8f2109b4cd
1 changed files with 5 additions and 2 deletions

View File

@ -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) {