|
|
@ -11,13 +11,13 @@ |
|
|
|
|
|
|
|
|
<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 label="学员姓名" asterisk asteriskPosition="right" labelSize='26' prop="name" background='#434544' labelColor='#fff' :bottomBorder='false'> |
|
|
<fui-form-item label="学员姓名" asterisk asteriskPosition="right" labelSize='26' prop="student_name" background='#434544' labelColor='#fff' :bottomBorder='false'> |
|
|
<view class="input-title" style="margin-right:14rpx;" > |
|
|
<view class="input-title" style="margin-right:14rpx;" > |
|
|
<fui-input :borderBottom="false" :padding="[0]" placeholder="点击填写" v-model="formData.student_name" backgroundColor="#434544" size="26" color="#fff"></fui-input> |
|
|
<fui-input :borderBottom="false" :padding="[0]" placeholder="点击填写" v-model="formData.student_name" backgroundColor="#434544" size="26" color="#fff"></fui-input> |
|
|
</view> |
|
|
</view> |
|
|
</fui-form-item> |
|
|
</fui-form-item> |
|
|
|
|
|
|
|
|
<fui-form-item label="学员手机号" asterisk asteriskPosition="right" labelSize='26' prop="name" background='#434544' labelColor='#fff' :bottomBorder='false'> |
|
|
<fui-form-item label="学员手机号" asterisk asteriskPosition="right" labelSize='26' prop="student_phone" background='#434544' labelColor='#fff' :bottomBorder='false'> |
|
|
<view class="input-title" style="margin-right:14rpx;" > |
|
|
<view class="input-title" style="margin-right:14rpx;" > |
|
|
<fui-input :borderBottom="false" :padding="[0]" placeholder="点击填写" v-model="formData.student_phone" backgroundColor="#434544" size="26" color="#fff"></fui-input> |
|
|
<fui-input :borderBottom="false" :padding="[0]" placeholder="点击填写" v-model="formData.student_phone" backgroundColor="#434544" size="26" color="#fff"></fui-input> |
|
|
</view> |
|
|
</view> |
|
|
@ -173,8 +173,23 @@ import commonApi from '@/api/common.js'; |
|
|
switchChange_type: 1, |
|
|
switchChange_type: 1, |
|
|
rules, |
|
|
rules, |
|
|
formData: { |
|
|
formData: { |
|
|
|
|
|
|
|
|
|
|
|
student_name:'',//学员姓名* |
|
|
|
|
|
student_phone:'',//学员手机号* |
|
|
|
|
|
age:'',//年龄* |
|
|
|
|
|
school_name:'',//学校 |
|
|
|
|
|
grade:'',//年级 |
|
|
|
|
|
class_name:'',//班级 |
|
|
|
|
|
customer_source:'',//客户来源* |
|
|
|
|
|
add_staff_id:'',//归属人员id* |
|
|
|
|
|
contact_name:'',//联系人* |
|
|
|
|
|
province_id:'',//所在地区-省 |
|
|
|
|
|
city_id:'',//所在地区-市 |
|
|
|
|
|
district_id:'',//所在地区-区 |
|
|
|
|
|
full_address:'',//所在地区中文名 |
|
|
|
|
|
community_name:'',//小区 |
|
|
customer_tags_name:'',//选中的标签名称,多个用,号分割 |
|
|
customer_tags_name:'',//选中的标签名称,多个用,号分割 |
|
|
customer_tags:[], |
|
|
customer_tags:['2','3'],//客户标签 |
|
|
}, |
|
|
}, |
|
|
show_date: false, |
|
|
show_date: false, |
|
|
result_date: '', |
|
|
result_date: '', |
|
|
@ -289,15 +304,18 @@ import commonApi from '@/api/common.js'; |
|
|
options_customer_tags:[ |
|
|
options_customer_tags:[ |
|
|
{ |
|
|
{ |
|
|
text: '标签1', |
|
|
text: '标签1', |
|
|
value: '1' |
|
|
value: '1', |
|
|
|
|
|
checked:false,//是否选中"true=是,false=否 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: '标签2', |
|
|
text: '标签2', |
|
|
value: '2' |
|
|
value: '2', |
|
|
|
|
|
checked:false,//是否选中 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: '标签3', |
|
|
text: '标签3', |
|
|
value: '3' |
|
|
value: '3', |
|
|
|
|
|
checked:false,//是否选中 |
|
|
} |
|
|
} |
|
|
],//客户标签可选值 |
|
|
],//客户标签可选值 |
|
|
|
|
|
|
|
|
@ -439,6 +457,12 @@ import commonApi from '@/api/common.js'; |
|
|
e.options.forEach((v,k)=>{ |
|
|
e.options.forEach((v,k)=>{ |
|
|
customer_tags_arr.push(v.value) |
|
|
customer_tags_arr.push(v.value) |
|
|
customer_tags_name_arr.push(v.text) |
|
|
customer_tags_name_arr.push(v.text) |
|
|
|
|
|
//根据v.value 设置this.options_customer_tags中对应元素的checked属性为true |
|
|
|
|
|
this.options_customer_tags.forEach((v,k)=>{ |
|
|
|
|
|
if(v.value == v.value){ |
|
|
|
|
|
v.checked = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
this.formData.customer_tags_name = customer_tags_name_arr.join(',')//数组转字符串 |
|
|
this.formData.customer_tags_name = customer_tags_name_arr.join(',')//数组转字符串 |
|
|
|