Browse Source

完善经销商

zhanglei
yunuo970428 2 years ago
parent
commit
19d2e5143d
  1. 114
      anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiAdd.vue

114
anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiAdd.vue

@ -612,67 +612,69 @@ export default {
// this.registProvince = response.data.registAddressProvince
// this.registcity = response.data.registAddressCity
// this.registcount = response.data.registAddressCounty
const managementcount_codes = this.temp.managementAddressCode.split('')
this.managementProvinceCode = managementcount_codes[0] + managementcount_codes[1] + '0000'
getProvince().then((res) => {
if (res.code === '200') {
this.inputProvinceList02 = res.data
console.log('回显省02', this.inputProvinceList02)
let bb = ''
this.inputProvinceList02.forEach((e) => {
if (e.districtCode === this.managementProvinceCode) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
if (this.temp.managementAddressCode !== '') {
const managementcount_codes = this.temp.managementAddressCode.split('')
this.managementProvinceCode = managementcount_codes[0] + managementcount_codes[1] + '0000'
getProvince().then((res) => {
if (res.code === '200') {
this.inputProvinceList02 = res.data
console.log('回显省02', this.inputProvinceList02)
let bb = ''
this.inputProvinceList02.forEach((e) => {
if (e.districtCode === this.managementProvinceCode) {
bb = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
this.managementProvince = bb.name
var sid = {
sid: bb.sid
}
})
this.managementProvince = bb.name
var sid = {
sid: bb.sid
}
getCity(sid).then((res) => {
if (res.code === '200') {
this.inputCityList02 = res.data
console.log('回显市02', this.inputCityList02)
this.managementcityCode = managementcount_codes[0] + managementcount_codes[1] + managementcount_codes[2] + managementcount_codes[3] + '00'
let cc = ''
this.inputCityList02.forEach((e) => {
if (e.districtCode === this.managementcityCode) {
cc = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
getCity(sid).then((res) => {
if (res.code === '200') {
this.inputCityList02 = res.data
console.log('回显市02', this.inputCityList02)
this.managementcityCode = managementcount_codes[0] + managementcount_codes[1] + managementcount_codes[2] + managementcount_codes[3] + '00'
let cc = ''
this.inputCityList02.forEach((e) => {
if (e.districtCode === this.managementcityCode) {
cc = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
})
this.managementcity = cc.name
var sid02 = {
sid: cc.sid
}
})
this.managementcity = cc.name
var sid02 = {
sid: cc.sid
}
getCounty(sid02).then((res) => {
if (res.code === '200') {
this.inputCountyList02 = res.data
console.log('回显市03', this.inputCountyList02)
this.managementcountCode = this.temp.managementAddressCode
let dd = ''
this.inputCountyList02.forEach((e) => {
if (e.districtCode === this.managementcountCode) {
dd = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
getCounty(sid02).then((res) => {
if (res.code === '200') {
this.inputCountyList02 = res.data
console.log('回显市03', this.inputCountyList02)
this.managementcountCode = this.temp.managementAddressCode
let dd = ''
this.inputCountyList02.forEach((e) => {
if (e.districtCode === this.managementcountCode) {
dd = {
name: e.name,
districtCode: e.districtCode,
sid: e.sid
}
}
}
})
this.managementcount = dd.name
}
})
}
})
}
})
})
this.managementcount = dd.name
}
})
}
})
}
})
}
this.getLevelList(sids)
}
})

Loading…
Cancel
Save