Commit 645ee428 by 刘泽奇

213

parent d3730fda
...@@ -1476,7 +1476,6 @@ ...@@ -1476,7 +1476,6 @@
}, },
closeConfrim(){ closeConfrim(){
this.agree = false;
this.showConfrim = false; this.showConfrim = false;
}, },
......
...@@ -1109,30 +1109,29 @@ ...@@ -1109,30 +1109,29 @@
this.nclOne = []; this.nclOne = [];
}, },
closeConfrim(){ closeConfrim(){
this.agree = false;
this.showConfrim = false; this.showConfrim = false;
}, },
submitForm(formName, agree) { submitForm(formName, agree) {
var that = this; var that = this;
if (this.nclOne.length > 0) {
if (this.nclOne[0].nclThree.length < 10) {
this.showConfrim = true;
this.nclSelected = this.nclOne[0].nclThree.length;
if (agree) { if (agree) {
this.agree = agree;
this.showConfrim = false;
if (!this.form.name || !this.form.colorizedPicUrl) { if (!this.form.name || !this.form.colorizedPicUrl) {
this.$message("请完善信息"); this.$message.warning("请完善信息");
this.agree = false; console.log('ppppppppppppppppppppp');
return; return;
}else{
this.showConfrim = false;
} }
} } else {
console.log(formName, ";;;;;;;;;;;;;", this.agree);
if (this.agree == false) {
if (this.nclOne.length > 0) {
if (this.nclOne[0].nclThree.length < 10) {
this.nclSelected = this.nclOne[0].nclThree.length;
this.showConfrim = true;
return; return;
} }
} }
}; }
if (!this.form.name || !this.form.colorizedPicUrl) { if (!this.form.name || !this.form.colorizedPicUrl) {
this.$message.warning("请完善信息"); this.$message.warning("请完善信息");
return false; return false;
...@@ -1140,11 +1139,13 @@ ...@@ -1140,11 +1139,13 @@
if (formName == "form" || formName == "apply") { if (formName == "form" || formName == "apply") {
if (formName == "apply") { if (formName == "apply") {
console.log(this.apply); console.log(this.apply);
/*
if (this.apply.customerType != 'person' && this.apply.sealAuthorizeStuff == '' || this.apply.businessLicensePic == '') { if (this.apply.customerType != 'person' && this.apply.sealAuthorizeStuff == '' || this.apply.businessLicensePic == '') {
return that.$message.warning(`请按要求上传资料`); return that.$message.warning(`请按要求上传资料`);
} else if (this.apply.customerType == 'person' && this.apply.identityCardPic == '' || this.apply.sealAuthorizeStuff == '' || this.apply.businessLicensePic == '') { } else if (this.apply.customerType == 'person' && this.apply.identityCardPic == '' || this.apply.sealAuthorizeStuff == '' || this.apply.businessLicensePic == '') {
return that.$message.warning(`请按要求上传资料`); return that.$message.warning(`请按要求上传资料`);
} }
*/
}; };
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
console.log(valid); console.log(valid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment