king
2022-08-26 13db03477dab2dc725daa67c189f81a572fab866
2022-08-26
6个文件已修改
128 ■■■■■ 已修改文件
public/options.json 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/printbutton/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyprint/index.jsx 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/printTemplate/option.js 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/printTemplate/print.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/options.json
@@ -1,6 +1,6 @@
{
  "appId": "201912040924165801464FF1788654BC5AC73",
  "appkey": "20191106103859640976D6E924E464D029CF0",
  "appId": "202104131808068631B24E716878D4DEDBB6D",
  "appkey": "20210413175253507D1D53824539942FDA833",
  "mainSystemApi": "http://sso.mk9h.cn/cloud/webapi/dostars",
  "systemType": "",
  "externalDatabase": "false",
@@ -8,13 +8,13 @@
  "filter": "false",
  "defaultApp": "mk",
  "defaultLang": "zh-CN",
  "WXAppID": "wx4d8a34c8d4494872",
  "WXAppID": "",
  "WXminiAppID": "",
  "debugger": false,
  "licenseKey": "",
  "probation": "",
  "keepPassword": "true",
  "platforms": ["H5", "wechat", "android", "ios", "wxMiniProgram"],
  "host": "http://qingqiumarket.cn",
  "service": "MKWMS/"
  "host": "https://demo.mk9h.cn",
  "service": "mes/"
}
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -2141,10 +2141,13 @@
      })
      MKEmitter.emit('autoExecOver', btn.uuid, 'error')
      return
    } else if (btn.OpenType !== 'pop' || !btnconfig || btnconfig.setting.finish !== 'unclose') {
      this.setState({
        loading: false
      })
    }
    
    this.setState({
      loading: false,
      loadingNumber: '',
      loadingTotal: '',
    })
src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -956,7 +956,8 @@
            Top: element.top,
            Width: element.width,
            Height: element.height,
            Rotate: element.rotate,
            Rotate: configParam.rotate || 0,
            // Rotate: element.rotate,
            BorderSize: element.borderSize / 10,
            BorderColor: element.borderColor,
            Align: element.align,
@@ -1163,7 +1164,7 @@
    if (list.length === 0) {
      this.execError({
        ErrCode: 'N',
        ErrCode: btn.verify.emptyTip === 'false' ? '-1' : 'N',
        message: '未获取到打印信息!',
        ErrMesg: '',
        status: false
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>
src/views/printTemplate/option.js
@@ -260,6 +260,14 @@
      initval: config.height,
      min: 1,
      required: true
    },
    {
      type: 'select',
      key: 'rotate',
      label: '旋转角度',
      initval: config.rotate || 0,
      required: false,
      options: Rotate
    }
  ]
}
@@ -416,14 +424,14 @@
      required: false,
      options: Fontfamily
    },
    {
      type: 'select',
      key: 'rotate',
      label: '旋转角度',
      initval: item.rotate,
      required: false,
      options: Rotate
    },
    // {
    //   type: 'select',
    //   key: 'rotate',
    //   label: '旋转角度',
    //   initval: item.rotate,
    //   required: false,
    //   options: Rotate
    // },
    {
      type: 'number',
      key: 'borderSize',
@@ -547,14 +555,14 @@
      precision: 0,
      required: true
    },
    {
      type: 'select',
      key: 'rotate',
      label: '旋转角度',
      initval: item.rotate,
      required: false,
      options: Rotate
    },
    // {
    //   type: 'select',
    //   key: 'rotate',
    //   label: '旋转角度',
    //   initval: item.rotate,
    //   required: false,
    //   options: Rotate
    // },
    {
      type: 'number',
      key: 'borderSize',
@@ -710,14 +718,14 @@
      precision: 0,
      required: true
    },
    {
      type: 'select',
      key: 'rotate',
      label: '旋转角度',
      initval: item.rotate,
      required: false,
      options: Rotate
    },
    // {
    //   type: 'select',
    //   key: 'rotate',
    //   label: '旋转角度',
    //   initval: item.rotate,
    //   required: false,
    //   options: Rotate
    // },
    {
      type: 'number',
      key: 'borderSize',
@@ -857,14 +865,14 @@
      precision: 0,
      required: true
    },
    {
      type: 'select',
      key: 'rotate',
      label: '旋转角度',
      initval: item.rotate,
      required: false,
      options: Rotate
    },
    // {
    //   type: 'select',
    //   key: 'rotate',
    //   label: '旋转角度',
    //   initval: item.rotate,
    //   required: false,
    //   options: Rotate
    // },
    {
      type: 'number',
      key: 'borderSize',
src/views/printTemplate/print.js
@@ -69,13 +69,13 @@
    let textLineSpace = 5 // 绘制时行间距,防止文字重叠
    context.save()
    if (element.rotate) { // 元素旋转时,设置画布旋转角度
      let _cx = element.left + element.width / 2
      let _cy = element.top + element.height / 2
      context.translate(_cx, _cy) // 移动原点
      context.rotate(element.rotate * Math.PI / 180)
      context.translate(-_cx, -_cy) // 恢复原点
    }
    // if (element.rotate) { // 元素旋转时,设置画布旋转角度
    //   let _cx = element.left + element.width / 2
    //   let _cy = element.top + element.height / 2
    //   context.translate(_cx, _cy) // 移动原点
    //   context.rotate(element.rotate * Math.PI / 180)
    //   context.translate(-_cx, -_cy) // 恢复原点
    // }
    if (selectId === element.uuid) { // 选中元素,设置外部阴影
      context.shadowBlur = 5