diff --git a/anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiAdd.vue b/anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiAdd.vue index ff43fb24e3..d7bacf52e8 100644 --- a/anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiAdd.vue +++ b/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) } }) diff --git a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/billingmanagement/billingmanagementAdd.vue b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/billingmanagement/billingmanagementAdd.vue index 4560ac0a98..7e86449ac5 100644 --- a/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/billingmanagement/billingmanagementAdd.vue +++ b/anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finginvoiceapply/billingmanagement/billingmanagementAdd.vue @@ -7,6 +7,8 @@