|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="enterprise-edit">
|
|
|
- <basic-info ref="baseInfo" :base-info="baseInfo" />
|
|
|
+ <basic-info ref="baseInfoRef" :base-info="baseInfo" />
|
|
|
<PersonInfo ref="legalPersonInfoRef" :person-type="'legal'" :details-info="legalPersonInfo" :regionList="regionList" />
|
|
|
<PersonInfo ref="controlPersonInfoRef" :person-type="'control'" :details-info="controlPersonInfo" :regionList="regionList" />
|
|
|
<ContactInfo ref="contactInfoRef" :details-info="contactInfo" />
|
|
@@ -34,10 +34,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- const { typeName, code, name } = this.$route.query
|
|
|
+ const { code, name } = this.$route.query
|
|
|
|
|
|
this.baseInfo = {
|
|
|
- typeName: typeName || '',
|
|
|
socialCreditCode: code || '',
|
|
|
enterpriseName: name || ''
|
|
|
}
|
|
@@ -91,6 +90,7 @@ export default {
|
|
|
|
|
|
const supParams = {
|
|
|
companyId: this.$route.query.id,
|
|
|
+ companyType: this.$refs.baseInfoRef.ruleForm.companyType,
|
|
|
...legalReqParams,
|
|
|
...controlReqParams,
|
|
|
...contactReqParams,
|
|
@@ -114,7 +114,13 @@ export default {
|
|
|
this.$router.go(-1)
|
|
|
} else if (type === 'submit') {
|
|
|
if (res.data.redNo) {
|
|
|
- this.$router.go(-1)
|
|
|
+ this.$confirm(res.data.msg, '红否提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.go(-1)
|
|
|
+ }).catch(() => {})
|
|
|
} else {
|
|
|
this.$router.push({
|
|
|
name: 'StoreEnterpriseAuth',
|