|
@@ -35,16 +35,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- // this.getDetails()
|
|
|
-
|
|
|
- const { typeName, code, name } = this.$route.query
|
|
|
-
|
|
|
- this.baseInfo = {
|
|
|
- typeName: typeName || '',
|
|
|
- socialCreditCode: code || '',
|
|
|
- enterpriseName: name || ''
|
|
|
- }
|
|
|
-
|
|
|
this.queryReginList()
|
|
|
|
|
|
if (this.$route.query.id && this.$route.query.companyZrId) {
|
|
@@ -59,8 +49,14 @@ export default {
|
|
|
},
|
|
|
async getDetails(queryId) {
|
|
|
const res = await getEnterpriseDetail(queryId)
|
|
|
+ const { code, name } = this.$route.query
|
|
|
|
|
|
if (res.success) {
|
|
|
+ this.baseInfo = {
|
|
|
+ companyType: res.data.companyZrVo.companyType || '',
|
|
|
+ socialCreditCode: code || '',
|
|
|
+ enterpriseName: name || ''
|
|
|
+ }
|
|
|
this.legalPersonInfo = res.data.companyZrVo
|
|
|
this.controlPersonInfo = res.data.companyZrVo
|
|
|
this.contactInfo = res.data.companyZrVo
|