From a8507cc8c42d17d4fb854594dbf1e084d61912ac Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 18 十月 2022 12:44:22 +0800
Subject: [PATCH] 2022-10-18

---
 src/views/billprint/index.jsx |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/src/views/billprint/index.jsx b/src/views/billprint/index.jsx
index 881335d..c64ce5d 100644
--- a/src/views/billprint/index.jsx
+++ b/src/views/billprint/index.jsx
@@ -327,9 +327,9 @@
           component.setting.customScript = _customScript // 鏁寸悊鍚庤嚜瀹氫箟鑴氭湰
     
           // floor    缁勪欢鐨勫眰绾�
-          // dataName 绯荤粺鐢熸垚鐨勬暟鎹簮鍚嶇О
           // pageable 鏄惁鍒嗛〉锛岀粍浠跺睘鎬э紝涓嶅垎椤电殑缁勪欢鎵嶅彲浠ョ粺涓�鏌ヨ
-          if (component.dataName && component.setting.sync === 'true') {
+          if (component.setting.sync === 'true') {
+            component.dataName = Utils.getdataName()
             let param = this.getDefaultParam(component)
             _pars.push(param)
           } else {
@@ -426,7 +426,6 @@
       foreign_key: '',
       sql: _dataresource,
       script: _customScript,
-      transaction: setting.transaction === 'true'
     }
   }
 
@@ -435,7 +434,6 @@
 
     if (!params || params.length === 0) return ''
     let LText_field = []
-    let transaction = false
 
     let userName = sessionStorage.getItem('User_Name') || ''
     let fullName = sessionStorage.getItem('Full_Name') || ''
@@ -464,9 +462,6 @@
           ${_script}
         `
       }
-      if (item.transaction) {
-        transaction = true
-      }
 
       item.columns.forEach(cell => {
         LText_field.push(`Select '${item.name}' as tablename,'${cell.field}' as fieldname,'${cell.datatype}' as field_type`)
@@ -479,10 +474,6 @@
       LText: LText.join(' union all '),
       LText_field: LText_field.join(' union all '),
       BID: BID || ''
-    }
-
-    if (transaction) {
-      param.func = 'sPC_Get_structured_data_try'
     }
 
     param.LText = Utils.formatOptions(param.LText)

--
Gitblit v1.8.0