From 547e5fe219ee7bee309ecd67db74bc8df66b5433 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 23 八月 2023 11:47:45 +0800
Subject: [PATCH] 2023-08-23

---
 src/menu/components/card/cardcellcomponent/index.jsx |   75 +++++++------------------------------
 1 files changed, 15 insertions(+), 60 deletions(-)

diff --git a/src/menu/components/card/cardcellcomponent/index.jsx b/src/menu/components/card/cardcellcomponent/index.jsx
index 5e871c2..22adfb8 100644
--- a/src/menu/components/card/cardcellcomponent/index.jsx
+++ b/src/menu/components/card/cardcellcomponent/index.jsx
@@ -1,13 +1,11 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Modal, Button, notification } from 'antd'
+import { Modal, Button } from 'antd'
 import moment from 'moment'
 
-import Api from '@/api'
 import asyncComponent from '@/utils/asyncComponent'
 import { getCardCellForm } from './formconfig'
-import { queryPrintSql } from '@/utils/option.js'
 import { getActionForm, getBaseTableActionForm } from '@/menu/components/share/actioncomponent/formconfig'
 import Utils, { FuncUtils } from '@/utils/utils.js'
 import MKEmitter from '@/utils/events.js'
@@ -316,64 +314,21 @@
 
     let modules = MenuUtils.getSubModules(window.GLOB.customMenu.components, cards.uuid, supId)
 
-    this.checkPrintTemp().then(() => {
-      if (cards.subtype === 'basetable') {
-        this.setState({
-          actvisible: true,
-          card: card,
-          formlist: getBaseTableActionForm(card, functip, cards, usefulFields, modules)
-        })
-      } else {
-        let anchors = MenuUtils.getAnchors(window.GLOB.customMenu.components, cards.uuid) || []
-  
-        this.setState({
-          actvisible: true,
-          card: card,
-          formlist: getActionForm(card, functip, cards, usefulFields, modules, anchors, side)
-        })
-      }
-    })
-  }
+    if (cards.subtype === 'basetable') {
+      this.setState({
+        actvisible: true,
+        card: card,
+        formlist: getBaseTableActionForm(card, functip, cards, usefulFields, modules)
+      })
+    } else {
+      let anchors = MenuUtils.getAnchors(window.GLOB.customMenu.components, cards.uuid) || []
 
-  checkPrintTemp = () => {
-    return new Promise(resolve => {
-      if (!window.GLOB.printTemps) {
-        let param = {
-          func: 'sPC_Get_SelectedList',
-          LText: Utils.formatOptions(queryPrintSql),
-          obj_name: 'data',
-          arr_field: 'PN,ID,Images'
-        }
-    
-        param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
-        param.secretkey = Utils.encrypt(param.LText, param.timestamp)
-    
-        param.open_key = Utils.encryptOpenKey(param.secretkey, param.timestamp) // 浜戠鏁版嵁楠岃瘉
-    
-        Api.getCloudConfig(param).then(res => {
-          if (!res.status) {
-            notification.warning({
-              top: 92,
-              message: res.message,
-              duration: 5
-            })
-          }
-
-          let temps = (res.data || []).map(temp => {
-            return {
-              value: temp.ID,
-              text: temp.PN
-            }
-          })
-          window.GLOB.printTemps = temps
-          resolve()
-        }, () => {
-          resolve()
-        })
-      } else {
-        resolve()
-      }
-    })
+      this.setState({
+        actvisible: true,
+        card: card,
+        formlist: getActionForm(card, functip, cards, usefulFields, modules, anchors, side)
+      })
+    }
   }
 
   /**

--
Gitblit v1.8.0