信用报告查询完成

This commit is contained in:
aixianling
2022-07-05 15:09:53 +08:00
parent 5219ca9a3f
commit a75c2d254f
8 changed files with 418 additions and 326 deletions

View File

@@ -1,57 +0,0 @@
<template>
<section class="AppCreditInquiry">
<!-- <keep-alive :include="['List']">
<component ref="component" :is="component" :instance="instance" :params="params" :dict="dict" @change="onChange"/>
</keep-alive> -->
</section>
</template>
<script>
// import List from "./components/List.vue";
// import Add from "./components/Add.vue";
export default {
name: "AppCreditInquiry",
label: "信用查询",
props: {
instance: Function,
dict: Object,
},
// components: {Add, List},
data() {
return {
component: "List",
params: {},
include: [],
}
},
methods: {
onChange(data) {
if (data.type === "Add") {
this.component = "Add";
this.params = data.params;
}
if (data.type === "List") {
this.component = "List";
this.params = data.params;
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getTableData();
}
});
}
},
},
created() {
this.dict.load("portalUserStatus", "enterpriseStatus", "userEnterpriseStatus","enterpriseType")
}
}
</script>
<style lang="scss" scoped>
.AppCreditInquiry {
height: 100%;
}
</style>

View File

@@ -0,0 +1,54 @@
<template>
<section class="AppCreditReport">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<script>
import Home from "./home";
import PersonDetail from "./personDetail";
import CompanyDetail from "./companyDetail";
export default {
name: "AppCreditReport",
components: {CompanyDetail, PersonDetail, Home},
label: "信用报告",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentPage() {
const {hash} = this.$route
return hash == "#person" ? PersonDetail :
hash == "#company" ? CompanyDetail : Home
}
},
created() {
}
}
</script>
<style lang="scss" scoped>
::v-deep.AppCreditReport {
.mar-t16 {
margin-top: 16px;
}
.mar-l8 {
margin-left: 8px;
}
.color-26f {
color: #26f;
}
.color-333 {
color: #333;
}
.color-666 {
color: #666;
}
}
</style>

View File

@@ -0,0 +1,33 @@
<template>
<section class="companyDetail">
<ai-detail>
<ai-title slot="title" title="企业信用报告" isShowBottomBorder>
<template #rightBtn>
<el-button @click="$router.push({})">返回信用报告</el-button>
</template>
</ai-title>
<template #content>
<enterprise-dialog slot="content" :enterpriseId="$route.query.id" v-bind="$props"/>
</template>
</ai-detail>
</section>
</template>
<script>
import EnterpriseDialog from "../../components/enterpriseDialog";
export default {
name: "companyDetail",
components: {EnterpriseDialog},
props: {
instance: Function,
dict: Object,
permissions: Function
}
}
</script>
<style lang="scss" scoped>
.companyDetail {
}
</style>

View File

@@ -0,0 +1,129 @@
<template>
<section class="home">
<ai-detail>
<ai-title slot="title" title="信用报告查询工具" isShowBottomBorder/>
<template #content>
<el-input v-model="search.param" :placeholder="placeholder" @change="page.current=1,handleSearch()" clearable>
<el-select slot="prepend" v-model="search.type" :clearable="false" @change="search.param=''">
<el-option v-for="op in types" :key="op.dictValue" :value="op.dictValue" :label="op.dictName"/>
</el-select>
<el-button slot="append" type="text" @change="page.current=1,handleSearch()">搜索</el-button>
</el-input>
<ai-card v-if="hasResult" title="查询结果" class="mar-t16">
<el-row type="flex" slot="right" class="color-666">秀兴通为您找到<p class="color-26f" v-text="page.total"/>个结果</el-row>
<template #content>
<ai-table :tableData="results" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="handleSearch" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="name" :label="nameLabel">
<template slot-scope="{row}">
<el-row type="flex" align="middle">
<el-avatar :src="row.avatar">
<div v-text="defaultAvatar(row.name)"/>
</el-avatar>
<div class="mar-l8" v-text="row.name"/>
</el-row>
</template>
</el-table-column>
<el-table-column slot="options" label="操作" align="center" width="100px">
<template slot-scope="{row}">
<el-button type="text" @click="showDetail(row.id)">详情</el-button>
</template>
</el-table-column>
</ai-table>
</template>
</ai-card>
<ai-empty v-else>暂无查询结果</ai-empty>
</template>
</ai-detail>
</section>
</template>
<script>
export default {
name: "home",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
placeholder() {
const texts = {
0: "搜索个人姓名/身份证号",
1: "搜索企业名称/法人姓名",
}
return texts[this.search.type]
},
hasResult: v => v.results?.length > 0,
isCompany: v => v.search.type == 1,
nameLabel: v => v.isCompany ? "企业名称" : "姓名",
colConfigs() {
const configs = {
0: [
{slot: "name"},
{prop: "idNumber", label: "身份证号", width: 180},
],
1: [
{slot: "name"},
{prop: "legalPersonName", label: "法人姓名", width: 80},
{prop: "idNumber", label: "统一社会信用代码", width: 180},
{prop: "address", label: "地址"},
],
}
return configs[this.search.type]
},
},
data() {
return {
search: {type: "0", param: null},
types: [
{dictValue: "0", dictName: "个人"},
{dictValue: "1", dictName: "企业"},
],
page: {current: 1, size: 10, total: 0},
results: []
}
},
methods: {
handleSearch() {
this.instance.post("/appcreditreport/listForWeb", null, {
params: {...this.search, ...this.page}
}).then(res => {
if (res?.data) {
this.results = res.data.records
this.page.total = res.data.total
}
})
},
showDetail(id) {
const hash = this.isCompany ? "#company" : "#person"
this.$router.push({hash, query: {id}})
},
defaultAvatar(name) {
return name?.substring(0, 1) || "无"
}
},
}
</script>
<style lang="scss" scoped>
.home {
::v-deep .el-input-group__prepend {
width: 100px;
}
::v-deep .el-input-group__append {
width: 100px;
padding: 0;
background: #26f;
color: #fff;
border-color: #26f;
.el-button {
width: 100%;
height: 100%;
margin: 0;
}
}
}
</style>

View File

@@ -0,0 +1,33 @@
<template>
<section class="personDetail">
<ai-detail>
<ai-title slot="title" title="个人信用报告" isShowBottomBorder>
<template #rightBtn>
<el-button @click="$router.push({})">返回信用报告</el-button>
</template>
</ai-title>
<template #content>
<person-credit-report slot="content" :personId="$route.query.id" v-bind="$props"/>
</template>
</ai-detail>
</section>
</template>
<script>
import PersonCreditReport from "../../components/personCreditReport";
export default {
name: "personDetail",
components: {PersonCreditReport},
props: {
instance: Function,
dict: Object,
permissions: Function
}
}
</script>
<style lang="scss" scoped>
.personDetail {
}
</style>

View File

@@ -1,139 +1,110 @@
<template>
<section class="enterpriseDialog">
<div class="top">
<div class="topPanel">
<div class="top-left" v-html="txtLogo"/>
<div class="top-right">
<div class="top-right__top">
<h2>{{ info.enterpriseName }}</h2>
<!-- <div class="right">
<span>下载报告</span>
</div> -->
<h2 v-text="info.name "/>
<el-button type="primary" icon="iconfont iconDownload">下载报告</el-button>
</div>
<div class="top-right__bottom">
<ai-wrapper
label-width="130px">
<ai-info-item label="法人姓名:"><span style="color: #1890FF;">{{ info.legalPersonName }}</span></ai-info-item>
<ai-info-item label="企业类型:" :value="dict.getLabel('enterpriseType', info.enterpriseType)"></ai-info-item>
<ai-info-item label="统一社会信用代码:" :value="info.unifiedCode"></ai-info-item>
<ai-info-item label="统一社会信用代码:" :value="info.idNumber"></ai-info-item>
<ai-info-item label="地址:" isLine :value="info.areaName + info.address"></ai-info-item>
<ai-info-item label="经营范围:" isLine :value="info.businessScope"></ai-info-item>
</ai-wrapper>
</div>
</div>
</div>
<div class="bottom">
<div class="tab">
<span :class="[currIndex === 0 ? 'active' : '']" @click="currIndex = 0">行政许可</span>
<span :class="[currIndex === 1 ? 'active' : '']" @click="currIndex = 1">行政处罚</span>
<span :class="[currIndex === 2 ? 'active' : '']" @click="currIndex = 2">良好信息</span>
<span :class="[currIndex === 3 ? 'active' : '']" @click="currIndex = 3">失信信息</span>
</div>
<div class="table">
<template v-if="currIndex === 0">
<ai-table :dict="dict" :tableData="info.adminstrativeLicenseList" :col-configs="colConfigs1"
:isShowPagination="false" border tableSize="small" @getList="() => {}"/>
</template>
<ai-table :dict="dict"
v-if="currIndex === 1"
:tableData="info.administrativeSanctionList"
:col-configs="colConfigs2"
:isShowPagination="false"
border
tableSize="small"
@getList="() => {}"/>
<ai-table :dict="dict"
v-if="currIndex === 2"
:tableData="info.taxInfoList"
:col-configs="colConfigs3"
:isShowPagination="false"
border
tableSize="small"
@getList="() => {}"/>
<div class="table-item" v-if="currIndex==3">
<h2>失信被执行人信息</h2>
<ai-table :dict="dict" :tableData="info.dishonestPersonList" :col-configs="colConfigs4"
:isShowPagination="false" border tableSize="small" @getList="() => {}"/>
<h2 style="margin-top: 30px;">公共事业欠缴费信息</h2>
<ai-table :dict="dict" :tableData="info.puaInfoList" :col-configs="colConfigs5"
:isShowPagination="false" border tableSize="small" @getList="() => {}"/>
</div>
</div>
</div>
<el-tabs type="border-card" stretch>
<el-tab-pane label="基本信息">
<el-descriptions :column="2" border size="small" :labelStyle="{width:'200px'}">
<el-descriptions-item v-for="des in desConfigs" :key="des.prop" v-bind="des">{{ info[des.prop] }}</el-descriptions-item>
</el-descriptions>
</el-tab-pane>
<el-tab-pane v-for="(tab,i) in tabs" :label="tab.label" :key="i" lazy>
<ai-table :dict="dict" :tableData="info[tab.prop]" :col-configs="tab.colConfigs" :isShowPagination="false" border tableSize="small">
<div slot="empty">截止{{ $moment().format('YYYY-MM-DD') }},尚未公开信息</div>
</ai-table>
</el-tab-pane>
</el-tabs>
</section>
</template>
<script>
import {mapState} from "vuex";
export default {
name: "enterpriseDialog",
computed: {
...mapState(['user']),
isFinanceUser() {
return !!this.user.financeUser?.id
},
txtLogo() {
return this.info.enterpriseName?.substring(0, 4)?.replace(/(.{2})(.{2})/, '$1<br/>$2') || ""
return this.info.name?.substring(0, 4)?.replace(/(.{2})(.{2})/, '$1<br/>$2') || ""
}
},
data() {
return {
info: {},
currIndex: 0,
colConfigs1: [
{prop: 'licenseCode', label: '行政许可决定文书号'},
{prop: 'decisionDate', align: 'center', label: '许可决定日期'},
{prop: 'endDate', align: 'center', label: '许可有效期至'},
{prop: 'licenseOrganization', align: 'center', label: '许可机关'},
{prop: 'licenseContent', align: 'center', label: '许可内容'},
{prop: 'createTime', align: 'center', label: '数据更新时间'}
tabs: [
{
label: "行政许可", prop: "administrativeLicensingList", colConfigs: [
{prop: 'input04', label: '许可证编号'},
{prop: 'date05', label: '发证时间'},
{prop: 'input00', label: '许可机关'},
{prop: 'textarea03', label: '许可内容'},
{prop: 'create_time', label: '数据更新时间'},
]
},
{
label: "行政处罚", prop: "administrativeSanctionList", colConfigs: [
{prop: "textarea04", label: "违法事项"},
{prop: "input00", label: "处罚机关"},
{prop: "date03", label: "处罚时间"},
{prop: "create_time", label: "数据更新时间"},
]
},
{
label: "失信信息", prop: "discreditList", colConfigs: [
{prop: "input00", label: "姓名/名称"},
{prop: "radio01", label: "类型"},
{prop: "textarea04", label: "失信行为情形"},
{prop: "input03", label: "执行法院"},
{prop: "create_time", label: "数据更新时间"},
]
},
{
label: "缴费信息", prop: "arrearageList", colConfigs: [
{prop: "input00", label: "缴费年月"},
{prop: "radio04", label: "缴费类型"},
{prop: "radio05", label: "缴费情况"},
{prop: "input06", label: "收款单位"},
{prop: "create_time", label: "数据更新时间"},
]
},
],
colConfigs2: [
{prop: 'sanctionCode', width: '190', label: '行政处罚决定文书号'},
{prop: 'sanctionDate', align: 'center', label: '处罚决定日期'},
{prop: 'sanctionType', align: 'center', label: '处罚类型', dict: "administrativeSanctionType"},
{prop: 'sanctionContent', align: 'center', label: '处罚内容'},
{prop: 'sanctionBasis', align: 'center', label: '处罚依据'},
{prop: 'sanctionOrganization', align: 'center', label: '处罚机关'},
{prop: 'createTime', align: 'center', label: '数据更新时间'}
desConfigs: [
{prop: "creditRating", label: "信用评级"},
{prop: "creditRatingScore", label: "信用评分"},
{prop: "creditRatingDesc", label: "评级释义", span: 2},
{prop: "administrativeLicensing", label: "行政许可信息"},
{prop: "administrativeSanction", label: "行政处罚信息"},
{prop: "discredit", label: "失信被执行人"},
{prop: "enterpriseLevel", label: "企业等级"},
{prop: "maritalStatus", label: "是否已婚"},
{prop: "arrearage", label: "欠缴水电燃气费"},
{prop: "enterpriseAuth", label: "企业认证信息", span: 2},
],
colConfigs3: [
{prop: 'taxpayer', label: '纳税人名称'},
{prop: 'taxpayerNumber', align: 'center', label: '纳税人识别号'},
{prop: 'taxLevel', align: 'center', label: '纳税人等级'},
{prop: 'taxYear', align: 'center', label: '年份'},
{prop: 'evaluationUnit', align: 'center', label: '评价单位'},
{prop: 'createTime', align: 'center', label: '数据更新时间'}
],
colConfigs4: [
{prop: 'executionCode', label: '执行案号'},
{prop: 'executionTime', align: 'center', label: '执行时间'},
{prop: 'dishonestFact', align: 'center', label: '失信事实'},
{prop: 'executionSituation', align: 'center', label: '履行情况', dict: "dishonestPersonSituation"},
{prop: 'executionCourt', align: 'center', label: '执行法院'},
{prop: 'executionTime', align: 'center', label: '数据更新时间'}
],
colConfigs5: [
{prop: 'arrearsAmount', label: '欠费金额(万元)'},
{prop: 'arrearsType', align: 'center', label: '欠缴类型名称', dict: "arrearsType"},
{prop: 'deadlineForArrearsStatistics', align: 'center', label: '欠缴统计截止日期'},
{prop: 'dishonestySeverity', align: 'center', label: '失信严重程度', dict: "dishonestySeverity"},
{prop: 'validityPeriodOfDishonesty', align: 'center', label: '失信行为有效期'},
{prop: 'sourceOrganization', align: 'center', label: '数据来源机构'},
{prop: 'createTime', align: 'center', label: '数据更新时间'}
]
}
},
created() {
this.dict.load("dishonestPersonSituation", "administrativeSanctionType", "enterpriseType", 'arrearsType', 'dishonestySeverity')
this.getCompanyInfo()
},
methods: {
getCompanyInfo() {
let {enterpriseId: id} = this
this.instance.post(`/appportaluserenterprise/queryCreditEnterpriseDetailById`, null, {
withoutToken: true,
params: {id}
this.instance.post(`/appcreditreport/info`, null, {
params: {id, type: 1}
}).then(res => {
if (res?.data) {
this.info = res.data
@@ -152,21 +123,14 @@ export default {
<style lang="scss" scoped>
.enterpriseDialog {
.table-item {
h2 {
margin-bottom: 16px;
color: #333333;
font-size: 18px;
font-weight: 600;
}
}
.top {
.topPanel {
display: flex;
margin-bottom: 20px;
padding: 34px 30px 16px;
border: 1px solid #EEEEEE;
border-radius: 4px;
background: #fff;
box-shadow: 0 4px 6px -2px rgba(15, 15, 21, 0.15);
.top-left {
margin-right: 31px;
@@ -220,47 +184,21 @@ export default {
}
}
.bottom {
padding-bottom: 20px;
border: 1px solid #DCDFE6;
border-radius: 4px;
::v-deep.el-tabs {
.el-tabs__header {
padding: unset;
.tab {
display: flex;
align-items: center;
height: 60px;
margin-bottom: 15px;
background: #FAFAFA;
border-radius: 4px;
.el-tabs__item {
background: #f3f6f9;
border-bottom-color: #ddd;
margin-left: 0;
span {
flex: 1;
height: 100%;
line-height: 60px;
text-align: center;
color: #555555;
font-size: 16px;
cursor: pointer;
border-bottom: 1px solid #DCDFE6;
border-right: 1px solid #DCDFE6;
transition: all ease 0.3s;
user-select: none;
&:last-child {
border-right: none;
}
&.active {
border-bottom: 1px solid transparent;
&.is-active {
background: #fff;
color: #1890FF;
border-bottom-color: transparent;
}
}
}
.table {
padding: 0 16px;
}
}
}
</style>

View File

@@ -1,129 +1,127 @@
<template>
<section class="personCreditReport">
<el-link v-if="hasIdNumber" type="primary" @click.stop="handleShow">个人产权</el-link>
<el-dialog :visible.sync="dialog" title="个人产权信息" width="1200px" customFooter>
<div class="top">
<div class="top-left">
<el-image v-if="info.avatar"/>
<div v-else v-html="txtLogo"/>
</div>
<div class="top-right">
<div class="top-right__top">
<h2 v-text="person.name"/>
</div>
<div class="top-right__bottom">
<ai-wrapper
label-width="130px">
<ai-info-item label="手机号码:" :value="person.phone"/>
<ai-info-item label="身份证号:" :value="person.idNumber"/>
</ai-wrapper>
</div>
</div>
<div class="topPanel">
<div class="top-left">
<el-image v-if="info.avatar"/>
<div v-else v-html="txtLogo"/>
</div>
<el-tabs type="border-card" stretch>
<el-tab-pane label="企业信息">
<ai-table :dict="dict" :tableData="info.enterpriseList" :col-configs="colConfigs1"
:isShowPagination="false" border tableSize="small"/>
</el-tab-pane>
<el-tab-pane label="宅基地信息" lazy>
<ai-table :dict="dict" :tableData="info.homesteadInfoList" :col-configs="colConfigs2"
:isShowPagination="false" border tableSize="small"/>
</el-tab-pane>
<el-tab-pane label="集体经济组织股权" lazy>
<ai-table :dict="dict" :tableData="info.shareholderList" :col-configs="colConfigs3"
:isShowPagination="false" border tableSize="small"/>
</el-tab-pane>
<el-tab-pane label="土地流转经营" lazy>
<ai-table :dict="dict" :tableData="info.landCirculateInfoList" :col-configs="colConfigs4"
:isShowPagination="false" border tableSize="small"/>
</el-tab-pane>
</el-tabs>
<template #footer>
<el-button @click.stop="dialog=false">关闭</el-button>
</template>
</el-dialog>
<ai-wrapper class="fill" label-width="130px">
<ai-info-item label="手机号码:" :value="info.phone"/>
<ai-info-item label="性别:" :value="info.sex"/>
<ai-info-item label="身份证号:" :value="info.idNumber"/>
<ai-info-item label="年龄:" :value="info.age"/>
<ai-info-item label="本地户籍:" :value="info.localRegistered"/>
<ai-info-item label="结婚状态:" :value="info.maritalStatus"/>
<ai-info-item label="所在地区:" :value="info.address" isLine/>
</ai-wrapper>
<el-button type="primary">下载报告</el-button>
</div>
<el-tabs type="border-card" stretch>
<el-tab-pane label="基本信息">
<el-descriptions :column="2" border size="small" :labelStyle="{width:'200px'}">
<el-descriptions-item v-for="des in desConfigs" :key="des.prop" v-bind="des">{{ info[des.prop] }}</el-descriptions-item>
</el-descriptions>
</el-tab-pane>
<el-tab-pane v-for="(tab,i) in tabs" :label="tab.label" :key="i" lazy>
<ai-table :dict="dict" :tableData="info[tab.prop]" :col-configs="tab.colConfigs" :isShowPagination="false" border tableSize="small">
<div slot="empty">截止{{ $moment().format('YYYY-MM-DD') }},尚未公开信息</div>
</ai-table>
</el-tab-pane>
</el-tabs>
</section>
</template>
<script>
import {mapState} from "vuex";
export default {
name: "personCreditReport",
computed: {
...mapState(['user']),
isFinanceUser() {
return !!this.user.financeUser?.id
},
txtLogo() {
return this.person.name?.substring(0, 1) || ""
return this.info.name?.substring(0, 1) || ""
},
hasIdNumber() {
return !!this.person.idNumber
return !!this.info.idNumber
}
},
data() {
return {
dialog: false,
info: {},
currIndex: 0,
colConfigs1: [
{prop: 'enterpriseName', label: '企业名称'},
{prop: 'enterpriseType', label: '企业类型', dict: "enterpriseType", align: 'center'},
{prop: 'areaName', label: '所属区域', align: 'center'},
{prop: 'businessScope', label: '经营范围', align: 'center'},
{prop: 'operationPeriod', label: '营业期限', align: 'center'},
],
colConfigs2: [
{prop: 'usePerson', label: '使用人'},
{prop: 'houseNumber', label: '家庭人口', align: 'center'},
{prop: 'areaName', label: '所在地区', align: 'center'},
{prop: 'landArea', label: '土地面积/㎡', align: 'center'},
{prop: 'landOwnership', label: '土地所有权', align: 'center'},
],
colConfigs3: [
{prop: 'organizationName', label: '集体经济组织名称'},
{prop: 'areaName', align: 'center', label: '所在地区'},
{prop: 'name', align: 'center', label: '持股人'},
{prop: 'shareholdingNumber', align: 'center', label: '股权总数'},
{prop: 'shareholdingAmount', align: 'center', label: '股金总额'}
],
colConfigs4: [
{prop: 'landOutflowName', label: '土地流出方'},
{prop: 'landArea', align: 'center', label: '土地面积/㎡'},
{prop: 'landUndertakeName', align: 'center', label: '土地承接方'},
{prop: 'circulateType', align: 'center', label: '流转形式', dict: "landCirculateType"},
{prop: 'startDate', align: 'center', label: '开始日期'},
tabs: [
{
label: "企业信息", prop: "unitList", colConfigs: [
{prop: 'enterpriseName', label: '企业名称'},
{prop: 'enterpriseType', label: '企业类型', dict: "enterpriseType", align: 'center'},
{prop: 'areaName', label: '所属区域', align: 'center'},
{prop: 'businessScope', label: '经营范围', align: 'center'},
{prop: 'operationPeriod', label: '营业期限', align: 'center'},
]
},
{
label: "失信信息", prop: "discreditList", colConfigs: [
{prop: "input00", label: "姓名/名称"},
{prop: "radio01", label: "类型"},
{prop: "textarea04", label: "失信行为情形"},
{prop: "input03", label: "执行法院"},
{prop: "create_time", label: "数据更新时间"},
]
},
{
label: "缴费信息", prop: "arrearageList", colConfigs: [
{prop: "input00", label: "缴费年月"},
{prop: "radio04", label: "缴费类型"},
{prop: "radio05", label: "缴费情况"},
{prop: "input06", label: "收款单位"},
{prop: "create_time", label: "数据更新时间"},
]
},
{
label: "婚姻登记", prop: "marriageList", colConfigs: [
{prop: "input05", label: "登记年度"},
{prop: "input00", label: "姓名"},
{prop: "input01", label: "证件号码"},
{prop: "input02", label: "姓名"},
{prop: "input03", label: "证件号码"},
{prop: "radio04", label: "类别"},
{prop: "create_time", label: "数据更新时间"},
]
},
],
desConfigs: [
{prop: "creditRating", label: "信用评级"},
{prop: "creditRatingScore", label: "信用评分"},
{prop: "creditRatingDesc", label: "评级释义", span: 2},
{prop: "perCapitaIncome", label: "家庭人均收入"},
{prop: "medicalInsurance", label: "全员参加医保"},
{prop: "ridOfPoverty", label: "脱贫户"},
{prop: "discredit", label: "失信被执行人"},
{prop: "arrearage", label: "欠缴水电燃气费"},
{prop: "administrativeSanction", label: "行政处罚信息"},
{prop: "sourceOfIncome", label: "家庭收入来源", span: 2},
{prop: "familyDevelopmentStatus", label: "家庭发展现状", span: 2},
]
}
},
created() {
this.dict.load("enterpriseType", "landCirculateType")
this.getPCR()
},
methods: {
getPCR() {
let {idNumber, createUserId: id} = this.person
return this.instance.post(`/appportaluser/queryPersonPropertyRight`, null, {
params: {idNumber, id}
let {personId: id} = this
return this.instance.post(`/appcreditreport/info`, null, {
params: {id, type: 0}
}).then(res => {
if (res?.data) {
let {avatar} = res.data
if (avatar) {
avatar = JSON.parse(avatar)?.[0]
}
return this.info = {...res.data, avatar}
this.info = res.data
}
})
},
handleShow() {
this.getPCR().then(() => this.dialog = true).catch(() => this.dialog = true)
}
},
props: {
instance: Function,
dict: Object,
permissions: Function,
person: {required: true, default: () => ({})}
personId: {required: true, default: ""}
}
}
</script>
@@ -141,12 +139,14 @@ export default {
}
}
.top {
.topPanel {
display: flex;
margin-bottom: 20px;
padding: 34px 30px 16px;
border: 1px solid #EEEEEE;
border-radius: 4px;
background: #fff;
box-shadow: 0 4px 6px -2px rgba(15, 15, 21, 0.15);
.top-left {
margin-right: 16px;
@@ -159,44 +159,6 @@ export default {
height: fit-content;
}
.top-right {
flex: 1;
.top-right__top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
h2 {
color: #333333;
font-size: 22px;
}
.right {
display: flex;
align-items: center;
justify-content: center;
width: 97px;
height: 32px;
background: #E8F4FF;
border: 1px solid #A3D3FF;
border-radius: 3px;
color: #1890FF;
font-size: 13px;
cursor: pointer;
&:hover {
opacity: 0.6;
}
}
}
.top-right__bottom {
padding: 16px 10px 10px 0;
background: #F6FBFF;
}
}
}
::v-deep.el-tabs {