From 191c8a8cfbf22395ad8256dc41538a46ce7af94c Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 04 一月 2024 18:46:02 +0800
Subject: [PATCH] 销售 报价单目前是查询的对应的客户下的报价单,没有依赖于销售机会,修改为报价单依赖于选择的销售机会的查询

---
 src/views/other/commonDialog/SelectCommonDialog.vue |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/views/other/commonDialog/SelectCommonDialog.vue b/src/views/other/commonDialog/SelectCommonDialog.vue
index 4da1e9c..2a0acf5 100644
--- a/src/views/other/commonDialog/SelectCommonDialog.vue
+++ b/src/views/other/commonDialog/SelectCommonDialog.vue
@@ -29,6 +29,7 @@
           </div>
         </div>
         <TableCommonView
+        class="bg-list"
           ref="tableListRef"
           :table-list="tableList"
           :select-box="editCommonConfig.isSelectBox"
@@ -74,6 +75,7 @@
           isSelectBox:false,
           title: "",
           clientId: 0,
+          isRequest:true,
           client_name: "",
           tableInfomation: []
         }
@@ -175,6 +177,7 @@
         this.showCol = ["鎶ヤ环鍗曞彿", "閿�鍞礋璐d汉"]
         this.tableList = {
           selectIndex: true,
+
           tableInfomation: [],
           allcol: [],
           showcol: this.showCol,
@@ -347,6 +350,16 @@
     },
     // 鎶ヤ环鍗�
     async getQuotationList() {
+      if(!this.editConfig.isRequest){
+        this.tableList.tableInfomation =this.editConfig.tableInfomation.map((item) => {
+              return {
+                ...item,
+                member_name: item.member.username
+              }
+            })
+        this.pagerOptions.totalCount =this.editConfig.count?this.editConfig.count:0
+        return true;
+      }
       await getQuotationList({
         search_map: this.search_map,
         page: this.pagerOptions.currPage,
@@ -552,6 +565,9 @@
 <style lang="scss" scoped>
 .bg-view {
   margin: 10px;
+  .bg-list{
+    min-height:370px;
+    }
   .query-bg {
     margin-left: -20px;
     margin-bottom: 10px;
@@ -563,6 +579,7 @@
         width: 100px;
       }
     }
+   
     .btn {
       float: right;
     }

--
Gitblit v1.8.0