From c284cfd4090a9c4ef221d3892aee163cf4bcd6fc Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 16 十月 2023 20:39:13 +0800
Subject: [PATCH] feat: 为销售机会创建跟进记录时,影藏客户状态,销售线索

---
 src/views/client/salesLead/AdvanceDialog.vue |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/views/client/salesLead/AdvanceDialog.vue b/src/views/client/salesLead/AdvanceDialog.vue
index 849f044..dfcfb56 100644
--- a/src/views/client/salesLead/AdvanceDialog.vue
+++ b/src/views/client/salesLead/AdvanceDialog.vue
@@ -95,18 +95,18 @@
   },
   methods: {
     setData(status) {
-      if (status === 1) {
-        this.options = ["鏂板缓", "澶辫触鍏抽棴", "鍗囩骇鍒板鎴�", "鍗囩骇鍒板鎴峰拰閿�鍞満浼�"]
-        this.value = "澶辫触鍏抽棴"
-        this.value1 = "澶辫触鍏抽棴"
-      } else if (status === -1) {
-        this.options = ["鏂板缓", "璺熻繘涓�", "鍗囩骇鍒板鎴�", "鍗囩骇鍒板鎴峰拰閿�鍞満浼�"]
-        this.value = "鍗囩骇鍒板鎴�"
-        this.value1 = "鍗囩骇鍒板鎴�"
-      } else {
+      if (status === 0) {
         this.options = ["璺熻繘涓�", "澶辫触鍏抽棴", "鍗囩骇鍒板鎴�", "鍗囩骇鍒板鎴峰拰閿�鍞満浼�"]
         this.value = "璺熻繘涓�"
         this.value1 = "璺熻繘涓�"
+      } else if (status === 1) {
+        this.options = ["澶辫触鍏抽棴", "鍗囩骇鍒板鎴�", "鍗囩骇鍒板鎴峰拰閿�鍞満浼�"]
+        this.value = "澶辫触鍏抽棴"
+        this.value1 = "澶辫触鍏抽棴"
+      } else if (status === -1) {
+        this.options = ["鍗囩骇鍒板鎴�", "鍗囩骇鍒板鎴峰拰閿�鍞満浼�"]
+        this.value = "鍗囩骇鍒板鎴�"
+        this.value1 = "鍗囩骇鍒板鎴�"
       }
     },
     handleClose() {
@@ -152,13 +152,14 @@
           type: "warning"
         })
           .then(() => {
-            this.editConfig.visible = true
             this.editConfig.title = "鏂板缓"
             this.editConfig.isSalesOpportunity = true
             this.editConfig.infomation = {
               ...this.commonConfig.infomation,
               sales_leads_id: this.commonConfig.infomation.id
             }
+            this.editConfig.infomation.codeStandID=''
+            this.editConfig.visible = true
           })
           .catch(() => {})
       }

--
Gitblit v1.8.0