From f417dc0a44d225d4ed19bcb5207250eb1b669455 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期五, 25 八月 2023 12:45:09 +0800
Subject: [PATCH] bug修复

---
 src/views/client/salesLead/AddSalesLeadDialog.vue |   67 +++++++++++++--------------------
 1 files changed, 27 insertions(+), 40 deletions(-)

diff --git a/src/views/client/salesLead/AddSalesLeadDialog.vue b/src/views/client/salesLead/AddSalesLeadDialog.vue
index 83da223..db84fa9 100644
--- a/src/views/client/salesLead/AddSalesLeadDialog.vue
+++ b/src/views/client/salesLead/AddSalesLeadDialog.vue
@@ -30,8 +30,8 @@
                   <el-input v-model="editConfig.infomation.number"></el-input>
                 </el-form-item>
               </el-col>
-            </el-row>
-            <el-row>
+              <!-- </el-row>
+            <el-row> -->
               <el-col :span="12">
                 <el-form-item label="鑱旂郴浜哄鍚�" prop="contact_name">
                   <el-input v-model="editConfig.infomation.contact_name"></el-input>
@@ -42,8 +42,8 @@
                   <el-input v-model="editConfig.infomation.contact_position"></el-input>
                 </el-form-item>
               </el-col>
-            </el-row>
-            <el-row>
+              <!-- </el-row>
+            <el-row> -->
               <el-col :span="12">
                 <el-form-item label="鎵嬫満鍙风爜" prop="contact_phone">
                   <el-input
@@ -179,19 +179,19 @@
                   </div>
                 </el-form-item>
               </el-col> -->
-            </el-row>
-            <!-- <el-row>
+              <!-- </el-row> -->
+              <!-- <el-row> -->
               <el-col :span="24">
-                <el-form-item label="鍦板潃" prop="address">
+                <el-form-item label="璇︾粏鍦板潃" prop="detail_address">
                   <el-input
                     type="textarea"
                     :autosize="{ minRows: 2, maxRows: 4 }"
                     placeholder="璇疯緭鍏ュ唴瀹�"
-                    v-model="editConfig.infomation.address"
+                    v-model="editConfig.infomation.detail_address"
                   ></el-input>
                 </el-form-item>
               </el-col>
-            </el-row> -->
+            </el-row>
           </div>
           <!-- 澶囨敞淇℃伅 -->
           <div v-if="isUnflod" class="basic-info-title">澶囨敞淇℃伅</div>
@@ -331,41 +331,28 @@
             number: this.editConfig.infomation.number || "",
             province_id: this.editConfig.infomation.province_id || 0,
             region_id: this.editConfig.infomation.region_id || 0,
-            sales_sources_id: this.editConfig.infomation.sales_sources_id || 0
+            sales_sources_id: this.editConfig.infomation.sales_sources_id || 0,
+            detail_address: this.editConfig.infomation.detail_address || ""
           }
           console.log(params)
           if (this.editConfig.title === "鏂板缓") {
-            getAddSalesLeads(params)
-              .then((res) => {
-                console.log(res)
-                this.editConfig.visible = false
-                if (res.code === 200) {
-                  this.$message({
-                    message: "娣诲姞鎴愬姛",
-                    type: "success"
-                  })
-                  this.$parent.getData()
-                }
-              })
-              .catch((err) => {
-                console.log(err)
-              })
+            getAddSalesLeads(params).then((res) => {
+              console.log(res)
+              this.editConfig.visible = false
+              if (res.code === 200) {
+                this.$message.success("娣诲姞鎴愬姛")
+                this.$parent.getData()
+              }
+            })
           } else {
-            getUpdateSalesLeads(params)
-              .then((res) => {
-                console.log(res)
-                this.editConfig.visible = false
-                if (res.code === 200) {
-                  this.$message({
-                    message: "缂栬緫鎴愬姛",
-                    type: "success"
-                  })
-                  this.$parent.getData()
-                }
-              })
-              .catch((err) => {
-                console.log(err)
-              })
+            getUpdateSalesLeads(params).then((res) => {
+              console.log(res)
+              this.editConfig.visible = false
+              if (res.code === 200) {
+                this.$message.success("缂栬緫鎴愬姛")
+                this.$parent.getData()
+              }
+            })
           }
         } else {
           console.log("error submit")

--
Gitblit v1.8.0