From ec77d5b6a4d6be3423b7723cf5e1333f599b0751 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 04 三月 2024 17:58:19 +0800
Subject: [PATCH] 销售机会模块 新建操作的时候,销售阶段默认为初期沟通+销售预测的币种默认人民币+产品管理部分币种隐藏

---
 src/views/sales/salesDetails/AddSalesDetailsDialog.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
index 0b87219..de79216 100644
--- a/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
+++ b/src/views/sales/salesDetails/AddSalesDetailsDialog.vue
@@ -868,7 +868,6 @@
         restaurants = this.subOrderList
       } else if (value === "quotation") {
           restaurants = this.quotationList
-        console.log(this.quotationList,'quotationList')
       }
       var results = queryString ? restaurants.filter(this.createStateFilter(queryString, value)) : restaurants
       cb(results)
@@ -887,8 +886,8 @@
       let params={}
       if(item){
         params={
-          page: 1,
-          pageSize: 15,
+          page: 0,
+          pageSize: 0,
         }
         params.search_map={
           client_id: item.id
@@ -928,7 +927,10 @@
       } else if (value === "chance") {
         this.saleChanceId = item.id
         this.editConfig.infomation.sale_chance_name = item.name
+        this.clientId = item.client.id
+        this.editConfig.infomation.client_name = item.client.name
         this.isAddQuatation = false
+        this.getSaleChanceList({id:this.clientId})
         this.getQuotation(item.id)
       } else if (value === "subbill") {
         console.log("涓嬫媺妗嗙偣鍑�", item)
@@ -939,6 +941,14 @@
         this.tableData = item.products
         this.editConfig.infomation.quotation_number = item.number
         this.quotationId = item.id
+         //鍙嶅悜 瀹㈡埛鍚嶇О
+         this.editConfig.infomation.client_name = item.client.name
+        this.clientId = item.client.id
+        this.getSaleChanceList({id:this.clientId})
+        //鍙嶅悜 閿�鍞満浼�
+        this.editConfig.infomation.sale_chance_name = item.sale_chance.name
+        this.saleChanceId = item.sale_chance.id
+        this.getQuotation(this.saleChanceId)
       }
     },
     selClientClick(value) {
@@ -1015,12 +1025,14 @@
         this.clientId = 0
         this.saleChanceId = 0
         this.subbillId = 0
+        this.getSaleChanceList()
       } else if (value === "chance") {
         this.editConfig.infomation.sale_chance_name = ""
         this.saleChanceId = 0
         this.isAddQuatation = true
         this.editConfig.infomation.quotation_number = ""
         this.quotationId = 0
+        this.getQuotation(this.saleChanceId)
       } else if (value === "subbill") {
         this.editConfig.infomation.subbill_name = ""
         this.subbillId = 0

--
Gitblit v1.8.0