| | |
| | | { |
| | | title: '字段名', |
| | | dataIndex: 'field', |
| | | width: '50%' |
| | | width: '55%' |
| | | }, |
| | | { |
| | | title: '提示信息', |
| | | dataIndex: 'errmsg', |
| | | width: '25%' |
| | | }, |
| | | { |
| | | title: 'ErrorCode', |
| | | title: '报错编码', |
| | | dataIndex: 'errorCode', |
| | | width: '10%' |
| | | width: '20%' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | align: 'center', |
| | | width: '15%', |
| | | width: '25%', |
| | | dataIndex: 'operation', |
| | | render: (text, record) => |
| | | (<div> |
| | |
| | | { |
| | | title: 'SQL', |
| | | dataIndex: 'sql', |
| | | width: '40%' |
| | | width: '50%' |
| | | }, |
| | | { |
| | | title: '结果', |
| | | title: '结果处理', |
| | | dataIndex: 'resultName', |
| | | width: '10%' |
| | | }, |
| | | { |
| | | title: '提示信息', |
| | | dataIndex: 'errmsg', |
| | | width: '25%' |
| | | width: '15%' |
| | | }, |
| | | { |
| | | title: 'ErrorCode', |
| | | title: '报错编码', |
| | | dataIndex: 'errorCode', |
| | | width: '10%' |
| | | }, |
| | |
| | | ], |
| | | orderColumns: [ |
| | | { |
| | | title: '字段', |
| | | dataIndex: 'field', |
| | | width: '15%' |
| | | title: '函数变量', |
| | | dataIndex: 'fieldName', |
| | | width: '15%', |
| | | render: (text, record) => (`${record.fieldName || ''}(${record.field})`) |
| | | }, |
| | | { |
| | | title: '类型', |
| | | dataIndex: 'billType', |
| | | width: '10%', |
| | | width: '15%', |
| | | }, |
| | | { |
| | | title: '凭证类型', |
| | | dataIndex: 'ModularCodeName', |
| | | width: '10%' |
| | | width: '15%' |
| | | }, |
| | | { |
| | | title: '凭证标识', |
| | | dataIndex: 'ModularDetailCode', |
| | | width: '10%' |
| | | width: '15%' |
| | | }, |
| | | { |
| | | title: '流水号位数', |
| | | title: '关联字段', |
| | | dataIndex: 'linkFieldName', |
| | | width: '15%', |
| | | render: (text, record) => (record.linkField ? `${record.linkFieldName || ''}(${record.linkField})` : '') |
| | | }, |
| | | { |
| | | title: '位数', |
| | | dataIndex: 'Type', |
| | | width: '10%' |
| | | }, |
| | | { |
| | | title: '提示信息', |
| | | dataIndex: 'errmsg', |
| | | width: '20%' |
| | | }, |
| | | { |
| | | title: 'ErrorCode', |
| | | dataIndex: 'errorCode', |
| | | width: '10%' |
| | | }, |
| | | { |
| | |
| | | }) |
| | | } |
| | | |
| | | orderCheck = (values) => { |
| | | let verify = JSON.parse(JSON.stringify(this.state.verify)) |
| | | let valid = true |
| | | verify.billcodes.forEach(item => { |
| | | if (item.uuid !== values.uuid && item.field === values.field) { |
| | | valid = false |
| | | } |
| | | }) |
| | | return valid |
| | | } |
| | | |
| | | onOptionChange = (e, key) => { |
| | | const { verify } = this.state |
| | | let value = e.target.value |
| | |
| | | </TabPane> |
| | | <TabPane tab="单号生成" key="4"> |
| | | <BillcodeForm |
| | | fields={fields} |
| | | columns={this.props.columns} |
| | | dict={this.props.dict} |
| | | modular={orderModular} |
| | | modularDetail={orderModularDetail} |
| | | orderChange={this.orderChange} |
| | | orderCheck={this.orderCheck} |
| | | wrappedComponentRef={(inst) => this.orderForm = inst} |
| | | /> |
| | | <Table |
| | |
| | | <VoucherForm |
| | | dict={this.props.dict} |
| | | voucher={voucher} |
| | | columns={this.props.columns} |
| | | voucherobj={verify.voucher} |
| | | voucherDetail={voucherDetail} |
| | | voucherChange={this.voucherChange} |