From 06a670976e2145a10ea05207041d3cf3164cd380 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 03 二月 2024 18:13:25 +0800 Subject: [PATCH] Merge branch 'positec' into dms --- src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx index 827c5af..1a8128f 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx @@ -26,7 +26,6 @@ class VerifyCard extends Component { static propTpyes = { floor: PropTypes.any, // 鏄惁涓哄瓙琛� - btnTab: PropTypes.any, // 琛ㄥ崟鏍囩椤碉紙鎸夐挳锛夊弬鏁� config: PropTypes.any, // 琛ㄥ崟鏍囩椤靛弬鏁� card: PropTypes.object, columns: PropTypes.array @@ -399,12 +398,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 +857,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