diff --git a/src/pages/manage/list/cityWide/cityWideIn.vue b/src/pages/manage/list/cityWide/cityWideIn.vue
index 611f523..7b3e22c 100644
--- a/src/pages/manage/list/cityWide/cityWideIn.vue
+++ b/src/pages/manage/list/cityWide/cityWideIn.vue
@@ -27,7 +27,7 @@
- checkHanzi(val, form, 'otherAccountUsername')" ref="otherAccountUsername">
+ checkName(val, form, 'otherAccountUsername')" ref="otherAccountUsername">
checkHanzi(val, form, 'exchangeNumber')" ref="exchangeNumber">
@@ -36,7 +36,7 @@
checkHanzi(val, form, 'customsNumber')" ref="customsNumber">
- checkHanzi(val, form, 'accountUsername')" ref="accountUsername">
+ checkName(val, form, 'accountUsername')" ref="accountUsername">
@@ -94,7 +94,7 @@
diff --git a/src/pages/manage/list/cityWide/cityWideOut.vue b/src/pages/manage/list/cityWide/cityWideOut.vue
index b522255..6a1e1e3 100644
--- a/src/pages/manage/list/cityWide/cityWideOut.vue
+++ b/src/pages/manage/list/cityWide/cityWideOut.vue
@@ -27,7 +27,7 @@
- checkHanzi(val, form, 'otherAccountUsername')" ref="otherAccountUsername">
+ checkName(val, form, 'otherAccountUsername')" ref="otherAccountUsername">
- checkHanzi(val, form, 'shroffAccountUsername')" ref="shroffAccountUsername">
+ checkName(val, form, 'shroffAccountUsername')" ref="shroffAccountUsername">
@@ -93,7 +93,7 @@
diff --git a/src/utils/utilFunction.js b/src/utils/utilFunction.js
index 0eba820..b73f1a1 100644
--- a/src/utils/utilFunction.js
+++ b/src/utils/utilFunction.js
@@ -25,11 +25,16 @@ const checkHanzi = function(val, form, prop) {
}
const checkName = function(val, form, prop) {
- // // 检查符号
+ // 检查符号
const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im;
- // // 检查空格
- // const tmpCheck = val.substr(val.length-1, 1);
- if(charReg.test(val)) {
+ // // 检查数字
+ const charReg2 = /^[0-9]*$/;
+ const tmpCheck = val.substr(val.length-1, 1);
+ if(val.length