king
2022-09-06 fa381753ef2a2b25b1c0722549ac17e333da79be
src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx
@@ -1,6 +1,7 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Form, Tabs, Row, Col, Button, notification, Modal, message, InputNumber, Input, Select, Radio } from 'antd'
import { Form, Tabs, Row, Col, Button, notification, Modal, message, InputNumber, Input, Select, Radio, Tooltip } from 'antd'
import { QuestionCircleOutlined } from '@ant-design/icons'
import moment from 'moment'
import Api from '@/api'
@@ -331,7 +332,24 @@
                    )}
                  </Form.Item>
                </Col> : null }
                {printMode === 'normal' ? <Col span={8} offset={8}>
                {printMode === 'normal' ? <Col span={8}>
                  <Form.Item label={
                    <Tooltip placement="topLeft" title="打印列表为空时,是否提示用户。">
                      <QuestionCircleOutlined className="mk-form-tip" />
                      空值提示
                    </Tooltip>
                  }>
                    {getFieldDecorator('emptyTip', {
                      initialValue: verify.emptyTip || 'true'
                    })(
                      <Radio.Group>
                        <Radio value="true">是</Radio>
                        <Radio value="false">否</Radio>
                      </Radio.Group>
                    )}
                  </Form.Item>
                </Col> : null}
                {printMode === 'normal' ? <Col span={8}>
                  <img className="legend" src={this.state.selectimg} alt=""/>
                </Col> : null }
              </Row>
@@ -348,8 +366,8 @@
                <Col span={24} className="print-tip">
                  <Form.Item label={'提示'}>
                    如果此按钮涉及多种数据类型的打印,需要设置不同的打印机时,请添加打印类型控制信息,用户在自定义设置中,可根据打印类型设置对应的打印机。
                    打印时,数据的打印类型取决于返回值(内部或外部接口)中的 printType 字段。
                    注:返回值中的 printCount、templateID 字段,可分别控制打印数量和打印模板。
                    打印时,打印类型取决于数据中的 printType 字段。
                    注:数据中的 printCount、templateID 字段,可分别控制打印数量和打印模板。
                  </Form.Item>
                </Col>
                <Col span={24}>
@@ -359,6 +377,7 @@
            </Form>
          </TabPane>
          <TabPane tab="信息提示" key="7">
            <div style={{textAlign: 'center', fontSize: '13px', marginBottom: '10px'}}>打印信息中如果存在网络资源(图片),请确保资源可以正常访问,资源不存在时会报数据异常。</div>
            <Form {...formItemLayout}>
              <Row gutter={24}>
                <Col offset={6} span={6}>