From ec5c4dd55d910d216957f6fbbab4aca7a957e5cc Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 16 十月 2023 19:43:01 +0800
Subject: [PATCH] 客户推进时,配置客户规则的bug+销售机会 更加记录规则的bug

---
 src/views/service/serviceContract/index.vue |   37 ++++++++++++++++++++++++++++++-------
 1 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/src/views/service/serviceContract/index.vue b/src/views/service/serviceContract/index.vue
index 08cd136..5e1974b 100644
--- a/src/views/service/serviceContract/index.vue
+++ b/src/views/service/serviceContract/index.vue
@@ -198,13 +198,36 @@
     // 璇锋眰鏁版嵁
     async getData() {
       this.loading = true
-      await getServiceContractList({
-        keyword: this.keyword,
-        keywordType: this.keywordType,
-        page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize,
-        contactId:this.addConfig.client_id
-      })
+      let params = {}
+      console.log(this.addConfig)
+      if (this.addConfig.id && this.addConfig.keywordType === "閿�鍞満浼�") {
+        params = {
+          saleChanceId: this.addConfig.id,
+          page: this.pagerOptions.currPage,
+          pageSize: this.pagerOptions.pageSize
+        }
+      } else if (this.addConfig.id && this.addConfig.keywordType === "閿�鍞槑缁嗗崟") {
+        params = {
+          salesDetailsId: this.addConfig.id,
+          page: this.pagerOptions.currPage,
+          pageSize: this.pagerOptions.pageSize
+        }
+      } else if (this.addConfig.id && this.addConfig.keywordType === "鎶ヤ环鍗�") {
+        params = {
+          quotationId: this.addConfig.id,
+          page: this.pagerOptions.currPage,
+          pageSize: this.pagerOptions.pageSize
+        }
+      } else {
+        params = {
+          keyword: this.keyword,
+          keywordType: this.keywordType,
+          page: this.pagerOptions.currPage,
+          pageSize: this.pagerOptions.pageSize,
+          contactId: this.addConfig.client_id
+        }
+      }
+      await getServiceContractList(params)
         .then((res) => {
           console.log(res)
           if (res.code === 200) {

--
Gitblit v1.8.0