Commit 5b7e1a75 authored by dengguangman's avatar dengguangman

Merge remote-tracking branch 'origin/master'

parents 6140f2e2 e32430d6
...@@ -123,4 +123,10 @@ public class EnterpriseController { ...@@ -123,4 +123,10 @@ public class EnterpriseController {
return enterpriseService.remark(vo); return enterpriseService.remark(vo);
} }
@ApiOperation(value = "企业主体信用评级")
@PostMapping(value = "bondCreditRating")
public R remark(@RequestBody @Valid EnterpriseBondCreditRatingBody vo) throws Exception {
return enterpriseService.bondCreditRating(vo);
}
} }
package com.dsk.common.core.domain.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.validation.constraints.NotNull;
@Data
@ToString
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class EnterpriseBondCreditRatingBody
{
/**
* 企业id
*/
@NotNull(message = "企业id不能为空")
private Integer cid;
}
...@@ -40,6 +40,16 @@ function changeStr(str, index, changeStr) { ...@@ -40,6 +40,16 @@ function changeStr(str, index, changeStr) {
return str.substr(0, index) + changeStr + str.substr(index + changeStr.length) return str.substr(0, index) + changeStr + str.substr(index + changeStr.length)
} }
//甲方详情子页面互跳
function changePath(that, pathName){
try {
that.$parent.showPartPage({pathName})
} catch {
that.$parent.$parent.showPartPage({pathName})
}
}
export { export {
encodeStr encodeStr,
changePath
} }
...@@ -89,28 +89,45 @@ export const constantRoutes = [ ...@@ -89,28 +89,45 @@ export const constantRoutes = [
] ]
}, },
{ {
path: '/party', path: '/enterprise',
component: Layout, component: Layout,
hidden: true, hidden: true,
name: 'Party', name: 'Enterprise',
redirect: 'noredirect', redirect: 'noredirect',
children: [ children: [
{ {
path: 'party-a', path: '/enterprise/:id',
component: () => import('@/views/detail/party-a/index'), component: () => import('@/views/detail/party-a/index'),
name: 'PartyA', name: 'PartyA',
meta: { title: '甲方详情' }, meta: { title: '甲方详情' },
}, }
]
},
{
path: '/company',
component: Layout,
hidden: true,
name: 'Company',
redirect: 'noredirect',
children: [
{ {
path: 'party-b', path: '/company/:id',
component: () => import('@/views/detail/party-b/index'), component: () => import('@/views/detail/party-b/index'),
name: 'PartyB', name: 'PartyB',
meta: { title: '已方详情' } meta: { title: '已方详情' }
}, }
]
},
{
path: '/structure',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [
{ {
path: 'structure', path: 'graph',
component: () => import('@/views/detail/structure/index'), component: () => import('@/views/detail/structure/index'),
name: 'Structure', name: 'Graph',
meta: { title: '企业链图' } meta: { title: '企业链图' }
} }
] ]
......
...@@ -4,36 +4,27 @@ ...@@ -4,36 +4,27 @@
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/enterpriseData' }">企业数据</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/enterpriseData' }">企业数据</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item>
<el-breadcrumb-item>中铁一建</el-breadcrumb-item> <el-breadcrumb-item>{{companyInfo.simpleName || companyInfo.companyName || '--'}}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
<div class="flex-box part-header"> <div class="flex-box part-header">
<img class="header-logo" src="@/assets/images/avatar.png"> <img class="header-logo" :src="companyInfo.logoUrl || require('@/assets/images/detail/company_logo.png')">
中交第二航务工程局有限公司 {{companyInfo.companyName || '--'}}
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { infoHeader } from '@/api/detail/party-a/index'
export default { export default {
name: 'Header', name: 'Header',
props: ['companyId'], props: ['companyId', 'companyInfo'],
data() { data() {
return { return {
enterprise: {}
} }
}, },
created() { created() {
this.getInfoHeader()
}, },
methods: { methods: {
async getInfoHeader(){
let { data } = await infoHeader({companyId:this.companyId})
if( data.code == 200){
this.enterprise = data.data
}
}
} }
} }
</script> </script>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
</el-input> </el-input>
<el-menu <el-menu
:default-active="routeIndex" :default-active="routeIndex"
:unique-opened="true"
class="detail-menu" class="detail-menu"
@open="handleOpen"> @open="handleOpen">
<template v-for="(item, index) in sideRoute"> <template v-for="(item, index) in sideRoute">
...@@ -119,7 +120,7 @@ export default { ...@@ -119,7 +120,7 @@ export default {
break break
}else if(sideArr[i].children){ }else if(sideArr[i].children){
for(let j=0; j< sideArr[i].children.length ; j++){ for(let j=0; j< sideArr[i].children.length ; j++){
if(sideArr[i].children.pathName == this.pathName){ if(sideArr[i].children[j].pathName == this.pathName){
idx = i+'-'+j idx = i+'-'+j
break break
} }
......
<template> <template>
<div class="app-container part-container"> <div class="app-container part-container">
<Header :company-id="companyId" v-if="companyId" /> <Header :company-id="companyId" :companyInfo="companyInfo" v-if="companyId" />
<div class="flex-box part-main"> <div class="flex-box part-main">
<div class="part-left"> <div class="part-left">
<side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" /> <side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" />
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="part-right"> <div class="part-right">
<div id="partBox" v-if="companyId"> <div id="partBox" v-if="companyId">
<!-- 企业概览 --> <!-- 企业概览 -->
<Overview v-if="currentPath.pathName=='overview'" :company-id="companyId" /> <Overview v-if="currentPath.pathName=='overview'" :company-id="companyId" :companyInfo="companyInfo" />
<Businfo v-if="currentPath.pathName=='businfo'" :company-id="companyId" /> <Businfo v-if="currentPath.pathName=='businfo'" :company-id="companyId" />
<Holderinfo v-if="currentPath.pathName=='holderinfo'" :company-id="companyId" /> <Holderinfo v-if="currentPath.pathName=='holderinfo'" :company-id="companyId" />
<Execuinfo v-if="currentPath.pathName=='execuinfo'" :company-id="companyId" /> <Execuinfo v-if="currentPath.pathName=='execuinfo'" :company-id="companyId" />
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
data() { data() {
return { return {
companyInfo: {}, companyInfo: {},
companyId: 10361319, //企业Id(测试默认3068) companyId: '', //企业Id(测试默认3068)
customerId: '', //企业Id(测试默认'a00d582a6041f32c16aac804e4924736') customerId: '', //企业Id(测试默认'a00d582a6041f32c16aac804e4924736')
currentPath: { currentPath: {
pathName: 'overview' //默认展示页 pathName: 'overview' //默认展示页
...@@ -151,9 +151,9 @@ export default { ...@@ -151,9 +151,9 @@ export default {
} }
}, },
created() { created() {
if (this.$route.query.companyId) { // 获取companyId if (this.$route.params.id) { // 获取companyId
let id = this.$route.query.companyId let companyId = this.$route.params.id
this.getCompanyId(id) this.getCompanyId(companyId)
} }
if (this.$route.query.path) { // 获取跳转对应板块 if (this.$route.query.path) { // 获取跳转对应板块
this.currentPath.pathName = this.$route.query.path this.currentPath.pathName = this.$route.query.path
...@@ -163,12 +163,6 @@ export default { ...@@ -163,12 +163,6 @@ export default {
} }
}, },
mounted() { mounted() {
const _this = this, erd = elementResizeDetectorMaker(), partBox = document.getElementById("partBox")
erd.listenTo(partBox, element => {
_this.$nextTick(() => {
_this.partBoxHeight = partBox.offsetHeight
})
})
}, },
methods: { methods: {
showPartPage(e){ showPartPage(e){
...@@ -176,9 +170,12 @@ export default { ...@@ -176,9 +170,12 @@ export default {
}, },
// 解密 // 解密
async getCompanyId(companyId){ async getCompanyId(companyId){
let { data } = await idRemark({companyId}) let { data } = await idRemark({mark:companyId})
if( data.code == 200){ if( data ){
this.companyId = data.data this.companyId = data
this.$nextTick(() => {
this.listenSider()
})
this.handleQuery() this.handleQuery()
} }
}, },
...@@ -187,6 +184,12 @@ export default { ...@@ -187,6 +184,12 @@ export default {
if(res.code==200){ if(res.code==200){
this.companyInfo = res.data this.companyInfo = res.data
} }
},
listenSider(){
const _this = this, erd = elementResizeDetectorMaker(), partBox = document.getElementById("partBox")
erd.listenTo(partBox, element => {
_this.partBoxHeight = partBox.offsetHeight
})
} }
} }
} }
...@@ -206,5 +209,6 @@ export default { ...@@ -206,5 +209,6 @@ export default {
.part-right{ .part-right{
min-width: 1088px; min-width: 1088px;
width: 100%; width: 100%;
background: #FFFFFF;
} }
</style> </style>
<template> <template>
<div class="app-container part-container"> <div class="app-container part-container">
<div class="view-content"><Infoheader /></div><!-- 企业信息 --> <div class="view-content"><Infoheader :companyId="companyId" :companyInfo="companyInfo" /></div><!-- 企业信息 -->
<div class="view-content"><Operations /></div><!-- 公司经营 --> <div class="view-content"><Operations /></div><!-- 公司经营 -->
<div class="view-content"><Bidding /></div><!--招标偏好、业务往来--> <div class="view-content"><Bidding /></div><!--招标偏好、业务往来-->
<div class="view-content"><Busclue /></div><!--商机线索--> <div class="view-content"><Busclue /></div><!--商机线索-->
...@@ -22,7 +22,7 @@ import Risk from './component/risk' ...@@ -22,7 +22,7 @@ import Risk from './component/risk'
import Tender from "./component/tender" import Tender from "./component/tender"
export default { export default {
name: 'Overview', name: 'Overview',
props: ['companyId'], props: ['companyId', 'companyInfo'],
components: { components: {
Infoheader, Infoheader,
Operations, Operations,
......
...@@ -19,9 +19,9 @@ export default { ...@@ -19,9 +19,9 @@ export default {
} }
}, },
created() { created() {
if (this.$route.query.companyId) { // 获取companyId if (this.$route.params.id) { // 获取companyId
this.loading = true this.loading = true
this.src = `https://pre-plug.jiansheku.com/enterprise/${this.$route.query.companyId}?secretId=${this.secretId}` this.src = `https://pre-plug.jiansheku.com/enterprise/${this.$route.params.id}?secretId=${this.secretId}`
} }
}, },
mounted() { mounted() {
......
...@@ -193,4 +193,9 @@ public class EnterpriseService { ...@@ -193,4 +193,9 @@ public class EnterpriseService {
public R remark(EnterpriseRemarkBody vo) throws Exception { public R remark(EnterpriseRemarkBody vo) throws Exception {
return R.ok(EncodeIdUtil.avDecode(EncodeIdUtil.binaryToUnicode(vo.mark))); return R.ok(EncodeIdUtil.avDecode(EncodeIdUtil.binaryToUnicode(vo.mark)));
} }
public R bondCreditRating(EnterpriseBondCreditRatingBody body) throws Exception {
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/bondCreditRating", BeanUtil.beanToMap(body, false, false));
return BeanUtil.toBean(map, R.class);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment