Commit 737f47a4 authored by youjie's avatar youjie

no message

parent 5d96e0b0
...@@ -1003,17 +1003,20 @@ ...@@ -1003,17 +1003,20 @@
this.$message.error('请输入联系人') this.$message.error('请输入联系人')
return return
} }
if(!this.updateMsg.UniqueCode){ // if(!this.updateMsg.UniqueCode){
this.$message.error('请输入统一编码') // this.$message.error('请输入统一编码')
return // return
} // }
if(!this.updateMsg.LINEID){ // if(!this.updateMsg.LINEID){
this.$message.error('请输入LINE ID') // this.$message.error('请输入LINE ID')
return // return
} // }
if(!this.updateMsg.Email){ if(this.updateMsg.Email){
this.$message.error('请输入Email') var reg=/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
return if(!reg.test(this.updateMsg.Email)){
this.$message.error('请输入有效的邮箱')
return
}
} }
if (this.updateMsg.District == '') { if (this.updateMsg.District == '') {
this.updateMsg.District = 0 this.updateMsg.District = 0
...@@ -1435,18 +1438,20 @@ ...@@ -1435,18 +1438,20 @@
this.$message.error('请输入联系人') this.$message.error('请输入联系人')
return return
} }
// if(!this.addMsg.UniqueCode){
if(!this.addMsg.UniqueCode){ // this.$message.error('请输入统一编码')
this.$message.error('请输入统一编码') // return
return // }
} // if(!this.addMsg.LINEID){
if(!this.addMsg.LINEID){ // this.$message.error('请输入LINE ID')
this.$message.error('请输入LINE ID') // return
return // }
} if(this.updateMsg.Email){
if(!this.addMsg.Email){ var reg=/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
this.$message.error('请输入Email') if(!reg.test(this.updateMsg.Email)){
return this.$message.error('请输入有效的邮箱')
return
}
} }
if (this.addMsg.District == '') { if (this.addMsg.District == '') {
this.addMsg.District = 0 this.addMsg.District = 0
......
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