From 2260b47026088827f177bec0931ded0fd73d97ba Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期二, 26 三月 2024 10:48:43 +0800
Subject: [PATCH] 销售明细单发货弹窗样式优化

---
 src/views/sales/quotation/AddQuotationDialog.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/sales/quotation/AddQuotationDialog.vue b/src/views/sales/quotation/AddQuotationDialog.vue
index a1c541e..8bd4326 100644
--- a/src/views/sales/quotation/AddQuotationDialog.vue
+++ b/src/views/sales/quotation/AddQuotationDialog.vue
@@ -620,12 +620,17 @@
       }
     },
     handleSelectClient(value, item) {
-      console.log(value)
+      console.log(item,'item')
       if (value === "client") {
         this.clientId = item.id
+        this.editConfig.infomation.client_name = item.name
         this.getSaleChanceList(item)
       } else if (value === "chance") {
         this.saleChanceId = item.id
+        this.editConfig.infomation.sale_chance_name = item.name
+        this.editConfig.infomation.client_name = item.client.name
+        this.clientId = item.client.id
+        this.getSaleChanceList({id:this.clientId})
         this.productTableList.tableData = item.products ? item.products : []
         this.tableData = item.products ? item.products : []
       } else {
@@ -666,13 +671,16 @@
       if (value === "client") {
         this.editConfig.infomation.client_name = ""
         this.clientId = 0
+        this.getSaleChanceList()
       } else if (value === "chance") {
         this.editConfig.infomation.sale_chance_name = ""
         this.saleChanceId = 0
+        this.getSaleChanceList({id:this.clientId})
       } else {
         this.editConfig.infomation.contact_name = ""
         this.contactId = 0
       }
+      
       this.productTableList.tableData = []
       this.tableData = []
       this.refresh()
@@ -682,8 +690,8 @@
       let params={}
       if(item){
         params={
-          page: 1,
-          pageSize: 15,
+          page: 0,
+          pageSize: 0,
         }
         params.search_map={
           client_id: item.id

--
Gitblit v1.8.0