Commit c13e1d21 authored by huangjie's avatar huangjie

*

parent e41ae7a1
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<el-form-item label="项目名称:" prop="projectName" label-width="120px"> <el-form-item label="项目名称:" prop="projectName" label-width="120px">
<el-input v-model="addParam.projectName" placeholder="请输入项目名称" @input="getCompany1"></el-input> <el-input v-model="addParam.projectName" placeholder="请输入项目名称" @input="getCompany1"></el-input>
<div class="resultlist" v-if="showlist1"> <div class="resultlist" v-if="showlist1">
<div v-for="(item,index) in companData1" @click="selCompany1(item)"><span v-html="item"></span></div> <div v-for="(item,index) in companData1" @click="selCompany1(item)"><span v-html="item.projectName"></span></div>
</div> </div>
</el-form-item> </el-form-item>
<div class="erow"> <div class="erow">
...@@ -324,7 +324,7 @@ export default { ...@@ -324,7 +324,7 @@ export default {
} }
}, },
selCompany1(item){ selCompany1(item){
this.addParam.projectName = item this.addParam.projectName = item.projectName
this.showlist1 = false this.showlist1 = false
}, },
//获取业主单位 //获取业主单位
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-form-item label="项目名称:" class="row" prop="projectName"> <el-form-item label="项目名称:" class="row" prop="projectName">
<el-input type="text" placeholder="请输入" v-model="queryParam.projectName" @input="getProject"></el-input> <el-input type="text" placeholder="请输入" v-model="queryParam.projectName" @input="getProject"></el-input>
<div class="resultlist" v-if="proList.length>0" id="box1"> <div class="resultlist" v-if="proList.length>0" id="box1">
<div v-for="(item,index) in proList" @click="selProject(item)"><span v-html="item"></span></div> <div v-for="(item,index) in proList" @click="selProject(item)"><span v-html="item.projectName"></span></div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="业主单位:" class="row" prop="ownerCompany"> <el-form-item label="业主单位:" class="row" prop="ownerCompany">
...@@ -153,18 +153,18 @@ ...@@ -153,18 +153,18 @@
}, },
//获取项目名称 //获取项目名称
getProject(value){ getProject(value){
// if (value.length>=2){ if (value.length>=2){
// let param = { let param = {
// projectName:value, projectName:value,
// } }
// queryProject(JSON.stringify(param)).then(result=>{ queryProject(JSON.stringify(param)).then(result=>{
// if(result.code != 200){ if(result.code != 200){
// this.proList = [] this.proList = []
// return false return false
// } }
// this.proList = result.data this.proList = result.data
// }) })
// } }
}, },
selCompany(item){ selCompany(item){
this.queryParam.companyId = item.jskEid this.queryParam.companyId = item.jskEid
...@@ -172,8 +172,12 @@ ...@@ -172,8 +172,12 @@
this.showlist = false this.showlist = false
}, },
selProject(item){ selProject(item){
// this.queryParam.companyId = item.jskEid this.queryParam.projectStage = item.projectStage
// this.queryParam.ownerCompany = item.name.replace(/<[^>]+>/g, '') this.queryParam.investmentAmount = item.investmentAmount
this.queryParam.projectType = item.projectType
this.queryParam.projectCategory = item.projectCategory
this.queryParam.status = item.status
this.queryParam.projectName = item.projectName.replace(/<[^>]+>/g, '')
this.proList = [] this.proList = []
}, },
//添加客户 //添加客户
......
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