|
|
@@ -301,7 +301,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">
|
|
|
@@ -313,9 +313,9 @@
|
|
|
<el-radio v-model="isPhone" :label="false" @change="phoneChang('座机')">座机电话</el-radio>
|
|
|
</el-button-group>
|
|
|
<div style="width: 100%">
|
|
|
- <el-input v-model="areaCode" placeholder="请输入区号" style="width:25%;margin-top: 10px" @input="telephoneChange"></el-input>
|
|
|
+ <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:68%;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>
|
|
|
@@ -700,30 +700,16 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
onClose () {
|
|
|
+ this.form.contactsinfo.telephone = ''
|
|
|
+ this.form.contactsinfo.phonenumber = ''
|
|
|
+ this.isPhone = true
|
|
|
this.$refs['form'].resetFields();
|
|
|
- /* this.form = {
|
|
|
- sa_customersid:0,
|
|
|
- sys_enterpriseid:0,
|
|
|
- enterprisename:'',
|
|
|
- type:'',
|
|
|
- source:'',
|
|
|
- parentid:0,
|
|
|
- superiorenterprisename:'',
|
|
|
- abbreviation:'',
|
|
|
- taxno:'',
|
|
|
- customergrade:'',
|
|
|
- industry:'',
|
|
|
- phonenumber:'',
|
|
|
- province:'',
|
|
|
- city:'',
|
|
|
- county:'',
|
|
|
- address:'',
|
|
|
- ispublic:0
|
|
|
- }*/
|
|
|
this.dialogFormVisible = false
|
|
|
this.checkResults = ''
|
|
|
this.value = ''
|
|
|
this.businessShow = false
|
|
|
+ this.areaCode = ''
|
|
|
+ this.telephone = ''
|
|
|
this.$emit('onSuccess')
|
|
|
},
|
|
|
/*客户类型列表*/
|
|
|
@@ -962,8 +948,15 @@ 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 = ''
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|