| | |
| | | |
| | | this.setState({autoMatic: type === 'autoMatic'}) |
| | | |
| | | let _this = this |
| | | let that = this |
| | | let data = record || selectedData || [] |
| | | |
| | | if (btn.Ot !== 'notRequired' && data.length === 0) { |
| | |
| | | okText: dict['ok'] || '确定', |
| | | cancelText: dict['cancel'] || '取消', |
| | | onOk() { |
| | | _this.triggerPrint(data) |
| | | that.triggerPrint(data) |
| | | }, |
| | | onCancel() { |
| | | _this.setState({ loading: false }) |
| | | that.setState({ loading: false }) |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | |
| | | modelconfirm = () => { |
| | | const { btnconfig, selines, dict } = this.state |
| | | let _this = this |
| | | let that = this |
| | | let result = [] |
| | | let _data = {} |
| | | let BData = {} |
| | |
| | | okText: dict['ok'] || '确定', |
| | | cancelText: dict['cancel'] || '取消', |
| | | onOk() { |
| | | _this.triggerPrint(selines, result) |
| | | that.triggerPrint(selines, result) |
| | | }, |
| | | onCancel() { |
| | | _this.setState({ loading: false }) |
| | | that.setState({ loading: false }) |
| | | } |
| | | }) |
| | | } |