|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="enterprise-supplement">
|
|
<div class="enterprise-supplement">
|
|
- <basic-info ref="baseInfo" :base-info="baseInfo" class="base-info" />
|
|
|
|
|
|
+ <basic-info ref="baseInfoRef" :base-info="baseInfo" class="base-info" />
|
|
<PersonInfo ref="legalPersonInfoRef" :regionList="regionList" :person-type="'legal'" :details-info="legalPersonInfo" class="legal-info" />
|
|
<PersonInfo ref="legalPersonInfoRef" :regionList="regionList" :person-type="'legal'" :details-info="legalPersonInfo" class="legal-info" />
|
|
<PersonInfo ref="controlPersonInfoRef" :regionList="regionList" :person-type="'control'" :details-info="controlPersonInfo" />
|
|
<PersonInfo ref="controlPersonInfoRef" :regionList="regionList" :person-type="'control'" :details-info="controlPersonInfo" />
|
|
<ContactInfo ref="contactInfoRef" :details-info="contactInfo" />
|
|
<ContactInfo ref="contactInfoRef" :details-info="contactInfo" />
|
|
@@ -35,20 +35,17 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- // this.getDetails()
|
|
|
|
-
|
|
|
|
- const { typeName, code, name } = this.$route.query
|
|
|
|
-
|
|
|
|
- this.baseInfo = {
|
|
|
|
- typeName: typeName || '',
|
|
|
|
- socialCreditCode: code || '',
|
|
|
|
- enterpriseName: name || ''
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.queryReginList()
|
|
this.queryReginList()
|
|
|
|
|
|
if (this.$route.query.id && this.$route.query.companyZrId) {
|
|
if (this.$route.query.id && this.$route.query.companyZrId) {
|
|
this.getDetails(this.$route.query.id)
|
|
this.getDetails(this.$route.query.id)
|
|
|
|
+ } else {
|
|
|
|
+ const { code, name } = this.$route.query
|
|
|
|
+ this.baseInfo = {
|
|
|
|
+ companyType: '',
|
|
|
|
+ socialCreditCode: code || '',
|
|
|
|
+ enterpriseName: name || ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -59,8 +56,14 @@ export default {
|
|
},
|
|
},
|
|
async getDetails(queryId) {
|
|
async getDetails(queryId) {
|
|
const res = await getEnterpriseDetail(queryId)
|
|
const res = await getEnterpriseDetail(queryId)
|
|
|
|
+ const { code, name } = this.$route.query
|
|
|
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
|
|
+ this.baseInfo = {
|
|
|
|
+ companyType: res.data.companyZrVo.companyType || '',
|
|
|
|
+ socialCreditCode: code || '',
|
|
|
|
+ enterpriseName: name || ''
|
|
|
|
+ }
|
|
this.legalPersonInfo = res.data.companyZrVo
|
|
this.legalPersonInfo = res.data.companyZrVo
|
|
this.controlPersonInfo = res.data.companyZrVo
|
|
this.controlPersonInfo = res.data.companyZrVo
|
|
this.contactInfo = res.data.companyZrVo
|
|
this.contactInfo = res.data.companyZrVo
|
|
@@ -104,13 +107,14 @@ export default {
|
|
const contactReqParams = {
|
|
const contactReqParams = {
|
|
...contactParams
|
|
...contactParams
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ const baseInfoParams = await this.$refs.baseInfoRef.getPrams(type)
|
|
const supParams = {
|
|
const supParams = {
|
|
Loading: true,
|
|
Loading: true,
|
|
companyId: this.$route.query.id,
|
|
companyId: this.$route.query.id,
|
|
...legalReqParams,
|
|
...legalReqParams,
|
|
...controlReqParams,
|
|
...controlReqParams,
|
|
...contactReqParams,
|
|
...contactReqParams,
|
|
|
|
+ companyType: baseInfoParams.companyType,
|
|
fileIds,
|
|
fileIds,
|
|
flag: type === 'temp' ? 0 : 1
|
|
flag: type === 'temp' ? 0 : 1
|
|
}
|
|
}
|
|
@@ -119,6 +123,10 @@ export default {
|
|
supParams.companyZrId = this.$route.query.companyZrId
|
|
supParams.companyZrId = this.$route.query.companyZrId
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (this.$route.query.taskId) {
|
|
|
|
+ supParams.taskId = this.$route.query.taskId
|
|
|
|
+ }
|
|
|
|
+
|
|
const res = await enterpriseAccessStepOne(supParams)
|
|
const res = await enterpriseAccessStepOne(supParams)
|
|
|
|
|
|
if (res.success) {
|
|
if (res.success) {
|