Commit e66ac27f by Kyle_Li

fix: 手机号验证bug

parent 783a6955
......@@ -266,7 +266,7 @@ export default {
this.$refs[formName].resetFields();
}
},
submitPosBaseDetail(formName) {
async submitPosBaseDetail(formName) {
let params = '';
if(this.updateStatus == 1) {
if(!this.posForm.memberName) {
......@@ -310,19 +310,20 @@ export default {
checkFalse('请填写手机号');
return false;
}
this.$refs[formName].validateField('phoneNumber',function (err) {
this.$refs[formName].validateField('phoneNumber',err => {
if(err) {
checkFalse('请填写正确手机号');
return false;
}
params = {
memberId: this.memberId,
updateStatus: this.updateStatus,
phoneNumber: this.posForm.phoneNumber,
nationCode: this.posForm.nationCode || '86',
remark: this.posForm.remark
}
});
params = {
memberId: this.memberId,
updateStatus: this.updateStatus,
phoneNumber: this.posForm.phoneNumber,
nationCode: this.posForm.nationCode || '86',
remark: this.posForm.remark
}
if (!params) return;
}
if(!this.posForm.remark) {
checkFalse('备注不能为空');
......
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