/*
 * Creator:     ML
 * CreatDate:   2020-04-09
 * descripts：  中医体质辨识结果
 * */
import React from 'react';
import moment from 'moment';
import { dayFormat } from 'tools/index';
import store from 'store';
import { Form, Col, Select, Icon, Tooltip, Button, Row, TimePicker, DatePicker, Radio, Input, message, Popconfirm, } from 'antd';
import { $http } from 'containers/config/https';
//组件const
const Option = Select.Option;
const FormItem = Form.Item;
const { TextArea } = Input;
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 }
}
let activedID = ""
const AssessmentConsResult = Form.create()(
    class AssessmentConsResult 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,
                doctor: "",
                isTransitionStart: true,
                delStatus: true,

                obj: {
                    a280101Socre: 0,
                    a280102Socre: 0,
                    a280103Socre: 0,
                    a280104Socre: 0,
                    a280105Socre: 0,
                    a280106Socre: 0,
                    a280107Socre: 0,
                    a280108Socre: 0,
                    a280109Socre: 0,
                },
                itemObj: {
                    a280101: "",
                    a280102: "",
                    a280103: "",
                    a280104: "",
                    a280105: "",
                    a280106: "",
                    a280107: "",
                    a280108: "",
                    a280109: "",
                    a280201: "",
                    a280202: "",
                    a280203: "",
                    a280204: "",
                    a280205: "",
                    a280206: "",
                    a2803: ""
                },
                itemObjValue: {
                    a280101note: "",
                    a280102note: "",
                    a280103note: "",
                    a280104note: "",
                    a280105note: "",
                    a280106note: "",
                    a280107note: "",
                    a280108note: "",
                    a280109note: "",
                    a280201note: "",
                    a280202note: "",
                    a280203note: "",
                    a280204note: "",
                    a280205note: "",
                    a280206note: "",
                }
            };
        }

        componentWillReceiveProps(nextProps) {
            if (nextProps.doctorID != this.state.doctor) {
                if (nextProps.doctorID) {
                    this.handleGetData(nextProps.doctorID)
                    this.setState({
                        doctorID: nextProps.doctorID,
                        doctor: nextProps.doctorID
                    })
                }
            }
        }

        componentDidMount = () => {
            document.getElementById('consResult-conent').style.height = store.getState().tableHeight.y - 62 + 'px';
            this.props.onRef(this)
            const { obj } = this.state
            let itemObj = this.state.itemObj
            // this.handleGetData()
            activedID = this.props.id
        }
        del = () => {
            const { userData } = this.state
            let data = {}
            data = {
                params: [{
                    userID: userData && userData.userID || "",
                    healthRecordID: this.state.doctorID,
                    assessCatCode: "a28"
                }],
            }
            $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
                        })
                        // this.props.changeActiveKey("1","one")
                    }
                }
            })
        }
        //清空
        clear = (d) => {
            this.props.form.resetFields();
            let obj = {
                a280101Socre: 0,
                a280102Socre:0,
                a280103Socre:0,
                a280104Socre:0,
                a280105Socre:0,
                a280106Socre:0,
                a280107Socre:0,
                a280108Socre: 0,
                a280109Socre: 0,
            };
            let itemObj = {
                a280101: "",
                a280102: "",
                a280103: "",
                a280104: "",
                a280105: "",
                a280106: "",
                a280107: "",
                a280108: "",
                a280109: "",
                a280201: "",
                a280202: "",
                a280203: "",
                a280204: "",
                a280205: "",
                a280206: "",
                a2301: ""
            };
            let itemObjValue = {
                a280101note: "",
                a280102note: "",
                a280103note: "",
                a280104note: "",
                a280105note: "",
                a280106note: "",
                a280107note: "",
                a280108note: "",
                a280109note: "",
                a280201note: "",
                a280202note: "",
                a280203note: "",
                a280204note: "",
                a280205note: "",
                a280206note: "",
            }
            this.setState({
                itemObj,
                itemObjValue,
                obj,
                a280201score: "",
                a280202score: "",
                a280203score: "",
                a280204score: "",
                a280205score: "",
                a280206score: "",
                collectTime: ""
            })
            if (d) {
                this.setState({
                    delStatus: true,
                    doctorID: ""
                })
            }
        }
        setValue = (id, flag) => {
            this.setState({
                doctorID: id,
                activeFlag: flag
            }, () => {
                this.handleGetData(id, flag)
            })
            // if(activedID!=id){
            //     // debugger
            //     this.setState({
            //         doctorID: id,
            //         obj: {}
            //     }, () => {
            //         this.handleGetData(id)
            //     })
            // }else{
            //     console.log("this.props.objs",this.props.objs)
            //     this.setState({
            //         doctorID: id,
            //     }, () => {
            //         this.handleGetData(id)
            //     })
            // }

        }
        //日期
        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] = e.target.score
                    this.total()
                    this.setState({
                        itemObj,
                        [name + 'Value']: e.target.value,
                        [name + 'score']: e.target.score

                    });
                }
            }
        };
        //获取
        handleGetData = (id, flag) => {
            const { assessData, obj } = this.state
            // debugger
            let data = {}
            data = {
                params: [
                    {
                        healthRecordID: id || "",
                        assessmentCatCode: "a28"
                    }
                ],
            }
            $http.post('urlS', this, {
                code: '03070037',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0) {
                        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,
                            })
                            // collectTime: moment(res.result.father[0].collectTime)
                            this.props.form.setFieldsValue({ collectDate: moment(res.result.father[0].collectDate), });
                        } else {
                            //清空
                            this.clear()
                            this.setState({
                                delStatus: true
                            })
                            //切换了医生 并且没有通过页签 点了页签直接赋值
                            // console.log("flag页签切换", flag)
                            if (activedID != this.state.doctorID && !flag) {
                                // console.log("qiehuanhhhhhh")
                                this.setState({
                                    obj: {},
                                })
                            } else {
                                // console.log("this.props.objs", this.props.objs)
                                let itemObj = this.state.itemObj
                                if (this.props.objs.a280101Socre >= 11) {
                                    itemObj.a280101 = "a28010101"
                                } if (this.props.objs.a280102Socre >= 11) {
                                    itemObj.a280102 = "a28010201"
                                } if (this.props.objs.a280103Socre >= 11) {
                                    itemObj.a280103 = "a28010301"
                                } if (this.props.objs.a280104Socre >= 11) {
                                    itemObj.a280104 = "a28010401"
                                } if (this.props.objs.a280105Socre >= 11) {
                                    itemObj.a280105 = "a28010501"
                                } if (this.props.objs.a280106Socre >= 11) {
                                    itemObj.a280106 = "a28010601"
                                } if (this.props.objs.a280107Socre >= 11) {
                                    itemObj.a280107 = "a28010701"
                                } if (this.props.objs.a280108Socre >= 11) {
                                    itemObj.a280108 = "a28010801"
                                }

                                if (this.props.objs.a280101Socre == 10 || this.props.objs.a280101Socre == 9) {
                                    itemObj.a280101 = "a28010102"
                                } if (this.props.objs.a280102Socre == 10 || this.props.objs.a280102Socre == 9) {
                                    itemObj.a280102 = "a28010202"
                                } if (this.props.objs.a280103Socre == 10 || this.props.objs.a280103Socre == 9) {
                                    itemObj.a280103 = "a28010302"
                                } if (this.props.objs.a280104Socre == 10 || this.props.objs.a280104Socre == 9) {
                                    itemObj.a280104 = "a28010402"
                                } if (this.props.objs.a280105Socre == 10 || this.props.objs.a280105Socre == 9) {
                                    itemObj.a280105 = "a28010502"
                                } if (this.props.objs.a280106Socre == 10 || this.props.objs.a280106Socre == 9) {
                                    itemObj.a280106 = "a28010602"
                                } if (this.props.objs.a280107Socre == 10 || this.props.objs.a280107Socre == 9) {
                                    itemObj.a280107 = "a28010702"
                                } if (this.props.objs.a280108Socre == 10 || this.props.objs.a280108Socre == 9) {
                                    itemObj.a280108 = "a28010802"
                                }

                                if (this.props.objs.a280101Socre <= 8) {
                                    itemObj.a280101 = "a28010103"
                                } if (this.props.objs.a280102Socre <= 8) {
                                    itemObj.a280102 = "a28010203"
                                } if (this.props.objs.a280103Socre <= 8) {
                                    itemObj.a280103 = "a28010303"
                                } if (this.props.objs.a280104Socre <= 8) {
                                    itemObj.a280104 = "a28010403"
                                } if (this.props.objs.a280105Socre <= 8) {
                                    itemObj.a280105 = "a28010503"
                                } if (this.props.objs.a280106Socre <= 8) {
                                    itemObj.a280106 = "a28010603"
                                } if (this.props.objs.a280107Socre <= 8) {
                                    itemObj.a280107 = "a28010703"
                                } if (this.props.objs.a280108Socre <= 8) {
                                    itemObj.a280108 = "a28010803"
                                }
                                if (this.props.objs.a280109Socre) {
                                    if (this.props.objs.a280109Socre >= 17 && this.props.objs.a280101Socre <= 8 &&
                                        this.props.objs.a280102Socre <= 8 && this.props.objs.a280103Socre <= 8 &&
                                        this.props.objs.a280104Socre <= 8 && this.props.objs.a280105Socre <= 8 &&
                                        this.props.objs.a280106Socre <= 8 && this.props.objs.a280107Socre <= 8) {
                                        itemObj.a280109 = "a28010901"
                                    } else if (this.props.objs.a280109Socre >= 17 && this.props.objs.a280101Socre <= 10 &&
                                        this.props.objs.a280102Socre <= 10 && this.props.objs.a280103Socre <= 10 &&
                                        this.props.objs.a280104Socre <= 10 && this.props.objs.a280105Socre <= 10 &&
                                        this.props.objs.a280106Socre <= 10 && this.props.objs.a280107Socre <= 10) {
                                        itemObj.a280109 = "a28010902"
                                    } else {
                                        itemObj.a280109 = "a28010903"
                                    }
                                }
                                this.setState({
                                    itemObj,
                                    obj: this.props.objs
                                })
                            }
                        }
                        if (res.result.father[0].children) {
                            //有值的时候 
                            if (activedID != this.state.doctorID) {
                                this.setState({
                                    obj: {}
                                })
                            } else {
                                this.setState({
                                    obj: this.props.objs
                                })
                            }
                            this.setState({
                                delStatus: false,

                            })
                            let data = res.result.father[0].children
                            let itemObj = this.state.itemObj
                            let itemObjValue = this.state.itemObjValue
                            // this.setState({
                            //     a280201score: data.a280201Value,
                            //     a280202score: data.a280202Value,
                            //     a280203score: data.a280203Value,
                            //     a280204score: data.a280204Value,
                            //     a280205score: data.a280205Value,
                            //     a280206score: data.a280206Value,
                            //     a2803score: data.a2803Value,
                            // })

                            // if (this.props.objs) {
                            //     this.setState({
                            //         obj: this.props.objs
                            //     })
                            // }


                            for (let i in data) {
                                if (i.includes("note")) {
                                    itemObjValue[i] = Number(data[i])
                                } else {
                                    itemObj[i] = data[i]
                                }
                            }
                            this.setState({
                                itemObj,
                                itemObjValue,
                                total: Number(res.result.father[0].assessmentCatScore)
                            }, () => {
                                // console.log("itemObjValue",this.state.itemObjValue)
                            })
                        }
                    } else {

                    }
                }
            })
        }
        //设置note
        handleTonote = (code, obj) => {
            let toObj = {
                'a280201': () => obj['assessNote'] = this.state.a280201note,
                'a280202': () => obj['assessNote'] = this.state.a280202note,
                'a280203': () => obj['assessNote'] = this.state.a280203note,
                'a280204': () => obj['assessNote'] = this.state.a280204note,
                'a280205': () => obj['assessNote'] = this.state.a280205note,
                'a280206': () => obj['assessNote'] = this.state.a280206note,
                'a2301': () => obj['assessNote'] = this.state.a2301note,
            }
            if (toObj[code]) {
                toObj[code]();
            }
        }
        //保存
        handleSave = () => {
            const { userData, assessData, itemObj,obj } = this.state
            for(let j in obj){
                this.setState({
                    [j]:obj[j]
                },()=>{
                    // console.log("-=1a280108Socre-=-",this.state.a280108Socre)    
                })
            }
          setTimeout(()=>{
            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 + 'Socre']
                        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: "a28",
                                        score: this.state.total,
                                        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'),
                                        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("保存成功")
                                // }
                                
                                message.success("保存成功")
                                this.setState({
                                    delStatus: false
                                })
                                window.sessionStorage.setItem("healthRecordID", res.result.healthRecordID);
                                window.sessionStorage.setItem("noSave", false);
                                if (!this.state.doctorID) {

                                } this.props.updateHeathList()
                                this.handleGetData(res.result.healthRecordID)
                            } else {

                            }
                        }
                    })
                }
            })

          },500)
        }
        handleChangeInput = (e, name) => {
            if (e.target) {
                if (this.state[name] !== e.target.value) {
                    window.sessionStorage.setItem("noSave", true);
                } else {
                    window.sessionStorage.setItem("noSave", false);
                }
                this.setState({
                    [name]: e.target.value,
                }, () => {
                })
            }
        }
        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 { obj, diseaseArr, diseaseSubArr, assessData, 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" />
            return (
                <div className="assess-dom cons-dom result-dom">
                    <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: "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 style={{ margin: "0 18px 0 18px" }} onClick={this.handleSave} type="primary">{"保存"}</Button>
                                        </div>
                                    )}
                                </FormItem>
                            </Col>
                        </Form>
                    </Row>
                    <Row className="title-dom" >
                        <span style={{ display: "inline-block", width: "4px", height: "10px", background: "#52c41a" }}></span>  中医体质辨识结果
                    </Row>
                    <div>
                        <div className="conent" id="consResult-conent" onClick={(e) => this.handleRadio(e)}>
                            <div>
                                <Row >
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        <strong style={{ color: "#333" }}>序号</strong>
                                    </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        <strong>体质类型</strong></Col>
                                    <Col span={8} style={{ textAlign: "center", lineHeight: "36px", height: "36px", background: "#fafafa" }}>
                                        <strong>
                                            结果
                                    </strong>
                                    </Col >
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        <strong>得分</strong></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        1
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        阳虚质
                               </Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280101")} value={this.state.itemObj.a280101}>
                                            <Radio value={"a28010101"} id={this.state.itemObj.a280101 + "^" + "a280101" + "^" + "a280101note" + "^" + "a1911"} score={this.state.a280101note}>是</Radio>
                                            <Radio value={"a28010102"} id={this.state.itemObj.a280101 + "^" + "a280101" + "^" + "a280101note" + "^" + "a191"} score={this.state.a280101note}>倾向是</Radio>
                                            <Radio value={"a28010103"} id={this.state.itemObj.a280101 + "^" + "a280101" + "^" + "a280101note" + "^" + "a911"} score={this.state.a280101note}>否</Radio>
                                        </Radio.Group>

                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280101Socre && obj.a280101Socre || 0}分</b></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        2
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        阴虚质
                               </Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280102")} value={this.state.itemObj.a280102}>
                                            <Radio value={"a28010201"} id={this.state.itemObj.a280102 + "^" + "a280102" + "^" + "a280102" + "^" + "a111"} score={this.state.a280102note}>是</Radio>
                                            <Radio value={"a28010202"} id={this.state.itemObj.a280102 + "^" + "a280102" + "^" + "a280102" + "^" + "a11"} score={this.state.a280102note}>倾向是</Radio>
                                            <Radio value={"a28010203"} id={this.state.itemObj.a280102 + "^" + "a280102" + "^" + "a280102" + "^" + "a19"} score={this.state.a280102note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280102Socre && obj.a280102Socre || 0}分</b></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        3
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        气虚质
                               </Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280103")} value={this.state.itemObj.a280103}>
                                            <Radio value={"a28010301"} id={this.state.itemObj.a280103 + "^" + "a280103" + "^" + "a280102" + "^" + "a11"} score={this.state.a280103note}>是</Radio>
                                            <Radio value={"a28010302"} id={this.state.itemObj.a280103 + "^" + "a280103" + "^" + "a280102" + "^" + "1"} score={this.state.a280103note}>倾向是</Radio>
                                            <Radio value={"a28010303"} id={this.state.itemObj.a280103 + "^" + "a280103" + "^" + "a280102" + "^" + "a1"} score={this.state.a280103note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280103Socre && obj.a280103Socre || 0}分</b></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        4
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        痰湿质</Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280104")} value={this.state.itemObj.a280104}>
                                            <Radio value={"a28010401"} id={this.state.itemObj.a280104 + "^" + "a280104" + "^" + "a"} score={this.state.a280104note}>是</Radio>
                                            <Radio value={"a28010402"} id={this.state.itemObj.a280104 + "^" + "a280104" + "^" + "^" + "1"} score={this.state.a280104note}>倾向是</Radio>
                                            <Radio value={"a28010403"} id={this.state.itemObj.a280104 + "^" + "a280104" + "^" + "^" + "a1"} score={this.state.a280104note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280104Socre && obj.a280104Socre || 0}分</b></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        5
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        湿热质</Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280105")} value={this.state.itemObj.a280105}>
                                            <Radio value={"a28010501"} id={this.state.itemObj.a280105 + "^" + "a280105" + "^" + "a1"} score={this.state.a280105note}>是</Radio>
                                            <Radio value={"a28010502"} id={this.state.itemObj.a280105 + "^" + "a280105" + "^" + "2a"} score={this.state.a280105note}>倾向是</Radio>
                                            <Radio value={"a28010503"} id={this.state.itemObj.a280105 + "^" + "a280105" + "^" + "a3"} score={this.state.a280105note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280105Socre && obj.a280105Socre || 0}分</b></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        6
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        血瘀质</Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280106")} value={this.state.itemObj.a280106}>
                                            <Radio value={"a28010601"} id={this.state.itemObj.a280106 + "^" + "a280106" + "^" + "a10"} score={this.state.a280106note}>是</Radio>
                                            <Radio value={"a28010602"} id={this.state.itemObj.a280106 + "^" + "a280106" + "^" + "a11"} score={this.state.a280106note}>倾向是</Radio>
                                            <Radio value={"a28010603"} id={this.state.itemObj.a280106 + "^" + "a280106" + "^" + "a12"} score={this.state.a280106note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280106Socre && obj.a280106Socre || 0}分</b></Col>
                                </Row>

                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        7
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        特禀质</Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280107")} value={this.state.itemObj.a280107}>
                                            <Radio value={"a28010701"} id={this.state.itemObj.a280107 + "^" + "a280107" + "^" + "a110"} score={this.state.a280107note}>是</Radio>
                                            <Radio value={"a28010702"} id={this.state.itemObj.a280107 + "^" + "a280107" + "^" + "a120"} score={this.state.a280107note}>倾向是</Radio>
                                            <Radio value={"a28010703"} id={this.state.itemObj.a280107 + "^" + "a280107" + "^" + "a130"} score={this.state.a280107note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280107Socre && obj.a280107Socre || 0}分</b></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center" }}>
                                        8
                               </Col>
                                    <Col span={2} style={{ textAlign: "center" }}>
                                        气郁质</Col>
                                    <Col span={8} >
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280108")} value={this.state.itemObj.a280108}>
                                            <Radio value={"a28010801"} id={this.state.itemObj.a280108 + "^" + "a280108" + "^" + "a1101"} score={this.state.a280108note}>是</Radio>
                                            <Radio value={"a28010802"} id={this.state.itemObj.a280108 + "^" + "a280108" + "^" + "a1102"} score={this.state.a280108note}>倾向是</Radio>
                                            <Radio value={"a28010803"} id={this.state.itemObj.a280108 + "^" + "a280108" + "^" + "a1103"} score={this.state.a280108note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2}>
                                        <b>{obj.a280108Socre && obj.a280108Socre || 0}分</b></Col>
                                </Row>
                                <Row>
                                    <Col span={1} style={{ textAlign: "center", borderBottom: "1px solid #d9d9d9" }}>
                                        9
                               </Col>
                                    <Col span={2} style={{ textAlign: "center", borderBottom: "1px solid #d9d9d9" }}>
                                        平和质</Col>
                                    <Col span={8} style={{ borderBottom: "1px solid #d9d9d9" }}>
                                        <Radio.Group onChange={(e) => this.handleChange(e, "a280109")} value={this.state.itemObj.a280109}>
                                            <Radio value={"a28010901"} id={this.state.itemObj.a280109 + "^" + "a280109" + "^" + "a110"} score={this.state.a28010109note}>是</Radio>
                                            <Radio value={"a28010902"} id={this.state.itemObj.a280109 + "^" + "a280109" + "^" + "a103"} score={this.state.a28010109note}>基本是</Radio>
                                            <Radio value={"a28010903"} id={this.state.itemObj.a280109 + "^" + "a280109" + "^" + "a110"} score={this.state.a28010109note}>否</Radio>
                                        </Radio.Group>
                                    </Col>
                                    <Col span={2} style={{ borderBottom: "1px solid #d9d9d9" }}>
                                        <b>{obj.a280109Socre && obj.a280109Socre || 0}分</b></Col>
                                </Row>
                            </div>
                            <Row className="title-dom" >
                                <span style={{ display: "inline-block", width: "4px", height: "10px", background: "#52c41a" }}></span> 中医看诊
                            </Row>
                            <Row className="bottom-dom">
                                <span>
                                    望
                                    <Input value={this.state.itemObj.a280201} onChange={(e) => this.handleChange(e, "a280201")}></Input>
                                </span>
                                <span>
                                    舌
                                    <Input value={this.state.itemObj.a280202} onChange={(e) => this.handleChange(e, "a280202")}></Input>
                                </span>
                                <span>
                                    苔
                                    <Input value={this.state.itemObj.a280203} onChange={(e) => this.handleChange(e, "a280203")}></Input>
                                </span>
                            </Row>
                            <Row className="bottom-dom" >
                                <span>
                                    闻
                                    <Input value={this.state.itemObj.a280204} onChange={(e) => this.handleChange(e, "a280204")}></Input>
                                </span>
                                <span>
                                    问
                                    <Input value={this.state.itemObj.a280205} onChange={(e) => this.handleChange(e, "a280205")}></Input>
                                </span>
                                <span>
                                    切
                                    <Input value={this.state.itemObj.a280206} onChange={(e) => this.handleChange(e, "a280206")}></Input>
                                </span>
                            </Row>
                            {/* <Row className="title-dom" >
                                <span style={{ display: "inline-block", width: "4px", height: "10px", background: "#52c41a" }}></span> 中医体质综述
                            </Row>
                            <Row>
                                <TextArea style={{ width: "55%" }} value={this.state.itemObj.a2803} onChange={(e) => this.handleChange(e, "a2803")}></TextArea>
                            </Row> */}
                        </div>
                    </div>
                </div>
            );
        }
    })
export default AssessmentConsResult
