Browse Source

客户新建调整

qymljy 1 year ago
parent
commit
da58d55629

+ 4 - 2
src/Form/publicCustomer/add.vue

@@ -507,7 +507,8 @@ export default {
         contactsinfo: {
           name: "",
           telephone: "",
-          phonenumber: ""
+          phonenumber: "",
+          oldcontactsid:""
         },
       },
       value:'',
@@ -933,6 +934,7 @@ export default {
     },
     /*选择企业联系人*/
     enterpriseContactSelect(val){
+      this.form.contactsinfo.oldcontactsid = val.contactsid
       this.form.contactsinfo.name = val.name
       if (val.phonenumber.indexOf('-') != '-1'){
         this.isPhone = false
@@ -970,7 +972,7 @@ export default {
     },
     /*选择我的联系人*/
     myContactSelect(val){
-
+      this.form.contactsinfo.oldcontactsid = 0
       this.form.contactsinfo.name = val.name
       if (val.phonenumber.indexOf('-') != '-1'){
         this.isPhone = false

+ 2 - 1
src/Form/publicCustomer/edit.vue

@@ -350,7 +350,8 @@ export default {
         contactsinfo: {
           name: "",
           telephone: "",
-          phonenumber: ""
+          phonenumber: "",
+          oldcontactsid:""
         }
       },
       rules:{

+ 4 - 2
src/Form/salerPrivatecustomer/add.vue

@@ -508,7 +508,8 @@ export default {
         contactsinfo: {
           name: "",
           telephone: "",
-          phonenumber: ""
+          phonenumber: "",
+          oldcontactsid:''
         },
       },
       value:'',
@@ -894,6 +895,7 @@ export default {
     },
     /*选择企业联系人*/
     enterpriseContactSelect(val){
+      this.form.contactsinfo.oldcontactsid = val.contactsid
       this.form.contactsinfo.name = val.name
       if (val.phonenumber.indexOf('-') != '-1'){
         this.isPhone = false
@@ -933,7 +935,7 @@ export default {
     },
     /*选择我的联系人*/
     myContactSelect(val){
-
+      this.form.contactsinfo.oldcontactsid = 0
       this.form.contactsinfo.name = val.name
       if (val.phonenumber.indexOf('-') != '-1'){
         this.isPhone = false

+ 2 - 1
src/Form/salerPrivatecustomer/edit.vue

@@ -295,7 +295,8 @@ export default {
         contactsinfo: {
           name: "",
           telephone: "",
-          phonenumber: ""
+          phonenumber: "",
+          oldcontactsid:""
         }
       },
       options:{