|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<div class="enterprise-edit">
|
|
|
- <basic-info ref="baseInfo" :base-info="baseInfo" />
|
|
|
- <PersonInfo ref="legalPersonInfoRef" :regionList="regionList" :person-type="'legal'" :details-info="legalPersonInfo" />
|
|
|
- <PersonInfo ref="controlPersonInfoRef" :regionList="regionList" :person-type="'control'" :details-info="controlPersonInfo" />
|
|
|
- <ContactInfo ref="contactInfoRef" :details-info="contactInfo" />
|
|
|
+ <basic-info ref="baseInfoRef" :base-info="baseInfo" />
|
|
|
+ <PersonInfo ref="legalPersonInfoRef" :regionList="regionList" :person-type="'legal'" :details-info="legalPersonInfo" style="margin-top: 20px;" />
|
|
|
+ <PersonInfo ref="controlPersonInfoRef" :regionList="regionList" :person-type="'control'" :details-info="controlPersonInfo" style="margin-top: 20px;" />
|
|
|
+ <ContactInfo ref="contactInfoRef" :details-info="contactInfo" style="margin-top: 20px;" />
|
|
|
<div class="submit-btn">
|
|
|
<el-button @click="() => { $router.push({ name: 'MyStoreEnterprise', query: { activeName: 'enterprise' } }) }">关闭</el-button>
|
|
|
<el-button type="primary" @click="submitClick('temp')">暂存</el-button>
|
|
@@ -34,14 +34,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- 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) {
|
|
@@ -56,8 +48,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
|
|
@@ -101,17 +99,22 @@ export default {
|
|
|
const contactReqParams = {
|
|
|
...contactParams
|
|
|
}
|
|
|
-
|
|
|
+ const baseInfoParams = await this.$refs.baseInfoRef.getPrams(type)
|
|
|
const supParams = {
|
|
|
Loading: true,
|
|
|
companyId: this.$route.query.id,
|
|
|
...legalReqParams,
|
|
|
...controlReqParams,
|
|
|
...contactReqParams,
|
|
|
+ companyType: baseInfoParams.companyType,
|
|
|
fileIds,
|
|
|
flag: type === 'temp' ? 0 : 1
|
|
|
}
|
|
|
|
|
|
+ if (this.$route.query.taskId) {
|
|
|
+ supParams.taskId = this.$route.query.taskId
|
|
|
+ }
|
|
|
+
|
|
|
if (this.$route.query.companyZrId) {
|
|
|
supParams.companyZrId = this.$route.query.companyZrId
|
|
|
}
|