/**
 * 糖尿病
 */
import React from 'react';
import {
    Card, Table, Input, Form, Select, Row, Col, Checkbox, Tabs,
    DatePicker, Button, Popconfirm, Icon, Divider, message, Modal, Radio, Spin
} from 'antd';
import { Util, dayFormat } from 'tools/index';
import { $http } from 'containers/config/https';
import RangeDatePicker from 'components/rangePicker/index';
import ColumnAuthoritysModel from 'pages/columnAuthority/ColumnAuthoritysModel';
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 DiabetesPageTabPane extends React.Component {
    constructor(props) {
        super(props)
        var date = new Date()
        var userData = JSON.parse(sessionStorage.getItem('userData'))
        var patID = JSON.parse(sessionStorage.getItem('patID'))
        this.state = {
            total: 0,
            page: 1,
            pageSize: 10,
            userData: userData,
            activeKey: '1',
            startDate: moment(date).format(dayFormat),
            dataSource: [],
            patID: patID,
            loading: false
        }
    }

    componentWillReceiveProps(nextProp) {
        if (!Util.isEmpty(nextProp.dataSource)) {
            this.setState({
                visitWayID: nextProp.dataSource.visitWayID,
                visitRecordID: nextProp.dataSource.visitRecordID,
                transferWayID: nextProp.dataSource.transferWayID,
                visitDate: nextProp.dataSource.createDate,
                dataSource: nextProp.dataSource.tableData,
                nextVisitDate: nextProp.dataSource.nextVisitDate,
                visitUserID: nextProp.dataSource.doctorList,
                patID: nextProp.patID,
                // a1802: !Util.isEmpty(nextProp.dataSource.detailData) && !Util.isEmpty(nextProp.dataSource.detailData.a1802) && (nextProp.dataSource.detailData.a1802).split('&'),
                a180101: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180101,
                a180102: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180102,
                a180103: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180103,
                a180104: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180104,
                // anotherValue: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1802note,    
                a1802: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1802,
                a18030101: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18030101,
                a18030102: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18030102,
                a18030201: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18030201,
                a18030202: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18030202,
                a18030301: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18030301,
                a18030302: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18030302,
                a180304: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180304,
                a18030404: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18030404,
                a180305: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180305,
                a18040101: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040101,
                a18040102: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040102,
                a18040201: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040201,
                a18040202: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040202,
                a18040301: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040301,
                a18040302: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040302,
                a18040303: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040303,
                a18040304: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040304,
                a18040401: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040401,
                a18040402: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18040402,
                a180405: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180405,
                a180406: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a180406,
                a18050101: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18050101,
                a18050102: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18050102,
                a18050201: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18050201,
                a18050202: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18050202,
                a18050301: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18050301note,
                a18050303: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18050303,
                a18050302: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a18050302,
                a1808: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1808,
                a180803: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1808note,
                a1806: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1806,
                a1810: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1810,
                a181101: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a181101,
                a181102: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a181102,
                anotherValue: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1702note,
                // a170501: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a1705,
                // a170803: nextProp.dataSource.detailData && nextProp.dataSource.detailData.a170803,
            })
        }
    }

    componentDidMount() {
        this.initData()
        this.loadData()
        this.loadVisitList()//获取随访方式
        this.loadVisitUser()//获取随访人员
        this.loadOutcomeList()//获取转归
    }


    loadData() {
        var params = {
            params: [{
                patID: this.state.patID
            }]
        }
        $http.post('urlDeault', this, {
            code: "03070019",
            data: params,
            success: function (res) {
                if (res.errorCode == '0') {
                    var source = res.result[0]
                    this.setState({
                        signRecordID: source.personInfo && source.personInfo.signRecordID,
                    })
                }
            }
        });
    }

    loadVisitUser() {
        var params = {
            params: [{
                hospID: this.state.userData.hospID,
            }]
        }
        $http.post('urlDeault', this, {
            code: "03070033",
            data: params,
            success: function (res) {
                if (res.errorCode === '0') {
                    this.setState({
                        doctorData: res.result.data,
                    })
                }
            }
        });
    }

    loadOutcomeList() {
        var params = {
            params: [{}]
        }
        $http.post('urlDeault', this, {
            code: "03070083",
            data: params,
            success: function (res) {
                if (res.errorCode === '0') {
                    this.setState({
                        outcomeList: res.result
                    })
                }
            }
        });
    }

    loadVisitList() {
        var params = {
            params: [{}]
        }
        $http.post('urlDeault', this, {
            code: "03070064",
            data: params,
            success: function (res) {
                if (res.errorCode == '0') {
                    this.setState({
                        visitWay: res.result
                    })
                }
            }
        });
    }

    initData() {
        this.columns = [
            {
                title: '药物名称',
                dataIndex: 'drugName',
                width: 200,
                align: 'center',
                render: (text, data, index) => {
                    return <Input style={{ width: '96%' }} value={data.drugName}
                        disabled={this.props.disStatus == true ? true : false}
                        onChange={this.commonInputTableChange.bind(this, 'drugName', index)} />
                }
            },
            {
                title: '用法',
                dataIndex: 'usage',
                width: 80,
                align: 'center',
                render: (text, data, index) => {
                    return <Input style={{ width: '96%' }} value={data.usage}
                        disabled={this.props.disStatus == true ? true : false}
                        onChange={this.commonInputTableChange.bind(this, 'usage', index)} />
                }
            },
            {
                title: '用量',
                dataIndex: 'dose',
                width: 80,
                align: 'center',
                render: (text, data, index) => {
                    return <Input style={{ width: '96%' }} value={data.dose}
                        disabled={this.props.disStatus == true ? true : false}
                        onChange={this.commonInputTableChange.bind(this, 'dose', index)} />
                }
            },
            {
                title: '用药时间',
                dataIndex: 'date',
                width: 220,
                align: 'center',
                render: (text, data, index) => {
                    // return <RangeDatePicker format='YYYY-MM-DD' width={'98%'} disabled={this.props.disStatus == true ? true : false}
                    //     startDate={data.drugSatrtDate} endDate={data.drugStopDate}
                    //     startChange={this.startChange.bind(this, 'drugSatrtDate', index)} endChange={this.endChange.bind(this, 'drugStopDate', index)} />
                    return <div>
                        <Input style={{ width: '48%' }} placeholder='用药时间' value={data.drugDuration}
                            onChange={this.commonInputTableChange.bind(this, 'drugDuration', index)} />
                        <Select style={{ width: '48%', marginLeft: 3 }} placeholder='用药周期' value={data.durationUnit}
                            onChange={this.commonSelectTableChange.bind(this, 'durationUnit', index)}>
                            <Option key='1' value='天'>天</Option>
                            <Option key='3' value='月'>月</Option>
                            <Option key='4' value='年'>年</Option>
                        </Select>
                    </div>
                }
            },
            {
                title: '操作',
                dataIndex: 'opertion',
                width: 80,
                align: 'center',
                render: (text, data, index) => {
                    return <span>
                        {this.props.disStatus == true ? null : <Popconfirm title="确定要删除吗?" onConfirm={this.handleDel.bind(this, data, index)} >
                            <span className='span' style={{ color: 'rgba(240,65,52,1)' }}>删除</span>
                        </Popconfirm>}
                    </span>
                }
            },
        ]
    }
    commonInputTableChange(name, index, e) {
        var value = e.target.value
        if (name == 'drugDuration') {
            var reg = /(^[1-9][0-9]*$)|(^[1-9][0-9]*\.\d{0,2}$)|^0(?!\d)\.?\d{0,2}$|^[1-9]?$/;
            if (!reg.test(value)) {
                return
            }
        }
        this.state.dataSource[index][name] = e.target.value
        this.setState({})
    }

    commonSelectTableChange(name, index, e) {
        this.state.dataSource[index][name] = e
        this.setState({})
    }

    startChange(name, index, e) {
        this.state.dataSource[index][name] = e ? moment(e).format(dayFormat) : '';
        this.setState({})
    }

    endChange(name, index, e) {
        this.state.dataSource[index][name] = e ? moment(e).format(dayFormat) : ''
        this.setState({})
    }

    handleDel(data, index) {
        if (!Util.isEmpty(data.ID)) {
            this.delTableData(data, index)
        } else {
            this.state.dataSource.splice(index, 1)
            this.setState({})
        }
    }

    delTableData(data, index) {
        var params = {
            params: [{
                userID: this.state.userData.userID,
                ID: data.ID
            }]
        }
        $http.post('urlDeault', this, {
            code: "03070046",
            data: params,
            success: function (res) {
                if (res.errorCode == '0') {
                    message.success('删除成功')
                    this.state.dataSource.splice(index, 1)
                    this.setState({})
                }
            }
        });
    }

    onChange(e) {

    }

    //随访日期
    changeCommonDate(name, e) {
        this.setState({
            [name]: e ? moment(e).format(dayFormat) : ''
        })
    }

    //症状
    commonCheckBoxChange(name, e) {
        if (!Util.isEmpty(e)) {
            // for (var i = 0; i < e.length; i++) {
            //     if (e[i] == 'a180210') {
            //         this.setState({
            //             showStatus: true,
            //             [name]: e
            //         })
            //     } 
            //     else {
            //         this.setState({
            //             [name]: e,
            //             showStatus: false,
            //             anotherValue: undefined
            //         })
            //     }

            // }
            if (e.indexOf('a180210') >= 0) {
                this.setState({
                    showStatus: true,
                    [name]: e
                })
            } else {
                this.setState({
                    [name]: e,
                    showStatus: false,
                    anotherValue: undefined
                })
            }
        } else {
            this.setState({
                [name]: e,
                anotherValue: undefined,
                showStatus: false
            })
        }
    }

    clearInput() {
        this.setState({
            nextVisitDate: '',
            visitDate: '',
            transferWayID: undefined,
            visitWayID: undefined,
            visitUserID: [],
            a180101: undefined,
            a180102: undefined,
            a180103: undefined,
            a180104: undefined,
            anotherValue: undefined,
            a1802: undefined,
            a18030101: undefined,
            a18030102: undefined,
            a18030201: undefined,
            a18030202: undefined,
            a18030301: undefined,
            a18030302: undefined,
            a180304: undefined,
            a18030404: undefined,
            a180305: undefined,
            a18040101: undefined,
            a18040102: undefined,
            a18040201: undefined,
            a18040202: undefined,
            a18040301: undefined,
            a18040302: undefined,
            a18040303: undefined,
            a18040304: undefined,
            a18040401: undefined,
            a18040402: undefined,
            a180405: undefined,
            a180406: undefined,
            a18050101: undefined,
            a18050102: undefined,
            a18050201: undefined,
            a18050202: undefined,
            a18050301: undefined,
            a18050303: undefined,
            a18050302: undefined,
            a1808: undefined,
            a180803: undefined,
            a1806: undefined,
            a1810: undefined,
            a181101: undefined,
            a181102: undefined,
            dataSource: [],
        }, () => {
            var { clearInput } = this.props;
            clearInput && clearInput()
        })
    }

    handleSaveHypert() {
        this.setState({
            loading: true
        })
        var params = {
            params: [{
                ID: !Util.isEmpty(this.props.assignmentTypeValue) ? this.props.assignmentTypeValue : this.state.visitRecordID,
                patID: this.state.patID,
                docID: this.state.userData.userID,
                signRecordID: this.state.signRecordID || '1',//签约记录
                nextVisitDate: this.state.nextVisitDate ? moment(this.state.nextVisitDate).format(dayFormat) : '',//下次随访日期
                visitDate: this.state.visitDate ? moment(this.state.visitDate).format(dayFormat) : '',//随访日期
                transferWayID: this.state.transferWayID,//随访转归ID
                visitWayID: this.state.visitWayID,//随访方式ID
                createUserID: this.state.userData.userID,//创建人
                updateUserID: this.state.userData.userID,//更新人
                visitUserID: this.state.visitUserID,//随访人员
                // visitStatusID:this.state.visitStatusID,//随访状态
                hospID: this.state.userData.hospID,//随访人员医院
                locID: this.state.userData.locID,//随访人员科室
                assessCat: [
                    {
                        assessCatCode: "a18",
                        tableData: [{
                            data: this.state.dataSource
                        }],
                        assessItem: [
                            {
                                assessItemCode: "a180101",
                                assessItemValue: this.state.a180101,
                                assessNote: '',
                            }, {
                                assessItemCode: "a180102",
                                assessItemValue: this.state.a180102,
                                assessNote: '',
                            }, {
                                assessItemCode: "a180103",
                                assessItemValue: this.state.a180103,
                                assessNote: '',
                            }, {
                                assessItemCode: "a180104",
                                assessItemValue: this.state.a180104,
                                assessNote: '',
                            }, {//症状
                                assessItemCode: "a1802",
                                assessItemValue: this.state.a1802 ? this.state.a1802.join('&') : '',
                                assessNote: this.state.anotherValue,
                            }, {//收缩
                                assessItemCode: "a18030101",
                                assessItemValue: this.state.a18030101,
                                assessNote: '',
                            }, {//舒张
                                assessItemCode: "a18030102",
                                assessItemValue: this.state.a18030102,
                                assessNote: '',
                            }, {//体重
                                assessItemCode: "a18030201",
                                assessItemValue: this.state.a18030201,
                                assessNote: '',
                            }, {//目标体重
                                assessItemCode: "a18030202",
                                assessItemValue: this.state.a18030202,
                                assessNote: '',
                            }, {//体质指数
                                assessItemCode: "a18030301",
                                assessItemValue: this.state.a18030301,
                                assessNote: '',
                            }, {//体质目标指数
                                assessItemCode: "a18030302",
                                assessItemValue: this.state.a18030302,
                                assessNote: '',
                            }, {//足背动脉搏动
                                assessItemCode: "a180304",
                                assessItemValue: this.state.a180304,
                                assessNote: '',
                            }, {//搏动方侧
                                assessItemCode: "a18030404",
                                assessItemValue: this.state.a18030404,
                                assessNote: '',
                            }, {//其他
                                assessItemCode: "a180305",
                                assessItemValue: this.state.a180305,
                                assessNote: '',
                            }, {//吸烟量
                                assessItemCode: "a18040101",
                                assessItemValue: this.state.a18040101,
                                assessNote: '',
                            }, {//目标吸烟量
                                assessItemCode: "a18040102",
                                assessItemValue: this.state.a18040102,
                                assessNote: '',
                            }, {//饮酒量
                                assessItemCode: "a18040201",
                                assessItemValue: this.state.a18040201,
                                assessNote: '',
                            }, {//目标饮酒量
                                assessItemCode: "a18040202",
                                assessItemValue: this.state.a18040202,
                                assessNote: '',
                            }, {//每周次数
                                assessItemCode: "a18040301",
                                assessItemValue: this.state.a18040301,
                                assessNote: '',
                            }, {//每次运动时间
                                assessItemCode: "a18040302",
                                assessItemValue: this.state.a18040302,
                                assessNote: '',
                            }, {//目标次数
                                assessItemCode: "a18040303",
                                assessItemValue: this.state.a18040303,
                                assessNote: '',
                            }, {//目标时间
                                assessItemCode: "a18040304",
                                assessItemValue: this.state.a18040304,
                                assessNote: '',
                            }, {//主食
                                assessItemCode: "a18040401",
                                assessItemValue: this.state.a18040401,
                                assessNote: '',
                            }, {//主食目标值
                                assessItemCode: "a18040402",
                                assessItemValue: this.state.a18040402,
                                assessNote: '',
                            }, {//心理调整
                                assessItemCode: "a180405",
                                assessItemValue: this.state.a180405,
                                assessNote: '',
                            }, {//遵医行为
                                assessItemCode: "a180406",
                                assessItemValue: this.state.a180406,
                                assessNote: '',
                            }, {//空腹血糖值
                                assessItemCode: "a18050101",
                                assessItemValue: this.state.a18050101,
                                assessNote: '',
                            }, {//测量方式
                                assessItemCode: "a18050102",
                                assessItemValue: this.state.a18050102,
                                assessNote: '',
                            }, {//随机血糖值
                                assessItemCode: "a18050201",
                                assessItemValue: this.state.a18050201,
                                assessNote: '',
                            }, {//测量方式
                                assessItemCode: "a18050202",
                                assessItemValue: this.state.a18050202,
                                assessNote: '',
                            }, {//其他检查
                                assessItemCode: "a18050301",
                                assessItemValue: this.state.a18050301,
                                assessNote: this.state.a18050303,
                            }, {//其他
                                assessItemCode: "a18050302",
                                assessItemValue: this.state.a18050302,
                                assessNote: '',
                            }, {//服药依从性
                                assessItemCode: "a1806",
                                assessItemValue: this.state.a1806,
                                assessNote: '',
                            }, {//不良反应
                                assessItemCode: "a1808",
                                assessItemValue: this.state.a1808,
                                assessNote: this.state.a180803,
                            }, {//此次随访分类
                                assessItemCode: "a1810",
                                assessItemValue: this.state.a1810,
                                assessNote: '',
                            }, {//原因
                                assessItemCode: "a181101",
                                assessItemValue: this.state.a181101,
                                assessNote: '',
                            }, {//机构及科别
                                assessItemCode: "a181102",
                                assessItemValue: this.state.a181102,
                                assessNote: '',
                            }
                        ]
                    }
                ]
            }]
        }
        $http.post('urlDeault', this, {
            code: "03070060",
            data: params,
            success: function (res) {
                if (res.errorCode == '0') {
                    message.success('保存成功')
                    var { loadData } = this.props;
                    loadData && loadData()
                    this.setState({
                        loading: false
                    })
                } else {
                    this.setState({
                        loading: false
                    })
                }
            }
        });
    }

    //添加用药
    addMerism() {
        this.state.dataSource.push({ durationUnit: '天' })
        this.setState({})
    }


    commonInputChangeDisabled(name, e) {
        if (e.target.value == 'a180802') {
            this.setState({
                [name]: e.target.value,
                reactionStatus: true
            })
        } else {
            this.setState({
                [name]: e.target.value,
                a180803: undefined,
                reactionStatus: false
            })
        }
    }

    //校验
    commonInputChange(name, code, e) {
        var value = e.target.value;
        if (code == '1') {
            var reg = /(^[1-9][0-9]*$)|(^[1-9][0-9]*\.\d{0,2}$)|^0(?!\d)\.?\d{0,2}$|^[1-9]?$/;
            if (!reg.test(value)) {
                return
            }
        } else if (code == '2') {
            var regs = /^\d+$/;
            if (!regs.test(value) && !Util.isEmpty(value)) {
                return
            }
        }
        this.setState({
            [name]: value
        })
    }

    commonInputChangeCode(name, e) {
        this.setState({
            [name]: e.target.value,
            transferWayCode: e.target.code
        })
    }

    //单选框反选
    commonInputRadio(name, e) {
        const value = e.target;
        if (value.type == 'radio' && this.state[name] == value.value) {
            this.setState({
                [name]: ''
            })
        }
    }


    render() {
        var date = new Date()
        //随访方式
        var visitWayOption = []
        this.state.visitWay && this.state.visitWay.map((item, index) => {
            visitWayOption.push(<Radio key={index} value={item.id}>{item.descripts}</Radio>)
        })

        //转归
        var outcomeListOption = []
        this.state.outcomeList && this.state.outcomeList.map((item, index) => {
            outcomeListOption.push(<Radio key={index} value={item.id} code={item.code}>{item.descripts}</Radio>)
        })

        //随访人员
        var doctorDataOption = []
        this.state.doctorData && this.state.doctorData.map((item, index) => {
            doctorDataOption.push(<Option key={index} value={item.id} code={item.descriptsSPCode}
                name={item.descripts}>{item.descripts}</Option>)
        })

        return <div className='health-diasble-body'>
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'center', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span className='shuld-choose-btn'>*</span>
                    <span>随访日期</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <DatePicker format={dayFormat} onChange={this.changeCommonDate.bind(this, 'visitDate')}
                        disabled={this.props.disStatus == true ? true : false}
                        value={this.state.visitDate ? moment(this.state.visitDate, dayFormat) : ''} style={{ marginLeft: 10 }} />
                </div>
            </div>

            {/**随访方式 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'center', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span className='shuld-choose-btn'>*</span>
                    <span>随访方式</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }} onClick={this.commonInputRadio.bind(this, 'visitWayID')}>
                    <Radio.Group onChange={Util.commonInputChange.bind(this, 'visitWayID')} disabled={this.props.disStatus == true ? true : false}
                        value={this.state.visitWayID} style={{ marginLeft: 10 }}>
                        {visitWayOption}
                    </Radio.Group>
                </div>
            </div>

            {/**转归 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '200px', lineHeight: '200px', textAlign: 'center', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span className='shuld-choose-btn'>*</span>
                    <span>转归</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '200px', textAlign: 'center',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8', display: 'flex'
                }}>
                    <div style={{ width: '40%', borderRight: '1px solid #e8e8e8', lineHeight: '200px' }}
                        onClick={this.commonInputRadio.bind(this, 'transferWayID')}>
                        <Radio.Group onChange={this.commonInputChangeCode.bind(this, 'transferWayID')}
                            disabled={this.props.disStatus == true ? true : false} value={this.state.transferWayID}>
                            {outcomeListOption}
                        </Radio.Group>
                    </div>
                    <div style={{ width: '60%' }}>
                        <div onClick={this.commonInputRadio.bind(this, 'a180101')}>
                            原因：<Radio.Group onChange={Util.commonInputChange.bind(this, 'a180101')} value={this.state.a180101}
                                disabled={this.props.disStatus == true ? true : false}>
                                <Radio value={'a18010101'}>死亡</Radio>
                                <Radio value={'a18010102'}>迁出</Radio>
                                <Radio value={'a18010103'}>失访</Radio>
                                <Radio value={'a18010104'}>拒绝</Radio>
                            </Radio.Group>
                        </div>
                        <div style={{ marginTop: 2 }}>
                            失访原因：<Input style={{ width: '75%' }} placeholder='请输入失访原因' value={this.state.a180102}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={Util.commonInputChange.bind(this, 'a180102')} />
                        </div>
                        {/* <div style={{ marginTop: 2 }}>
                            迁出原因：<Input style={{ width: '75%' }} placeholder='请输入失访原因' />
                        </div>
                        <div style={{ marginTop: 2 }}>
                            拒绝原因：<Input style={{ width: '75%' }} placeholder='请输入失访原因' />
                        </div> */}
                        <div style={{ marginTop: 2 }}>
                            {/* 死亡时间：<Input style={{ width: '75%' }} placeholder='请输入死亡时间' onChange={this.changeCommonDate.bind(this, 'a180103')}
                                value={this.state.a180103 ? moment(this.state.a180103, dayFormat) : ''} /> */}
                            死亡时间：<DatePicker format={dayFormat} onChange={this.changeCommonDate.bind(this, 'a180103')}
                                disabled={this.props.disStatus == true ? true : false}
                                value={this.state.a180103 ? moment(this.state.a180103, dayFormat) : ''} style={{ width: '75%' }} />
                        </div>
                        <div style={{ marginTop: 2 }}>
                            死亡原因：<Input style={{ width: '75%' }} placeholder='请输入 死亡原因' value={this.state.a180104}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={Util.commonInputChange.bind(this, 'a180104')} />
                        </div>
                    </div>
                </div>
            </div>

            {/**症状 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '80px', lineHeight: '80px', textAlign: 'center', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span>症状</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '80px', textAlign: 'left', lineHeight: '80px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <Checkbox.Group style={{ marginLeft: 10 }} onChange={this.commonCheckBoxChange.bind(this, 'a1802')}
                        disabled={this.props.disStatus == true ? true : false} value={this.state.a1802}>
                        <Checkbox value="a180201">无症状</Checkbox>
                        <Checkbox value="a180202">多饮</Checkbox>
                        <Checkbox value="a180203">多食</Checkbox>
                        <Checkbox value="a180204">多尿</Checkbox>
                        <Checkbox value="a180205">视力模糊</Checkbox>
                        <Checkbox value="a180206">感染</Checkbox>
                        <Checkbox value="a180207">手脚麻木</Checkbox>
                        <Checkbox value="a180208">下肢水肿</Checkbox>
                        <Checkbox value="a180209">体重明显下降</Checkbox>
                        <Checkbox value="a180210" style={{ width: '60%' }}>其他：<Input placeholder='请输入其他症状' style={{ width: '70%' }}
                            onChange={Util.commonInputChange.bind(this, 'anotherValue')} value={this.state.anotherValue}
                            disabled={this.state.showStatus == true ? false : true} /></Checkbox>
                    </Checkbox.Group>
                </div>
            </div>

            {/**体征 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '200px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8', display: 'flex'
                }}>
                    <div style={{ lineHeight: '200px', width: '30%', borderRight: '1px solid #e8e8e8', textAlign: 'center' }}>体征</div>
                    <div style={{ width: '70%' }}>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10 }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>血压(mmHg)</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>体重(kg)</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>体质指数(kg/m²)</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>足背动脉搏动</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span>其他</span>
                        </div>
                    </div>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '200px', textAlign: 'left',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <div>
                        <div style={{ height: '40px', lineHeight: '40px' }}>
                            <Input placeholder='请输入收缩压' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18030101}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18030101', '2')} />
                            <span style={{ margin: '0px 10px' }}>/</span>
                            <Input placeholder='请输入舒张压' style={{ width: '20%' }} value={this.state.a18030102}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18030102', '2')} />
                            {/* <span style={{ marginLeft: 10 }}>高血压</span> */}
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}>
                            <Input placeholder='请输入体重' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18030201}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18030201', '1')} />
                            <span style={{ margin: '0px 10px' }}>/</span>
                            <Input placeholder='请输入目标体重' style={{ width: '20%' }} value={this.state.a18030202}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18030202', '1')} />
                            {/* <span style={{ marginLeft: 10 }}>超重</span> */}
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}>
                            <Input placeholder='请输入体质指数' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18030301}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18030301', '1')} />
                            <span style={{ margin: '0px 10px' }}>/</span>
                            <Input placeholder='请输入目标体指数' style={{ width: '20%' }} value={this.state.a18030302}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18030302', '1')} />
                            {/* <span style={{ marginLeft: 10 }}>超标</span> */}
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8', display: 'flex' }}>
                            <div onClick={this.commonInputRadio.bind(this, 'a180304')}>
                                <Radio.Group value={this.state.a180304} disabled={this.props.disStatus == true ? true : false}
                                    onChange={Util.commonInputChange.bind(this, 'a180304')} style={{ paddingLeft: 10 }}>
                                    <Radio value={'a18030401'}>触及正常</Radio>
                                    <Radio value={'a18030402'}>减弱</Radio>
                                    <Radio value={'a18030403'}>消失</Radio>
                                </Radio.Group>
                            </div>

                            搏动方侧：
                            <div onClick={this.commonInputRadio.bind(this, 'a18030404')}>
                                <Radio.Group value={this.state.a18030404} disabled={this.props.disStatus == true ? true : false}
                                    onChange={Util.commonInputChange.bind(this, 'a18030404')} >
                                    <Radio value={'a1803040401'}>双侧</Radio>
                                    <Radio value={'a1803040402'}>左侧</Radio>
                                    <Radio value={'a1803040403'}>右侧</Radio>
                                </Radio.Group>
                            </div>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}>
                            <Input placeholder='请输入其他内容' style={{ width: '43%', marginLeft: 10 }} value={this.state.a180305}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={Util.commonInputChange.bind(this, 'a180305')} />
                        </div>
                    </div>
                </div>
            </div>

            {/**生活指导方式 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '280px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8', display: 'flex'
                }}>
                    <div style={{ paddingTop: '48%', width: '30%', borderRight: '1px solid #e8e8e8' }}>
                        <div>生活指导方式</div>
                    </div>
                    <div style={{ width: '70%' }}>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10 }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>日吸烟量(支)</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>日饮酒量(两)</span>
                        </div>
                        <div style={{ height: '80px', lineHeight: '80px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>运动</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>主食(克/每天)</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span>心理调整</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span>遵医行为</span>
                        </div>
                    </div>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '280px', textAlign: 'left',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <div>
                        <div style={{ height: '40px', lineHeight: '40px' }}>
                            <Input placeholder='请输入吸烟量' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18040101}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18040101', '1')} />
                            <span style={{ margin: '0px 10px' }}>/</span>
                            <Input placeholder='请输入目标吸烟量' style={{ width: '20%' }} value={this.state.a18040102}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18040102', '1')} />
                            {/* <span style={{ marginLeft: 10 }}>高血压</span> */}
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}>
                            <Input placeholder='请输入饮酒量' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18040201}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18040201', '1')} />
                            <span style={{ margin: '0px 10px' }}>/</span>
                            <Input placeholder='请输入目标饮酒量' style={{ width: '20%' }} value={this.state.a18040202}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18040202', '1')} />
                            {/* <span style={{ marginLeft: 10 }}>超重</span> */}
                        </div>
                        <div style={{ height: '80px', borderTop: '1px solid #e8e8e8' }}>
                            <div style={{ marginTop: 5 }}>
                                <Input placeholder='请输入每周次数' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18040301}
                                    disabled={this.props.disStatus == true ? true : false}
                                    onChange={this.commonInputChange.bind(this, 'a18040301', '2')} />
                                <span style={{ margin: '0px 10px' }}>次/周</span>
                                <Input placeholder='请输入每次运动时间' style={{ width: '20%' }} value={this.state.a18040302}
                                    disabled={this.props.disStatus == true ? true : false}
                                    onChange={this.commonInputChange.bind(this, 'a18040302', '2')} />
                                <span style={{ marginLeft: 10 }}>分钟/次</span>
                            </div>
                            <div style={{ marginTop: 5 }}>
                                <Input placeholder='请输入每周运动目标次数' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18040303}
                                    disabled={this.props.disStatus == true ? true : false}
                                    onChange={this.commonInputChange.bind(this, 'a18040303', '2')} />
                                <span style={{ margin: '0px 10px' }}>次/周</span>
                                <Input placeholder='请输入每周运动目标时间' style={{ width: '20%' }} value={this.state.a18040304}
                                    disabled={this.props.disStatus == true ? true : false}
                                    onChange={this.commonInputChange.bind(this, 'a18040304', '2')} />
                                <span style={{ marginLeft: 10 }}>分钟/次</span>
                            </div>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}>
                            <Input placeholder='请输入食量' style={{ width: '20%', marginLeft: 10 }} value={this.state.a18040401}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18040401', '1')} />
                            <span style={{ margin: '0px 10px' }}>/</span>
                            <Input placeholder='请输入目标食量' style={{ width: '20%' }} value={this.state.a18040402}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18040402', '1')} />
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}
                            onClick={this.commonInputRadio.bind(this, 'a180405')}>
                            <Radio.Group onChange={Util.commonInputChange.bind(this, 'a180405')} disabled={this.props.disStatus == true ? true : false}
                                value={this.state.a180405} style={{ marginLeft: 10 }}>
                                <Radio value={'a18040501'}>良好</Radio>
                                <Radio value={'a18040502'}>一般</Radio>
                                <Radio value={'a18040503'}>差</Radio>
                            </Radio.Group>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}
                            onClick={this.commonInputRadio.bind(this, 'a180406')}>
                            <Radio.Group onChange={Util.commonInputChange.bind(this, 'a180406')} disabled={this.props.disStatus == true ? true : false}
                                value={this.state.a180406} style={{ marginLeft: 10 }}>
                                <Radio value={'a18040601'}>良好</Radio>
                                <Radio value={'a18040602'}>一般</Radio>
                                <Radio value={'a18040603'}>差</Radio>
                            </Radio.Group>
                        </div>
                    </div>
                </div>
            </div>

            {/**辅助检查 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '120px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8', display: 'flex'
                }}>
                    <div style={{ lineHeight: '120px', width: '30%', borderRight: '1px solid #e8e8e8' }}>
                        <div>辅助检查</div>
                    </div>
                    <div style={{ width: '70%' }}>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10 }}>
                            <span className='shuld-choose-btn'>*</span>
                            <span>空腹血糖值</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            {/* <span className='shuld-choose-btn'>*</span> */}
                            <span>随机血糖值</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            {/* <span className='shuld-choose-btn'>*</span> */}
                            <span>其他检查</span>
                        </div>
                    </div>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '120px', textAlign: 'left',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <div>
                        <div style={{ height: '40px', lineHeight: '40px', display: 'flex' }}>
                            <Input placeholder='请输入血糖值' style={{ width: '20%', marginLeft: 10, marginTop: 4 }}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18050101', '1')} value={this.state.a18050101} />
                            <span style={{ margin: '0px 10px' }}>mmol/L</span>
                            <span style={{ marginLeft: 10 }}>测量方式</span>
                            <div onClick={this.commonInputRadio.bind(this, 'a18050102')}>
                                <Radio.Group onChange={Util.commonInputChange.bind(this, 'a18050102')} value={this.state.a18050102}
                                    disabled={this.props.disStatus == true ? true : false}
                                    style={{ marginLeft: 10 }}>
                                    <Radio value={'a1805010201'}>末梢血</Radio>
                                    <Radio value={'a1805010202'}>血浆</Radio>
                                </Radio.Group>
                            </div>
                            <span style={{ marginLeft: 10, color: 'red' }}>
                                {this.state.a18050101 && parseFloat(this.state.a18050101) < 3.9 ? '血糖偏低' :
                                    (this.state.a18050101 && parseFloat(this.state.a18050101) > 6.1 ? '血糖偏高' : '')}
                            </span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8', display: 'flex' }}>
                            <Input placeholder='请输入血糖值' style={{ width: '20%', marginLeft: 10, marginTop: 4 }}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18050201', '1')} value={this.state.a18050201} />
                            <span style={{ margin: '0px 10px' }}>mmol/L</span>
                            <span style={{ marginLeft: 10 }}>测量方式</span>
                            <div onClick={this.commonInputRadio.bind(this, 'a18050202')}>
                                <Radio.Group onChange={Util.commonInputChange.bind(this, 'a18050202')} value={this.state.a18050202}
                                    disabled={this.props.disStatus == true ? true : false}
                                    style={{ marginLeft: 10 }}>
                                    <Radio value={'a1805020201'}>末梢血</Radio>
                                    <Radio value={'a1805020202'}>血浆</Radio>
                                </Radio.Group>
                            </div>
                        </div>
                        <div style={{ height: '40px', borderTop: '1px solid #e8e8e8', paddingTop: 3 }}>
                            <span style={{ paddingLeft: 10 }}>糖化血红蛋白：</span>
                            <Input placeholder='请输入血糖值' style={{ width: '20%' }} disabled={this.props.disStatus == true ? true : false}
                                onChange={this.commonInputChange.bind(this, 'a18050301', '1')} value={this.state.a18050301} />
                            <span style={{ margin: '0px 10px' }}>%</span>
                            <DatePicker format={dayFormat} onChange={this.changeCommonDate.bind(this, 'a18050303')}
                                disabled={this.props.disStatus == true ? true : false}
                                value={this.state.a18050303 ? moment(this.state.a18050303, dayFormat) : ''} style={{ width: '20%' }} />
                            <span style={{ paddingLeft: 10 }}>其他：</span>
                            <Input placeholder='请输其他备注' style={{ width: '20%' }} disabled={this.props.disStatus == true ? true : false}
                                onChange={Util.commonInputChange.bind(this, 'a18050302')} value={this.state.a18050302} />
                        </div>
                    </div>
                </div>
            </div>
            {/**服药依从性 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span className='shuld-choose-btn' style={{ paddingLeft: 10 }}>*</span>
                    <span>服药依从性</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }} onClick={this.commonInputRadio.bind(this, 'a1806')}>
                    <Radio.Group onChange={Util.commonInputChange.bind(this, 'a1806')} disabled={this.props.disStatus == true ? true : false}
                        value={this.state.a1806} style={{ paddingLeft: 10 }}>
                        <Radio value={'a180601'}>规律</Radio>
                        <Radio value={'a180602'}>间断</Radio>
                        <Radio value={'a180603'}>不服药</Radio>
                    </Radio.Group>
                </div>
            </div>

            {/**用药情况 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '200px', lineHeight: '200px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span style={{ paddingLeft: 10 }}>用药情况</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '200px', textAlign: 'left',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <Table columns={this.columns} dataSource={this.state.dataSource}
                        bordered pagination={false}
                        title={() => {
                            return <Button size='small' style={{ textAlign: 'left' }} onClick={this.addMerism.bind(this)}
                                disabled={this.props.disStatus == true ? true : false}>添加药品</Button>
                        }}
                        scroll={{ x: 800, y: '115px' }}>
                    </Table>
                </div>
            </div>

            {/**药物不良反应 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span style={{ paddingLeft: 10 }}>药物不良反应</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }} onClick={this.commonInputRadio.bind(this, 'a1808')}>
                    <Radio.Group style={{ paddingLeft: 10 }} onChange={this.commonInputChangeDisabled.bind(this, 'a1808')}
                        disabled={this.props.disStatus == true ? true : false} value={this.state.a1808}>
                        <Radio value={'a180801'}>无</Radio>
                        <Radio value={'a180802'}>有</Radio>
                    </Radio.Group>
                    <Input
                        placeholder='请输入不良反应'
                        style={{ marginLeft: 10, width: '40%' }}
                        value={this.state.a180803}
                        // disabled={this.props.disStatus == true ? true : false}
                        onChange={Util.commonInputChange.bind(this, 'a180803')}
                        disabled={this.state.reactionStatus == true ? false : true}
                    />
                </div>
            </div>

            {/**低血糖反应 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span style={{ paddingLeft: 10 }}>低血糖反应</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }} onClick={this.commonInputRadio.bind(this, 'a1809')}>
                    <Radio.Group value={this.state.a1809} disabled={this.props.disStatus == true ? true : false}
                        onChange={Util.commonInputChange.bind(this, 'a1809')} style={{ paddingLeft: 10 }}>
                        <Radio value={'a180901'}>无</Radio>
                        <Radio value={'a180902'}>偶尔</Radio>
                        <Radio value={'a180903'}>频繁</Radio>
                    </Radio.Group>
                </div>
            </div>

            {/**此次随访分类 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span style={{ paddingLeft: 10 }}>此次随访分类</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }} onClick={this.commonInputRadio.bind(this, 'a1810')}>
                    <Radio.Group onChange={Util.commonInputChange.bind(this, 'a1810')} disabled={this.props.disStatus == true ? true : false}
                        value={this.state.a1810} style={{ paddingLeft: 10 }}>
                        <Radio value={'a181001'}>控制满意</Radio>
                        <Radio value={'a181002'}>控制不满意</Radio>
                        <Radio value={'a181003'}>不良反应</Radio>
                        <Radio value={'a181004'}>并发症</Radio>
                    </Radio.Group>
                </div>
            </div>

            {/**体征 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '80px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8', display: 'flex'
                }}>
                    <div style={{ lineHeight: '80px', width: '30%', borderRight: '1px solid #e8e8e8', textAlign: 'center' }}>转诊</div>
                    <div style={{ width: '70%' }}>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10 }}>
                            <span>原因</span>
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', paddingLeft: 10, borderTop: '1px solid #e8e8e8' }}>
                            <span>机构及科别</span>
                        </div>
                    </div>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '80px', textAlign: 'left',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <div>
                        <div style={{ height: '40px', lineHeight: '40px' }}>
                            <Input placeholder='请输入转诊原因' style={{ width: '80%', marginLeft: 10 }}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={Util.commonInputChange.bind(this, 'a181101')} value={this.state.a181101} />
                        </div>
                        <div style={{ height: '40px', lineHeight: '40px', borderTop: '1px solid #e8e8e8' }}>
                            <Input placeholder='请输入转诊机构及科别' style={{ width: '80%', marginLeft: 10 }}
                                disabled={this.props.disStatus == true ? true : false}
                                onChange={Util.commonInputChange.bind(this, 'a181102')} value={this.state.a181102} />
                        </div>
                    </div>
                </div>
            </div>

            {/**下次随访日期 */}
            {this.state.transferWayCode == '01' ? <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span className='shuld-choose-btn' style={{ paddingLeft: 10 }}>*</span>
                    <span >下次随访日期</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <DatePicker format={dayFormat} onChange={this.changeCommonDate.bind(this, 'nextVisitDate')}
                        disabled={this.props.disStatus == true ? true : false}
                        value={this.state.nextVisitDate ? moment(this.state.nextVisitDate, dayFormat) : ''} style={{ marginLeft: 10 }} />
                </div>
            </div> : null}

            {/**下次随访人员 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span style={{ paddingLeft: 10 }}>随访人员</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <Select placeholder='请选择下次随访人员' style={{ width: '80%', marginLeft: 10 }}
                        onChange={Util.handleSelectChange.bind(this, 'visitUserID')} value={this.state.visitUserID}
                        showSearch allowClear mode="multiple" disabled={this.props.disStatus == true ? true : false}
                        filterOption={(input, option) =>
                            option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
                            || option.props.code.toLowerCase().indexOf(input.toLowerCase()) >= 0
                        }>
                        {doctorDataOption}
                    </Select>
                </div>
            </div>

            {/**随访录入日期 */}
            <div>
                <div className='hysert-table-left-body' style={{
                    height: '40px', lineHeight: '40px', textAlign: 'left', borderTop: '1px solid #e8e8e8'
                    , borderLeft: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8'
                }}>
                    <span style={{ paddingLeft: 10 }}>随访录入日期</span>
                </div>
                <div className='hysert-table-right-body' style={{
                    height: '40px', textAlign: 'left', lineHeight: '40px',
                    borderTop: '1px solid #e8e8e8', borderRight: '1px solid #e8e8e8',
                }}>
                    <span style={{ paddingLeft: 10 }}>{moment(date).format(dayFormat)}</span>
                </div>
            </div>

            {
                this.props.today == true ? null : <div style={{ textAlign: 'center', position: 'fixed', top: '93%', left: '50%', display: 'flex' }}>
                    <Button style={{ marginLeft: 10 }} onClick={this.clearInput.bind(this)} disabled={this.props.disStatus == true ? true : false}>新增随访</Button>
                    <Button style={{ marginLeft: 10 }} disabled={this.props.disStatus == true ? true : false}>打印</Button>
                    <Spin spinning={this.state.loading} indicator={<Icon type='loading' />}>
                        <Button type='primary' style={{ marginLeft: 10 }} onClick={this.handleSaveHypert.bind(this)} disabled={this.props.disStatus == true ? true : false}>保存</Button>
                    </Spin>
                </div>
            }

            {/**尾部div */}
        </div >
    }

}

export default DiabetesPageTabPane;