Commit c13e1d21 authored by huangjie's avatar huangjie

*

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