From 28e0aa1d40bff8985ac3e662d3a7726594d919c3 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期一, 14 八月 2023 19:45:26 +0800
Subject: [PATCH] 销售机会联调及bug修复

---
 src/views/sales/salesOpportunity/index.vue |   25 ++++---------------------
 1 files changed, 4 insertions(+), 21 deletions(-)

diff --git a/src/views/sales/salesOpportunity/index.vue b/src/views/sales/salesOpportunity/index.vue
index 6a1ded9..277db73 100644
--- a/src/views/sales/salesOpportunity/index.vue
+++ b/src/views/sales/salesOpportunity/index.vue
@@ -141,7 +141,7 @@
           { label: "瀹㈡埛鍚嶇О", prop: "client_name", min: 90, isClientClick: true }, // 瀹㈡埛鍚嶇О
           { label: "閿�鍞満浼氱紪鍙�", prop: "number" }, // 閿�鍞満浼氱紪鍙�
           { label: "鑱旂郴浜哄鍚�", prop: "contact_name", min: 100, isContactClick: true }, // 鑱旂郴浜哄鍚�
-          { label: "閿�鍞樁娈�", prop: "sale_stage" }, // 閿�鍞樁娈�
+          { label: "閿�鍞樁娈�", prop: "sale_stage_name" }, // 閿�鍞樁娈�
           { label: "鍙兘鎬�(%)", prop: "possibilities" }, // 鍙兘鎬�
           { label: "棰勮鎴愪氦鏃ユ湡", prop: "expected_time", isTime: true, min: 130 }, // 棰勮鎴愪氦鏃ユ湡
           { label: "棰勮鍚堝悓閲戦", prop: "projected_amount" }, // 棰勮鍚堝悓閲戦
@@ -172,7 +172,8 @@
                 return {
                   ...item,
                   client_name: item.client.name,
-                  contact_name: item.contact.name
+                  contact_name: item.contact.name,
+                  sale_stage_name: item.sale_stage.name
                 }
               })
               this.tableList.tableInfomation = list || []
@@ -207,7 +208,7 @@
     addBtnClick() {
       this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
-      this.editConfig.infomation = {}
+      this.editConfig.infomation = { city_id: 0 }
     },
     // 缂栬緫
     handleClick(row) {
@@ -218,24 +219,6 @@
     },
     // 鍒犻櫎
     delClick() {
-      // this.$confirm("鏄惁纭鍒犻櫎?", "璀﹀憡", {
-      //   confirmButtonText: "纭畾",
-      //   cancelButtonText: "鍙栨秷",
-      //   type: "warning"
-      // })
-      //   .then(function () {
-      //     return getDelSaleChance({ id: id })
-      //   })
-      //   .then((response) => {
-      //     if (response.code === 200) {
-      //       this.$message.success("鍒犻櫎鎴愬姛")
-      //       this.getData()
-      //     } else {
-      //       this.$message.warning("鍒犻櫎澶辫触")
-      //     }
-      //   })
-      //   .catch(function () {})
-
       if (this.selValueList && this.selValueList.length > 0) {
         this.$confirm("鏄惁纭鍒犻櫎?", "璀﹀憡", {
           confirmButtonText: "纭畾",

--
Gitblit v1.8.0