|
@@ -314,10 +314,14 @@ export default {
|
|
|
this.ownerNameMsg = '至少一个汉字';
|
|
this.ownerNameMsg = '至少一个汉字';
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
- if (!/^[\u4e00-\u9fa5a-zA-Z0-9·]+$/.test(ownerName)) {
|
|
|
|
|
- this.ownerNameMsg = '不可输入特殊符号';
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+ if (!/^[\u4e00-\u9fa5]+(·[\u4e00-\u9fa5]*)*·?$/.test(ownerName)) {
|
|
|
|
|
+ this.ownerNameMsg = '只能输入中文';
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
|
|
+ // if (!/^[\u4e00-\u9fa5a-zA-Z0-9·]+$/.test(ownerName)) {
|
|
|
|
|
+ // this.ownerNameMsg = '不可输入特殊符号';
|
|
|
|
|
+ // return true;
|
|
|
|
|
+ // }
|
|
|
return false;
|
|
return false;
|
|
|
},
|
|
},
|
|
|
isValidTotalSalesAmount() {
|
|
isValidTotalSalesAmount() {
|