附件验证后验证
parent
58ce8e320b
commit
07fb9e07d1
|
@ -822,13 +822,14 @@
|
||||||
let validStatus = !needValid
|
let validStatus = !needValid
|
||||||
if (needValid) {
|
if (needValid) {
|
||||||
// 校验表单
|
// 校验表单
|
||||||
if (fileList && fileList.length === 0) {
|
|
||||||
this.$message.error("未上传附件");
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
this.$refs["contractProcessForm"].validate((valid) => {
|
this.$refs["contractProcessForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
|
if (fileList && fileList.length === 0) {
|
||||||
|
this.$message.error("未上传附件");
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (processType === saleContract) {
|
if (processType === saleContract) {
|
||||||
if (!this.checkExpirationDate()) {
|
if (!this.checkExpirationDate()) {
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -989,14 +989,15 @@
|
||||||
}
|
}
|
||||||
let validStatus = !needValid
|
let validStatus = !needValid
|
||||||
if (needValid) {
|
if (needValid) {
|
||||||
if (fileList && fileList.length === 0) {
|
|
||||||
this.$message.error("未上传附件");
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
// 校验表单
|
// 校验表单
|
||||||
this.$refs["contractProcessForm"].validate((valid) => {
|
this.$refs["contractProcessForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
|
if (fileList && fileList.length === 0) {
|
||||||
|
this.$message.error("未上传附件");
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (processType === saleContract) {
|
if (processType === saleContract) {
|
||||||
if (!this.checkExpirationDate()) {
|
if (!this.checkExpirationDate()) {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue