/*
 * Creator:     ML
 * CreatDate:   2020-04-08
 * descripts：  IADL评分
 * */
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 AssessmentIADL = Form.create()(
    class AssessmentIADL extends React.Component {
        constructor(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,
                total: 0,
                doctorID: "",
                delStatus:true,
                itemObj: {
                    a2501: "",
                    a2502: "",
                    a2503: "",
                    a2504: "",
                    a2505: "",
                    a2506: "",
                    a2507: "",
                    a2508: "",
                },
                itemObjValue: {
                    a2501note: "",
                    a2502note: "",
                    a2503note: "",
                    a2504note: "",
                    a2505note: "",
                    a2506note: "",
                    a2507note: "",
                    a2508note: "",
                }
            };
        }

        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.IADL(this)
            const { userData } = this.state
            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
                        })
                    }
                }
            })
            document.getElementById('iadl-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 })
            }
        }
        total() {
            let total = 0
            let itemObjValue = this.state.itemObjValue
            let itemValue = Object.values(itemObjValue)
            itemValue.map(item => total += Number(item))
            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);
                    }
                    let itemObj = this.state.itemObj
                    let itemObjValue = this.state.itemObjValue
                    itemObj[name] = e.target.value
                    itemObjValue[name + "note"] = e.target.score
                    this.setState({
                        itemObj,
                        itemObjValue,
                        [name + 'score']: e.target.score,
                        [name + 'Value']: e.target.value

                    }, () => {
                        this.total()
                    });
                }
            }
        };
        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: "a25"
                }],
            }
            $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();
            // let itemObj = {
            //     a2501: "a250104",
            //     a2502: "a250205",
            //     a2503: "a250304",
            //     a2504: "a250405",
            //     a2505: "a250503",
            //     a2506: "a250604",
            //     a2507: "a250704",
            //     a2508: "a250803",
            // };
            // let itemObjValue = {
            //     a2501note: "0",
            //     a2502note: "0",
            //     a2503note: "0",
            //     a2504note: "0",
            //     a2505note: "0",
            //     a2506note: "0",
            //     a2507note: "0",
            //     a2508note: "0",
            // }
            let itemObj = {
                a2501: "",
                a2502: "",
                a2503: "",
                a2504: "",
                a2505: "",
                a2506: "",
                a2507: "",
                a2508: "",
            };
            let itemObjValue = {
                a2501note: "0",
                a2502note: "0",
                a2503note: "0",
                a2504note: "0",
                a2505note: "0",
                a2506note: "0",
                a2507note: "0",
                a2508note: "0",
            }
            this.setState({
                itemObj,
                itemObjValue,
                total: 0,
                collectTime:""
                // doctorID: ""
            })
            if(d){
                this.setState({
                    delStatus:true,
                    doctorID:""
                })
            }
        }
        //获取
        handleGetData = (id) => {
            const { assessData, itemObj } = this.state
            this.props.form.validateFields((err, values) => {
                if(!err){
                    let data = {}
                    data = {
                        params: [
                            {
                                healthRecordID: id || "0",
                                assessmentCatCode: "a25"
                            }
                        ],
                    }
                    $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
                                    let itemObj = this.state.itemObj
                                    let itemObjValue = this.state.itemObjValue
                                    for (let i in data) {
                                        if (i.includes("note")) {
                                            itemObjValue[i] = Number(data[i])
                                            this.setState({
                                                [itemObjValue[i]]:Number(data[i])
                                            })
                                        } else {
                                            itemObj[i] = data[i]
                                        }
                                    }
                                    this.setState({
                                        itemObj,
                                        itemObjValue,
                                        total: Number(res.result.father[0].assessmentCatScore)
                                    }, () => {
                                        this.total()
                                    })
                                }
    
                            } else {
    
                            }
                        }
                    })
                }})
               
            
        }
        //保存
        handleSave = () => {
            const { userData, assessData, itemObj } = this.state
            this.props.form.validateFields((err, values) => {
                if(!err){
                     let data = {}
            let assessItem = []
            for (let i in itemObj) {
                let obj = {}
                obj['assessItemCode'] = i;
                obj['assessItemValue'] = itemObj[i]
                obj['assessNote'] = this.state[i + 'score']
                assessItem.push(obj)
            }
            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: "a25",
                                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,
                            }
                        ]
                    }
                ],
            }
            $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("保存成功")
                        // }
                        if(!this.state.doctorID){
                           
                        } this.props.updateList()
                        window.sessionStorage.setItem("healthRecordID",res.result.healthRecordID);
                        window.sessionStorage.setItem("noSave",false);
                        this.setState({
                            delStatus:false
                        })
                        message.success("保存成功")
                        this.handleGetData(res.result.healthRecordID)
                    } 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()) {
                    let itemObj = this.state.itemObj
                    let itemObjValue = this.state.itemObjValue
                    itemObj[arr[1]]=""
                    itemObjValue[arr[2]]=""
                    // if(arr[2].indexOf("note") != -1){
                    //         // itemObjValue[arr[2]]=""
                    //     }

                    this.setState({
                        itemObj,
                        itemObjValue,
                    }, () => {
                        this.total()
                    });
                }
            }

        }
        render() {
            const { getFieldDecorator } = this.props.form;
            const { collArr, diseaseArr, assessData, activeKey, typeArr, statusArr, columns, widthTotal } = 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} onClick={()=> window.sessionStorage.setItem("noSave",true)} title={item.descripts} role={item.descripts + '^' + item.descriptsSPCode} value={String(item.id)}>{item.descripts}</Option>)
            })
            return (
                <div className="assess-dom mmse-dom iadl-dom">
                    <Row style={{ textAlign: "center" }}>
                        <h2>日常生活活动能力量表（IADL）</h2>
                    </Row>
                    <Row className="title-tips" style={{ color: "#bfbfbf", marginBottom: "12px" }}>
                        <p>说明：</p>
                        <p>1、勾选“不适用”者，该项分数视为满分；</p>
                        <p>2、勾选项目分值1或0者，列为失能项目；</p>
                        <p>3、上街购物、外出活动、食物烹调、家务维持、洗衣服等五项中有三项以上需要协助者即为轻度失能。</p>
                    </Row>
                    <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={2} style={{ paddingLeft: "5px", paddingRight: "0px", textAlign: "center" }}>
                                <Form.Item {...formItemLayoutCenter}>
                                    <Col>
                                        {getFieldDecorator('fraction', {
                                            initialValue: undefined,
                                        })(
                                            <div>
                                                <span>得分:</span><span style={{ color: "#096dd9", fontSize: "22px", margin: "0 6px" }}>{this.state.total}</span>
                                            </div>
                                        )}
                                    </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="iadl-conent" onClick={(e) => this.handleRadio(e)}>
                        <Row>
                            <h2> 1、上街购物</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2501")} value={this.state.itemObj.a2501}>
                                <Radio value={"a250105"} id={this.state.itemObj.a2501 + "^" + "a2501" + "^" + "a2501note" + "^" + "a1101"} score="3">不适用</Radio>
                                <Radio value={"a250101"} id={this.state.itemObj.a2501 + "^" + "a2501" + "^" + "a2501note" + "^" + "a101"} score="3">3、独立完成所有购物需求</Radio>
                                <Radio value={"a250102"} id={this.state.itemObj.a2501 + "^" + "a2501" + "^" + "a2501note" + "^" + "a11"} score="2">2、独立购买日常生活用品</Radio>
                                <Radio value={"a250103"} id={this.state.itemObj.a2501 + "^" + "a2501" + "^" + "a2501note" + "^" + "a01"} score="1">1、每一次上街购物都需要有人陪</Radio>
                                <Radio value={"a250104"} id={this.state.itemObj.a2501 + "^" + "a2501" + "^" + "a2501note" + "^" + "a191"} score="0">0、完全不会上街购物</Radio>
                            </Radio.Group>
                        </Row>
                        <Row>
                            <h2>2、外出活动</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2502")} value={this.state.itemObj.a2502}>
                                <Radio value={"a250206"} id={this.state.itemObj.a2502 + "^" + "a2502" + "^" + "a2502note" + "^" + "a101"} score="4">不适用</Radio>
                                <Radio value={"a250201"} id={this.state.itemObj.a2502 + "^" + "a2502" + "^" + "a2502note" + "^" + "a01"} score="4">4、能够自己开车、骑车</Radio>
                                <Radio value={"a250202"} id={this.state.itemObj.a2502 + "^" + "a2502" + "^" + "a2502note" + "^" + "1"} score="3">3、能够自己搭乘大众运输工具</Radio>
                                <Radio value={"a250203"} id={this.state.itemObj.a2502 + "^" + "a2502" + "^" + "a2502note" + "^" + "a"} score="2">2、能够自己搭乘计程车但不会搭乘大众运输工具</Radio>
                                <Radio value={"a250204"} id={this.state.itemObj.a2502 + "^" + "a2502" + "^" + "a2502note" + "^" + "a111"} score="1">1、当有人陪同可搭计程车或大众运输工具</Radio>
                                <Radio value={"a250205"} id={this.state.itemObj.a2502 + "^" + "a2502" + "^" + "a2502note" + "^" + "111"} score="0">0、完全不能出门</Radio>
                            </Radio.Group>
                        </Row>
                        <Row>
                            <h2>3、食物烹调</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2503")} value={this.state.itemObj.a2503}>
                                <Radio value={"a250305"} id={this.state.itemObj.a2503 + "^" + "a2503" + "^" + "a2503note" + "^" + "a11"} score="3">不适用</Radio>
                                <Radio value={"a250301"} id={this.state.itemObj.a2503 + "^" + "a2503" + "^" + "a2503note" + "^" + "11"} score="3">3、能独立计划、烹煮和摆设一顿适当的饭菜</Radio>
                                <Radio value={"a250302"} id={this.state.itemObj.a2503 + "^" + "a2503" + "^" + "a2503note" + "^" + "1"} score="2">2、如果准备好一切佐料，会做一顿适当的饭菜</Radio>
                                <Radio value={"a250303"} id={this.state.itemObj.a2503 + "^" + "a2503" + "^" + "a2503note" + "^" + "a1"} score="1">1、会将已做好的饭菜加热</Radio>
                                <Radio value={"a250304"} id={this.state.itemObj.a2503 + "^" + "a2503" + "^" + "a2503note" + "^" + "a01"} score="0">0、需要别人把饭菜煮好、摆好</Radio>
                            </Radio.Group>
                        </Row>
                        <Row>
                            <h2>4、家务维持</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2504")} value={this.state.itemObj.a2504}>
                                <Radio value={"a250406"} id={this.state.itemObj.a2504 + "^" + "a2504" + "^" + "a2504note" + "^" + "a101"} score="4">不适用</Radio>
                                <Radio value={"a250401"} id={this.state.itemObj.a2504 + "^" + "a2504" + "^" + "a2504note" + "^" + "a1001"} score="4">4、能做较繁重的家事或需偶尔家事协助（如搬动沙发、擦地板、洗窗户）</Radio>
                                <Radio value={"a250402"} id={this.state.itemObj.a2504 + "^" + "a2504" + "^" + "a2504note" + "^" + "a10001"} score="3">3、能做较简单的家事，如洗碗、铺床、叠被</Radio>
                                <Radio value={"a250403"} id={this.state.itemObj.a2504 + "^" + "a2504" + "^" + "a2504note" + "^" + "a100001"} score="2">2、能做家事，但不能达到可被接受的整洁程度</Radio>
                                <Radio value={"a250404"} id={this.state.itemObj.a2504 + "^" + "a2504" + "^" + "a2504note" + "^" + "a1000001"} score="1">1、所有的家事都需要别人协助</Radio>
                                <Radio value={"a250405"} id={this.state.itemObj.a2504 + "^" + "a2504" + "^" + "a2504note" + "^" + "a100009001"} score="0">0、完全不会做家事</Radio>
                            </Radio.Group>
                        </Row>
                        <Row>
                            <h2>5、洗衣服</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2505")} value={this.state.itemObj.a2505}>
                                <Radio value={"a250504"} id={this.state.itemObj.a2505 + "^" + "a2505" + "^" + "a2505note" + "^" + "a1401"} score="2">不适用</Radio>
                                <Radio value={"a250501"} id={this.state.itemObj.a2505 + "^" + "a2505" + "^" + "a2505note" + "^" + "a1041"} score="2">2、自己清洗所有衣物</Radio>
                                <Radio value={"a250502"} id={this.state.itemObj.a2505 + "^" + "a2505" + "^" + "a2505note" + "^" + "a1014"} score="1">1、只清洗小件衣物</Radio>
                                <Radio value={"a250503"} id={this.state.itemObj.a2505 + "^" + "a2505" + "^" + "a2505note" + "^" + "a14401"} score="0">0、完全依赖他人</Radio>
                            </Radio.Group>
                        </Row>
                        <Row>
                            <h2>6、使用电话的能力</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2506")} value={this.state.itemObj.a2506}>
                                <Radio value={"a250605"} id={this.state.itemObj.a2506 + "^" + "a2506" + "^" + "a2506note" + "^" + "a14061"} score="3">不适用</Radio>
                                <Radio value={"a250601"} id={this.state.itemObj.a2506 + "^" + "a2506" + "^" + "a2506note" + "^" + "a16401"} score="3">3、独立使用电话、会查电话簿、拨号等</Radio>
                                <Radio value={"a250602"} id={this.state.itemObj.a2506 + "^" + "a2506" + "^" + "a2506note" + "^" + "a14061"} score="2">2、仅可拨熟悉的电话号码</Radio>
                                <Radio value={"a250603"} id={this.state.itemObj.a2506 + "^" + "a2506" + "^" + "a2506note" + "^" + "a14016"} score="1">1、仅会接电话，不会拨电话</Radio>
                                <Radio value={"a250604"} id={this.state.itemObj.a2506 + "^" + "a2506" + "^" + "a2506note" + "^" + "a61401"} score="0">0、完全不会使用电话</Radio>
                            </Radio.Group>
                        </Row>
                        <Row>
                            <h2>7、服用药物</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2507")} value={this.state.itemObj.a2507}>
                                <Radio value={"a250705"} id={this.state.itemObj.a2507 + "^" + "a2507" + "^" + "a2507note" + "^" + "a140w61"} score="3">不适用</Radio>
                                <Radio value={"a250701"} id={this.state.itemObj.a2507 + "^" + "a2507" + "^" + "a2507note" + "^" + "ae4061"} score="3">3、能自己负责在正确的时间服用正确的药物</Radio>
                                <Radio value={"a250702"} id={this.state.itemObj.a2507 + "^" + "a2507" + "^" + "a2507note" + "^" + "a140r61"} score="2">2、需要提醒或少许协助</Radio>
                                <Radio value={"a250703"} id={this.state.itemObj.a2507 + "^" + "a2507" + "^" + "a2507note" + "^" + "a140ew61"} score="1">1、如果事先准备好服用的药物分量，可自行服用</Radio>
                                <Radio value={"a250704"} id={this.state.itemObj.a2507 + "^" + "a2507" + "^" + "a2507note" + "^" + "a140tt61"} score="0">0、不能自己服用药物</Radio>
                            </Radio.Group>
                        </Row>
                        <Row>
                            <h2>8、处理财务能力</h2>
                            <Radio.Group onChange={(e) => this.handleChange(e, "a2508")} value={this.state.itemObj.a2508}>
                                <Radio value={"a250804"} id={this.state.itemObj.a2508 + "^" + "a2508" + "^" + "a2508note" + "^" + "a10w61"} score="2">不适用</Radio>
                                <Radio value={"a250801"}id={this.state.itemObj.a2508 + "^" + "a2508" + "^" + "a2508note" + "^" + "a0w61"} score="2">2、可以独立处理财务</Radio>
                                <Radio value={"a250802"}id={this.state.itemObj.a2508 + "^" + "a2508" + "^" + "a2508note" + "^" + "a1w61"} score="1">1、可以处理日常的购买，但需要别人协助与银行往来或大宗买卖</Radio>
                                <Radio value={"a250803"}id={this.state.itemObj.a2508 + "^" + "a2508" + "^" + "a2508note" + "^" + "a141"} score="0">0、不能处理钱财</Radio>
                            </Radio.Group>
                        </Row>
                    </div>
                </div>
            );
        }
    })
export default AssessmentIADL
