|
|
|
|
<template>
|
|
|
|
|
<div class="home app_content">
|
|
|
|
|
<!-- 导航栏 -->
|
|
|
|
|
<div class="header_body">
|
|
|
|
|
|
|
|
|
|
<header-nav
|
|
|
|
|
:slefBack="true"
|
|
|
|
|
@goBack="goBack"
|
|
|
|
|
:titelText="`企业详情`"
|
|
|
|
|
>
|
|
|
|
|
</header-nav>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 中间 -->
|
|
|
|
|
<div class="warp_body">
|
|
|
|
|
<div class="white-body">
|
|
|
|
|
<van-tabs v-model:active="active">
|
|
|
|
|
<van-tab title="企业画像">
|
|
|
|
|
<enterpriseBaseInfo></enterpriseBaseInfo>
|
|
|
|
|
</van-tab>
|
|
|
|
|
<van-tab title="企业预警">
|
|
|
|
|
<enterpriseWarningInfo></enterpriseWarningInfo>
|
|
|
|
|
</van-tab>
|
|
|
|
|
</van-tabs>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup name="Home">
|
|
|
|
|
import {getEnterpriseMerchantAuthorization} from '@/api/Home';
|
|
|
|
|
import {queryEarlyWarning} from '../../api/enforce';
|
|
|
|
|
import {getEnterpriseInformation} from '../../api/enterprise'
|
|
|
|
|
import enterpriseBaseInfo from './enterpriseBaseInfo.vue'
|
|
|
|
|
import enterpriseWarningInfo from './enterpriseWarningInfo.vue'
|
|
|
|
|
|
|
|
|
|
import { Tab, Tabs } from 'vant';
|
|
|
|
|
const { useCommon } = $globalStore;
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
let freshMap = reactive({
|
|
|
|
|
refreshLoad: false, // 是否刷新
|
|
|
|
|
listLoading: false, // 是否加载中
|
|
|
|
|
listFinished: false, // 是否加载完成标识
|
|
|
|
|
});
|
|
|
|
|
const data = reactive({
|
|
|
|
|
enterpriseNumber:"a7cbb677c11e4dffa810b4ad3abedc09$eb020e1a24a8a19a0bdc07b191aa9ce7",
|
|
|
|
|
// enterpriseNumber:route?.query?.enterpriseNumber,
|
|
|
|
|
warningInfo:{},
|
|
|
|
|
searchParam:{}
|
|
|
|
|
});
|
|
|
|
|
const boutiqueAttr = reactive({
|
|
|
|
|
columnNum: 4,
|
|
|
|
|
itemClass: "boutique_item",
|
|
|
|
|
goodsCradclass: "boutique-crad",
|
|
|
|
|
}); // 商品卡片展示
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const toSign = async() =>{
|
|
|
|
|
router.push({
|
|
|
|
|
path: "/sign",
|
|
|
|
|
query:{
|
|
|
|
|
enterpriseNumber: data.enterpriseNumber
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const toEnterpriseBaseInfo = async() =>{
|
|
|
|
|
router.push({
|
|
|
|
|
path: "/enterpriseBaseInfo",
|
|
|
|
|
query:{
|
|
|
|
|
enterpriseNumber: data.enterpriseNumber
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const toEnterpriseWarningInfo = async() =>{
|
|
|
|
|
router.push({
|
|
|
|
|
path: "/enterpriseWarningInfo",
|
|
|
|
|
query:{
|
|
|
|
|
enterpriseNumber: data.enterpriseNumber
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const toRegistrationListView = async() =>{
|
|
|
|
|
router.push({
|
|
|
|
|
path: "/enterprise/registrationList",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
const toComplaintView = async() =>{
|
|
|
|
|
router.push({
|
|
|
|
|
path: "/enterprise/complaint",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 触底加载
|
|
|
|
|
const onLoad = () => {
|
|
|
|
|
// recommendGoods(true);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
|
|
getEnterpriseInformation(data.enterpriseNumber,success =>{
|
|
|
|
|
if (null != success.data) {
|
|
|
|
|
data.searchParam.enterpriseNumber = success.data.enterpriseNumber;
|
|
|
|
|
//查询企业历史检查案件
|
|
|
|
|
queryEarlyWarning(data.searchParam,success =>{
|
|
|
|
|
data.warningInfo = success.data[0];
|
|
|
|
|
},error =>{
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},error=>{
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{
|
|
|
|
|
if(!(success.data == null && success.data.length == 0)){
|
|
|
|
|
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber);
|
|
|
|
|
}
|
|
|
|
|
},error =>{
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
// 返回
|
|
|
|
|
const goBack = () => {
|
|
|
|
|
router.go(-1);
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.home {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background-color: #ebf3fb;
|
|
|
|
|
|
|
|
|
|
.warp_body {
|
|
|
|
|
background-image: linear-gradient(to bottom, #ebf3fb, transparent);
|
|
|
|
|
background-size: cover;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.white-body {
|
|
|
|
|
margin: 0 4%;
|
|
|
|
|
width: 92%;
|
|
|
|
|
height: 96%;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .van-tabs__wrap {
|
|
|
|
|
padding: 2% 3%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .van-tab:nth-child(1) {
|
|
|
|
|
color: #4aa1f9;
|
|
|
|
|
background: url("../../assets/images/tab_bg1_1.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .van-tab:nth-child(1).van-tab--active {
|
|
|
|
|
color: #fff;
|
|
|
|
|
background: url("../../assets/images/tab_bg1.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .van-tab:nth-child(2) {
|
|
|
|
|
color: #4aa1f9;
|
|
|
|
|
background: url("../../assets/images/tab_bg.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .van-tab:nth-child(2).van-tab--active {
|
|
|
|
|
color: #fff;
|
|
|
|
|
background: url("../../assets/images/tab_bg_1.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
/deep/ .van-tabs__line {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|