| | |
| | | { |
| | | "appId": "201912040924165801464FF1788654BC5AC73", |
| | | "appkey": "20191106103859640976D6E924E464D029CF0", |
| | | "appId": "202104131808068631B24E716878D4DEDBB6D", |
| | | "appkey": "20210413175253507D1D53824539942FDA833", |
| | | "mainSystemApi": "http://sso.mk9h.cn/cloud/webapi/dostars", |
| | | "systemType": "", |
| | | "externalDatabase": "false", |
| | |
| | | "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/" |
| | | } |
| | |
| | | }) |
| | | 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: '', |
| | | }) |
| | |
| | | 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, |
| | |
| | | |
| | | if (list.length === 0) { |
| | | this.execError({ |
| | | ErrCode: 'N', |
| | | ErrCode: btn.verify.emptyTip === 'false' ? '-1' : 'N', |
| | | message: '未获取到打印信息!', |
| | | ErrMesg: '', |
| | | status: false |
| | |
| | | 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' |
| | |
| | | )} |
| | | </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> |
| | |
| | | initval: config.height, |
| | | min: 1, |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'select', |
| | | key: 'rotate', |
| | | label: '旋转角度', |
| | | initval: config.rotate || 0, |
| | | required: false, |
| | | options: Rotate |
| | | } |
| | | ] |
| | | } |
| | |
| | | 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', |
| | |
| | | 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', |
| | |
| | | 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', |
| | |
| | | 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', |
| | |
| | | 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 |