Jelajahi Sumber

联系电话取消输入校验

zhuth 7 tahun lalu
induk
melakukan
d1813c2052

+ 4 - 4
frontend/saas-web/app/view/document/customer/FormPanel.js

@@ -260,8 +260,8 @@ Ext.define('saas.view.document.customer.FormPanel', {
                 allowBlank:false,
                 text : "电话", 
                 editor : {
-                    regex:/^1(3|4|5|7|8|9)\d{9}$/,
-                    regexText:'请输入正确的手机号码',
+                    // regex:/^1(3|4|5|7|8|9)\d{9}$/,
+                    // regexText:'请输入正确的手机号码',
                     hideTrigger:true,
                     xtype : "textfield"
                 },
@@ -334,8 +334,8 @@ Ext.define('saas.view.document.customer.FormPanel', {
                 allowBlank:true,
                 text : "联系电话", 
                 editor : {
-                    regex:/^1(3|4|5|7|8|9)\d{9}$/,
-                    regexText:'请输入正确的手机号码',
+                    // regex:/^1(3|4|5|7|8|9)\d{9}$/,
+                    // regexText:'请输入正确的手机号码',
                     xtype : "textfield",
                     hideTrigger:true,
                 },

+ 2 - 2
frontend/saas-web/app/view/document/vendor/FormPanel.js

@@ -254,8 +254,8 @@ Ext.define('saas.view.document.vendor.FormPanel', {
                 allowBlank:false,
                 text : "电话", 
                 editor : {
-                    regex:/^1(3|4|5|7|8|9)\d{9}$/,
-                    regexText:'请输入正确的手机号码',
+                    // regex:/^[\d | -]*$/,
+                    // regexText:'请输入正确的手机号码',
                     hideTrigger:true,
                     xtype : "textfield"
                 },