Explorar o código

销售线索,转化客户调整

qymljy hai 7 meses
pai
achega
f7ee340924

+ 7 - 1
src/SManagement/orderclue/components/add.vue

@@ -242,6 +242,9 @@ export default {
           "areaCode":'',
           "telephone":'',
           "isTelephone":'0',
+          "co_name":'',//法人
+          "co_phonenumber":'',//联系电话
+          "co_taxno":'',//税号
         }
       },
       unitnameList:[],
@@ -457,7 +460,7 @@ export default {
       this.activityVisible = false
     },
     /*工商信息*/
-    businessSelect(val, regProvince) {
+    businessSelect(val, regProvince,legalPerson) {
       this.$confirm(this.$t('是否以查询的工商信息更新客户信息')+'?', this.$t('提示'), {
         confirmButtonText: this.$t('确定'),
         cancelButtonText: this.$t('取消'),
@@ -470,6 +473,9 @@ export default {
         this.param.content.province = [regProvince, val.regCity, val.regArea];
         this.param.content.city = val.regCity;
         this.param.content.county = val.regArea
+        this.param.content.co_name = val.legalPerson
+        this.param.content.co_phonenumber = val.phone
+        this.param.content.co_taxno = val.taxNum
       }).catch(() => {
         this.$refs.businessRef.businessShow = false;
         this.$message({

+ 6 - 0
src/SManagement/orderclue/components/edit.vue

@@ -238,6 +238,9 @@ export default {
         "areaCode":'',
         "telephone":'',
         "isTelephone":'0',
+        "co_name":'',//法人
+        "co_phonenumber":'',//联系电话
+        "co_taxno":'',//税号
       },
       rules: {
         phonenumber: [
@@ -453,6 +456,9 @@ export default {
         this.param.province = [regProvince, val.regCity, val.regArea];
         this.param.city = val.regCity;
         this.param.county = val.regArea
+        this.param.co_name = val.legalPerson
+        this.param.co_phonenumber = val.phone
+        this.param.co_taxno = val.taxNum
       }).catch(() => {
         this.$refs.businessRef.businessShow = false;
         this.$message({

+ 3 - 0
src/SManagement/orderclue_detail/components/changeCustomer.vue

@@ -468,6 +468,9 @@ export default {
       this.value = [this.form.province,this.form.city,this.form.county]
       this.form.contactsinfo.name = this.data.name
       this.form.enterprisename = this.form.enterprisename_customer
+      this.form.taxno = this.data.co_taxno
+      this.form.contact = this.data.co_name
+      this.form.phonenumber = this.data.co_phonenumber
       /*this.form.contactsinfo.phonenumber = this.data.phonenumber*/
       if (this.data.phonenumber.indexOf('-') != '-1'){
         this.isPhone = false

+ 1 - 1
src/template/businessInquiry/index.vue

@@ -73,7 +73,7 @@ export default {
           "companyName":val.companyName
         },
       })
-      this.$emit('businessData',res.data,val.regProvince)
+      this.$emit('businessData',res.data,val.regProvince,val.legalPerson)
     }
   }