import React, { Component } from 'react'; import { connect } from 'dva'; import { Tabs, Alert } from 'antd'; import Infomation from './Information'; import Authentication from './Authentication'; import Invoice from './Invoice'; import Insurance from './InsuranceBasic'; import { getCertificationData } from '../../../services/api'; import styles from './Company.less'; const { TabPane } = Tabs; @connect(state => ({ profile: state.profile, industryType: state.global.companyInfo.industryType })) export default class Company extends Component { constructor(props, context) { super(props, context); this.state = { status: '0' //认证是否通过 }; } componentDidMount() { // fakeChartData1().then((data) => { // console.log(data); // }); /* const { dispatch } = this.props; dispatch({ type: 'profile/fetchBasic', }); */ // console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>',this.child); // getCertificationData({}).then((data) => { // console.log('公司状态公司状态公司状态' + data); // if (data.data) { // console.log('123' + JSON.stringify(data.data)); // this.setState({ // status: data.data.authStatus, // }); // } // }); } handleSubmit = e => { e.preventDefault(); this.props.form.validateFieldsAndScroll((err, values) => { if (!err) { this.props.dispatch({ type: 'form/submitRegularForm', payload: values }); } }); }; callback = key => { console.log(key); this.setState({ status: '0' }); }; changeStatus = () => { this.setState({ status: '1' }); }; goToDeclare = () => { this.props.history.push('/PoliceDeclare/DeclarationList'); } render() { let showStatus = '认证信息'; // if (this.state.status === '0') { // showStatus = ( //
认证申请(未认证)
// ); // } else if (this.state.status === '1') { // showStatus = ( //
认证申请(认证中)
// ); // } else if (this.state.status === '2') { // showStatus = ( //
认证申请(已认证)
// ); // } else if (this.state.status === '3') { // showStatus = ( //
认证申请(认证不通过)
// ); // }else if(this.state.status === ''){ // showStatus = ( //
认证申请(未认证)
// ); // } // console.log("xxxxxxxxxxxxxx",showStatus); const tips = (
部分企业信息无法直接修改,若您需要修改的,请到 【备案许可申报】页面,选择 保安服务(培训)许可证项目变更审核 进行变更。
} type="warning" showIcon style={{ marginBottom: '15px' }} /> ); return (
{this.props.industryType === '01' && tips} {this.props.industryType === '01' && tips} {/* 发票管理(已完善)
} key="3"> */} {this.props.industryType !== '02' ? ( 发票管理} key="3"> {this.props.industryType === '01' && tips} ) : null} {/* */} ); } }