| | |
| | | const VerifyPrint = asyncComponent(() => import('@/templates/sharecomponent/actioncomponent/verifyprint')) |
| | | const VerifyExcelIn = asyncComponent(() => import('@/templates/sharecomponent/actioncomponent/verifyexcelin')) |
| | | const VerifyExcelOut = asyncComponent(() => import('@/templates/sharecomponent/actioncomponent/verifyexcelout')) |
| | | const VerifyPay = asyncComponent(() => import('@/templates/sharecomponent/actioncomponent/verifypay')) |
| | | |
| | | class CardCellComponent extends Component { |
| | | static propTpyes = { |
| | |
| | | } else if (_card.eleType === 'button') { // 拆分style |
| | | _card.style = fromJS(style).toJS() |
| | | |
| | | if (style.float === 'center') { |
| | | delete _card.style.float |
| | | } else if (style.float) { |
| | | if (style.float) { |
| | | _card.wrapStyle = {textAlign: style.float} |
| | | delete _card.style.float |
| | | } |
| | | if (style.textAlign === 'center') { |
| | | delete _card.style.textAlign |
| | | } |
| | | if (style.minHeight === '28px') { |
| | | delete _card.style.minHeight |
| | |
| | | } |
| | | if (res.width % 1) { |
| | | res.width = (res.width + '').replace(/.5/, 'x') |
| | | } |
| | | |
| | | if (res.eleType === 'formula' && res.eval === 'false' && res.noValue === 'hide') { |
| | | let keys = res.formula.match(/@[0-9a-z_]+@/ig) |
| | | if (keys) { |
| | | res.$keys = keys.map(key => key.slice(1, -1).toLowerCase()) |
| | | res.$keys = Array.from(new Set(res.$keys)) |
| | | } |
| | | } |
| | | |
| | | let _elements = elements.map(cell => { |
| | |
| | | */ |
| | | deleteElement = (card) => { |
| | | const { elements } = this.state |
| | | let _this = this |
| | | let that = this |
| | | |
| | | confirm({ |
| | | content: '确定删除元素吗?', |
| | | onOk() { |
| | | let _elements = elements.filter(item => item.uuid !== card.uuid) |
| | | |
| | | _this.setState({ |
| | | that.setState({ |
| | | elements: _elements |
| | | }, () => { |
| | | _this.props.updateElement(_elements) |
| | | that.props.updateElement(_elements) |
| | | }) |
| | | }, |
| | | onCancel() {} |
| | |
| | | columns={side === 'sub' ? cards.subColumns : cards.columns} |
| | | wrappedComponentRef={(inst) => this.verifyRef = inst} |
| | | /> |
| | | } else if (card.payMode === 'system') { |
| | | return <VerifyPay |
| | | card={card} |
| | | columns={side === 'sub' ? cards.subColumns : cards.columns} |
| | | wrappedComponentRef={(inst) => this.verifyRef = inst} |
| | | /> |
| | | } |
| | | } |
| | | |