Commit a94bd3f2 authored by MyName's avatar MyName

项目管理

parent fbfb6af1
...@@ -5,19 +5,19 @@ ...@@ -5,19 +5,19 @@
<div class="cardtitles">相关企业</div> <div class="cardtitles">相关企业</div>
<div class="searchbtns"> <div class="searchbtns">
<el-select class="select" placeholder="企业类型"> <el-select class="select" placeholder="企业类型">
<el-select placeholder="请选择"> <el-select placeholder="请选择" v-model="searchParam.companyType">
<el-option v-for="(item,index) in companytype" :label="item.dictLabel" :value="item.dictValue"></el-option> <el-option v-for="(item,index) in companytype" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select> </el-select>
</el-select> </el-select>
<div class="searchInput"> <div class="searchInput">
<el-input type="text" placeholder="输入关键词查询"></el-input> <el-input type="text" placeholder="输入关键词查询" v-model="searchParam.companyName"></el-input>
<div class="btn">搜索</div> <div class="btn" @click="handleCurrentChange(1)">搜索</div>
</div> </div>
<div class="btn btn_primary h32 b3" @click="opennew"><div class="img img1"></div>添加相关企业</div> <div class="btn btn_primary h32 b3" @click="opennew"><div class="img img1"></div>添加相关企业</div>
</div> </div>
<div class="document"> <div class="document">
<el-table <el-table
:data="tableData" :data="tableData.rows"
style="width: 100%" style="width: 100%"
> >
<template slot="empty"> <template slot="empty">
...@@ -29,26 +29,26 @@ ...@@ -29,26 +29,26 @@
</div> </div>
</template> </template>
<el-table-column <el-table-column
prop="date" prop="companyName"
label="企业名称" label="企业名称"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div class="wordprimary">集团投标常用资料</div> <div class="wordprimary">{{scope.row.companyName}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="name" prop="depth"
label="对接深度" label="对接深度/竞争力度"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="name" prop="companyRole"
label="企业角色" label="企业角色"
sortable sortable
width=""> width="">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="name" prop="responsiblePerson"
label="负责人" label="负责人"
width=""> width="">
</el-table-column> </el-table-column>
...@@ -59,21 +59,21 @@ ...@@ -59,21 +59,21 @@
width=""> width="">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="hoverbtn"> <div class="hoverbtn">
<div class="sc">删除</div> <div class="sc" @click="delQY(scope.row.id)">删除</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="tables"> <div class="tables" v-if="tableData.total > searchParam.pageSize">
<div class="bottems"> <div class="bottems">
<el-pagination <el-pagination
background background
:page-size="20" :page-size="searchParam.pageSize"
:current-page="1" :current-page="searchParam.pageNum"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="1000"> :total="tableData.total">
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
...@@ -87,12 +87,12 @@ ...@@ -87,12 +87,12 @@
<span>新建相关企业</span> <span>新建相关企业</span>
</div> </div>
<div class="types"> <div class="types">
<div v-for="(item,index) in companytype" :class="{'on':types==item.dictValue}" @click="types=item.dictLabel"><i></i>{{item.dictLabel}}</div> <div v-for="(item,index) in companytype" :class="{'on':types==item.dictValue}" @click="totype(item.dictValue)"><i></i>{{item.dictLabel}}</div>
</div> </div>
<div class="popform"> <div class="popform">
<div class="popbot" style="padding-right: 0"> <div class="popbot" style="padding-right: 0">
<div class="btn btn_cancel h32" @click="cancel">返回</div> <div class="btn btn_cancel h32" @click="cancel(0)">返回</div>
<div class="btn btn_primary h32" @click="hzhbVisible=true">下一步</div> <div class="btn btn_primary h32" @click="gettype">下一步</div>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
...@@ -105,29 +105,23 @@ ...@@ -105,29 +105,23 @@
<span>新建相关企业-{{types}}</span> <span>新建相关企业-{{types}}</span>
</div> </div>
<el-form class="popform i" label-width="85px" :rules="rules" ref="ruleForm" > <el-form class="popform i" label-width="85px" :rules="rules" ref="ruleForm" >
<el-form-item label="企业名称:" prop="projectName" class="row"> <el-form-item label="企业名称:" prop="companyName" class="row">
<el-input type="text" placeholder="请输入"></el-input> <el-input type="text" v-model="queryParam.companyName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item v-if="types == companytype[0].dictValue" label="对接深度:" class="row">
<el-input type="text" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="types == companytype[1].dictValue" label="合作阶段:" class="row"> <el-form-item :label="typename" class="row">
<el-input type="text" placeholder="请输入"></el-input> <el-input type="text" v-model="queryParam.depth" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item v-if="types == companytype[2].dictValue" label="竞争力度:" class="row">
<el-input type="text" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="企业角色:" class="row"> <el-form-item label="企业角色:" class="row">
<el-select placeholder="请选择"> <el-select placeholder="请选择" v-model="queryParam.companyRole">
<el-option v-for="(item,index) in companyrole" :key="index" :label="item.dictLabel" :value="item.dictValue"></el-option> <el-option v-for="(item,index) in companyrole" :key="index" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="负责人:" class="row"> <el-form-item label="负责人:" class="row">
<el-input type="text" placeholder="请输入"></el-input> <el-input type="text" v-model="queryParam.responsiblePerson" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<div class="popbot"> <div class="popbot">
<div class="btn btn_cancel h32" @click="cancel">返回</div> <div class="btn btn_cancel h32" @click="cancel(1)">返回</div>
<div class="btn btn_primary h32">添加</div> <div class="btn btn_primary h32" @click="addqy">添加</div>
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog>
...@@ -169,12 +163,29 @@ ...@@ -169,12 +163,29 @@
address: '上海市普陀区金沙江路 1516 弄' address: '上海市普陀区金沙江路 1516 弄'
} }
], ],
typelist:['对接深度:','合作阶段:','竞争力度:'],
typename:"",
rules:{ rules:{
projectName:[{ required: true, message: '请输入非空格字符!', trigger: 'blur' },], companyName:[{ required: true, message: '请输入非空格字符!', trigger: 'blur' },],
}, },
companytype:[], companytype:[],
companyrole:[], companyrole:[],
queryParam:{
businessId:this.$route.query.id,
companyId:'',
companyName:'',
companyRole:'',
companyType:'',
responsiblePerson:'',
depth:'',
},
searchParam:{
pageSize:20,
pageNum:1,
businessId:this.$route.query.id,
companyType:"",
companyName:'',
},
} }
}, },
created(){ created(){
...@@ -189,16 +200,59 @@ ...@@ -189,16 +200,59 @@
}) })
}, },
methods:{ methods:{
delQY(id){
},
addqy(){
addXGQY(this.queryParam).then(res=>{
if(res.code == 200){
this.$message.success('添加成功!')
this.getlist()
}else {
this.$message.error(res.msg)
}
})
},
getlist(){
getXGQY(this.searchParam).then(result=>{
this.tableData = result.data
})
},
//翻页 //翻页
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); this.searchParam.pageNum = val
this.getlist()
},
cancel(type){
if(type == 0)
this.dialogVisible = false
else
this.hzhbVisible = false
}, },
cancel(){ totype(value){
this.dialogVisible = false this.types = value
},
gettype(){
this.queryParam.companyType = this.types
this.companytype.forEach((item,index)=>{
if(item.dictValue == this.types){
this.typename = this.typelist[index]
}
})
this.hzhbVisible=true
}, },
//打开新建窗口 //打开新建窗口
opennew(){ opennew(){
this.dialogVisible = true this.dialogVisible = true
this.queryParam={
businessId:this.$route.query.id,
companyId:'',
companyName:'',
companyRole:'',
companyType:'',
responsiblePerson:'',
depth:'',
}
}, },
} }
} }
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{{xmjd}} {{xmjd}}
<i class="el-icon-caret-bottom"></i> <i class="el-icon-caret-bottom"></i>
</span> </span>
<el-select v-model="xmjd" class="select-multiple" placeholder="请选择" @click="editXMSL({projectStage:xmjd})"> <el-select v-model="xmjd" class="select-multiple" placeholder="请选择" @change="editXMSL({projectStage:xmjd})">
<el-option v-for="(item,index) in projectStage" :key="index" :label="item.dictLabel" :value="item.dictValue"></el-option> <el-option v-for="(item,index) in projectStage" :key="index" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select> </el-select>
</div> </div>
......
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