From 9e716f3bd30820a08757845b592db73363faa48c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 25 四月 2022 14:53:37 +0800
Subject: [PATCH] 2022-04-25

---
 src/views/billprint/index.jsx |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/views/billprint/index.jsx b/src/views/billprint/index.jsx
index e5eb488..d1e8084 100644
--- a/src/views/billprint/index.jsx
+++ b/src/views/billprint/index.jsx
@@ -142,6 +142,8 @@
       MenuID: tempId
     }
 
+    window.GLOB.dataFormat = false // 鎵撳嵃鍘婚櫎姘村嵃
+
     if (window.GLOB.mainSystemApi) { // 浠庡崟鐐圭櫥褰曟湇鍔″櫒鍙栨墦鍗伴厤缃俊鎭�
       _param.rduri = window.GLOB.mainSystemApi
     }
@@ -248,6 +250,21 @@
           if (component.search) component.search = []
           component.data = [] // 鍒濆鍖栨暟鎹负绌�
 
+          if (component.type === 'table' && component.subtype === 'normaltable') {
+            let getColumns = (cols) => {
+              return cols.map(item => {
+                if (item.type === 'colspan') {
+                  item.subcols = getColumns(item.subcols)
+                } else {
+                  item.IsSort = 'false'
+                }
+          
+                return item
+              })
+            }
+            component.cols = getColumns(component.cols)
+          }
+
           if (component.wrap.datatype === 'static') {
             component.format = ''
           }

--
Gitblit v1.8.0