From e458a80098856d5eb06215f60fdb31ae03685f7f Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 24 十二月 2025 14:52:25 +0800
Subject: [PATCH] 修改订单明细报表只有第一次渲染加载其他列

---
 north-glass-erp/northglass-erp/src/components/BasicTable.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/components/BasicTable.vue b/north-glass-erp/northglass-erp/src/components/BasicTable.vue
index 9bd61fa..6c1bb45 100644
--- a/north-glass-erp/northglass-erp/src/components/BasicTable.vue
+++ b/north-glass-erp/northglass-erp/src/components/BasicTable.vue
@@ -122,6 +122,8 @@
   pageTotal : 0,//鎬婚〉鏁�
   dataTotal : 0,//鏁版嵁鎬绘潯鏁�
 })
+
+const isFirstLoad = ref(true);
 const sumNum = (list, field) => {
   let count = 0
   list.forEach(item => {
@@ -247,9 +249,10 @@
         orderInfo.reportFormDate = res.data.selectDate
 
         //璁㈠崟鏄庣粏鎶ヨ〃
-        if (props.childrenData.url === '/order/getOrderReport') {
+        if (isFirstLoad.value && props.childrenData.url === '/order/getOrderReport') {
           const dataList = res.data.data || [];
           handleDynamicColumns(dataList,res.data.title)
+          isFirstLoad.value = false; // 棣栨鍔犺浇鍚庣疆涓篺alse
         }
       }
     })

--
Gitblit v1.8.0