/**
 * 医保信息弹框
 */
/*
* 确认挂号
* */

import React, { Component } from 'react';
import { Input, Form, Select, Modal, Button, Row, Col, message } from 'antd';
import { Util } from 'tools/index';
import { $http } from 'containers/config/https';
import '../style/index.less';
import moment from 'moment';


class ShowMedicalInsuranceModal extends Component {

    constructor(props) {
        super(props);
        this.state = {
        }
    }

    closeModal() {
        let { onHide } = this.props;
        onHide && onHide();
        this.cleanInput();
    }

    //清空输入框
    cleanInput() {
        this.setState({})
    }
    //提交
    onSubmit() {
        var {onSubmit} = this.props;
        onSubmit && onSubmit()
    }

    render() {
        return <div>
            <Modal className='medical-insurance-modal'
                title={'医保病人信息'}
                maskClosable={false}
                visible={this.props.isShow}
                onCancel={this.closeModal.bind(this)}
                footer={<div><Button className='time-save-button' type='primary' onClick={this.onSubmit.bind(this)}>确定</Button></div>}>
                <div>
                    <Row className="ybpat-row">
                        {this.props.Divdata && this.props.Divdata.map((item, index) => {
                            return <Col className="ybpat-col" span={8} key={index}>
                                <span className="ybpat-desc">{item.desc}</span>
                                <span>：</span>
                                <span className="ybpat-value">{item.value}</span>
                            </Col>
                        })}
                    </Row>
                </div>
            </Modal></div>
    }
}

export default Form.create()(ShowMedicalInsuranceModal);