|
@@ -79,6 +79,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleChange (value) {
|
|
handleChange (value) {
|
|
|
|
+ console.log('handleChange', value)
|
|
if (value && value.key) {
|
|
if (value && value.key) {
|
|
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
|
|
@@ -93,6 +94,7 @@ export default {
|
|
},
|
|
},
|
|
resetForm () {
|
|
resetForm () {
|
|
this.dealerName = undefined
|
|
this.dealerName = undefined
|
|
|
|
+ this.setData(undefined)
|
|
},
|
|
},
|
|
setData (value) {
|
|
setData (value) {
|
|
Object.assign(this, {
|
|
Object.assign(this, {
|