|
|
@@ -40,8 +40,7 @@ |
|
|
|
<view class="title" style="border: none;" @click="Buildingselection()"> |
|
|
|
<view class="titletext">客户来源</view> |
|
|
|
<view class="titletext2" style="font-size: 30rpx;font-weight: 400;color: #B2B2B2;line-height: 90rpx;padding-left: 10rpx;"> |
|
|
|
<!-- {{parames.sourceName||'请选择客户来源'}} --> |
|
|
|
<text v-if="parames.sourceName" style="color: #333333;">{{parames.sourceName}}</text> |
|
|
|
<text v-if="parames.sourceId" style="color: #333333;">{{showSourceName}}</text> |
|
|
|
<text v-else>请选择客户来源</text> |
|
|
|
</view> |
|
|
|
<view class="titleimg"> |
|
|
@@ -68,12 +67,11 @@ |
|
|
|
<view class="clive" v-if="saveisshow" @click.stop="save">确定</view> |
|
|
|
<view class="clive2" v-else >确定</view> |
|
|
|
|
|
|
|
<view v-if="Showhiddenunits"> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select> |
|
|
|
</view> |
|
|
|
<view v-if="Showhid"> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhid" mode="single-column" :list="freeList" @cancel="cancel1" @confirm="confirm1"></u-select> |
|
|
|
</view> |
|
|
|
<!-- <view v-if="Showhiddenunits"> --> |
|
|
|
<!-- <u-select v-model="show" :list="list"></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> --> |
|
|
|
<u-select :mask-close-able="false" v-model="Showhid" mode="single-column" :list="freeList" @cancel="cancel1" @confirm="confirm1"></u-select> |
|
|
|
<u-modal v-model="show" :mask-close-able="true" :title="'代接待提醒'" :confirm-text="confirmtext" :cancel-text='canceltext' @cancel="confirmA" @confirm="confirmB" :show-cancel-button='true' :content="content"></u-modal> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@@ -87,8 +85,8 @@ |
|
|
|
return { |
|
|
|
Showhiddenunits:false, |
|
|
|
list: [ |
|
|
|
{label: '自然到访',value:'自然到访'}, |
|
|
|
{label: '渠道推荐',value:'渠道推荐'}, |
|
|
|
// {label: '自然到访',value:'自然到访'}, |
|
|
|
// {label: '渠道推荐',value:'渠道推荐'}, |
|
|
|
], |
|
|
|
parames: { |
|
|
|
name: '', |
|
|
@@ -96,12 +94,13 @@ |
|
|
|
sex: 1, |
|
|
|
phone: '', |
|
|
|
source: null, |
|
|
|
sourceName: null, |
|
|
|
sourceId: null, |
|
|
|
howMany: 1, |
|
|
|
agentId:null, |
|
|
|
projectId:'', |
|
|
|
replaceReception:0 |
|
|
|
}, |
|
|
|
showSourceName: '', // 展示文字 |
|
|
|
shifoinfo:0, |
|
|
|
freeList:[], |
|
|
|
Showhid:false, |
|
|
@@ -115,12 +114,33 @@ |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
onShow: function() { |
|
|
|
onShow() { |
|
|
|
this.parames.projectId=uni.getStorageSync('buildingID').id; |
|
|
|
this.init() |
|
|
|
this.getFreeList(); |
|
|
|
this.getFromSource(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 获取客户来源 |
|
|
|
getFromSource() { |
|
|
|
uni.request({ |
|
|
|
url: config.service.sourceList+"?houseId="+this.parames.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.shifoinfo=data.data.data.selfAssigned |
|
|
|
this.list = data.data.data |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//取消 |
|
|
|
confirmA(){ |
|
|
|
if(this.daitiReceptionobj.assign!=null){ |
|
|
@@ -261,7 +281,8 @@ |
|
|
|
this.Showhiddenunits=false; |
|
|
|
}, |
|
|
|
confirm(e) { |
|
|
|
this.parames.sourceName=e[0].value; |
|
|
|
this.showSourceName = e[0].label; |
|
|
|
this.parames.sourceId=e[0].value; |
|
|
|
this.Showhiddenunits=false; |
|
|
|
}, |
|
|
|
init(){ |
|
|
|