中心调研表在选择仅上传文件时进行联系人和联系人电话必填校验
continuous-integration/drone/push Build is pending Details

rj
wangxiaoshuang 2026-07-02 14:16:10 +08:00
parent 698dca94d4
commit 22705f6035
1 changed files with 8 additions and 0 deletions

View File

@ -413,6 +413,14 @@ export default {
handleSave(isAutoCommit, isCheck = false) {
return new Promise((resolve, reject) => {
if (this.IsOnlyUploadFile && !isCheck) {
if (!this.form.UserName) {
this.$message.warning(this.$t("trials:researchForm:message:notUserName"))
return resolve(false)
}
if (!this.form.Phone) {
this.$message.warning(this.$t("trials:researchForm:message:notPhone"))
return resolve(false)
}
if (!this.form.CommonUploadRecordId) {
this.$message.warning(this.$t("trials:researchForm:message:notCommonUploadRecordId"))
return resolve(false)