king
2020-02-04 973dd90ad4fb5061fbc8db0b2cb8ade7217328bf
src/templates/tableshare/verifycard/index.jsx
@@ -126,28 +126,46 @@
      {
        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: '操作',
@@ -686,6 +704,7 @@
          <BillcodeForm
            floor={this.props.floor}
            fields={fields}
            billcodes={verify.billcodes}
            columns={this.props.columns}
            dict={this.props.dict}
            modular={orderModular}