king
2020-03-04 96455706619a0a2a96a836714e106f4c7a3bfd40
src/templates/tableshare/verifycard/billcodeform/index.jsx
@@ -8,6 +8,7 @@
class UniqueForm extends Component {
  static propTpyes = {
    dict: PropTypes.object,         // 字典项
    btn: PropTypes.object,          // 按钮信息
    fields: PropTypes.array,        // 表单
    billcodes: PropTypes.array,     // 表单
    columns: PropTypes.array,       // 表单
@@ -38,12 +39,15 @@
        fieldMap.set(_field.field, true)
      }
    })
    this.props.columns.forEach(_field => {
      if (_field.type === 'text' && !fieldMap.has(_field.field)) {
        _billFields.push(_field)
        fieldMap.set(_field.field, true)
      }
    })
    if (this.props.btn.Ot !== 'notRequired') {
      this.props.columns.forEach(_field => {
        if (_field.type === 'text' && !fieldMap.has(_field.field)) {
          _billFields.push(_field)
          fieldMap.set(_field.field, true)
        }
      })
    }
    let _usedfields = this.props.billcodes.map(item => item.field)