소스 검색

客户新建调整

qymljy 1 년 전
부모
커밋
da58d55629
4개의 변경된 파일12개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 2
      src/Form/publicCustomer/add.vue
  2. 2 1
      src/Form/publicCustomer/edit.vue
  3. 4 2
      src/Form/salerPrivatecustomer/add.vue
  4. 2 1
      src/Form/salerPrivatecustomer/edit.vue

+ 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:{