|
@@ -83,7 +83,7 @@ export default {
|
|
if (this.itemSn) {
|
|
if (this.itemSn) {
|
|
params.customerSn = this.itemSn
|
|
params.customerSn = this.itemSn
|
|
} else {
|
|
} else {
|
|
- params.queryWord = dealerName
|
|
|
|
|
|
+ params.queryWord = dealerName.replace(/\s+/g,'')
|
|
}
|
|
}
|
|
if (this.isEnabled) {
|
|
if (this.isEnabled) {
|
|
params.enabledFlag = 1
|
|
params.enabledFlag = 1
|
|
@@ -99,9 +99,11 @@ export default {
|
|
},
|
|
},
|
|
handleChange (value) {
|
|
handleChange (value) {
|
|
if (value && value.key) {
|
|
if (value && value.key) {
|
|
|
|
+ value.key = value.key.replace(/\s+/g,'')
|
|
const ind = this.data.findIndex(item => item.customerName == value.key)
|
|
const ind = this.data.findIndex(item => item.customerName == value.key)
|
|
value.row = ind != -1 ? this.data[ind] : undefined
|
|
value.row = ind != -1 ? this.data[ind] : undefined
|
|
}
|
|
}
|
|
|
|
+
|
|
Object.assign(this, {
|
|
Object.assign(this, {
|
|
dealerName: value,
|
|
dealerName: value,
|
|
data: [],
|
|
data: [],
|