/**
 *健康体检

 */
import React from 'react';
import {
    Card, Table, Input, Form, Select, Row, Col, Checkbox, Tabs,
    DatePicker, Button, Popconfirm, Icon, Divider, message, Modal,
} from 'antd';
import { Util, dayFormat } from 'tools/index';
import { $http } from 'containers/config/https';
import HealthManagementRecordTabpane from './HealthManagementRecordTabpane';
import VitalSignsDetectionTabPane from './VitalSignsDetectionTabPane';
import HealthExamination from './HealthExamination';
import CommonPagination from 'components/pagination/index';
import store from 'store';
import moment from 'moment';
import '../style/index.less';

const { RangePicker } = DatePicker;
const Option = Select.Option;
const Search = Input.Search;
const TabPane = Tabs.TabPane;

class PhysicalExaminationTabPane extends React.Component {
    constructor(props) {
        super(props)
        var userData = JSON.parse(sessionStorage.getItem('userData'))
        this.state = {
            dataSource: [],
            total: 0,
            page: 1,
            pageSize: 10,
            userData: userData,
            activeKey:'1'
        }
    }

    componentDidMount() {
    }

    changeActiveKey(e) {
        this.setState({
            activeKey: e
        })
    }
    render() {

        return <div className='health-control-body'>
             <Tabs type='card' activeKey={this.state.activeKey} onChange={this.changeActiveKey.bind(this)}>
                    <TabPane tab='健康检查' key='1'>
                         <HealthExamination />
                    </TabPane>
                    <TabPane tab='生命体征监测' key='2'>
                         <VitalSignsDetectionTabPane />
                    </TabPane>
                    <TabPane tab='健康管理记录' key='3'>
                         <HealthManagementRecordTabpane  />
                    </TabPane>
                    <TabPane tab='健康管理计划' key='4'>
                        {/* <PhysicalExaminationTabPane/> */}健康管理计划
                    </TabPane>
                </Tabs>
        </div>
    }

}

export default PhysicalExaminationTabPane;
