|
|
@@ -354,6 +354,7 @@
|
|
|
}
|
|
|
},
|
|
|
onCodeChange: function () {
|
|
|
+ this.applyObj.code = this.applyObj.code.trim()
|
|
|
if ((/[^\x00-\xff]/g).test(this.applyObj.code)) {
|
|
|
let chineseIndex = -1
|
|
|
for (let i = 0; i < this.applyObj.code.length; i++) {
|
|
|
@@ -370,6 +371,7 @@
|
|
|
}
|
|
|
},
|
|
|
onBrandChange: function () {
|
|
|
+ this.applyObj.brand = this.applyObj.brand.trim()
|
|
|
if ((/[^\x00-\xff]/g).test(this.applyObj.brand)) {
|
|
|
let chineseIndex = -1
|
|
|
for (let i = 0; i < this.applyObj.brand.length; i++) {
|