From d38c9a99dc9d9450200a6d9e64876d164242177b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 19 十二月 2023 20:12:13 +0800
Subject: [PATCH] 2023-12-19

---
 src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx
index 827c5af..1509c78 100644
--- a/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx
@@ -399,12 +399,16 @@
   }
 
   changeTemplate = (val) => {
-    const { templates } = this.state
+    const { templates, verify } = this.state
 
     let temp = templates.filter(temp => temp.value === val)[0]
 
     this.setState({
-      selectimg: temp.img
+      selectimg: temp.img,
+      verify: {
+        ...verify,
+        Template: val
+      }
     })
   }
 
@@ -854,7 +858,19 @@
                   </Form.Item>
                 </Col> : null}
                 {printMode !== 'custom' ? <Col span={8}>
-                  <Form.Item label="鎵撳嵃妯℃澘">
+                  <Form.Item label="鎵撳嵃妯℃澘" help={(() => {
+                      if (verify.Template) {
+                        return <span onClick={() => {
+                          sessionStorage.setItem('mk-print-tab-temp', verify.Template)
+                          window.open('#/hs')
+
+                          setTimeout(() => {
+                            sessionStorage.removeItem('mk-print-tab-temp')
+                          }, 50)
+                        }} style={{color: '#1890ff', cursor: 'pointer', fontSize: '13px'}}>#鏌ョ湅妯℃澘</span>
+                      }
+                      return null
+                    })()}>
                     {getFieldDecorator('Template', {
                       initialValue: verify.Template || '',
                       rules: [

--
Gitblit v1.8.0