shish 2 лет назад
Родитель
Сommit
6c74ce5c7f
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      ghsApp/src/pagesClient/member/addCustomer.vue

+ 12 - 0
ghsApp/src/pagesClient/member/addCustomer.vue

@@ -149,6 +149,18 @@ export default {
       ];
 
       let formData = this.form;
+
+      this.form.mobile1 = this.form.mobile1.replace(/\s+/g, "")
+      this.form.confirmMobile1 = this.form.confirmMobile1.replace(/\s+/g, "")
+      this.form.mobile2 = this.form.mobile2.replace(/\s+/g, "")
+      this.form.confirmMobile2 = this.form.confirmMobile2.replace(/\s+/g, "")
+      this.form.mobile3 = this.form.mobile3.replace(/\s+/g, "")
+      this.form.confirmMobile3 = this.form.confirmMobile3.replace(/\s+/g, "")
+      this.form.mobile4 = this.form.mobile4.replace(/\s+/g, "")
+      this.form.confirmMobile4 = this.form.confirmMobile4.replace(/\s+/g, "")
+      this.form.mobile5 = this.form.mobile5.replace(/\s+/g, "")
+      this.form.confirmMobile5 = this.form.confirmMobile5.replace(/\s+/g, "")
+
       let checkRes = form.validation(formData, rules);
 
       if (!checkRes) {