| | |
| | | { |
| | | title: '类型', |
| | | dataIndex: 'billType', |
| | | width: '15%', |
| | | width: '10%', |
| | | }, |
| | | { |
| | | title: '凭证类型', |
| | | dataIndex: 'ModularCodeName', |
| | | width: '15%' |
| | | width: '13%' |
| | | }, |
| | | { |
| | | title: '凭证标识', |
| | | dataIndex: 'ModularDetailCode', |
| | | width: '15%' |
| | | width: '13%' |
| | | }, |
| | | { |
| | | title: '关联字段', |
| | | dataIndex: 'linkFieldName', |
| | | width: '15%', |
| | | width: '13%', |
| | | render: (text, record) => (record.linkField ? `${record.linkFieldName || ''}(${record.linkField})` : '') |
| | | }, |
| | | { |
| | | title: '位数', |
| | | dataIndex: 'Type', |
| | | width: '10%' |
| | | width: '8%' |
| | | }, |
| | | { |
| | | title: '示例', |
| | | dataIndex: 'example', |
| | | width: '13%', |
| | | render: (text, record) => { |
| | | let _text = '' |
| | | if (record.TypeCharOne === 'n') { |
| | | _text = record.ModularDetailCode + Array(record.Type).join('0') + '1' |
| | | } else if (record.TypeCharOne === 'Y') { |
| | | _text = record.ModularDetailCode + moment().format('YYYYMMDD') + Array(record.Type).join('0') + '1' |
| | | } else if (record.TypeCharOne === 'Lp') { |
| | | _text = Array(record.Type).join('0') + '10' |
| | | } else if (record.TypeCharOne === 'BN') { |
| | | _text = moment().format('YYYYMMDD') + Array(record.Type).join('0') + '1' |
| | | } |
| | | return _text |
| | | } |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | <BillcodeForm |
| | | floor={this.props.floor} |
| | | fields={fields} |
| | | billcodes={verify.billcodes} |
| | | columns={this.props.columns} |
| | | dict={this.props.dict} |
| | | modular={orderModular} |