附件验证后验证

master
Harry Yang 2023-01-04 10:11:40 +08:00
parent 58ce8e320b
commit 07fb9e07d1
2 changed files with 11 additions and 9 deletions

View File

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

View File

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