|
@@ -21,28 +21,51 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="manager-name">{{organization.name}}</div>
|
|
<div class="manager-name">{{organization.name}}</div>
|
|
|
|
+ <div>
|
|
|
|
+ <span class="hui-tag hui-tag-warning"
|
|
|
|
+ v-if="!organization.certificationStatus">未认证</span>
|
|
|
|
+ <span class="hui-tag hui-tag-success" v-else>已认证</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="manager-box">
|
|
<div class="manager-box">
|
|
<div class="manager-item">
|
|
<div class="manager-item">
|
|
- <div class="manager-label">公司代码</div>
|
|
|
|
|
|
+ <div class="manager-label">
|
|
|
|
+ <span>统一社会信用代码</span>
|
|
|
|
+ <span class="color-primary" style="margin-left: 10px;cursor: pointer;"
|
|
|
|
+ @click="authentication">点击认证</span>
|
|
|
|
+ </div>
|
|
<div class="manager-value">
|
|
<div class="manager-value">
|
|
- {{organization.organizationCode}}
|
|
|
|
|
|
+ <span> {{organization.creditNo || '-'}}</span>
|
|
<i class="el-icon-copy-document color-primary" title="点击复制"
|
|
<i class="el-icon-copy-document color-primary" title="点击复制"
|
|
- @click="copyText(organization.organizationCode)"></i>
|
|
|
|
|
|
+ @click="copyText(organization.creditNo)">
|
|
|
|
+ </i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="manager-item">
|
|
<div class="manager-item">
|
|
- <div class="manager-label">联系人</div>
|
|
|
|
- <div class="manager-value">{{organization.contact}}</div>
|
|
|
|
|
|
+ <div class="manager-label">法人代表</div>
|
|
|
|
+ <div class="manager-value">{{organization.legalPerson || '-'}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="manager-item">
|
|
<div class="manager-item">
|
|
- <div class="manager-label">公司地址</div>
|
|
|
|
- <div class="manager-value">{{address}}</div>
|
|
|
|
|
|
+ <div class="manager-label">联系人</div>
|
|
|
|
+ <div class="manager-value">{{organization.contact}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="manager-item">
|
|
<div class="manager-item">
|
|
<div class="manager-label">联系方式</div>
|
|
<div class="manager-label">联系方式</div>
|
|
<div class="manager-value">{{organization.contactTel}}</div>
|
|
<div class="manager-value">{{organization.contactTel}}</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="manager-item">
|
|
|
|
+ <div class="manager-label">公司代码</div>
|
|
|
|
+ <div class="manager-value">
|
|
|
|
+ <span> {{organization.organizationCode}}</span>
|
|
|
|
+ <i class="el-icon-copy-document color-primary" title="点击复制"
|
|
|
|
+ @click="copyText(organization.organizationCode)">
|
|
|
|
+ </i>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="manager-item">
|
|
|
|
+ <div class="manager-label">公司地址</div>
|
|
|
|
+ <div class="manager-value">{{address}}</div>
|
|
|
|
+ </div>
|
|
<div class="manager-item" style="width: 100%;">
|
|
<div class="manager-item" style="width: 100%;">
|
|
<div class="manager-label">公司简介</div>
|
|
<div class="manager-label">公司简介</div>
|
|
<div class="manager-value">{{organization.introduction}}</div>
|
|
<div class="manager-value">{{organization.introduction}}</div>
|
|
@@ -68,6 +91,10 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import {
|
|
|
|
+ getOrganizationDetailById,
|
|
|
|
+ authenticationOrganizationById
|
|
|
|
+ } from '@/api/organization'
|
|
const upload = () => import('@/components/common/upload');
|
|
const upload = () => import('@/components/common/upload');
|
|
const edit = () => import('@/components/work/organization/manager/edit');
|
|
const edit = () => import('@/components/work/organization/manager/edit');
|
|
export default {
|
|
export default {
|
|
@@ -77,6 +104,7 @@
|
|
logoUrl: '',
|
|
logoUrl: '',
|
|
address: '',
|
|
address: '',
|
|
visible: false
|
|
visible: false
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -85,21 +113,36 @@
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
if (!this.auth('/work/organization/manager/information')) return;
|
|
if (!this.auth('/work/organization/manager/information')) return;
|
|
- this.organization = this.$store.getters.organization;
|
|
|
|
- if (this.organization.address) {
|
|
|
|
- let address = JSON.parse(this.organization.address);
|
|
|
|
- this.address = address.join('-') + '-' + (this.organization.detailAddress || '');
|
|
|
|
- }
|
|
|
|
- let logo = !this.organization.logo ? {} : JSON.parse(this.organization.logo);
|
|
|
|
- this.logoUrl = logo.url;
|
|
|
|
-
|
|
|
|
|
|
+ getOrganizationDetailById(this.$store.getters.organization.id).then(res => {
|
|
|
|
+ if (res.state) {
|
|
|
|
+ this.organization = res.data;
|
|
|
|
+ this.$store.dispatch('app/changeOrganization', res.data);
|
|
|
|
+ if (this.organization.address) {
|
|
|
|
+ let address = JSON.parse(this.organization.address);
|
|
|
|
+ this.address = address.join('-') + '-' + (this.organization.detailAddress || '');
|
|
|
|
+ }
|
|
|
|
+ let logo = !this.organization.logo ? {} : JSON.parse(this.organization.logo);
|
|
|
|
+ this.logoUrl = logo.url;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ authentication() {
|
|
|
|
+ if (!this.organization.name) return this.$message.warning('请设置企业名称');
|
|
|
|
+ if (!this.organization.creditNo) return this.$message.warning('请设置统一社会信用代码');
|
|
|
|
+ if (!this.organization.legalPerson) return this.$message.warning('请设置法人代表');
|
|
|
|
+ this.$confirm('是否认证企业', () => {
|
|
|
|
+ authenticationOrganizationById(this.organization.id).then(res => {
|
|
|
|
+ if (res.state && res.data.result === 1) return this.$message.success('认证成功');
|
|
|
|
+ this.$message.warning('认证失败,请检查企业信息');
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
async copyText(code) {
|
|
async copyText(code) {
|
|
try {
|
|
try {
|
|
await navigator.clipboard.writeText(code);
|
|
await navigator.clipboard.writeText(code);
|
|
- this.$message.success('复制成功')
|
|
|
|
|
|
+ this.$message.success('复制成功');
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- this.$message.success('复制失败')
|
|
|
|
|
|
+ this.$message.warning('复制失败');
|
|
}
|
|
}
|
|
},
|
|
},
|
|
callback(type) {
|
|
callback(type) {
|
|
@@ -171,6 +214,7 @@
|
|
|
|
|
|
.manager-name {
|
|
.manager-name {
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
|
|
+ margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
|
|
.manager-box {
|
|
.manager-box {
|