/*
 * Creator:     ML
 * CreatDate:   2019-12-26
 * descripts：  治疗工作站-治疗室
 * WalkinApplicationPage 无预约申请
 * AcographyPage 治疗记录
 * ReservationRecordPage 预约记录
 * */
import React from 'react';
import {
    Form, Row, Col, Input, Select, Button, DatePicker, Popconfirm, Modal, Table,
    Icon, Pagination, message, Divider, Tooltip, Card, Tabs
} from 'antd';
import moment from 'moment';
import { Util, dayFormat, Keup } from 'tools/index';
import TreatmentRoom from './TreatmentRoom';
import ApplicationTabPane from './ApplicationTabPane';
import store from 'store';
import './style/index.less';

const FormItem = Form.Item;
const Option = Select.Option;
const { TabPane } = Tabs;

const TreatmentRoomTabs = Form.create()(
    class TreatmentRoomTabs extends React.Component {
        constructor(props) {
            super(props)
            var userData = JSON.parse(sessionStorage.getItem('userData'))
            var date = new Date();
            this.state = {
                userData: userData,
                total: 0,//表格总数据
                values: {},//查询条件数据
                rowIds: '',//表格行选中 页面数据
                page: 1,
                pageSize: 10,
                size: "small",
                search: "",
                treatArr: [],
                localeProvider: [],
                StartDate: moment(date).format(dayFormat),
                EndDate: moment(date).format(dayFormat),
                chargeordIDinfo: {},
                payModalVis: false
            }
        }
        componentDidMount() {
        }
        //动态表头

        render() {

            return (
                <div style={{ padding: '4px 2px' }}>
                    <Tabs type="card">
                        <TabPane tab="预约记录" key="1">
                            <TreatmentRoom></TreatmentRoom></TabPane>
                        <TabPane tab="申请单" key="2">
                            <ApplicationTabPane></ApplicationTabPane>
                        </TabPane>
                    </Tabs>
                </div>

            )
        }
    })
export default TreatmentRoomTabs    