diff --git a/src/main/resources/templates/admin/business/process-edit.ftl b/src/main/resources/templates/admin/business/process-edit.ftl index d204022..7711efa 100644 --- a/src/main/resources/templates/admin/business/process-edit.ftl +++ b/src/main/resources/templates/admin/business/process-edit.ftl @@ -822,13 +822,14 @@ let validStatus = !needValid if (needValid) { // 校验表单 - if (fileList && fileList.length === 0) { - this.$message.error("未上传附件"); - return false - } - this.$refs["contractProcessForm"].validate((valid) => { if (valid) { + + if (fileList && fileList.length === 0) { + this.$message.error("未上传附件"); + return false + } + if (processType === saleContract) { if (!this.checkExpirationDate()) { return false diff --git a/src/main/resources/templates/admin/business/process-new.ftl b/src/main/resources/templates/admin/business/process-new.ftl index 54aef32..3835f95 100644 --- a/src/main/resources/templates/admin/business/process-new.ftl +++ b/src/main/resources/templates/admin/business/process-new.ftl @@ -989,14 +989,15 @@ } let validStatus = !needValid if (needValid) { - if (fileList && fileList.length === 0) { - this.$message.error("未上传附件"); - return false - } // 校验表单 this.$refs["contractProcessForm"].validate((valid) => { if (valid) { + if (fileList && fileList.length === 0) { + this.$message.error("未上传附件"); + return false + } + if (processType === saleContract) { if (!this.checkExpirationDate()) { return false