|
|
@ -27,9 +27,9 @@ |
|
|
<view class="title" style="margin-top: 20rpx;">基础信息</view> |
|
|
<view class="title" style="margin-top: 20rpx;">基础信息</view> |
|
|
<view class="input-style"> |
|
|
<view class="input-style"> |
|
|
|
|
|
|
|
|
<!--来源渠道--> |
|
|
<!--来源--> |
|
|
<fui-form-item |
|
|
<fui-form-item |
|
|
label="来源渠道" |
|
|
label="来源" |
|
|
asterisk asteriskPosition="right" |
|
|
asterisk asteriskPosition="right" |
|
|
labelSize='26' |
|
|
labelSize='26' |
|
|
prop="" |
|
|
prop="" |
|
|
@ -41,14 +41,16 @@ |
|
|
<view |
|
|
<view |
|
|
class="input-title" |
|
|
class="input-title" |
|
|
style="margin-right:14rpx;" |
|
|
style="margin-right:14rpx;" |
|
|
@click="openCicker(`source_channel`)"> |
|
|
@click="openCicker(`source`)"> |
|
|
{{ (formData.source_channel) ? picker_config.source_channel.text : '点击选择' }} |
|
|
{{ (formData.source) ? picker_config.source.text : '点击选择' }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
<!--来源--> |
|
|
|
|
|
|
|
|
<!--来源渠道--> |
|
|
<fui-form-item |
|
|
<fui-form-item |
|
|
label="来源" |
|
|
v-if="formData.source == 1" |
|
|
|
|
|
label="来源渠道" |
|
|
asterisk asteriskPosition="right" |
|
|
asterisk asteriskPosition="right" |
|
|
labelSize='26' |
|
|
labelSize='26' |
|
|
prop="" |
|
|
prop="" |
|
|
@ -60,11 +62,12 @@ |
|
|
<view |
|
|
<view |
|
|
class="input-title" |
|
|
class="input-title" |
|
|
style="margin-right:14rpx;" |
|
|
style="margin-right:14rpx;" |
|
|
@click="openCicker(`source`)"> |
|
|
@click="openCicker(`source_channel`)"> |
|
|
{{ (formData.source) ? picker_config.source.text : '点击选择' }} |
|
|
{{ (formData.source_channel) ? picker_config.source_channel.text : '点击选择' }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
|
|
|
|
|
|
<!--顾问--> |
|
|
<!--顾问--> |
|
|
<!-- |
|
|
<!-- |
|
|
<fui-form-item |
|
|
<fui-form-item |
|
|
@ -188,6 +191,7 @@ |
|
|
backgroundColor="#434544" |
|
|
backgroundColor="#434544" |
|
|
size="26" |
|
|
size="26" |
|
|
color="#fff" |
|
|
color="#fff" |
|
|
|
|
|
@blur="handlePhoneBlur" |
|
|
></fui-input> |
|
|
></fui-input> |
|
|
</view> |
|
|
</view> |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
@ -1075,8 +1079,44 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//联系电话失去焦点时间 |
|
|
|
|
|
async handlePhoneBlur(){ |
|
|
|
|
|
if(!this.formData.phone_number){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.clientUserList = [] |
|
|
|
|
|
|
|
|
|
|
|
let param = { |
|
|
|
|
|
phone_number:this.formData.phone_number |
|
|
|
|
|
} |
|
|
|
|
|
let res = await apiRoute.xs_getAllCustomerResources(param) |
|
|
|
|
|
if(res.code != 1){ |
|
|
|
|
|
if(res.msg == '暂无数据'){ |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res.msg, |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
console.log('查重',res) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.clientUserList = res.data |
|
|
|
|
|
|
|
|
|
|
|
if(this.clientUserList.length == 1){ |
|
|
|
|
|
if (this.clientUserList[0].id == this.formData.id) { |
|
|
|
|
|
//查重后的手机号是自己,就不展示查重结果了 |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.openDuplicateCheck() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1180,6 +1220,13 @@ export default { |
|
|
let input_name = this.picker_input_name |
|
|
let input_name = this.picker_input_name |
|
|
this.formData[input_name] = e.value |
|
|
this.formData[input_name] = e.value |
|
|
this.picker_config[input_name]['text'] = e.text |
|
|
this.picker_config[input_name]['text'] = e.text |
|
|
|
|
|
if(input_name == 'source'){ |
|
|
|
|
|
if(e.value != 1){ |
|
|
|
|
|
this.formData.source_channel = '0'//0=线下 |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.formData.source_channel = ''//线下 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
this.cancelCicker() |
|
|
this.cancelCicker() |
|
|
}, |
|
|
}, |
|
|
//关闭下拉选择器 |
|
|
//关闭下拉选择器 |
|
|
@ -1220,6 +1267,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//表单验证 |
|
|
//表单验证 |
|
|
async validatorForm(data) { |
|
|
async validatorForm(data) { |
|
|
|
|
|
console.log('tijiao',data) |
|
|
|
|
|
|
|
|
//客户基础信息 |
|
|
//客户基础信息 |
|
|
//来源渠道 |
|
|
//来源渠道 |
|
|
|