|
|
@@ -62,17 +62,17 @@ |
|
|
|
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="conmsg-msg-lab"> |
|
|
|
<view class="conmsg-msg-lab"> |
|
|
|
<view class="conmsg-msg-lab-1"> |
|
|
|
客户阶段 |
|
|
|
客户来源 |
|
|
|
</view> |
|
|
|
<view class="conmsg-msg-lab-inp"> |
|
|
|
<input type="text" placeholder="请选择客户阶段" @click="stageshow = true" v-model="selectform.stage" disabled/> |
|
|
|
<input type="text" placeholder="请选择客户来源" @click="Buildingselection" v-model="form.sourceName" disabled/> |
|
|
|
</view> |
|
|
|
<view class="conmsg-msg-lab-img"> |
|
|
|
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<view class="conmsg-msg-lab" style="border: none;"> |
|
|
|
<view class="conmsg-msg-lab-1"> |
|
|
|
备注内容 |
|
|
@@ -119,13 +119,18 @@ |
|
|
|
|
|
|
|
<!-- 客户等级 --> |
|
|
|
<u-select v-model="levelshow" :list="levellist" @confirm="levelshowCallback"></u-select> |
|
|
|
|
|
|
|
|
|
|
|
<u-select :mask-close-able="false" label-name="sourceName" value-name="id" v-model="Showhiddenunits" mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
const config = require("@/config"); |
|
|
|
export default{ |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
Showhiddenunits: false, // 控制客户来源弹窗 |
|
|
|
form:{ |
|
|
|
name:'', |
|
|
|
sex:'1', |
|
|
@@ -133,7 +138,7 @@ |
|
|
|
chatNo:'', |
|
|
|
level:'1', |
|
|
|
remarks:'', |
|
|
|
|
|
|
|
sourceId: '' |
|
|
|
}, |
|
|
|
selectform:{ |
|
|
|
level:'A', |
|
|
@@ -146,6 +151,8 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
list: [], // 客户来源数组 |
|
|
|
|
|
|
|
levelshow:false, |
|
|
|
customerId:'', |
|
|
|
// 等级 |
|
|
@@ -168,7 +175,8 @@ |
|
|
|
}, |
|
|
|
], |
|
|
|
allList:[], |
|
|
|
dataCode:'' |
|
|
|
dataCode:'', |
|
|
|
projectId: '', // 楼盘ID |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(e) { |
|
|
@@ -179,9 +187,42 @@ |
|
|
|
console.log(e) |
|
|
|
// 先调用借口查询数据 |
|
|
|
this.customerId=e.id |
|
|
|
if (e.projectId) this.projectId = e.projectId |
|
|
|
this.getdetail() |
|
|
|
this.getFromSource() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
// 获取客户来源 |
|
|
|
getFromSource() { |
|
|
|
uni.request({ |
|
|
|
url: config.service.sourceList+"?houseId="+this.projectId, |
|
|
|
method: "GET", |
|
|
|
header: { |
|
|
|
'content-type': 'application/json', |
|
|
|
'Access-Token': uni.getStorageSync('weapp_session_login_data').token |
|
|
|
}, |
|
|
|
success: (data) => { |
|
|
|
console.log(data) |
|
|
|
if(data.data.code==10000){ |
|
|
|
this.list = data.data.data |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 选择客户来源 |
|
|
|
Buildingselection(){ |
|
|
|
this.Showhiddenunits=true; |
|
|
|
}, |
|
|
|
cancel(){ |
|
|
|
this.Showhiddenunits=false; |
|
|
|
}, |
|
|
|
confirm(e) { |
|
|
|
this.form.sourceName = e[0].label; |
|
|
|
this.form.sourceId = e[0].value; |
|
|
|
this.Showhiddenunits=false; |
|
|
|
}, |
|
|
|
|
|
|
|
Edittag(item,item1,index,i){ |
|
|
|
|
|
|
|
if(this.allList[index].children[i].selected==0){ |
|
|
@@ -221,6 +262,7 @@ |
|
|
|
this.selectform.level='A'; |
|
|
|
this.form.level=1; |
|
|
|
} |
|
|
|
this.showSourceName = res.sourceName; |
|
|
|
// 获取置业需求 |
|
|
|
this.getListByType() |
|
|
|
}) |
|
|
|