Commit 01c00971 authored by xiongjinke's avatar xiongjinke

修改

parent 144cc399
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="form.type==3"> <template v-if="form.type==3">
<div class="cooperate-name"> <div class="cooperate-name">
<el-input v-model="form.value" :placeholder="form.placeholder"></el-input> <el-input @focus="clickFocus('focus'+i)" @blur="clickFocus('focus'+i)" v-model="form.value" :placeholder="form.placeholder"></el-input>
<span @click="changeSelect">搜索</span> <span :id="'focus'+i" @click="changeSelect">搜索</span>
</div> </div>
</template> </template>
<!-- 多选 --> <!-- 多选 -->
...@@ -155,6 +155,9 @@ export default { ...@@ -155,6 +155,9 @@ export default {
message: '功能正在开发中', message: '功能正在开发中',
type: 'warning' type: 'warning'
}); });
},
clickFocus(e){
document.getElementById(e).classList.toggle('span-ba')
} }
} }
} }
...@@ -214,13 +217,18 @@ export default { ...@@ -214,13 +217,18 @@ export default {
border-left: 0; border-left: 0;
cursor: pointer; cursor: pointer;
} }
.span-ba{
color: #ffffff;
background: #0081FF;
border: 1px solid #0081FF;
}
::v-deep .el-input{ ::v-deep .el-input{
flex: 1; flex: 1;
} }
::v-deep .el-input__inner { ::v-deep .el-input__inner {
border-right: 0; border-right: 0;
border-radius: 2px 0 2px 0; border-radius: 2px 0 2px 0;
width: 259px; width: 180px;
} }
} }
.fromTime{ .fromTime{
......
<template> <template>
<div class="cooperate"> <div>
<template v-if="ifEmpty"> <template v-if="!isDetailId">
<head-form <div class="cooperate">
:form-data="formData" <template v-if="ifEmpty">
:query-params="queryParams" <head-form
:total="tableDataTotal" :form-data="formData"
:isExcel="true" :query-params="queryParams"
:slots="true" :total="tableDataTotal"
@handle-search="handleSearch" :isExcel="true"
> :slots="true"
<template slot="slot"> @handle-search="handleSearch"
<div class="flex-box query-add"> >
<el-button type="primary" icon="el-icon-plus" @click="drawer = true">添加商务信息</el-button> <template slot="slot">
</div> <div class="flex-box query-add">
</template> <el-button type="primary" icon="el-icon-plus" @click="drawer = true">添加商务信息</el-button>
</head-form> </div>
</template>
</head-form>
<tables <tables
:tableLoading="tableLoading" :tableLoading="tableLoading"
:tableData="tableData" :tableData="tableData"
:forData="forData" :forData="forData"
:tableDataTotal="tableDataTotal" :tableDataTotal="tableDataTotal"
:queryParams="queryParams" :queryParams="queryParams"
@handle-current-change="handleCurrentChange" @handle-current-change="handleCurrentChange"
> >
<template slot="projectName" slot-scope="scope"> <template slot="projectName" slot-scope="scope">
<span class="link-type" @click="clickDetail(scope.row.id)"> <span class="link-type" @click="clickDetail(scope.row.id)">
{{ scope.row.projectName }} {{ scope.row.projectName }}
</span> </span>
<!-- <router-link :to="'' + scope.row.dictId" class="link-type">--> </template>
<!-- <span>{{ scope.row.dictType }}</span>--> </tables>
<!-- </router-link>-->
</template>
</tables>
</template> </template>
<template v-else> <template v-else>
<div class="cooperate_empty"> <div class="cooperate_empty">
<img src="@/assets/images/project/empty.png"/> <img src="@/assets/images/project/empty.png"/>
<div class="empty-t">暂无合作情况数据</div> <div class="empty-t">暂无合作情况数据</div>
<div class="empty-d">抱歉,你还未合作情况数据,快去添加吧</div> <div class="empty-d">抱歉,你还未合作情况数据,快去添加吧</div>
<el-button type="primary" class="empty-b" @click="drawer = true">添加合作情况</el-button> <el-button type="primary" class="empty-b" @click="drawer = true">添加合作情况</el-button>
</div>
</template>
<!-- 弹窗关联项目 -->
<el-drawer
title="添加合作情况"
size="40%"
:visible.sync="drawer"
:direction="direction"
:with-header="false"
:before-close="handleClose">
<div class="cooperate_addhzqk">
<div class="addhzqk_top">
<div class="addhzqk_top_t">
<div class="top_t_h1">
<img src="@/assets/images/economies/icon.png" />{{ info.companyName }}
</div>
<div class="top_t_close"><i class="el-icon-close" @click="handleClose"></i></div>
</div>
<div class="addhzqk_top_d">
<div class="top_d_item">
法定代表人:<span>{{ info.legalPerson }}</span>
</div>
<div class="top_d_item">
注册资本:<span>{{ info.registerCapital }}万</span>
</div>
<div class="top_d_item">
注册地址:<span>{{ info.registerAddress }}</span>
</div>
</div> </div>
</div> </template>
<div class="addhzqk_from"> <!-- 弹窗关联项目 -->
<el-form :model="addParam" :rules="rules" ref="addParam" size="small" label-width="126px"> <el-drawer
<el-form-item label="项目名称:" prop="projectName"> title="添加合作情况"
<el-input v-model="addParam.projectName" placeholder="请输入项目名称" @input="getCompany1"></el-input> size="40%"
<div class="resultlist" v-if="showlist1"> :visible.sync="drawer"
<div v-for="(item,index) in companData1" @click="selCompany1(item)"><span v-html="item"></span></div> :direction="direction"
:with-header="false"
:before-close="handleClose">
<div class="cooperate_addhzqk">
<div class="addhzqk_top">
<div class="addhzqk_top_t">
<div class="top_t_h1">
<img src="@/assets/images/economies/icon.png" />{{ info.companyName }}
</div>
<div class="top_t_close"><i class="el-icon-close" @click="handleClose"></i></div>
</div> </div>
</el-form-item> <div class="addhzqk_top_d">
<el-form-item label="业主单位:" prop="ownerCompany"> <div class="top_d_item">
<el-input v-model="addParam.ownerCompany" placeholder="请输入业主单位" @input="getCompany"></el-input> 法定代表人:<span>{{ info.legalPerson }}</span>
<div class="resultlist" v-if="showlist"> </div>
<div v-for="(item,index) in companData" @click="selCompany(item)"><span v-html="item.name"></span></div> <div class="top_d_item">
注册资本:<span>{{ info.registerCapital }}万</span>
</div>
<div class="top_d_item">
注册地址:<span>{{ info.registerAddress }}</span>
</div>
</div> </div>
</el-form-item> </div>
<el-form-item label="项目阶段:" prop="projectStage"> <div class="addhzqk_from">
<el-select v-model="addParam.projectStage" style="width: 100%" class="form-content-width" placeholder="请选择项目状态"> <el-form :model="addParam" :rules="rules" ref="addParam" size="small" label-width="126px">
<el-option v-for="(item, index) in projectStage" :key="index" :label="item.dictLabel" :value="item.dictValue" /> <el-form-item label="项目名称:" prop="projectName">
</el-select> <el-input v-model="addParam.projectName" placeholder="请输入项目名称" @input="getCompany1"></el-input>
</el-form-item> <div class="resultlist" v-if="showlist1">
<el-form-item label="项目类型:" prop="projectType"> <div v-for="(item,index) in companData1" @click="selCompany1(item)"><span v-html="item"></span></div>
<el-select v-model="addParam.projectType" style="width: 100%" class="form-content-width" placeholder="请选择项目阶段"> </div>
<el-option v-for="(item, index) in projectType" :key="index" :label="item.dictLabel" :value="item.dictValue" /> </el-form-item>
</el-select> <el-form-item label="业主单位:" prop="ownerCompany">
</el-form-item> <el-input v-model="addParam.ownerCompany" placeholder="请输入业主单位" @input="getCompany"></el-input>
<el-form-item label="项目类别:" prop="projectCategory"> <div class="resultlist" v-if="showlist">
<el-select v-model="addParam.projectCategory" style="width: 100%" class="form-content-width" placeholder="请选择项目阶段"> <div v-for="(item,index) in companData" @click="selCompany(item)"><span v-html="item.name"></span></div>
<el-option v-for="(item, index) in projectCategory" :key="index" :label="item.dictLabel" :value="item.dictValue" /> </div>
</el-select> </el-form-item>
</el-form-item> <el-form-item label="项目阶段:" prop="projectStage">
<el-form-item label="投资估算(万):" prop="investmentAmount"> <el-select v-model="addParam.projectStage" style="width: 100%" class="form-content-width" placeholder="请选择项目状态">
<el-input v-model="addParam.investmentAmount" placeholder="请输入投资估算" @input="number"></el-input> <el-option v-for="(item, index) in projectStage" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-form-item> </el-select>
<el-form-item label="可见范围:" prop="isPrivate"> </el-form-item>
<el-select v-model="addParam.isPrivate" style="width: 100%" class="form-content-width" placeholder="请选择"> <el-form-item label="项目类型:" prop="projectType">
<el-option v-for="(item, index) in isPrivate" :key="index" :label="item.name" :value="item.value" /> <el-select v-model="addParam.projectType" style="width: 100%" class="form-content-width" placeholder="请选择项目阶段">
</el-select> <el-option v-for="(item, index) in projectType" :key="index" :label="item.dictLabel" :value="item.dictValue" />
</el-form-item> </el-select>
<el-form-item style="text-align: right;"> </el-form-item>
<el-button @click="handleClose">关闭</el-button> <el-form-item label="项目类别:" prop="projectCategory">
<el-button type="primary" @click="submitForm">添加</el-button> <el-select v-model="addParam.projectCategory" style="width: 100%" class="form-content-width" placeholder="请选择项目阶段">
</el-form-item> <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>
</div> </div>
</el-drawer> </template>
<!-- <Detail :detailId="detailId" v-if="isDetailId" />--> <div v-else class="cooperate-detail">
<Detail :detailId="detailId" @close-detail="closeDetail" />
</div>
</div> </div>
</template> </template>
...@@ -360,7 +363,13 @@ export default { ...@@ -360,7 +363,13 @@ export default {
clickDetail(id){ clickDetail(id){
this.detailId = id this.detailId = id
this.isDetailId = true this.isDetailId = true
},
//关闭详情
closeDetail(){
this.isDetailId = false
this.detailId = ''
} }
} }
} }
</script> </script>
...@@ -511,4 +520,10 @@ export default { ...@@ -511,4 +520,10 @@ export default {
} }
} }
::v-deep .cooperate-detail{
.miantitle, .app-container{
margin: 12px 0;
}
}
</style> </style>
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
}, },
{ {
prop: 'gdpGrowth', prop: 'gdpGrowth',
label: 'GDP增速', label: 'GDP增速(%)',
}, },
{ {
prop: 'gdpPerCapita', prop: 'gdpPerCapita',
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
}, },
{ {
prop: 'gbrGrowth', prop: 'gbrGrowth',
label: '一般公共预算收入增速', label: '一般公共预算收入增速(%)',
}, },
{ {
prop: 'taxIncome', prop: 'taxIncome',
...@@ -192,23 +192,23 @@ export default { ...@@ -192,23 +192,23 @@ export default {
}, },
{ {
prop: 'fiscalSelfSufficiencyRate', prop: 'fiscalSelfSufficiencyRate',
label: '财政自给率', label: '财政自给率(%)',
}, },
{ {
prop: 'govDebtToGdpRate', prop: 'govDebtToGdpRate',
label: '负债率', label: '负债率(%)',
}, },
{ {
prop: 'govDebtToGdpRateWild', prop: 'govDebtToGdpRateWild',
label: '负债率-宽口径', label: '负债率-宽口径(%)',
}, },
{ {
prop: 'govDebtRate', prop: 'govDebtRate',
label: '债务率', label: '债务率(%)',
}, },
{ {
prop: 'govDebtRateWild', prop: 'govDebtRateWild',
label: '债务率-宽口径', label: '债务率-宽口径(%)',
}, },
], ],
tableLoading: true tableLoading: true
......
...@@ -129,6 +129,10 @@ ...@@ -129,6 +129,10 @@
default: "" default: ""
}, },
datas:[],//数据源 datas:[],//数据源
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
}, },
name: 'gjjl', name: 'gjjl',
data(){ data(){
...@@ -152,7 +156,7 @@ ...@@ -152,7 +156,7 @@
recordlist:[],//列表数据源 recordlist:[],//列表数据源
isdel:false, isdel:false,
delID:'',//删除记录的ID delID:'',//删除记录的ID
projectId:parseInt(this.$route.query.id),//项目详情id projectId:this.detailId ? this.detailId : parseInt(this.$route.query.id),//项目详情id
} }
}, },
computed: { computed: {
......
...@@ -70,19 +70,25 @@ ...@@ -70,19 +70,25 @@
export default { export default {
name: 'gjjl', name: 'gjjl',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
isEdit:false, isEdit:false,
value:'', value:'',
status:0, status:0,
queryParam:{ queryParam:{
businessId:parseInt(this.$route.query.id),//项目详情id businessId:this.detailId ? this.detailId : parseInt(this.$route.query.id),//项目详情id
target:'', target:'',
task:'', task:'',
finishTime:'', finishTime:'',
}, },
searchPram:{ searchPram:{
businessId:parseInt(this.$route.query.id), businessId:this.detailId ? this.detailId : parseInt(this.$route.query.id),
pageSize:10, pageSize:10,
pageNum:1, pageNum:1,
state:null, state:null,
......
...@@ -203,10 +203,16 @@ ...@@ -203,10 +203,16 @@
import {getJSNR,editXMNR} from '@/api/project/project' import {getJSNR,editXMNR} from '@/api/project/project'
export default { export default {
name: 'jsnr', name: 'jsnr',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
nowedit:-1,//当前正在编辑的文本 nowedit:-1,//当前正在编辑的文本
id:parseInt(this.$route.query.id), id:this.detailId ? this.detailId : parseInt(this.$route.query.id),
investmentAmount: '',//总投资额 investmentAmount: '',//总投资额
amountSource: '',//资金来源 amountSource: '',//资金来源
buildProperty: '',//建设性质 buildProperty: '',//建设性质
......
...@@ -113,6 +113,12 @@ ...@@ -113,6 +113,12 @@
import {getLXR,editLXR,addLXR} from '@/api/project/project' import {getLXR,editLXR,addLXR} from '@/api/project/project'
export default { export default {
name: 'lxr', name: 'lxr',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
dialogVisible:false, dialogVisible:false,
...@@ -125,9 +131,9 @@ ...@@ -125,9 +131,9 @@
searchParam:{ searchParam:{
pageNum:1, pageNum:1,
pageSize:20, pageSize:20,
businessId:this.$route.query.id businessId:this.detailId ? this.detailId : this.$route.query.id
}, },
id:this.$route.query.id, id:this.detailId ? this.detailId : this.$route.query.id,
total:0, total:0,
projectname:this.$route.query.projectname, projectname:this.$route.query.projectname,
queryParam:[], queryParam:[],
......
...@@ -139,6 +139,12 @@ ...@@ -139,6 +139,12 @@
import {getDictType} from '@/api/main' import {getDictType} from '@/api/main'
export default { export default {
name: 'xgqy', name: 'xgqy',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
types:1, types:1,
...@@ -175,7 +181,7 @@ ...@@ -175,7 +181,7 @@
companytype:[], companytype:[],
companyrole:[], companyrole:[],
queryParam:{ queryParam:{
businessId:this.$route.query.id, businessId:this.detailId ? this.detailId : this.$route.query.id,
companyId:'', companyId:'',
companyName:'', companyName:'',
companyRole:'', companyRole:'',
...@@ -186,7 +192,7 @@ ...@@ -186,7 +192,7 @@
searchParam:{ searchParam:{
pageSize:20, pageSize:20,
pageNum:1, pageNum:1,
businessId:this.$route.query.id, businessId:this.detailId ? this.detailId : this.$route.query.id,
companyType:"", companyType:"",
companyName:'', companyName:'',
}, },
...@@ -259,7 +265,7 @@ ...@@ -259,7 +265,7 @@
opennew(){ opennew(){
this.dialogVisible = true this.dialogVisible = true
this.queryParam={ this.queryParam={
businessId:this.$route.query.id, businessId:this.detailId ? this.detailId : this.$route.query.id,
companyId:'', companyId:'',
companyName:'', companyName:'',
companyRole:'', companyRole:'',
......
...@@ -175,6 +175,10 @@ ...@@ -175,6 +175,10 @@
name: 'xmsl', name: 'xmsl',
props:{ props:{
datas:'', datas:'',
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
}, },
data(){ data(){
return{ return{
...@@ -183,7 +187,7 @@ ...@@ -183,7 +187,7 @@
tipsvalue:"",//标签填写内容 tipsvalue:"",//标签填写内容
xmjd:'待添加', xmjd:'待添加',
projectStage:[],//项目阶段 projectStage:[],//项目阶段
id: this.$route.query.id, id: this.detailId ? this.detailId : this.$route.query.id,
xmsldata:this.datas, xmsldata:this.datas,
} }
}, },
......
...@@ -116,6 +116,12 @@ ...@@ -116,6 +116,12 @@
import { getZLWD ,delZLWD} from "@/api/project/project"; import { getZLWD ,delZLWD} from "@/api/project/project";
export default { export default {
name: 'zlwd', name: 'zlwd',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
isupload:false, isupload:false,
...@@ -125,12 +131,12 @@ ...@@ -125,12 +131,12 @@
fileList: [], fileList: [],
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
filePath:this.$route.query.id, filePath:this.detailId ? this.detailId : this.$route.query.id,
}, },
param:{ param:{
pageNum:1, pageNum:1,
pagesize:20, pagesize:20,
filePath:this.$route.query.id, filePath:this.detailId ? this.detailId : this.$route.query.id,
}, },
fileDatas:[], fileDatas:[],
filename:'', filename:'',
...@@ -142,9 +148,9 @@ ...@@ -142,9 +148,9 @@
}, },
methods:{ methods:{
getall(){ getall(){
this.param.filePath = this.$route.query.id this.param.filePath = this.detailId ? this.detailId : this.$route.query.id
this.filename='' this.filename=''
this.headers.filePath = this.$route.query.id this.headers.filePath = this.detailId ? this.detailId : this.$route.query.id
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
getList(){ getList(){
...@@ -163,7 +169,7 @@ ...@@ -163,7 +169,7 @@
getFile(row){ getFile(row){
if(row.type == 'file'){ if(row.type == 'file'){
this.filename = row.name this.filename = row.name
this.headers.filePath = this.$route.query.id+'\\'+row.name this.headers.filePath = this.detailId ? this.detailId : this.$route.query.id+'\\'+row.name
this.param.filePath = row.filePath this.param.filePath = row.filePath
this.handleCurrentChange(1) this.handleCurrentChange(1)
......
<template> <template>
<div> <div>
<div class="miantitle"> <div class="miantitle">
<span>项目管理</span> <template v-if="!detailId">
<span> / 商机列表</span> <span>项目管理</span>
<span> / 商机列表</span>
</template>
<span v-else @click="cooperateList">合作情况</span>
<span> / 项目详情</span> <span> / 项目详情</span>
</div> </div>
<div class="app-container" v-if="ProjectData"> <div class="app-container" v-if="ProjectData">
...@@ -105,19 +108,19 @@ ...@@ -105,19 +108,19 @@
</div> </div>
</el-card> </el-card>
<!--项目概览--> <!--项目概览-->
<xmsl v-if="thistag == 'xmsl'" :datas="ProjectData"></xmsl> <xmsl v-if="thistag == 'xmsl'" :datas="ProjectData" :detailId="detailId"></xmsl>
<!--建设内容--> <!--建设内容-->
<jsnr v-if="thistag == 'jsnr'"></jsnr> <jsnr v-if="thistag == 'jsnr'" :detailId="detailId"></jsnr>
<!--联系人--> <!--联系人-->
<lxr v-if="thistag == 'lxr'"></lxr> <lxr v-if="thistag == 'lxr'" :detailId="detailId"></lxr>
<!--跟进记录--> <!--跟进记录-->
<gjjl v-if="thistag == 'gjjl'" types="gjjl"></gjjl> <gjjl v-if="thistag == 'gjjl'" types="gjjl" :detailId="detailId"></gjjl>
<!--工作待办--> <!--工作待办-->
<gzdb v-if="thistag == 'gzdb'"></gzdb> <gzdb v-if="thistag == 'gzdb'" :detailId="detailId"></gzdb>
<!--资料文档--> <!--资料文档-->
<zlwd v-if="thistag == 'zlwd'"></zlwd> <zlwd v-if="thistag == 'zlwd'" :detailId="detailId"></zlwd>
<!--相关企业--> <!--相关企业-->
<xgqy v-if="thistag == 'xgqy'"></xgqy> <xgqy v-if="thistag == 'xgqy'" :detailId="detailId"></xgqy>
</div> </div>
</div> </div>
</template> </template>
...@@ -138,6 +141,12 @@ ...@@ -138,6 +141,12 @@
export default { export default {
name: 'detail', name: 'detail',
components: {xmsl,jsnr,lxr,gjjl,gzdb,zlwd,xgqy}, components: {xmsl,jsnr,lxr,gjjl,gzdb,zlwd,xgqy},
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return { return {
lastindex: 0,//上一个点击步骤 lastindex: 0,//上一个点击步骤
...@@ -171,7 +180,7 @@ ...@@ -171,7 +180,7 @@
}, },
created(){ created(){
this.prvinceTree() this.prvinceTree()
this.id = this.$route.query.id this.id = this.detailId ? this.detailId : this.$route.query.id
//项目阶段 //项目阶段
getDictType('project_stage_type').then(result=>{ getDictType('project_stage_type').then(result=>{
this.projectStage = result.code == 200 ? result.data:[] this.projectStage = result.code == 200 ? result.data:[]
...@@ -324,6 +333,11 @@ ...@@ -324,6 +333,11 @@
}) })
this.editXMSL(param) this.editXMSL(param)
}, },
// 跳转到企业详情合作情况
cooperateList(){
this.$emit('close-detail')
}
} }
} }
</script> </script>
......
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