Browse Source

完善经销商

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

Loading…
Cancel
Save