|
@@ -62,17 +62,17 @@ |
|
|
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> |
|
|
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<!-- <view class="conmsg-msg-lab"> |
|
|
|
|
|
|
|
|
<view class="conmsg-msg-lab"> |
|
|
<view class="conmsg-msg-lab-1"> |
|
|
<view class="conmsg-msg-lab-1"> |
|
|
客户阶段 |
|
|
|
|
|
|
|
|
客户来源 |
|
|
</view> |
|
|
</view> |
|
|
<view class="conmsg-msg-lab-inp"> |
|
|
<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> |
|
|
<view class="conmsg-msg-lab-img"> |
|
|
<view class="conmsg-msg-lab-img"> |
|
|
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> |
|
|
<image class="screen-sel-img" src="../../../static/images/right.png" mode=""></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> --> |
|
|
|
|
|
|
|
|
</view> |
|
|
<view class="conmsg-msg-lab" style="border: none;"> |
|
|
<view class="conmsg-msg-lab" style="border: none;"> |
|
|
<view class="conmsg-msg-lab-1"> |
|
|
<view class="conmsg-msg-lab-1"> |
|
|
备注内容 |
|
|
备注内容 |
|
@@ -119,13 +119,18 @@ |
|
|
|
|
|
|
|
|
<!-- 客户等级 --> |
|
|
<!-- 客户等级 --> |
|
|
<u-select v-model="levelshow" :list="levellist" @confirm="levelshowCallback"></u-select> |
|
|
<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> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
const config = require("@/config"); |
|
|
export default{ |
|
|
export default{ |
|
|
data(){ |
|
|
data(){ |
|
|
return{ |
|
|
return{ |
|
|
|
|
|
Showhiddenunits: false, // 控制客户来源弹窗 |
|
|
form:{ |
|
|
form:{ |
|
|
name:'', |
|
|
name:'', |
|
|
sex:'1', |
|
|
sex:'1', |
|
@@ -133,7 +138,7 @@ |
|
|
chatNo:'', |
|
|
chatNo:'', |
|
|
level:'1', |
|
|
level:'1', |
|
|
remarks:'', |
|
|
remarks:'', |
|
|
|
|
|
|
|
|
|
|
|
sourceId: '' |
|
|
}, |
|
|
}, |
|
|
selectform:{ |
|
|
selectform:{ |
|
|
level:'A', |
|
|
level:'A', |
|
@@ -146,6 +151,8 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
list: [], // 客户来源数组 |
|
|
|
|
|
|
|
|
levelshow:false, |
|
|
levelshow:false, |
|
|
customerId:'', |
|
|
customerId:'', |
|
|
// 等级 |
|
|
// 等级 |
|
@@ -168,7 +175,8 @@ |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
allList:[], |
|
|
allList:[], |
|
|
dataCode:'' |
|
|
|
|
|
|
|
|
dataCode:'', |
|
|
|
|
|
projectId: '', // 楼盘ID |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(e) { |
|
|
onLoad(e) { |
|
@@ -179,9 +187,42 @@ |
|
|
console.log(e) |
|
|
console.log(e) |
|
|
// 先调用借口查询数据 |
|
|
// 先调用借口查询数据 |
|
|
this.customerId=e.id |
|
|
this.customerId=e.id |
|
|
|
|
|
if (e.projectId) this.projectId = e.projectId |
|
|
this.getdetail() |
|
|
this.getdetail() |
|
|
|
|
|
this.getFromSource() |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
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){ |
|
|
Edittag(item,item1,index,i){ |
|
|
|
|
|
|
|
|
if(this.allList[index].children[i].selected==0){ |
|
|
if(this.allList[index].children[i].selected==0){ |
|
@@ -221,6 +262,7 @@ |
|
|
this.selectform.level='A'; |
|
|
this.selectform.level='A'; |
|
|
this.form.level=1; |
|
|
this.form.level=1; |
|
|
} |
|
|
} |
|
|
|
|
|
this.showSourceName = res.sourceName; |
|
|
// 获取置业需求 |
|
|
// 获取置业需求 |
|
|
this.getListByType() |
|
|
this.getListByType() |
|
|
}) |
|
|
}) |
|
|