Commit e2e67737 authored by danfuman's avatar danfuman
parents 43bd836b a9172361
...@@ -88,10 +88,12 @@ public class BusinessFileController extends BaseController { ...@@ -88,10 +88,12 @@ public class BusinessFileController extends BaseController {
//校验是否上传同名文件 //校验是否上传同名文件
File newFile = new File(filePath); File newFile = new File(filePath);
// 获取当前目录下的文件和文件夹 if (newFile.exists()) {
File[] files = newFile.listFiles(); // 获取当前目录下的文件和文件夹
for (File allFile : files) { File[] files = newFile.listFiles();
if(filename.equals(allFile.getName())) return error("文件已存在"); for (File allFile : files) {
if (filename.equals(allFile.getName())) return error("文件已存在");
}
} }
// 上传并返回文件全路径 // 上传并返回文件全路径
......
...@@ -35,6 +35,6 @@ public class RegionalEnterprisesController { ...@@ -35,6 +35,6 @@ public class RegionalEnterprisesController {
if (PageQueryLimit.pageLimit(compose.getPage())){ if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限"); return AjaxResult.error("翻页已达到上限");
} }
return regionalEnterprisesService.enterprisePage(object); return regionalEnterprisesService.enterprisePage(compose);
} }
} }
...@@ -158,11 +158,11 @@ select { ...@@ -158,11 +158,11 @@ select {
} }
.el-popper[x-placement^=top] { .el-popper[x-placement^=top] {
margin-bottom: 12px; margin-bottom: 4px;
} }
.el-popper[x-placement^=bottom] { .el-popper[x-placement^=bottom] {
margin-top: 12px; margin-top: 4px;
} }
.el-select-dropdown .popper__arrow { .el-select-dropdown .popper__arrow {
...@@ -390,12 +390,13 @@ select { ...@@ -390,12 +390,13 @@ select {
height: 0px; height: 0px;
opacity: 1; opacity: 1;
border-bottom: 1px solid #EFEFEF; border-bottom: 1px solid #EFEFEF;
margin: 16px 0px; margin-top: 20px;
margin-bottom: 24px;
} }
.content_item .search-new { .content_item .search-new {
width: 100%; width: 100%;
padding-bottom: 16px; padding-bottom: 24px;
} }
.content_item .search-new span:last-child { .content_item .search-new span:last-child {
...@@ -433,6 +434,7 @@ select { ...@@ -433,6 +434,7 @@ select {
border-color: #0081FF; border-color: #0081FF;
} }
.toolbar-right-download { .toolbar-right-download {
padding: 6px 18px; padding: 6px 18px;
margin: 0px; margin: 0px;
...@@ -1181,6 +1183,6 @@ select { ...@@ -1181,6 +1183,6 @@ select {
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
line-height: 18px; line-height: 18px;
margin-bottom: 24px; padding-bottom: 48px;
text-align: center; text-align: center;
} }
\ No newline at end of file
...@@ -59,7 +59,7 @@ import BasicIinformation from "./component/basicIinformation" ...@@ -59,7 +59,7 @@ import BasicIinformation from "./component/basicIinformation"
import ElCardinput from "./component/elCardinput" import ElCardinput from "./component/elCardinput"
export default { export default {
name: 'Business', name: 'Business',
props: ['customerIds', 'companyInfo'], props: ['customerIds', 'companyInfo', 'customerInfo'],
components: { components: {
Info, Info,
BasicIinformation, BasicIinformation,
...@@ -99,25 +99,40 @@ export default { ...@@ -99,25 +99,40 @@ export default {
} }
}, },
created() { created() {
this.handleQuery()
this.infos = this.customerInfo
},
mounted(){
this.customerInfos() this.customerInfos()
//企业性质
getDictType('company_nature_type').then(result=>{
this.companyType.companyNaturelist = result.code == 200 ? result.data:[]
})
//企业级别
getDictType('company_level_type').then(result=>{
this.companyType.companyLevellist = result.code == 200 ? result.data:[]
})
//资信等级
getDictType('credit_level_type').then(result=>{
this.companyType.creditLevellist = result.code == 200 ? result.data:[]
})
}, },
methods: { methods: {
async handleQuery() {
let [type1,type2,type3] = await Promise.all([
getDictType('company_nature_type'),
getDictType('company_level_type'),
getDictType('credit_level_type')
])
if(type1.code==200){
type1.data.forEach(item => {
this.companyType.companyNaturelist.push({dictLabel:item.dictLabel,dictValue:item.dictLabel})
})
}
if(type2.code==200){
type2.data.forEach(item => {
this.companyType.companyLevellist.push({dictLabel:item.dictLabel,dictValue:item.dictLabel})
})
}
if(type3.code==200){
type3.data.forEach(item => {
this.companyType.creditLevellist.push({dictLabel:item.dictLabel,dictValue:item.dictLabel})
})
}
this.isInfo = true
},
customerInfos(){ customerInfos(){
customerInfo(this.customerIds).then(res=>{ customerInfo(this.customerIds).then(res=>{
this.infos = res.data this.infos = res.data
this.isInfo = true
}) })
}, },
focusNowedits(e){ focusNowedits(e){
......
...@@ -33,7 +33,10 @@ ...@@ -33,7 +33,10 @@
</span> </span>
</template> </template>
<template slot="investmentAmount" slot-scope="scope"> <template slot="investmentAmount" slot-scope="scope">
{{ numbers(scope.row.investmentAmount) }} {{ scope.row.investmentAmount ? numbers(scope.row.investmentAmount) : '--' }}
</template>
<template slot="status" slot-scope="scope">
{{ scope.row.status || scope.row.status == 0 ? handleStatus(scope.row.status) : '--' }}
</template> </template>
</tables> </tables>
...@@ -47,79 +50,72 @@ ...@@ -47,79 +50,72 @@
</div> </div>
</template> </template>
<!-- 弹窗关联项目 --> <!-- 弹窗关联项目 -->
<el-drawer <el-dialog
title="添加合作情况" class="cooperate_addhzqk"
size="50%"
:visible.sync="drawer" :visible.sync="drawer"
:direction="direction" :before-close="handleClose"
:with-header="false" width="604px">
:before-close="handleClose"> <div class="poptitle">
<div class="cooperate_addhzqk"> <img src="@/assets/images/economies/icon.png">
<div class="addhzqk_top"> <span>{{ companyInfo.companyName }}</span>
<div class="addhzqk_top_t"> </div>
<div class="top_t_h1"> <div class="addhzqk_from">
<img src="@/assets/images/economies/icon.png" />{{ companyInfo.companyName }} <el-form :model="addParam" :rules="rules" ref="addParam" size="small" label-width="70px">
<el-form-item label="项目名称:" prop="projectName" label-width="120px">
<el-input v-model="addParam.projectName" placeholder="请输入项目名称" @input="getCompany1"></el-input>
<div class="resultlist" v-if="showlist1">
<div v-for="(item,index) in companData1" @click="selCompany1(item)"><span v-html="item"></span></div>
</div> </div>
<div class="top_t_close"><i class="el-icon-close" @click="handleClose"></i></div> </el-form-item>
</div> <div class="erow">
<div class="addhzqk_top_d"> <div class="elcol">
<div class="top_d_item"> <el-form-item label="项目阶段:" prop="projectStage">
法定代表人:<span>{{ companyInfo.corporatePerson }}</span> <el-select v-model="addParam.projectStage" style="width: 175px" class="form-content-width" placeholder="请选择项目阶段">
<el-option v-for="(item, index) in projectStage" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select>
</el-form-item>
</div> </div>
<div class="top_d_item"> <div class="elcol">
注册资本:<span>{{ companyInfo.regCapital }}</span> <el-form-item label="项目类型:" prop="projectType">
<el-select v-model="addParam.projectType" style="width: 175px" class="form-content-width" placeholder="请选择项目类型">
<el-option v-for="(item, index) in projectType" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select>
</el-form-item>
</div> </div>
<div class="top_d_item"> </div>
注册地址:<span>{{ companyInfo.addressDetail }}</span>
<div class="erow">
<div class="elcol">
<el-form-item label="项目类别:" prop="projectCategory">
<el-select v-model="addParam.projectCategory" style="width: 175px" class="form-content-width" placeholder="请选择项目类别">
<el-option v-for="(item, index) in projectCategory" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select>
</el-form-item>
</div>
<div class="elcol">
<el-form-item label="可见范围:" prop="isPrivate">
<el-select v-model="addParam.isPrivate" style="width: 175px" class="form-content-width" placeholder="请选择">
<el-option v-for="(item, index) in isPrivate" :key="index" :label="item.name" :value="item.value" />
</el-select>
</el-form-item>
</div> </div>
</div> </div>
</div> <el-row>
<div class="addhzqk_from"> <el-col :span="11">
<el-form :model="addParam" :rules="rules" ref="addParam" size="small" label-width="126px"> <el-form-item label="投资估算(万):" prop="investmentAmount" label-width="120px">
<el-form-item label="项目名称:" prop="projectName"> <el-input v-model="addParam.investmentAmount" placeholder="请输入投资估算" style="width: 175px" @input="number"></el-input>
<el-input v-model="addParam.projectName" placeholder="请输入项目名称" @input="getCompany1"></el-input> </el-form-item>
<div class="resultlist" v-if="showlist1"> </el-col>
<div v-for="(item,index) in companData1" @click="selCompany1(item)"><span v-html="item"></span></div> </el-row>
</div>
</el-form-item> <el-form-item style="text-align: right;">
<el-form-item label="业主单位:" prop="ownerCompany"> <el-button @click="handleClose">关闭</el-button>
<el-input v-model="addParam.ownerCompany" placeholder="请输入业主单位" @input="getCompany"></el-input> <el-button type="primary" @click="submitForm">添加</el-button>
<div class="resultlist" v-if="showlist"> </el-form-item>
<div v-for="(item,index) in companData" @click="selCompany(item)"><span v-html="item.name"></span></div>
</div>
</el-form-item>
<el-form-item label="项目阶段:" prop="projectStage">
<el-select v-model="addParam.projectStage" style="width: 100%" class="form-content-width" placeholder="请选择项目阶段">
<el-option v-for="(item, index) in projectStage" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select>
</el-form-item>
<el-form-item label="项目类型:" prop="projectType">
<el-select v-model="addParam.projectType" style="width: 100%" class="form-content-width" placeholder="请选择项目类型">
<el-option v-for="(item, index) in projectType" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select>
</el-form-item>
<el-form-item label="项目类别:" prop="projectCategory">
<el-select v-model="addParam.projectCategory" style="width: 100%" class="form-content-width" placeholder="请选择项目类别">
<el-option v-for="(item, index) in projectCategory" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-select>
</el-form-item>
<el-form-item label="投资估算(万):" prop="investmentAmount">
<el-input v-model="addParam.investmentAmount" placeholder="请输入投资估算" @input="number"></el-input>
</el-form-item>
<el-form-item label="可见范围:" prop="isPrivate">
<el-select v-model="addParam.isPrivate" style="width: 100%" class="form-content-width" placeholder="请选择">
<el-option v-for="(item, index) in isPrivate" :key="index" :label="item.name" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item style="text-align: right;">
<el-button @click="handleClose">关闭</el-button>
<el-button type="primary" @click="submitForm">添加</el-button>
</el-form-item>
</el-form> </el-form>
</div>
</div> </div>
</el-drawer> </el-dialog>
</div> </div>
</template> </template>
...@@ -146,7 +142,7 @@ export default { ...@@ -146,7 +142,7 @@ export default {
components: { components: {
Detail Detail
}, },
props: ['customerIds','companyInfo','cooDetail'], props: ['customerIds','companyInfo','cooDetail','customerInfo'],
data() { data() {
return { return {
ifEmpty:false, ifEmpty:false,
...@@ -159,7 +155,7 @@ export default { ...@@ -159,7 +155,7 @@ export default {
{label: '项目名称', prop: 'projectName', slot: true}, {label: '项目名称', prop: 'projectName', slot: true},
{label: '项目阶段', prop: 'projectStage', width: '120'}, {label: '项目阶段', prop: 'projectStage', width: '120'},
{label: '投资金额(万元)', prop: 'investmentAmount', width: '140', slot: true}, {label: '投资金额(万元)', prop: 'investmentAmount', width: '140', slot: true},
{label: '项目状态', prop: 'status', width: '90'} {label: '项目状态', prop: 'status', width: '90', slot: true}
], ],
formData: [ formData: [
{ type: 1, fieldName: 'projectStage', value: '', placeholder: '项目阶段', options: []}, { type: 1, fieldName: 'projectStage', value: '', placeholder: '项目阶段', options: []},
...@@ -174,6 +170,7 @@ export default { ...@@ -174,6 +170,7 @@ export default {
tableDataTotal:0, tableDataTotal:0,
//弹窗-关联项目 //弹窗-关联项目
drawer: false, drawer: false,
drawer1: false,
direction: 'rtl', direction: 'rtl',
//业主单位 //业主单位
showlist:false, showlist:false,
...@@ -216,7 +213,7 @@ export default { ...@@ -216,7 +213,7 @@ export default {
} }
],//可见访问 ],//可见访问
//客户详情 //客户详情
info: {}, info: this.customerInfo,
// //
detailId: null, detailId: null,
isDetailId: false, isDetailId: false,
...@@ -229,7 +226,6 @@ export default { ...@@ -229,7 +226,6 @@ export default {
}, },
created() { created() {
this.list() this.list()
this.customerInfos()
//项目阶段 //项目阶段
this.handleOptions('project_stage_type',0) this.handleOptions('project_stage_type',0)
//项目状态 //项目状态
...@@ -269,12 +265,6 @@ export default { ...@@ -269,12 +265,6 @@ export default {
} }
}) })
}, },
// 客户详情
customerInfos(){
customerInfo(this.queryParams.customerId).then(res=>{
this.info = res.data
})
},
//弹窗-添加项目 //弹窗-添加项目
handleClose(formName) { handleClose(formName) {
...@@ -355,6 +345,13 @@ export default { ...@@ -355,6 +345,13 @@ export default {
} }
}) })
}, },
//处理项目状态
handleStatus(val){
let da = this.formData[1].options.find(option => option.value == val)
if(da){
return da.name
}
},
//输入数字 //输入数字
number(value){ number(value){
this.addParam.investmentAmount = value.replace(/^\D*(\d*(?:\.\d{0,6})?).*$/g, '$1')//输入2位小数 this.addParam.investmentAmount = value.replace(/^\D*(\d*(?:\.\d{0,6})?).*$/g, '$1')//输入2位小数
...@@ -472,6 +469,31 @@ export default { ...@@ -472,6 +469,31 @@ export default {
} }
// 弹窗 // 弹窗
.cooperate_addhzqk{ .cooperate_addhzqk{
.poptitle {
line-height: 48px;
border-bottom: 1px solid #E1E1E1;
height: 48px;
position: absolute;
top: 0;
left: 0;
width: 100%;
img {
width: 17px;
margin: 16px;
float: left;
}
span {
font-weight: bold;
font-size: 16px;
color: #232323;
font-family: Microsoft YaHei-Bold, Microsoft YaHei;
width: 385px;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.addhzqk_top{ .addhzqk_top{
padding: 14px 16px; padding: 14px 16px;
border-bottom: 1px solid #E1E1E1; border-bottom: 1px solid #E1E1E1;
...@@ -528,7 +550,7 @@ export default { ...@@ -528,7 +550,7 @@ export default {
} }
} }
.addhzqk_from{ .addhzqk_from{
padding: 26px 16px; //padding: 26px 16px;
::v-deep .el-form-item__label{ ::v-deep .el-form-item__label{
padding: 0; padding: 0;
font-weight: 400; font-weight: 400;
...@@ -538,8 +560,58 @@ export default { ...@@ -538,8 +560,58 @@ export default {
content: "\e78f"; content: "\e78f";
color: rgba(35,35,35,0.4); color: rgba(35,35,35,0.4);
} }
::v-deep .el-form-item__label{
padding: 0;
}
::v-deep .el-form-item{
margin-right: 0 !important;
}
::v-deep .el-input{
.el-input__inner{
height: 32px;
line-height: 32px;
}
}
.erow{
display:flex;
.elcol{
&:nth-child(1){
margin-left: 50px
}
&:nth-child(2){
margin-left: 24px
}
}
}
}
::v-deep .el-dialog__body{
padding-top: 40px;
padding-bottom: 1px;
}
::v-deep .el-dialog__headerbtn{
z-index: 9;
} }
} }
::v-deep .el-dialog{
display: flex;
display: -ms-flex; /* 兼容IE */
flex-direction: column;
-ms-flex-direction: column; /* 兼容IE */
margin:0 !important;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
max-height:calc(100% - 30px);
max-width:calc(100% - 30px);
}
::v-deep .el-dialog .el-dialog__body{
max-height: 100%;
flex: 1;
-ms-flex: 1 1 auto; /* 兼容IE */
overflow-y: auto;
overflow-x: hidden;
}
} }
::v-deep .cooperate-detail{ ::v-deep .cooperate-detail{
......
...@@ -320,5 +320,7 @@ export default { ...@@ -320,5 +320,7 @@ export default {
::v-deep .el-table__fixed::before, ::v-deep .el-table__fixed-right::before{ ::v-deep .el-table__fixed::before, ::v-deep .el-table__fixed-right::before{
background-color:unset; background-color:unset;
} }
::v-deep .el-dialog__headerbtn{
z-index: 9;
}
</style> </style>
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
<OpenacourtsessionNotice v-if="currentPath.pathName=='openacourtsessionNotice'" :company-id="companyId" /> <OpenacourtsessionNotice v-if="currentPath.pathName=='openacourtsessionNotice'" :company-id="companyId" />
<template v-if="customerId"> <template v-if="customerId">
<!-- 商务信息 --> <!-- 商务信息 -->
<Business v-if="currentPath.pathName=='business'" :customer-ids="customerId" :companyInfo="companyInfo" /> <Business v-if="currentPath.pathName=='business'" :customer-ids="customerId" :companyInfo="companyInfo" :customerInfo="customerInfo" />
<!-- 招标偏好 --> <!-- 招标偏好 -->
<Preference v-if="currentPath.pathName=='preference'" :customer-ids="customerId" /> <Preference v-if="currentPath.pathName=='preference'" :customer-ids="customerId" :customerInfo="customerInfo" />
<!-- 合作情况 --> <!-- 合作情况 -->
<Cooperate v-if="currentPath.pathName=='cooperate'" :customer-ids="customerId" :companyInfo="companyInfo" :cooDetail="cooDetail" @detail="cooperateDetail" /> <Cooperate v-if="currentPath.pathName=='cooperate'" :customer-ids="customerId" :companyInfo="companyInfo" :cooDetail="cooDetail" :customerInfo="customerInfo" @detail="cooperateDetail" />
<!-- 决策链条 --> <!-- 决策链条 -->
<DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" /> <DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" />
<!-- 跟进记录 --> <!-- 跟进记录 -->
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
<script> <script>
import { idRemark } from '@/api/common' import { idRemark } from '@/api/common'
import { infoHeader } from '@/api/detail/party-a/index' import { infoHeader } from '@/api/detail/party-a/index'
import { customerInfo } from '@/api/detail/party-a/cooperate'
import elementResizeDetectorMaker from "element-resize-detector" import elementResizeDetectorMaker from "element-resize-detector"
import Header from "./component/Header" import Header from "./component/Header"
import SideBar from "./component/Sidebar" import SideBar from "./component/Sidebar"
...@@ -146,6 +147,7 @@ export default { ...@@ -146,6 +147,7 @@ export default {
data() { data() {
return { return {
companyInfo: {}, companyInfo: {},
customerInfo: {},
companyId: '', //企业Id(测试默认3068) companyId: '', //企业Id(测试默认3068)
customerId: '', //企业Id(测试默认'a00d582a6041f32c16aac804e4924736') customerId: '', //企业Id(测试默认'a00d582a6041f32c16aac804e4924736')
currentPath: { currentPath: {
...@@ -176,9 +178,6 @@ export default { ...@@ -176,9 +178,6 @@ export default {
if (this.$route.query.path) { // 获取跳转对应板块 if (this.$route.query.path) { // 获取跳转对应板块
this.currentPath.pathName = this.$route.query.path this.currentPath.pathName = this.$route.query.path
} }
if (this.$route.query.customerId) { // 判断是否显示
this.customerId = this.$route.query.customerId
}
}, },
mounted() { mounted() {
}, },
...@@ -197,6 +196,7 @@ export default { ...@@ -197,6 +196,7 @@ export default {
this.listenSider() this.listenSider()
}) })
this.handleQuery() this.handleQuery()
this.association(this.$route.query.customerId)
} }
}, },
async handleQuery() { async handleQuery() {
...@@ -216,7 +216,23 @@ export default { ...@@ -216,7 +216,23 @@ export default {
}, },
closeDetail(){ closeDetail(){
this.cooDetail = false this.cooDetail = false
},
// 判断客户是否关联显示修改
association(id){
customerInfo(id).then(res=>{
if(res.code == 200){
if(res.data.companyId == this.companyId && res.data.userId == this.$store.state.user.userId){
this.customerInfo = res.data
this.customerId = res.data.customerId
}else{
this.currentPath.pathName = 'overview'
}
}
}).catch(err=>{
this.currentPath.pathName = 'overview'
})
} }
} }
} }
</script> </script>
......
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
components: { components: {
}, },
props: ['customerIds'], props: ['customerIds','customerInfo'],
data() { data() {
return { return {
autosize: { autosize: {
...@@ -181,6 +181,9 @@ export default { ...@@ -181,6 +181,9 @@ export default {
} }
}, },
created() { created() {
this.queryParams = this.customerInfo
},
mounted(){
this.customerInfos() this.customerInfos()
}, },
computed: { computed: {
......
...@@ -689,7 +689,7 @@ export default { ...@@ -689,7 +689,7 @@ export default {
if(val.length>0){ if(val.length>0){
this.checkuipExecutive=false; this.checkuipExecutive=false;
}else if(val.length==0){ }else if(val.length==0){
this.checkuipExecutive==true; this.checkuipExecutive=true;
} }
this.search(); this.search();
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
<div class="content_item"> <div class="content_item">
<div class="content_right item_ckquery_list"> <div class="content_right item_ckquery_list">
<el-input class="ename_input" placeholder="请输入关键字,如企业名称、统一社会信用代码等" v-model="ename" @input="projectNamebtn('ename',ename,'关键字:')"> <el-input class="ename_input" placeholder="请输入关键字,如企业名称、统一社会信用代码等" v-model="ename" @input="projectNamebtn('ename',ename,'关键字:')">
<div slot="append" class="btn-search" @click="submitbtn">搜索</div> <div slot="append" class="btn-search" @click="search">搜索</div>
</el-input> </el-input>
<template v-if="ename"> <!-- <template v-if="ename">
<span v-for=" (item,k) in enameQueryTypeList" :key="k" style="margin-right: 24px;"> <span v-for=" (item,k) in enameQueryTypeList" :key="k" style="margin-right: 24px;">
<el-radio v-model="enameQueryType" :label="item.key">{{item.value}}</el-radio> <el-radio v-model="enameQueryType" :label="item.key">{{item.value}}</el-radio>
</span> </span>
</template> </template> -->
</div> </div>
</div> </div>
<div class="content_item"> <div class="content_item">
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
<div class="select-popper"> <div class="select-popper">
<el-dropdown trigger="click" ref="establishPopper" placement='bottom-start'> <el-dropdown trigger="click" ref="establishPopper" placement='bottom-start'>
<div class=" " <div class="el-dropdown-link"
:class="(establishText!='不限'&&establishText!='自定义')||(establishText=='自定义'&&startTimetext.length>0)?'select-active':''"> :class="(establishText!='不限'&&establishText!='自定义')||(establishText=='自定义'&&startTimetext.length>0)?'select-active':''">
成立年限{{(establishText!='不限'&&establishText!='自定义')||(establishText=='自定义'&&startTimetext.length>0)?('1项'):''}} 成立年限{{(establishText!='不限'&&establishText!='自定义')||(establishText=='自定义'&&startTimetext.length>0)?('1项'):''}}
<i class="el-icon-caret-bottom"></i> <i class="el-icon-caret-bottom"></i>
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
<div class="content_item content_item_nopadding "> <div class="content_item content_item_nopadding ">
<div class="search-new" > <div class="search-new" >
<span @click="submitbtn()">查询</span> <span @click="search()">查询</span>
<span @click="reset()">重置</span> <span @click="reset()">重置</span>
</div> </div>
...@@ -441,7 +441,7 @@ ...@@ -441,7 +441,7 @@
</el-popover> </el-popover>
<div class="toolbar-right-search"> <div class="toolbar-right-search">
<el-input placeholder="请输入企业名称关键词" class="toolbar-right_input" v-model="resultEname"> <el-input placeholder="请输入企业名称关键词" class="toolbar-right_input" v-model="resultEname">
<div slot="append" class="result-search" @click="submitbtn()">过滤企业</div> <div slot="append" class="result-search" @click="search()">过滤企业</div>
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -1418,7 +1418,7 @@ ...@@ -1418,7 +1418,7 @@
}); });
this.getRegionWebList(); this.getRegionWebList();
this.getaddressList(); this.getaddressList();
this.submitbtn(); this.search();
}, },
mounted() { mounted() {
...@@ -2608,6 +2608,7 @@ ...@@ -2608,6 +2608,7 @@
this.getaddressList(); this.getaddressList();
this.getRegionWebList(); this.getRegionWebList();
this.search();
}, },
reloadPage() { reloadPage() {
...@@ -2642,8 +2643,7 @@ ...@@ -2642,8 +2643,7 @@
} }
}, },
// submitbtn search(page, limit,exportFlag){
submitbtn(page, limit,exportFlag){
// return false; // return false;
if (!page) { if (!page) {
this.page = 1; this.page = 1;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<div class="con i" style="width: 100%;"> <div class="con i" style="width: 100%;">
<span style="float: left;margin-top: 2px">项目标签 :</span> <span style="float: left;margin-top: 2px">项目标签 :</span>
<div class="flex tipinput"> <div class="flex tipinput">
<div class="tips" v-for="(item,index) in tipslit">{{item}}<img v-if="isDisabled == false" @click="deltip(item)" src="@/assets/images/project/del.png"></div> <div class="tips" v-for="(item,index) in tipslit">{{item.label}}<img v-if="isDisabled == false" @click="deltip(item)" src="@/assets/images/project/del.png"></div>
<div style="position: relative"> <div style="position: relative">
<el-input placeholder="待添加" :disabled="isDisabled" v-model="tipsvalue" @input="getValue" :style="spanWidth"></el-input><span class="spanText">{{ tipsvalue }}</span> <el-input placeholder="待添加" :disabled="isDisabled" v-model="tipsvalue" @input="getValue" :style="spanWidth"></el-input><span class="spanText">{{ tipsvalue }}</span>
</div> </div>
...@@ -323,10 +323,10 @@ ...@@ -323,10 +323,10 @@
}) })
// this.tipslit.push(this.tipsvalue) // this.tipslit.push(this.tipsvalue)
}, },
deltip(value){ deltip(item){
let param={ let param={
businessId:this.id, businessId:this.id,
label:value id:item.id
} }
removeLabel(JSON.stringify(param)).then(res=>{ removeLabel(JSON.stringify(param)).then(res=>{
if (res.code == 200){ if (res.code == 200){
...@@ -341,7 +341,11 @@ ...@@ -341,7 +341,11 @@
getXMSL(){ getXMSL(){
getXMSL(this.id).then(result=> { getXMSL(this.id).then(result=> {
this.xmjd = result.data.projectStage this.xmjd = result.data.projectStage
this.tipslit = result.data.labelList if(result.data.labelList == null || result.data.labelList == "" || result.data.labelList == undefined){
this.tipslit = []
}else {
this.tipslit = JSON.parse(result.data.labelList)
}
this.xmsldata = result.data this.xmsldata = result.data
this.isDisabled = result.data.isFounder == 1 ? false:true this.isDisabled = result.data.isFounder == 1 ? false:true
const spanStyle = document.querySelector(".rig1"); const spanStyle = document.querySelector(".rig1");
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
:data="tableData" :data="tableData"
element-loading-text="Loading" element-loading-text="Loading"
border border
fit
highlight-current-row highlight-current-row
> >
<el-table-column label="序号" width="80"> <el-table-column label="序号" width="80">
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<el-table-column label="项目名称" > <el-table-column label="项目名称" >
<template slot-scope="scope"> <template slot-scope="scope">
<router-link v-if="scope.row.companyId" :to="'/company/' + encodeStr(scope.row.companyId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="scope.row.name"></router-link> <router-link v-if="scope.row.id" :to="'/company/' + encodeStr(scope.row.id) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="scope.row.name"></router-link>
</template> </template>
</el-table-column> </el-table-column>
...@@ -376,6 +376,11 @@ ...@@ -376,6 +376,11 @@
.main5 { .main5 {
.table-item { .table-item {
margin-top: 22px; margin-top: 22px;
.blue {
color: #0081FF !important;
cursor: pointer;
}
} }
.pagination { .pagination {
padding: 14px; padding: 14px;
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</p> </p>
<p> <p>
<label class="label">项目联系方式</label> <label class="label">项目联系方式</label>
<span>{{textList.money||'--'}}</span> <span>{{textList.personTel||'--'}}</span>
<label class="label">行业分类</label> <label class="label">行业分类</label>
<span>{{textList.projectIndustry||'--'}}</span> <span>{{textList.projectIndustry||'--'}}</span>
</p> </p>
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
<p class="list-content-text"> <p class="list-content-text">
<span>成交金额:</span> <span>成交金额:</span>
<span v-if="textList.transactionPrice">{{textList.transactionPrice}}万元</span> <span v-if="textList.transactionPrice">{{textList.transactionPrice}}万元</span>
<span>--</span> <span v-else>--</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>总面积:</span> <span>总面积:</span>
<span v-if="textList.transactionPrice">{{textList.transactionPrice}}平方米</span> <span v-if="textList.acreage">{{textList.acreage}}平方米</span>
<span>--</span> <span v-else>--</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text">
<span>合同签订:</span> <span>合同签订:</span>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</p> </p>
<p> <p>
<label class="label">面积(平方米)</label> <label class="label">面积(平方米)</label>
<span>{{textList.buildArea||"--"}}</span> <span>{{textList.acreage||"--"}}</span>
<label class="label">土地来源</label> <label class="label">土地来源</label>
<span>{{textList.landSource||"--"}}</span> <span>{{textList.landSource||"--"}}</span>
</p> </p>
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<p> <p>
<label class="label">地块名称</label> <label class="label">地块名称</label>
<span>{{textList.landName||"--"}}</span> <span>{{textList.landName||"--"}}</span>
<label class="label">建筑面积</label> <label class="label">建筑面积(平方米)</label>
<span>{{textList.buildArea||"--"}}</span> <span>{{textList.buildArea||"--"}}</span>
</p> </p>
<p> <p>
......
...@@ -37,19 +37,24 @@ ...@@ -37,19 +37,24 @@
<div class="common-title-list"> <div class="common-title-list">
<p> <p>
<img src="@/assets/images/bxpro/pdf.png" alt=""> <img src="@/assets/images/bxpro/pdf.png" alt="">
<span>竞争对手</span> <span v-if="textList.marketAnalysis" @click="download(textList.marketAnalysis,'项目简析')">竞争对手</span>
<span v-else class="spanset">竞争对手</span>
</p> </p>
<p> <p>
<img src="@/assets/images/bxpro/pdf.png" alt=""> <img src="@/assets/images/bxpro/pdf.png" alt="">
<span>项目简析</span> <span v-if="textList.projectCharacteristics" @click="download(textList.projectCharacteristics,'项目简析')">项目简析</span>
<span v-else class="spanset">项目简析</span>
</p> </p>
<p> <p>
<img src="@/assets/images/bxpro/pdf.png" alt=""> <img src="@/assets/images/bxpro/pdf.png" alt="">
<span>成本分析</span> <span v-if="textList.costAnalysis" @click="download(textList.costAnalysis,'成本分析')">成本分析</span>
<span v-else class="spanset">成本分析</span>
</p> </p>
<p> <p>
<img src="@/assets/images/bxpro/pdf.png" alt=""> <img src="@/assets/images/bxpro/pdf.png" alt="">
<span>招标文件</span> <span v-if="textList.fileUrl&&textList.fileUrl.length>0" @click="download(textList.fileUrl[0],'招标文件')">招标文件</span>
<span v-else class="spanset">招标文件</span>
</p> </p>
</div> </div>
...@@ -215,7 +220,6 @@ ...@@ -215,7 +220,6 @@
} }
}, },
created() { created() {
console.log(this.$route.params)
this.id = this.$route.params.id; this.id = this.$route.params.id;
this.bidNoticeProDetail(); this.bidNoticeProDetail();
}, },
...@@ -224,12 +228,36 @@ ...@@ -224,12 +228,36 @@
api.bidNoticeProDetail({ api.bidNoticeProDetail({
id: this.id id: this.id
}).then(res => { }).then(res => {
// console.log(res);
this.textList = res.data; this.textList = res.data;
if(this.textList.eligibleEnterprisesUrl){
let tempUrl = this.textList.eligibleEnterprisesUrl.replace('http://', 'https://')
this.textList.eligibleEnterprisesUrl = tempUrl
}
if(this.textList.fileUrl&&this.textList.fileUrl.length>0){
this.textList.fileUrl=this.textList.fileUrl.substr(2,this.textList.fileUrl.length-4);
this.textList.fileUrl=this.textList.fileUrl.split(',');
this.textList.fileUrl = this.textList.fileUrl.map(item=>{
let it = item.replace('http://', 'https://')
return it
})
}
}).catch(error => { }).catch(error => {
}); });
}, },
download(url,name){
console.log(url);
const a = document.createElement('a');
a.style.display = 'none';
a.download = name;
a.href = url;
a.target="_blank";
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
} }
} }
...@@ -466,6 +494,10 @@ ...@@ -466,6 +494,10 @@
width: 14px; width: 14px;
margin-right: 4px; margin-right: 4px;
} }
.spanset{
color: #23232366;
cursor: text;
}
} }
p:hover{ p:hover{
color: #0081FF; color: #0081FF;
......
...@@ -211,7 +211,8 @@ ...@@ -211,7 +211,8 @@
<div class="list-content"> <div class="list-content">
<p class="list-content-text" v-if="item.companyName"> <p class="list-content-text" v-if="item.companyName">
<span>项目业主:</span> <span>项目业主:</span>
<router-link :to="`/company/${encodeStr(item.companyId)}/`" tag="a" class="list-titel-a blue" v-html="item.companyName" ></router-link> <span><router-link :to="`/company/${encodeStr(item.companyId)}/`" tag="a" class="list-titel-a blue" v-html="item.companyName" ></router-link></span>
</p> </p>
<p class="list-content-text"v-if="item.money"> <p class="list-content-text"v-if="item.money">
......
...@@ -236,45 +236,44 @@ ...@@ -236,45 +236,44 @@
<router-link :to="'/radar/Land/details/'+ item.id" tag="a" class="list-titel-a" v-html="item.projectName"></router-link> <router-link :to="'/radar/Land/details/'+ item.id" tag="a" class="list-titel-a" v-html="item.projectName"></router-link>
</p> </p>
<div class="list-content"> <div class="list-content" v-if="item.companyName||item.transactionPrice||item.acreage||item.acreage">
<p class="list-content-text"> <p class="list-content-text" v-if="item.companyName">
<span>受让人:</span> <span>受让人:</span>
<span v-if="item.companyName"> <span >
<router-link :to="'/company/' + encodeStr(item.companyId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.companyName"></router-link> <router-link :to="'/company/' + encodeStr(item.companyId) + '/?index=true'" tag="a" class="list-titel-a blue" v-html="item.companyName"></router-link>
</span> </span>
<span v-else>--</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.transactionPrice">
<span>成交金额:</span> <span>成交金额:</span>
<span>{{item.transactionPrice||'--'}}万元</span> <span>{{item.transactionPrice||'--'}}万元</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.acreage">
<span>总面积:</span> <span>总面积:</span>
<span>{{item.acreage||'--'}}</span> <span>{{item.acreage||'--'}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.contractSignTime">
<span>合同签订:</span> <span>合同签订:</span>
<span>{{item.contractSignTime||'--'}}</span> <span>{{item.contractSignTime||'--'}}</span>
</p> </p>
</div> </div>
<div class="list-content"> <div class="list-content" v-if="item.landUse||item.industry||item.supplyLandWay">
<p class="list-content-text"> <p class="list-content-text" v-if="item.landUse">
<span>土地用途:</span> <span>土地用途:</span>
<span >{{item.landUse||'--'}}</span> <span >{{item.landUse||'--'}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.industry">
<span>行业分类:</span> <span>行业分类:</span>
<span >{{item.industry||'--'}}</span> <span >{{item.industry||'--'}}</span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.supplyLandWay">
<span>供应方式:</span> <span>供应方式:</span>
<span >{{item.supplyLandWay||'--'}}</span> <span >{{item.supplyLandWay||'--'}}</span>
</p> </p>
</div> </div>
<div class="list-content list-addree"> <div class="list-content list-addree" v-if="item.province||item.city||item.area||item.landAddr">
<img src="@/assets/images/addree.png" alt=""> <img src="@/assets/images/addree.png" alt="">
<p class="list-content-text"> <p class="list-content-text" v-if="item.province||item.city||item.area">
<span>行政区划:</span> <span>行政区划:</span>
<span > <span >
{{item.province}} {{item.province}}
...@@ -286,10 +285,9 @@ ...@@ -286,10 +285,9 @@
</template> </template>
</span> </span>
</p> </p>
<p class="list-content-text"> <p class="list-content-text" v-if="item.landAddr">
<span>土地坐落:</span> <span>土地坐落:</span>
<span v-if="item.landAddr" v-html="item.landAddr"></span> <span v-html="item.landAddr"></span>
<span v-else>--</span>
</p> </p>
</div> </div>
</li> </li>
......
...@@ -373,11 +373,44 @@ ...@@ -373,11 +373,44 @@
</el-table-column> </el-table-column>
<el-table-column prop="zj" label="项目金额" width="161" > <el-table-column prop="zj" label="项目金额" width="161" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.projectAmount||'--'}} <ul class="bxpro_list_money">
<template v-if="scope.row.projectInvestmentAmount ||
scope.row.projectContractAmount ||
scope.row.projectSafeAmount ||
scope.row.projectSurveyAmount ||
scope.row.projectDesignAmount">
<li v-if="scope.row.projectInvestmentAmount">
<span >
<span >投资额:{{ scope.row.projectInvestmentAmount }}万元</span>
</span>
</li>
<li v-if="scope.row.projectContractAmount">
<span >
<span >控制价:{{ scope.row.projectContractAmount }}万元</span>
</span>
</li>
<li v-if="scope.row.projectSafeAmount">
<span >
<span >建安费:{{ scope.row.projectSafeAmount }}万元</span>
</span>
</li>
<li v-if="scope.row.projectSurveyAmount">
<span >
<span >勘察费:{{ scope.row.projectSurveyAmount }}万元</span>
</span>
</li>
<li v-if="scope.row.projectDesignAmount">
<span >
<span >设计费:{{ scope.row.projectDesignAmount }}万元</span>
</span>
</li>
</template>
<li v-else>--</li>
</ul>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="zj" label="债券保证金(万元)" width="146" > <el-table-column prop="zj" label="投标保证金(万元)" width="146" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.projectEnsureAmount||'--'}} {{ scope.row.projectEnsureAmount||'--'}}
</template> </template>
...@@ -1962,6 +1995,16 @@ ...@@ -1962,6 +1995,16 @@
.list-titel-a{ .list-titel-a{
color:#0081FF; color:#0081FF;
} }
.bxpro_list_money{
li{
margin-bottom: 8px;
line-height: 18px;
display: flex;
&:last-child{
margin-bottom: 0;
}
}
}
} }
.bottomlist-content{ .bottomlist-content{
......
<template> <template>
<div> <div>
<div class="content"> <div class="content">
<div class="content_item"> <div class="content_item content_item_padding0">
<div class="label">项目名称</div> <div class="label">项目名称</div>
<div class="content_right"> <div class="content_right">
<el-input class="ename_input" <el-input class="ename_input"
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</template> </template>
</div> </div>
</div> </div>
<div class="content_item"> <div class="content_item ">
<div class="label">项目主体</div> <div class="label">项目主体</div>
<div class="content_right"> <div class="content_right">
<div class="item_ckquery_list" > <div class="item_ckquery_list" >
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<el-input ref="inp" <el-input ref="inp"
v-model="projectEntity" autocomplete="off" type="text" v-model="projectEntity" autocomplete="off" type="text"
class="register_count_ipt" placeholder="请输入企业名称"> class="register_count_ipt" placeholder="请输入企业名称">
<el-dropdown trigger="click" slot="prepend" style="cursor:pointer;" <el-dropdown trigger="click" slot="prepend" placement="bottom-start" style="cursor:pointer;"
@command="changeCommand"> @command="changeCommand">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
{{chargeDepartment.value}}<i class="el-icon-caret-bottom"></i> {{chargeDepartment.value}}<i class="el-icon-caret-bottom"></i>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="content_item"> <div class="content_item content_item16">
<div class="label">项目地区</div> <div class="label">项目地区</div>
<div class="content_right"> <div class="content_right">
<div class="select-popper"> <div class="select-popper">
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="content_item"> <div class="content_item content_item16">
<div class="label">项目类型</div> <div class="label">项目类型</div>
<div class="content_right"> <div class="content_right">
<!-- <div class="content-projecttype"> <!-- <div class="content-projecttype">
...@@ -178,16 +178,16 @@ ...@@ -178,16 +178,16 @@
projectName:'', projectName:'',
nameTypeList: [{ nameTypeList: [{
key: 'like', key: 'like',
status: false, status: true ,
value: '模糊搜索', value: '模糊搜索',
}, },
{ {
key: 'match', key: 'match',
status: true, status: false,
value: '精准匹配', value: '精准匹配',
}, },
], ],
nameType: 'match', nameType: 'like',
projectEntity:'', projectEntity:'',
countTypelist: [{ countTypelist: [{
key: '1', key: '1',
...@@ -550,10 +550,11 @@ ...@@ -550,10 +550,11 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.content{ .content{
padding: 0px 16px; padding: 0px 16px;
padding-top: 16px;
border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px;
background: #FFFFFF; background: #FFFFFF;
.content_item{ .content_item{
padding-top: 12px; padding-top: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
.label{ .label{
...@@ -577,6 +578,7 @@ ...@@ -577,6 +578,7 @@
} }
.item_ckquery_list .el-input__icon { .item_ckquery_list .el-input__icon {
position: relative; position: relative;
top: 1px; top: 1px;
...@@ -593,6 +595,10 @@ ...@@ -593,6 +595,10 @@
} }
::v-deep .el-input-group__prepend{ ::v-deep .el-input-group__prepend{
padding: 0 8px; padding: 0 8px;
background-color:#F3F4F5;
border-radius:2px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
} }
.content-projecttype{ .content-projecttype{
display: flex; display: flex;
...@@ -626,8 +632,12 @@ ...@@ -626,8 +632,12 @@
.content_item_padding0{ .content_item_padding0{
padding: 0; padding: 0;
} }
.content_item18{
padding-top: 16px;
}
} }
.bottomlist{ .bottomlist{
width: 100%; width: 100%;
background-color: #FFFFFF; background-color: #FFFFFF;
...@@ -679,7 +689,8 @@ ...@@ -679,7 +689,8 @@
} }
} }
.content-label{ .content-label{
margin-top: 7px; margin-top: 5px;
margin-bottom: 5px;
.list-label{ .list-label{
background: #F3F3FF; background: #F3F3FF;
color: #8491E8; color: #8491E8;
...@@ -703,7 +714,7 @@ ...@@ -703,7 +714,7 @@
display: flex; display: flex;
justify-content: start; justify-content: start;
align-items: center; align-items: center;
margin-right: 27px; margin-right: 32px;
font-size: 14px; font-size: 14px;
span:first-child{ span:first-child{
......
...@@ -154,13 +154,12 @@ ...@@ -154,13 +154,12 @@
<el-table :data="tableData" element-loading-text="Loading" border fit highlight-current-row> <el-table :data="tableData" element-loading-text="Loading" border fit highlight-current-row>
<el-table-column prop="name" label="债券简称"> <el-table-column prop="name" label="债券简称">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/macro/financing/details/'+ scope.row.id" tag="a" {{ scope.row.bondAbbreviation}}
class="a-link">{{ scope.row.bondAbbreviation}}</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="tenderDate" label="招标日期" width="220" /> <el-table-column prop="tenderDate" label="招标日期" width="220" />
<el-table-column prop="actualBondIssueScale" label="专项债规模(亿)" width="260" /> <el-table-column prop="actualBondIssueScale" label="专项债规模(亿)" width="260" />
<el-table-column prop="isUsedProjectScale" label="用于项目规模(亿)" width="260" /> <el-table-column prop="isUsedProjectScale" label="用于项目规模(万元)" width="260" />
<el-table-column label="是否资本金" width="200"> <el-table-column label="是否资本金" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
......
...@@ -9,9 +9,10 @@ ...@@ -9,9 +9,10 @@
<p>{{itme.value}}</p> <p>{{itme.value}}</p>
</div> </div>
</div> </div>
<p class="solid"></p>
</div> </div>
</div> </div>
<p class="solid"></p>
</div> </div>
<!-- 企业专项债 --> <!-- 企业专项债 -->
<debtProject v-if="personnelHerf=='debtProject'" /> <debtProject v-if="personnelHerf=='debtProject'" />
...@@ -168,8 +169,11 @@ ...@@ -168,8 +169,11 @@
top: -1px; top: -1px;
margin-right: 6px; margin-right: 6px;
} }
.app-container .content{
position: relative;
}
.app-container .combined-title .title-right .solid { .app-container .solid {
width: 100%; width: 100%;
height: 1px; height: 1px;
background-color: #EEEEEE; background-color: #EEEEEE;
......
...@@ -15,6 +15,11 @@ public class BusinessIdDto { ...@@ -15,6 +15,11 @@ public class BusinessIdDto {
*/ */
private Integer businessId; private Integer businessId;
/**
* 项目标签id
*/
private Integer labelId;
/** /**
* 项目标签名称 * 项目标签名称
*/ */
......
...@@ -2,8 +2,6 @@ package com.dsk.system.domain.vo; ...@@ -2,8 +2,6 @@ package com.dsk.system.domain.vo;
import lombok.Data; import lombok.Data;
import java.util.List;
/** /**
* @author lxl * @author lxl
* @Description: * @Description:
...@@ -90,7 +88,7 @@ public class BusinessBrowseVo { ...@@ -90,7 +88,7 @@ public class BusinessBrowseVo {
/** /**
* 项目标签 * 项目标签
*/ */
private List<String> labelList; private String labelList;
/** 建设单位 */ /** 建设单位 */
private String constructionUnit; private String constructionUnit;
......
package com.dsk.system.domain.vo;
import lombok.Data;
/**
* @author lxl
* @Description:
* @Date 2023/6/27 下午 2:51
**/
@Data
public class BusinessLabelVo {
//主键
private Integer id;
//标签
private String label;
}
package com.dsk.system.service; package com.dsk.system.service;
import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.dtos.ComposeQueryDto;
/** /**
* @ClassName EconomicService * @ClassName EconomicService
...@@ -19,5 +19,5 @@ public interface RegionalEnterprisesService { ...@@ -19,5 +19,5 @@ public interface RegionalEnterprisesService {
*@Author: Dgm *@Author: Dgm
*@date: 2023/5/18 10:25 *@date: 2023/5/18 10:25
*/ */
AjaxResult enterprisePage(JSONObject compose) throws Exception; AjaxResult enterprisePage(ComposeQueryDto compose) throws Exception;
} }
...@@ -3,6 +3,7 @@ package com.dsk.system.service.impl; ...@@ -3,6 +3,7 @@ package com.dsk.system.service.impl;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.config.RuoYiConfig; import com.dsk.common.config.RuoYiConfig;
import com.dsk.common.constant.HttpStatus; import com.dsk.common.constant.HttpStatus;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
...@@ -21,10 +22,10 @@ import com.dsk.system.domain.BusinessListDto; ...@@ -21,10 +22,10 @@ import com.dsk.system.domain.BusinessListDto;
import com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto; import com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto;
import com.dsk.system.domain.customer.vo.CustomerBusinessListVo; import com.dsk.system.domain.customer.vo.CustomerBusinessListVo;
import com.dsk.system.domain.vo.BusinessBrowseVo; import com.dsk.system.domain.vo.BusinessBrowseVo;
import com.dsk.system.domain.vo.BusinessLabelVo;
import com.dsk.system.domain.vo.BusinessListVo; import com.dsk.system.domain.vo.BusinessListVo;
import com.dsk.system.mapper.BusinessInfoMapper; import com.dsk.system.mapper.BusinessInfoMapper;
import com.dsk.system.mapper.BusinessLabelMapper; import com.dsk.system.mapper.BusinessLabelMapper;
import com.dsk.system.mapper.BusinessRelateCompanyMapper;
import com.dsk.system.mapper.BusinessUserMapper; import com.dsk.system.mapper.BusinessUserMapper;
import com.dsk.system.service.IBusinessInfoService; import com.dsk.system.service.IBusinessInfoService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
...@@ -36,7 +37,6 @@ import javax.annotation.Resource; ...@@ -36,7 +37,6 @@ import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* 项目详情Service业务层处理 * 项目详情Service业务层处理
...@@ -52,8 +52,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -52,8 +52,6 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
@Resource @Resource
private BusinessUserMapper businessUserMapper; private BusinessUserMapper businessUserMapper;
@Resource @Resource
private BusinessRelateCompanyMapper businessRelateCompanyMapper;
@Resource
private BusinessLabelMapper businessLabelMapper; private BusinessLabelMapper businessLabelMapper;
@Resource @Resource
private ReadBusinessInfoExcel readBusinessInfoExcel; private ReadBusinessInfoExcel readBusinessInfoExcel;
...@@ -108,12 +106,15 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -108,12 +106,15 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
//商务团队 //商务团队
businessBrowseVo.setTeam(businessUserMapper.selectCreatorByBusinessId(businessId)); businessBrowseVo.setTeam(businessUserMapper.selectCreatorByBusinessId(businessId));
//查询是否是项目创建人 //查询是否是项目创建人
Long userId = SecurityUtils.getLoginUser().getUserId(); // Long userId = SecurityUtils.getLoginUser().getUserId();
if (userId == null) throw new BaseException("请登录"); // if (userId == null) throw new BaseException("请登录");
Long userId = 103l;
Integer founder = businessUserMapper.selectFounder(businessId, userId); Integer founder = businessUserMapper.selectFounder(businessId, userId);
businessBrowseVo.setIsFounder(founder == null ? 0 : founder); businessBrowseVo.setIsFounder(founder == null ? 0 : founder);
//查询项目标签 //查询项目标签
businessBrowseVo.setLabelList(businessLabelMapper.selectBusinessLabelList(new BusinessLabel(businessId)).stream().map(p -> p.getLabel()).collect(Collectors.toList())); List<BusinessLabel> labels = businessLabelMapper.selectBusinessLabelList(new BusinessLabel(businessId));
String labelList = CollectionUtil.isEmpty(labels) ? null : JSONObject.toJSONString(BeanUtil.copyToList(labels, BusinessLabelVo.class));
businessBrowseVo.setLabelList(labelList);
//相关数据统计 //相关数据统计
BusinessBrowseVo total = businessInfoMapper.selectTotal(businessId); BusinessBrowseVo total = businessInfoMapper.selectTotal(businessId);
businessBrowseVo.setBacklogCount(total.getBacklogCount()); businessBrowseVo.setBacklogCount(total.getBacklogCount());
......
...@@ -48,16 +48,6 @@ public class CustomerServiceImpl implements ICustomerService { ...@@ -48,16 +48,6 @@ public class CustomerServiceImpl implements ICustomerService {
@Override @Override
public List<CustomerListVo> selectList(CustomerSearchDto dto) { public List<CustomerListVo> selectList(CustomerSearchDto dto) {
dto.setUserId(SecurityUtils.getUserId()); dto.setUserId(SecurityUtils.getUserId());
// List<CustomerListVo> vos = baseMapper.selectList(dto);
// vos.parallelStream().forEach(vo -> {
// //合作项目
// vo.setCooperationProject(businessInfoService.selectCountByStatusAndCustomerId(2, vo.getCustomerId()));
// //跟进项目
// vo.setFollowProject(businessInfoService.selectCountByStatusAndCustomerId(1, vo.getCustomerId()));
// //储备项目
// vo.setReserveProject(businessInfoService.selectCountByStatusAndCustomerId(0, vo.getCustomerId()));
// });
// return vos;
return baseMapper.selectList(dto); return baseMapper.selectList(dto);
} }
......
...@@ -2,10 +2,10 @@ package com.dsk.system.service.impl; ...@@ -2,10 +2,10 @@ package com.dsk.system.service.impl;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson2.JSONObject;
import com.dsk.acc.openapi.client.util.CommonUtils; import com.dsk.acc.openapi.client.util.CommonUtils;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.core.domain.model.EnterpriseInfoHeaderBody; import com.dsk.common.core.domain.model.EnterpriseInfoHeaderBody;
import com.dsk.common.dtos.ComposeQueryDto;
import com.dsk.common.utils.DskOpenApiUtil; import com.dsk.common.utils.DskOpenApiUtil;
import com.dsk.system.service.RegionalEnterprisesService; import com.dsk.system.service.RegionalEnterprisesService;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
...@@ -31,8 +31,8 @@ public class RegionalEnterprisesServiceImpl implements RegionalEnterprisesServic ...@@ -31,8 +31,8 @@ public class RegionalEnterprisesServiceImpl implements RegionalEnterprisesServic
private DskOpenApiUtil dskOpenApiUtil; private DskOpenApiUtil dskOpenApiUtil;
@Override @Override
public AjaxResult enterprisePage(JSONObject object) { public AjaxResult enterprisePage(ComposeQueryDto pageDto) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/page",object); Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/page",BeanUtil.beanToMap(pageDto, false, false));
Integer code = MapUtils.getInteger(map, "code", 300); Integer code = MapUtils.getInteger(map, "code", 300);
if (code.equals(HttpStatus.OK.value())) { if (code.equals(HttpStatus.OK.value())) {
Map data = MapUtils.getMap(map, "data", null); Map data = MapUtils.getMap(map, "data", null);
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<delete id="deleteBusinessLabelById"> <delete id="deleteBusinessLabelById">
delete delete
from business_label from business_label
where business_id = #{businessId} and label = #{label} where id = #{labelId}
</delete> </delete>
<delete id="deleteBusinessLabelByIds" parameterType="String"> <delete id="deleteBusinessLabelByIds" parameterType="String">
......
...@@ -10,17 +10,6 @@ ...@@ -10,17 +10,6 @@
ct.performance_characteristic, ct.other_ms_characteistic, ct.create_id, ct.create_time, ct.update_id, ct.update_time ct.performance_characteristic, ct.other_ms_characteistic, ct.create_id, ct.create_time, ct.update_id, ct.update_time
</sql> </sql>
<select id="selectList1" resultType="com.dsk.system.domain.customer.vo.CustomerListVo">
select
u.nick_name followUser,
<include refid="Base_Bean"></include>
from customer ct
join customer_user ctu on ct.customer_id = ctu.customer_id
join sys_user u on ctu.user_id = u.user_id
where ctu.user_id = #{dto.userId}
<if test="dto.companyName != null and dto.companyName != '' "> and ct.company_name like concat('%',#{dto.companyName},'%')</if>
</select>
<select id="selectList" resultType="com.dsk.system.domain.customer.vo.CustomerListVo"> <select id="selectList" resultType="com.dsk.system.domain.customer.vo.CustomerListVo">
select select
u.nick_name followUser, bi1.num reserveProject, bi2.num followProject, bi3.num cooperationProject, u.nick_name followUser, bi1.num reserveProject, bi2.num followProject, bi3.num cooperationProject,
......
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