|
|
@@ -379,7 +379,20 @@ export default {
|
|
|
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.form.contactsinfo.phonenumber = this.data.phonenumber*/
|
|
|
+ if (this.data.phonenumber.indexOf('-') != '-1'){
|
|
|
+ this.isPhone = false
|
|
|
+ this.areaCode = this.data.phonenumber.substring(0,this.data.phonenumber.indexOf('-'))
|
|
|
+ this.telephone = this.data.phonenumber.substring(this.areaCode.length+1)
|
|
|
+ this.form.contactsinfo.telephone = this.areaCode + '-' + this.telephone
|
|
|
+ this.form.contactsinfo.phonenumber = ''
|
|
|
+ }else {
|
|
|
+ this.isPhone = true
|
|
|
+ this.form.contactsinfo.phonenumber = this.data.phonenumber
|
|
|
+ this.form.contactsinfo.telephone = ''
|
|
|
+ this.areaCode = ''
|
|
|
+ this.telephone = ''
|
|
|
+ }
|
|
|
this.gradeList()
|
|
|
this.industryList()
|
|
|
this.typeList()
|