|
@@ -182,16 +182,25 @@ export default {
|
|
|
accountNameSnChange (v, row) {
|
|
|
console.log(v, row)
|
|
|
if (this.form.accountType == 'CUSTOMER') {
|
|
|
- this.form.accountNameSn = v.key
|
|
|
if (row) {
|
|
|
+ this.form.accountNameSn = v.key
|
|
|
this.form.provinceSn = row.provinceSn
|
|
|
this.form.citySn = row.citySn
|
|
|
this.form.provinceName = row.provinceName
|
|
|
this.form.cityName = row.cityName
|
|
|
if (row.subareaNameSet) {
|
|
|
- this.form.subareaNameList = row.subareaNameSet.filter(item => item !== '中国')
|
|
|
+ const a = row.subareaNameSet.filter(item => item !== '中国')
|
|
|
+ this.form.subareaNameList = [a[0]]
|
|
|
this.form.subareaSnList = [this.$refs.subareaBox.getValByName(this.form.subareaNameList)[0]]
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.form.accountNameSn = ''
|
|
|
+ this.form.provinceSn = ''
|
|
|
+ this.form.citySn = ''
|
|
|
+ this.form.provinceName = ''
|
|
|
+ this.form.cityName = ''
|
|
|
+ this.form.subareaNameList = ''
|
|
|
+ this.form.subareaSnList = ''
|
|
|
}
|
|
|
}
|
|
|
this.$nextTick(() => {
|
|
@@ -201,6 +210,7 @@ export default {
|
|
|
// 分区
|
|
|
subareaChange (v, row) {
|
|
|
const arr = []
|
|
|
+ console.log(v, row)
|
|
|
row.map(item => arr.push(item.subareaName))
|
|
|
this.form.subareaNameList = arr
|
|
|
},
|