|
@@ -251,7 +251,7 @@
|
|
|
<el-radio v-model="isPhone" :label="true" @change="phoneChang('手机')">手机号</el-radio>
|
|
|
<el-radio v-model="isPhone" :label="false" @change="phoneChang('座机')">座机电话</el-radio>
|
|
|
</el-button-group>
|
|
|
- <el-input v-model="form.contactsinfo.phonenumber" placeholder="请输入手机号" style="width: 100%;margin-top: 10px" ></el-input>
|
|
|
+ <el-input v-model="form.contactsinfo.phonenumber" placeholder="请输入手机号" style="width: 100%;margin-top: 10px" @input="telephoneChange('手机')"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" v-if="!isPhone">
|
|
@@ -262,10 +262,10 @@
|
|
|
<el-radio v-model="isPhone" :label="true" @change="phoneChang('手机')">手机号</el-radio>
|
|
|
<el-radio v-model="isPhone" :label="false" @change="phoneChang('座机')">座机电话</el-radio>
|
|
|
</el-button-group>
|
|
|
- <div>
|
|
|
- <el-input v-model="areaCode" placeholder="请输入区号" style="width:100px;margin-top: 10px" @input="telephoneChange"></el-input>
|
|
|
+ <div style="width: 100%">
|
|
|
+ <el-input v-model="areaCode" placeholder="请输入区号" style="width:25%;margin-top: 10px" @input="telephoneChange('座机')"></el-input>
|
|
|
<span style="color: #999999">——</span>
|
|
|
- <el-input v-model="telephone" placeholder="请输入座机电话" style="width:345px;margin-top: 10px" @input="telephoneChange"></el-input>
|
|
|
+ <el-input v-model="telephone" placeholder="请输入座机电话" style="width:68%;margin-top: 10px" @input="telephoneChange('座机')"></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -521,6 +521,8 @@ export default {
|
|
|
this.form = Object.assign({},this.form,this.data)
|
|
|
this.form.source = this.form.cluesource
|
|
|
this.value = [this.form.province,this.form.city,this.form.county]
|
|
|
+ this.form.contactsinfo.name = this.data.name
|
|
|
+ this.form.contactsinfo.phonenumber = this.data.phonenumber
|
|
|
this.gradeList()
|
|
|
this.industryList()
|
|
|
this.typeList()
|
|
@@ -788,6 +790,8 @@ export default {
|
|
|
this.isPhone = true
|
|
|
this.form.contactsinfo.phonenumber = val.phonenumber
|
|
|
this.form.contactsinfo.telephone = ''
|
|
|
+ this.areaCode = ''
|
|
|
+ this.telephone = ''
|
|
|
}
|
|
|
this.enterpriseContact.show = false
|
|
|
},
|
|
@@ -839,8 +843,16 @@ export default {
|
|
|
this.myContacts.param.content.pageNumber = val
|
|
|
this.myContactList()
|
|
|
},
|
|
|
- telephoneChange(){
|
|
|
- this.form.contactsinfo.telephone = this.areaCode + '-' + this.telephone
|
|
|
+ telephoneChange(val){
|
|
|
+ if (val === '座机'){
|
|
|
+ this.form.contactsinfo.phonenumber = ''
|
|
|
+ this.form.contactsinfo.telephone = this.areaCode + '-' + this.telephone
|
|
|
+ }else {
|
|
|
+ this.form.contactsinfo.telephone = ''
|
|
|
+ this.areaCode = ''
|
|
|
+ this.telephone = ''
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|