فهرست منبع

销售线索转化客户调整

qymljy 1 سال پیش
والد
کامیت
c40c6ebe18
1فایلهای تغییر یافته به همراه14 افزوده شده و 1 حذف شده
  1. 14 1
      src/SManagement/orderclue_detail/components/changeCustomer.vue

+ 14 - 1
src/SManagement/orderclue_detail/components/changeCustomer.vue

@@ -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()