From e2faef4edc8c200b20d9a82206755042dbe5fead Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期二, 27 五月 2025 13:33:59 +0800
Subject: [PATCH] 销售台账、开票登记子表单功能修改

---
 src/views/salesManagement/salesLedger/index.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index d58321b..3c2ff8e 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -53,7 +53,7 @@
         <el-table-column label="涓氬姟鍛�" prop="salesman" show-overflow-tooltip/>
         <el-table-column label="椤圭洰鍚嶇О" prop="projectName" show-overflow-tooltip/>
         <el-table-column label="鍚堝悓閲戦(鍏�)" prop="contractAmount" show-overflow-tooltip/>
-        <el-table-column label="褰曞叆浜�" prop="entryPerson" show-overflow-tooltip/>
+        <el-table-column label="褰曞叆浜�" prop="entryPersonName" show-overflow-tooltip/>
         <el-table-column label="褰曞叆鏃ユ湡" prop="entryDate" show-overflow-tooltip/>
         <el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center">
           <template #default="scope">
@@ -447,13 +447,16 @@
     if (children && children.length > 0) {
       newItem.children = convertIdToValue(children);
     }
-    
+
     return newItem;
   });
 }
 // 琛ㄦ牸閫夋嫨鏁版嵁
 const handleSelectionChange = (selection) => {
-  selectedRows.value = selection
+
+  // 杩囨护鎺夊瓙鏁版嵁
+  selectedRows.value = selection.filter(item => item.children !== undefined);
+  console.log('selection',selectedRows.value)
 }
 const productSelected = (selectedRows) => {
   productSelectedRows.value = selectedRows
@@ -467,7 +470,7 @@
       productList({salesLedgerId: row.id, type: 1}).then(res => {
       const index = tableData.value.findIndex(item => item.id === row.id);
       if (index > -1) {
-        tableData.value[index].children = res.rows;
+        tableData.value[index].children = res;
       }
       expandedRowKeys.value.push(row.id)
     })
@@ -689,7 +692,7 @@
     }).catch(() => {
       proxy.$modal.msg("宸插彇娑�")
     })
-    
+
   }
 }
 // 鍏抽棴浜у搧寮规
@@ -753,4 +756,4 @@
 
 <style scoped lang="scss">
 
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3