/*
 * Creator:     ML
 * CreatDate:   2020-05-20
 * descripts：  盆底肌评估
 * */
import React from 'react';
import moment from 'moment';
import store from 'store';
import { dayFormat } from 'tools/index';
import { Form, Col, Select, Icon, Tooltip, Button, Row, TimePicker, DatePicker, Radio, message, Popconfirm } from 'antd';
import { $http } from 'containers/config/https';
//组件const
const Option = Select.Option;
const FormItem = Form.Item;
const padding = {
    padding: "0px"
}
const formItemLayout = { // label 和input宽度
    labelCol: { span: 3 },
    wrapperCol: { span: 20 }
}
const formItemLayoutPeo = {
    labelCol: { span: 6 },
    wrapperCol: { span: 18}
}
const formItemLayoutDataForm = {
    labelCol: { span: 8 },
    wrapperCol: { span: 16 },
}
const formItemLayoutCenter = {
    labelCol: { span: 2 },
    wrapperCol: { span: 24 },
}
const formItemLayouts = {
    labelCol: { span: 3 },
    wrapperCol: { span: 24 }
}
const AssessmentOfPelvicFloorMuscles = Form.create()(
    class AssessmentOfPelvicFloorMuscles extends React.Component {
        constructor(props) {
            super(props);
            let userData = sessionStorage.getItem("userData") ? JSON.parse(sessionStorage.getItem("userData")) : {};
            let assessData = sessionStorage.getItem("assessData") ? JSON.parse(sessionStorage.getItem("assessData")) : {};
            super(props);
            var date = new Date();
            this.state = {
                userData,
                assessData,
                diseaseArr: [],
                diseaseSubArr: [],
                typeArr: [],
                StartDate: undefined,  // //开始日期
                EndDate: moment(date).format(dayFormat),  // //结束日期
                advicelogMessage: "",
                advicelogVisible: false,
                requid: this.props.requireds,
                requireds: true,
                isTransitionStart:true,
                delStatus:true,
                total: 0,
                doctorID: "",
                patInfoData:[]
            };
        }

        componentWillReceiveProps(nextProps) {
            if (nextProps.doctorID != this.state.doctor) {
                if(nextProps.doctorID){
                    this.handleGetData(nextProps.doctorID)
                 this.setState({
                     doctorID: nextProps.doctorID,
                     doctor: nextProps.doctorID
                 }) 
                 }
            }
        }
        componentDidMount = () => {
            this.props.onFloort(this)
            const { userData } = this.state
            this.handleGetData()
            let datas = {}
            datas = {
                params: [{
                    hospID: userData && userData.hospID || "",
                }],
            }
            $http.post('urlS', this, {
                code: '03070033',
                data: datas,
                success: function (res) {
                    if (+res.errorCode === 0) {
                        this.setState({
                            diseaseArr: res.result.data
                        })
                    }
                }
            })
            let data = {}
            data = {
                params: [{
                    patID: JSON.parse(sessionStorage.getItem('patID')) || "",
                }],
            }
            $http.post('urlS', this, {
                code: '03070028',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0) {
                        this.setState({
                            patInfoData: res.result[0],
                        },()=>{
                            if(document.getElementById('hads-conent')){
                                document.getElementById('hads-conent').style.height = store.getState().tableHeight.y - 102 + 'px';
                               }
                        })
                    }
                }
            })
        }
        //日期
        onPanelChange = (n, v) => {
            if (!v) {
                if (n == 1) {
                    window.sessionStorage.setItem("noSave",true);
                    this.setState({
                        dateF: "",
                    })
                } else {
                    this.setState({
                        dateT: ""
                    })
                }
            } else {
                if (n == 1) {
                    window.sessionStorage.setItem("noSave",true);
                    this.setState({
                        dateF: moment(v).format("YYYY-MM-DD"),
                    })
                } else {
                    this.setState({
                        dateT: moment(v).format("YYYY-MM-DD"),
                    })
                }
            }

        }
        //展开/关闭起始时间
        handleOnOpenChangeStart = (status) => {
            if (!status) {
                this.setState({ isTransitionStart: true })
            } else {
                this.setState({ isTransitionStart: false })
            }
        }
        getTatol = () => {
            let total = 0
            total = (this.state.oneScore || 0) + (this.state.twoScore || 0) + (this.state.threeScore || 0) + (this.state.fourScore || 0) + (this.state.fiveScore || 0)
                + (this.state.sixScore || 0) + (this.state.serScore || 0) + (this.state.eigScore || 0) + (this.state.nineScore || 0) + (this.state.zeroScore || 0)
                + (this.state.oneaScore || 0) + (this.state.twoaScore || 0) + (this.state.threeaScore || 0) + (this.state.fouraScore || 0)
            this.setState({
                total,
            })
        }
        handleChange = (e, name) => {
            if (e.target) {
                if (name) {
                    if(this.state[name + "Value"]!== e.target.value){
                        window.sessionStorage.setItem("noSave",true);
                    }else{
                        window.sessionStorage.setItem("noSave",false);
                    }
                    this.setState({
                        [name + "Value"]: e.target.value,
                        // [name + "Score"]: e.target.score,
                    }, () => {
                        this.getTatol()
                    });
                }
            }
        };
        setValue = (id) => {
            this.setState({
                doctorID: id
            }, () => {
                this.handleGetData(id)
            })
        }
        del = () => {
            const { userData } = this.state
            let data = {}
            data = {
                params: [{
                    userID: userData && userData.userID || "",
                    healthRecordID: this.state.doctorID,
                    assessCatCode: "a32"
                }],
            }
            $http.post('urlS', this, {
                code: '03070081',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0) {
                        message.success("删除成功")
                        window.sessionStorage.setItem("noSave",false);
                        this.clear()
                        this.setState({
                            delStatus:true
                        })
                    }
                }
            })
        }
        clear = (d) => {
            this.props.form.resetFields();
            this.setState({
                // oneValue: "a260104",
                // oneScore: 0,
                // twoValue: "a260204",
                // twoScore: 0,
                // threeValue: "a260304",
                // threeScore: 0,
                // fourValue: "a260404",
                // fourScore: 0,
                // fiveValue: "a260504",
                // fiveScore: 0,
                // sixValue: "a260604",
                // sixScore: 0,
                // serValue: "a260704",
                // serScore: 0,
                // eigValue: "a260804",
                // eigScore: 0,
                // nineValue: "a260904",
                // nineScore: 0,
                // zeroValue: "a261004",
                // zeroScore: 0,
                // oneaValue: "a261104",
                // oneaScore: 0,
                // twoaValue: "a261204",
                // twoaScore: 0,
                // threeaValue: "a261304",
                // threeaScore: 0,
                // fouraValue: "a261404",
                oneValue: "",
                oneScore: 0,
                twoValue: "",
                twoScore: 0,
                threeValue: "",
                threeScore: 0,
                fourValue: "",
                fourScore: 0,
                fiveValue: "",
                fiveScore: 0,
                sixValue: "",
                sixScore: 0,
                serValue: "",
                serScore: 0,
                eigValue: "",
                eigScore: 0,
                nineValue: "",
                nineScore: 0,
                zeroValue: "",
                zeroScore: 0,
                oneaValue: "",
                oneaScore: 0,
                twoaValue: "",
                twoaScore: 0,
                threeaValue: "",
                threeaScore: 0,
                fouraValue: "",
                fouraScore: 0,
                fiveaValue: "",
                fiveaScore: 0,
                sixaValue: "",
                sixaScore: 0,
                seraValue: "",
                seraScore: 0,
                eigaValue: "",
                eigaScore: 0,
                nineaValue: "",
                nineaScore: 0,
                zerobValue: "",
                zerobScore: 0,
                onebValue: "",
                onebScore: 0,
                total: 0,
                collectTime:""
                // doctorID:""
            })
            if(d){
                this.setState({
                    delStatus:true,
                    doctorID:""
                })
            }
        }
        //获取
        handleGetData = (id) => {
            const { assessData } = this.state
            this.props.form.validateFields((err, values) => {
                if(!err){
                    let data = {}
                    data = {
                        params: [
                            {
                                healthRecordID: id,
                                assessmentCatCode: "a32"
                            }
                        ],
                    }
                    $http.post('urlS', this, {
                        code: '03070037',
                        data: data,
                        success: function (res) {
                            if (+res.errorCode === 0) {
                                this.props.form.resetFields();
                                if(res.result.doctorID){
                                    this.setState({
                                        healthDoctorID:res.result.doctorID
                                    })
                                }
                                if (res.result.doctorID&&res.result.father) {
                                    this.setState({
                                        collectTime:res.result.father[0].collectTime,
                                    })
                                    this.props.form.setFieldsValue({ diseaseID: res.result.father[0].collectUserID,collectDate:moment(res.result.father[0].collectDate),});
                                } else {
                                    //清空
                                    this.clear()
                                    this.setState({
                                        delStatus:true
                                    })
                                }
                                if(res.result.father[0].ID){
                                    this.setState({
                                        delStatus: false
                                    })
                                }
                                if (res.result.father[0].children) {
                                    let data = res.result.father[0].children
                                    this.setState({
                                        oneValue: data.a3201,
                                        // oneScore: Number(data.a2601note),
                                        // twoValue: data.a2602,
                                        // twoScore: Number(data.a2602note),
                                        // threeValue: data.a2603,
                                        // threeScore: Number(data.a2603note),
                                        // fourValue: data.a2604,
                                        // fourScore: Number(data.a2604note),
                                        // fiveValue: data.a2605,
                                        // fiveScore: Number(data.a2605note),
                                        // sixValue: data.a2606,
                                        // sixScore: Number(data.a2606note),
                                        // serValue: data.a2607,
                                        // serScore: Number(data.a2607note),
                                        // eigValue: data.a2608,
                                        // eigScore: Number(data.a2608note),
                                        // nineValue: data.a2609,
                                        // nineScore: Number(data.a2609note),
                                        // zeroValue: data.a2610,
                                        // zeroScore: Number(data.a2610note),
                                        // oneaValue: data.a2611,
                                        // oneaScore: Number(data.a2611note),
                                        // twoaValue: data.a2612,
                                        // twoaScore: Number(data.a2612note),
                                        // threeaValue: data.a2613,
                                        // threeaScore: Number(data.a2613note),
                                        // fouraValue: data.a2614,
                                        // fouraScore: Number(data.a2614note),
                                        // fiveaValue: data.a2615,
                                        // fiveaScore: Number(data.a2615note),
                                        // sixaValue: data.a2616,
                                        // sixaScore: Number(data.a2616note),
                                        // seraValue: data.a2617,
                                        // seraScore: Number(data.a2617note),
                                        // eigaValue: data.a2618,
                                        // eigaScore: Number(data.a2618note),
                                        // nineaValue: data.a2619,
                                        // nineaScore: Number(data.a2619note),
                                        // zerobValue: data.a2620,
                                        // zerobScore: Number(data.a2620note),
                                        // onebValue: data.a2621,
                                        // onebScore: Number(data.a2621note),
                                    }, () => {
                                        this.getTatol()
                                    })
                                }
        
                            } else {
        
                            }
                        }
                    })

                }})
           
        }
        //保存
        handleSave = () => {
            const { userData, assessData } = this.state
            this.props.form.validateFields((err, values) => {
                if(!err){
                    let data = {}
                    data = {
                        params: [
                            {
                                doctorID: this.state.healthDoctorID || "",//体检记录责任医生 
                                locID: userData && userData.locID || "",
                                hospID: userData && userData.hospID || "",
                                patID: sessionStorage.getItem("patID") ? JSON.parse(sessionStorage.getItem("patID")) : "",
                                healthRecordID: this.state.doctorID && this.state.doctorID || "",
                                assessCat: [
                                    {
                                        assessCatCode: "a32",
                                        collectDate:values.collectDate ? moment(values.collectDate).format('YYYY-MM-DD') : moment(moment()).format('YYYY-MM-DD'),
                                        collectTime:this.state.collectTime || moment(moment()).format('HH:mm:ss'),
                                        collectUserID:values.diseaseID||"",
                                        score:this.state.total,
                                        assessItem: [
                                            {
                                                assessItemCode: "a3201",
                                                assessItemValue: this.state.oneValue,
                                                assessNote: "",
                                            },
                                            // {
                                            //     assessItemCode: "a2602",
                                            //     assessItemValue: this.state.twoValue,
                                            //     assessNote: this.state.twoScore,
                                            // }, {
                                            //     assessItemCode: "a2603",
                                            //     assessItemValue: this.state.threeValue,
                                            //     assessNote: this.state.threeScore,
                                            // }, {
                                            //     assessItemCode: "a2604",
                                            //     assessItemValue: this.state.fourValue,
                                            //     assessNote: this.state.fourScore,
                                            // }, {
                                            //     assessItemCode: "a2605",
                                            //     assessItemValue: this.state.fiveValue,
                                            //     assessNote: this.state.fiveScore,
                                            // }, {
                                            //     assessItemCode: "a2606",
                                            //     assessItemValue: this.state.sixValue,
                                            //     assessNote: this.state.sixScore,
                                            // }, {
                                            //     assessItemCode: "a2607",
                                            //     assessItemValue: this.state.serValue,
                                            //     assessNote: this.state.serScore,
                                            // }, {
                                            //     assessItemCode: "a2608",
                                            //     assessItemValue: this.state.eigValue,
                                            //     assessNote: this.state.eigScore,
                                            // }, {
                                            //     assessItemCode: "a2609",
                                            //     assessItemValue: this.state.nineValue,
                                            //     assessNote: this.state.nineScore,
                                            // }, {
                                            //     assessItemCode: "a2610",
                                            //     assessItemValue: this.state.zeroValue,
                                            //     assessNote: this.state.zeroScore,
                                            // }, {
                                            //     assessItemCode: "a2611",
                                            //     assessItemValue: this.state.oneaValue,
                                            //     assessNote: this.state.oneaScore,
                                            // }, {
                                            //     assessItemCode: "a2612",
                                            //     assessItemValue: this.state.twoaValue,
                                            //     assessNote: this.state.twoaScore,
                                            // }, {
                                            //     assessItemCode: "a2613",
                                            //     assessItemValue: this.state.threeaValue,
                                            //     assessNote: this.state.threeaScore,
                                            // }, {
                                            //     assessItemCode: "a2614",
                                            //     assessItemValue: this.state.fouraValue,
                                            //     assessNote: this.state.fouraScore,
                                            // }, {
                                            //     assessItemCode: "a2615",
                                            //     assessItemValue: this.state.fiveaValue,
                                            //     assessNote: this.state.fiveaScore,
                                            // }, {
                                            //     assessItemCode: "a2616",
                                            //     assessItemValue: this.state.sixaValue,
                                            //     assessNote: this.state.sixaScore,
                                            // }, {
                                            //     assessItemCode: "a2617",
                                            //     assessItemValue: this.state.seraValue,
                                            //     assessNote: this.state.seraScore,
                                            // }, {
                                            //     assessItemCode: "a2618",
                                            //     assessItemValue: this.state.eigaValue,
                                            //     assessNote: this.state.eigaScore,
                                            // }, {
                                            //     assessItemCode: "a2619",
                                            //     assessItemValue: this.state.nineaValue,
                                            //     assessNote: this.state.nineaScore,
                                            // }, {
                                            //     assessItemCode: "a2620",
                                            //     assessItemValue: this.state.zerobValue,
                                            //     assessNote: this.state.zerobScore,
                                            // },
                                        ]
                                    }
                                ]
                            }
                        ],
                    }
                    $http.post('urlS', this, {
                        code: '03070035',
                        data: data,
                        success: function (res) {
                            if (+res.errorCode === 0) {
                                // if (this.state.doctorID && this.state.doctorID) {
                                //     message.success("更新成功")
                                // } else {
                                //     message.success("保存成功")
                                // }
                                window.sessionStorage.setItem("healthRecordID",res.result.healthRecordID);
                                window.sessionStorage.setItem("noSave",false);
                                if(!this.state.doctorID){
                                    
                                }this.props.updateList()
                                
                                message.success("保存成功")
                                this.handleGetData(res.result.healthRecordID)
                                this.setState({
                                    delStatus:false
                                })
                            } else {
        
                            }
                        }
                    })

                }})
          
        }
        handleRadio = (e, ) => {
            let tag = e.target;
            let arr = tag.id.split("^")
            if (tag.value) {
                if (tag.type === 'radio' && arr[0].toString() === tag.value.toString()) {
                    this.setState({
                        [arr[1]]: '',
                        [arr[2]]: 0,
                    }, () => {
                        this.getTatol()
                    });
                }
            }

        }
        render() {
            const { getFieldDecorator } = this.props.form;
            const { collArr, diseaseArr, diseaseSubArr, assessData, typeArr, statusArr, columns, widthTotal,patInfoData } = this.state;
            var date = new Date();
            let searchColConfig = {
                xs: { span: 24 },
                sm: { span: 12 },
                md: { span: 10 },
                lg: { span: this.props && this.props.modal ? 8 : 6 }
            }
            const mesIcon = <Icon type="exclamation-circle" />
            //采集人
            let diseaseOp = []
            diseaseArr && diseaseArr.map(item => {
                diseaseOp.push(<Option key={item.id} title={item.descripts} onClick={()=> window.sessionStorage.setItem("noSave",true)} role={item.descripts + '^' + item.descriptsSPCode} value={String(item.id)}>{item.descripts}</Option>)
            })

            return (
                <div className="assess-dom mmse-dom hads-dom">
                    <Row style={{ textAlign: "center" }}>
                        <h2>盆底肌评估</h2>
                    </Row>
                     {
                         patInfoData&&patInfoData.patSexCode=="2"? <div>
                             <Row style={{ position: "relative" }}>
                         <Form>
                             <Col span={4} className="starDataDom" style={{ padding: "0" }}>
                                 <FormItem label='调查时间' {...formItemLayoutDataForm}>
                                     {getFieldDecorator('collectDate', {
                                         initialValue: moment(),
                                         rules: [{ required: false, message: '' }],
                                     })(
                                         <DatePicker onChange={(v) => this.onPanelChange(1, v)} style={{ width: '100%' }} placeholder={'调查日期'} disabledDate={(curDate) => {
                                             return curDate && curDate > moment().endOf('day');
                                         }} />
                                     )}
                                 </FormItem>
                             </Col>
                             {/* <Col span={3} style={{ paddingLeft: "5px", paddingRight: "0px" }}>
                                 <Form.Item {...formItemLayoutCenter}>
                                     <Col>
                                         {getFieldDecorator('collectTime', {
                                             initialValue: moment(),
                                         })(
                                             <TimePicker style={{ width: '100%' }} separator=":" showToday format={this.state.isTransitionStart ? 'HH:mm:ss' : 'HHmmss'} onOpenChange={this.handleOnOpenChangeStart} placeholder="调查时间" />
                                         )}
                                     </Col>
                                 </Form.Item>
                             </Col> */}
                             <Col span={6} style={padding} className="select-item">
                                 <FormItem {...formItemLayoutPeo} label={this.props.locale && this.props.locale == 'EN' ? 'disease' : '采集人'} >
                                     {getFieldDecorator('diseaseID', {
                                         initialValue: this.state.userData && this.state.userData.userID || undefined,
                                         rules: [{ required: true, message: '请选择采集人' }]
                                     })(
                                         <Select
                                             style={{ width: "100%", textAlign: "left", }}
                                             showSearch={true}
                                             optionFilterProp="role"
                                             allowClear
                                         >
                                             {diseaseOp}
                                         </Select>
                                     )}
                                 </FormItem>
                             </Col>
                             <Col span={2} style={{ paddingLeft: "0", position: "absolute", right: "96px" }}>
                                 <FormItem  {...formItemLayout}>
                                     {getFieldDecorator('findData', {
                                         initialValue: undefined,
                                         rules: [{ required: false, message: '' }],
                                     })(
                                         <div style={{ display: "flex", marginTop: "4px" }}>
                                             <Popconfirm disabled={this.state.delStatus} title="删除不可恢复，你确定要删除吗?" onConfirm={() => this.del()} >
                                                 <Button type="danger" style={{ color: this.state.delStatus ? "#bfbfbf" : "#ffff", cursor: this.state.delStatus ? "not-allowed" : "pointer", background: this.state.delStatus ? "#fff" : "#ff7875", border: this.state.delStatus ? "1px solid #bfbfbf" : "1px solid #ff7875" }}  >删除评估</Button>
                                             </Popconfirm>      
                                             {/* <Button style={{ background: "#fff", color: "#1890ff", margin: "0 18px 0 18px" }} type="primary">打印</Button> */}
                                             {/* <Button onClick={this.handleSave} type="primary">{this.state.doctorID && this.state.doctorID ? "更新" : "保存"}</Button> */}
                                             <Button  style={{ margin: "0 18px 0 18px" }} onClick={this.handleSave} type="primary">保存</Button>
                                         </div>
                                     )}
                                 </FormItem>
                             </Col>
                         </Form>
                     </Row>
                     <div className="conent" id="hads-conent" onClick={(e) => this.handleRadio(e)}>
                         <Row>
                             <h2> 您是否有漏尿情况？</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "one")} value={this.state.oneValue}>
                                 <Radio value={"a320101"} id={this.state.oneValue + "^" + "oneValue" + "^" + "oneScore" + "^" + "a10101"}>Ⅰ度（咳嗽、打喷嚏、健身、跳舞、奔跑、大笑）</Radio>
                                 <Radio value={"a320102"} id={this.state.oneValue + "^" + "oneValue" + "^" + "oneScore" + "^" + "a1101"} >Ⅱ度（行走、爬楼梯）</Radio>
                                 <Radio value={"a320103"} id={this.state.oneValue + "^" + "oneValue" + "^" + "oneScore" + "^" + "a101"}>Ⅲ度（直立活动、体位变化）</Radio>
                                 <Radio value={"a320104"} id={this.state.oneValue + "^" + "oneValue" + "^" + "oneScore" + "^" + "a11"} >Ⅳ度（卧床）</Radio>
                                 <Radio value={"a320105"} id={this.state.oneValue + "^" + "oneValue" + "^" + "oneScore" + "^" + "a11"} >否</Radio>
                             </Radio.Group>
                         </Row> 
                         <Row style={{borderTop:"1px solid #ccc"}}></Row>
                         {/* <Row>
                             <h2>2、我对以往感兴趣的事情还是有兴趣</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "two")} value={this.state.twoValue}>
                                 <Radio value={"a260201"}  id={this.state.twoValue + "^" + "twoValue" + "^" + "twoScore" + "^" + "a101"}  score={3}>3、基本上没有了</Radio>
                                 <Radio value={"a260202"} id={this.state.twoValue + "^" + "twoValue" + "^" + "twoScore" + "^" + "a01"}  score={2}>2、只有一点</Radio>
                                 <Radio value={"a260203"} id={this.state.twoValue + "^" + "twoValue" + "^" + "twoScore" + "^" + "a9201"}  score={1}>1、不像以前那样多</Radio>
                                 <Radio value={"a260204"}  id={this.state.twoValue + "^" + "twoValue" + "^" + "twoScore" + "^" + "a0"} score={0}>0、肯定一样多</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>3、我感到有点害怕，好像预感到有什么可怕事情要发生</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "three")} value={this.state.threeValue}>
                                 <Radio value={"a260301"}  id={this.state.threeValue + "^" + "threeValue" + "^" + "threeScore" + "^" + "a1201"} score={3}>3、非常肯定和十分严重</Radio>
                                 <Radio value={"a260302"} id={this.state.threeValue + "^" + "threeValue" + "^" + "threeScore" + "^" + "a101"} score={2}>2、是有，但并不太严重</Radio>
                                 <Radio value={"a260303"} id={this.state.threeValue + "^" + "threeValue" + "^" + "threeScore" + "^" + "a01"} score={1}>1、有一点，但并不使我苦恼</Radio>
                                 <Radio value={"a260304"} id={this.state.threeValue + "^" + "threeValue" + "^" + "threeScore" + "^" + "a1"} score={0}>0、根本没有</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>4、我能够哈哈大笑，并看到事物好的一面</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "four")} value={this.state.fourValue}>
                                 <Radio value={"a260401"}id={this.state.fourValue + "^" + "fourValue" + "^" + "fourScore" + "^" + "a1901"}  score={3}>3、根本没有</Radio>
                                 <Radio value={"a260402"} id={this.state.fourValue + "^" + "fourValue" + "^" + "fourScore" + "^" + "a1201"} score={2}>2、现在肯定是不太多了</Radio>
                                 <Radio value={"a260403"}id={this.state.fourValue + "^" + "fourValue" + "^" + "fourScore" + "^" + "a101"}  score={1}>1、现在已经不太这样了</Radio>
                                 <Radio value={"a260404"} id={this.state.fourValue + "^" + "fourValue" + "^" + "fourScore" + "^" + "a1901"} score={0}>0、我经常这样</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>5、我的心中充满烦恼</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "five")} value={this.state.fiveValue}>
                                 <Radio value={"a260501"} id={this.state.fiveValue + "^" + "fiveValue" + "^" + "fiveScore" + "^" + "a1951"} score={3}>3、大多数时间</Radio>
                                 <Radio value={"a260502"} id={this.state.fiveValue + "^" + "fiveValue" + "^" + "fiveScore" + "^" + "a1901"} score={2}>2、时常如此</Radio>
                                 <Radio value={"a260503"} id={this.state.fiveValue + "^" + "fiveValue" + "^" + "fiveScore" + "^" + "a1501"} score={1}>1、时时，但并不经常</Radio>
                                 <Radio value={"a260504"} id={this.state.fiveValue + "^" + "fiveValue" + "^" + "fiveScore" + "^" + "a9501"} score={0}>0、偶然如此</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>6、我感到愉快</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "six")} value={this.state.sixValue}>
                                 <Radio value={"a260601"}id={this.state.sixValue + "^"+ "sixValue" +  "^" + "sixScore" + "^" + "a900"} score={3}>3、根本没有</Radio>
                                 <Radio value={"a260602"} id={this.state.sixValue + "^"+ "sixValue" +  "^" + "sixScore" + "^" + "a190"}score={2}>2、并不经常</Radio>
                                 <Radio value={"a260603"} id={this.state.sixValue + "^"+ "sixValue" +  "^" + "sixScore" + "^" + "a00"}score={1}>1、有时</Radio>
                                 <Radio value={"a260604"} id={this.state.sixValue + "^"+ "sixValue" +  "^" + "sixScore" + "^" + "a0"}score={0}>0、大多数时间</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>7、我能够安闲而轻松地坐着</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "ser")} value={this.state.serValue}>
                                 <Radio value={"a260701"} id={this.state.serValue + "^"+ "serValue"   +  "^" +"serScore" + "^" + "a"} score={3}>3、根本没有</Radio>
                                 <Radio value={"a260702"}  id={this.state.serValue + "^"+ "serValue"   +  "^" +"serScore" + "^" + "900"}score={2}>2、并不经常</Radio>
                                 <Radio value={"a260703"} id={this.state.serValue + "^"+ "serValue"   +  "^" +"serScore" + "^" + "a0"} score={1}>1、经常</Radio>
                                 <Radio value={"a260704"}  id={this.state.serValue + "^"+ "serValue"   +  "^" +"serScore" + "^" + "a00"}score={0}>0、肯定</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>8、我对自己的仪容（打扮自己）失去兴趣</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "eig")} value={this.state.eigValue}>
                                 <Radio value={"a260801"} id={this.state.eigValue + "^"+ "eigValue" +  "^" +"eigScore" + "^" + "a10"}score={3}>3、肯定</Radio>
                                 <Radio value={"a260802"} id={this.state.eigValue + "^"+ "eigValue" +  "^" +"eigScore" + "^" + "a0"}score={2}>2、并不像我应该做到的那样关心</Radio>
                                 <Radio value={"a260803"}id={this.state.eigValue + "^"+ "eigValue" +  "^" +"eigScore" + "^" + "100"} score={1}>1、我可能不是非常关心</Radio>
                                 <Radio value={"a260804"} id={this.state.eigValue + "^"+ "eigValue" +  "^" +"eigScore" + "^" + "0"}score={0}>0、我仍像以往一样关心</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>9、我有点坐立不安，好像感到非要活动不可</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "nine")} value={this.state.nineValue}>
                                 <Radio value={"a260901"} id={this.state.nineValue + "^" + "nineValue" + "^" + "nineScore" + "^" + "a1nineSore900"}score={3}>3、确实非常多</Radio>
                                 <Radio value={"a260902"}id={this.state.nineValue + "^" + "nineValue" + "^" + "nineScore" + "^" + "a1nineSco900"} score={2}>2、是不少</Radio>
                                 <Radio value={"a260903"}id={this.state.nineValue + "^" + "nineValue" + "^" + "nineScore" + "^" + "a1nineSco00"} score={1}>1、并不很多</Radio>
                                 <Radio value={"a260904"}id={this.state.nineValue + "^" + "nineValue" + "^" + "nineScore" + "^" + "a1nineS0"} score={0}>0、根本没有</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>10、我对一切都是乐观地向前看</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "zero")} value={this.state.zeroValue}>
                                 <Radio value={"a261001"} id={this.state.zeroValue + "^"+ "zeroValue" + "^" + "zeroScore" + "^" + "a1nr900"} score={3}>3、几乎从不这样做</Radio>
                                 <Radio value={"a261002"}  id={this.state.zeroValue + "^"+ "zeroValue" + "^" + "zeroScore" + "^" + "a1900"}score={2}> 2、很少这样做</Radio>
                                 <Radio value={"a261003"} id={this.state.zeroValue + "^"+ "zeroValue" + "^" + "zeroScore" + "^" + "a100"}score={1}>1、并不完全是这样</Radio>
                                 <Radio value={"a261004"}id={this.state.zeroValue + "^"+ "zeroValue" + "^" + "zeroScore" + "^" + "a10"} score={0}>0、差不多是这样</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>11、我突然发现有点恐慌感</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "onea")} value={this.state.oneaValue}>
                                 <Radio value={"a261101"}id={this.state.oneaValue + "^"+ "oneaValue" +  "^" +"oneaScore" + "^" + "a1n900"} score={3}>3、确实很经常</Radio>
                                 <Radio value={"a261102"} id={this.state.oneaValue + "^"+ "oneaValue" +  "^" +"oneaScore" + "^" + "a1no90"}score={2}>2、时常</Radio>
                                 <Radio value={"a261103"} id={this.state.oneaValue + "^"+ "oneaValue" +  "^" +"oneaScore" + "^" + "a100"}score={1}>1、并非经常</Radio>
                                 <Radio value={"a261104"} id={this.state.oneaValue + "^"+ "oneaValue" +  "^" +"oneaScore" + "^" + "a10"}score={0}>0、根本没有</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>12、我好像感到情绪在渐渐低落</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "twoa")} value={this.state.twoaValue}>
                                 <Radio value={"a261201"}id={this.state.twoaValue + "^" + "twoaValue"+ "^" + "twoaScore" + "^" + "anco900"} score={3}>3、几乎所有时间</Radio>
                                 <Radio value={"a261202"}id={this.state.twoaValue + "^" + "twoaValue"+ "^" + "twoaScore" + "^" + "ano900"} score={2}>2、很经常</Radio>
                                 <Radio value={"a261203"} id={this.state.twoaValue + "^" + "twoaValue"+ "^" + "twoaScore" + "^" + "ano90"}score={1}>1、有时</Radio>
                                 <Radio value={"a261204"} id={this.state.twoaValue + "^" + "twoaValue"+ "^" + "twoaScore" + "^" + "a00"}score={0}>0、根本没有</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>13、我感到有点害怕，好像某个内脏变坏了</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "threea")} value={this.state.threeaValue}>
                                 <Radio value={"a261301"}id={this.state.threeaValue + "^" + "threeaValue"+ "^" + "threeaScore" + "^" + "an00"}  score={3}>3、非常经常</Radio>
                                 <Radio value={"a261302"}id={this.state.threeaValue + "^" + "threeaValue"+ "^" + "threeaScore" + "^" + "a00"}  score={2}>2、很经常</Radio>
                                 <Radio value={"a261303"}id={this.state.threeaValue + "^" + "threeaValue"+ "^" + "threeaScore" + "^" + "a0"}  score={1}>1、有时</Radio>
                                 <Radio value={"a261304"} id={this.state.threeaValue + "^" + "threeaValue"+ "^" + "threeaScore" + "^" + "0"} score={0}>0、根本没有</Radio>
                             </Radio.Group>
                         </Row>
                         <Row>
                             <h2>14、我能欣赏一本好书或一项顶好的广播或电视节目</h2>
                             <Radio.Group onChange={(e) => this.handleChange(e, "foura")} value={this.state.fouraValue}>
                                 <Radio value={"a261401"}id={this.state.fouraValue + "^"+ "fouraValue" +"^" + "fouraScore" + "^" + "aS00"} score={3}>3、很少</Radio>
                                 <Radio value={"a261402"}id={this.state.fouraValue + "^"+ "fouraValue" +"^" + "fouraScore" + "^" + "anS0"}score={2}>2、并非经常</Radio>
                                 <Radio value={"a261403"} id={this.state.fouraValue + "^"+ "fouraValue" +"^" + "fouraScore" + "^" + "an0"}score={1}>1、有时</Radio>
                                 <Radio value={"a261404"} id={this.state.fouraValue + "^"+ "fouraValue" +"^" + "fouraScore" + "^" + "a0"}score={0}>0、常常如此</Radio>
                             </Radio.Group>
                         </Row> */}
                     </div>
                         </div>:<div>
                             <p style={{textAlign: "center",height: "58px",lineHeight: "66px"}}>当前居民不是女性，不可填写。</p>
                         </div>
                     }
                </div>
            );
        }
    })
export default AssessmentOfPelvicFloorMuscles
