king
2020-06-12 89e7167a83e0d8409ca87698e4c08651a37cc26e
src/templates/zshare/verifycard/voucherform/index.jsx
@@ -1,9 +1,8 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { is, fromJS } from 'immutable'
import { Form, Row, Col, Select, Switch } from 'antd'
import { Form, Row, Col, Select, Switch, notification } from 'antd'
import './index.scss'
class UniqueForm extends Component {
  static propTpyes = {
@@ -126,6 +125,15 @@
      if (!err) {
        values.enabled = true
        let _detail = this.state.voucherDetail.filter(item => item.ModularDetailCode === values.VoucherTypeOne)[0]
        if (!_detail) {
          notification.warning({
            top: 92,
            message: '凭证类型或凭证标识不存在!',
            duration: 5
          })
          return
        }
        values.VoucherTypeTwo = _detail.VoucherTypeTwo
        values.Type = _detail.IDefine1