king
2020-01-08 669d7cc31eb3728ad09bfb7ce6e615f5c571c14e
src/templates/tableshare/verifycard/index.jsx
@@ -30,22 +30,17 @@
      {
        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>
@@ -62,20 +57,20 @@
      {
        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%'
      },
@@ -97,38 +92,35 @@
    ],
    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%'
      },
      {
@@ -397,17 +389,6 @@
    })
  }
  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
@@ -630,11 +611,12 @@
        </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
@@ -650,6 +632,7 @@
          <VoucherForm
            dict={this.props.dict}
            voucher={voucher}
            columns={this.props.columns}
            voucherobj={verify.voucher}
            voucherDetail={voucherDetail}
            voucherChange={this.voucherChange}