/*
 * Creator:     ML
 * CreatDate:   2019-09-30
 * descripts：医嘱子类设置
 * */
import React from 'react';
import moment from 'moment';
import { Form, Row, Col, Input, Table, Select, DatePicker, Button, Modal, message, Divider, Tooltip, Icon, Card, Checkbox, Radio, Badge, Fragment, Pagination, Popconfirm, Switch } from 'antd';
import { $http } from '../../containers/config/https';
import store from '../../store';
import './style/index.less';
import SubBaseInformation from './component/SubBaseInformation';
import SubclassReceivingTabs from './component/SubclassReceivingTabs';
import FindSub from './component/FindSub';
import CommonPagination from 'components/pagination/index';

const paddRightCol = {
    paddingRight: "0px"
}
const formItemLayoutType = {
    labelCol: { span: 9 },
    wrapperCol: { span: 15 }
}
const FormItem = Form.Item;
const Option = Select.Option;
const SubCategoriesOfMedicalAdvice = Form.create()(
    class SubCategoriesOfMedicalAdvice extends React.Component {
        cacheOriginData = {};
        constructor() {
            super()
            this.state = {
                leftData: [],//左边查询到的表格数据
                rightData: [],//右边双击后的表格数据
                rightUnitDr: [],
                findInfo: '请输入查询条件',//查询提示信息
                visible: false,//添加/修改医嘱子类表维护弹窗显示
                isMod: -1,//是否点击编辑
                ordTempletID: "",//编辑行id
                ordTempletDesc: "",//模板名称
                ordTempletAlias: "",//模板别名
                ordTempletCat: "",//医嘱分类
                rowId: "",//表格行id 设置颜色
                ordShow: false,//当前模板显示
                baseParentType: [],//添加医嘱子类表维护类型选择  上级分类
                baseUnit: [],//添加医嘱明细单位类型选择
                selectedData: [],//医嘱明细选中
                selectedId: [],//医嘱明细选中
                tempChildDis: false,//左侧编辑 选择类型
                btnStatus: true,
                selectedRow_right: [],
                selectrow: "",//获取行 当前选中行
                deteleOrdId: "",//选中删除行
                leftDisRow: false,
                ordTempId: 1,//医嘱子类选择值
                isAdd: false,//是否点击添加
                ordDetailValue: "",//医嘱明细输入值
                ordDetailData: [],//医嘱项表格数据
                OrdDaShow: false,//医嘱项表格数据显隐
                OrdDaRowId: "",//医嘱项表格行id
                OrdCanType: "",//医嘱项允许录入类型
                ordTemPrice: 0,//医嘱项行单价
                editDis: true,//未选中

                nowRowID: "",//医嘱明细表格行id

                initRored: {},//原始右侧表格行
                ordTempletDetailItemDesc: "",
                ordTempletDetailQty: "",
                ordTempletDetailQtyUnitDr: "",
                ordTempletDetailID: "",
                disAdd: false,//是否可新增
                newOpen: [],
                leftData: [],


                searchCategoryName: "",//输入左侧搜索分类名称
                checkAll: false,//左侧全选
                checkedList: [],//左侧可选项
                plainOptions: [],
                rightTopTableData: [],//右上小表格数据
                cbiD: "",//自定义分类 区分触发场景
                radioValue: 0,//
                rowRightId: "",//右上小表格选中
                leftInfo: {},//左侧信息回显
                rightSearchInfo: "",//右侧搜索
                canDeleteStatus: true,//能否点击删除


                // 左侧表格
                checked: true,//默认选择生效
                total: 0,//医嘱项表格总数据
                page: 1,//页数
                pageSize: 20,//显示数
                //右侧表格
                totalRight: 0,
                pageRight: 1,
                pageSizeRight: 10,
                checkedRight: true,
                baseTempType: [],//添加医嘱子类表维护类型选择
                topInfo: {},
                centerInfo: {},
                isDefalult:false,
                canSave:true,
                size:"small"
            }
            this.detailDeInput = React.createRef();
        }
        componentDidMount = () => {
            // 初始化设置table的高度以及表体的高度
            if (document.querySelector('.ant-table-body')) {
                // document.querySelector('.ant-table-body').style.height = store.getState().tableHeight.y -60 + 'px';
       var x = document.querySelectorAll(".ant-table-body");
        for (var i = 0; i < x.length; i++) {
            x[0].style.height = store.getState().tableHeight.y+44 + 'px';
            x[0].style.overflow = "auto";
          }
            }
            // this.handleQuery()
            this.getHopSelect()
            this.getLocTypeSelect()
            this.getPublicLocSelect()
            this.childs.handleFindSub()
        }
        //获取医院下拉框
        getHopSelect = () => {
            let data = {}
            data = {
                params: [{
                }],
            }
            $http.post('urlS', this, {
                code: '05100208',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0 && res.result.Data) {
                        let arr = res.result.Data && res.result.Data.map((item, index) => {
                            res.result.Data[index].key = Number(index)
                        })
                        this.setState({
                            hospArr: res.result.Data
                        })
                    } else {

                    }
                }
            })
        }
        //获取科室类型下拉框
        getLocTypeSelect = () => {
            let data = {}
            data = {
                params: [{
                }],
            }
            $http.post('urlS', this, {
                code: '05100225',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0 && res.result.Data) {
                        let arr = res.result.Data && res.result.Data.map((item, index) => {
                            res.result.Data[index].key = Number(index)
                        })
                        this.setState({
                            locArr: res.result.Data
                        })
                    } else {

                    }
                }
            })
        }
        //获取公共科室下拉框
        getPublicLocSelect = (hospID) => {
            let data = {}
            data = {
                params: [{
                    hospID:hospID&&hospID?hospID:"",
                }],
            }
            $http.post('urlS', this, {
                code: '01050029',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0 && res.result.Data) {
                        let arr = res.result.Data && res.result.Data.map((item, index) => {
                            res.result.Data[index].key = Number(index)
                        })
                        this.setState({
                            publicLocArr: res.result.Data,
                        })
                    } else {

                    }
                }
            })
        }
        getLast=(status,id)=>{
            //定位到最后一条
            if(id){
                let lastPage = Math.ceil((this.state.total + 1) / this.state.pageSize)
                this.setState({
                    page:lastPage,
                    rowId:id,
                },()=>{
                    this.childs.handleFind(this.state.page,this.state.pageSize,status)
                })
               
                return  
            }
        }
        // 显示分页总条数
        showTotal(total) {
            return `共 ${total} 条`;
        }
        // // 修改page和pageSize 跳转至---
        // onChange = (e) => {
        //     this.setState({ page: e, pageSize: this.state.pageSize }, () => {
        //         // 重新调用查询方法
        //         this.childs.handleFind(this.state.page,this.state.pageSize)
        //     })
        // }
          // 修改page和pageSize 跳转至---
          onChange = (page,pageSize) => {
            this.setState({ page: page, pageSize: pageSize }, () => {
                // 重新调用查询方法
                this.childs.handleFind(this.state.page,this.state.pageSize)
            })
        }
        // // 页码改变的回调，参数是改变后的页码及每页条数
        // PageChange = (e) => {
        //     this.setState({ page: e, pageSize: this.state.pageSize }, () => {
        //         // 重新调用查询方法
        //         this.childs.handleFind(this.state.page,this.state.pageSize)
        //     });
        // }
         // 页码改变的回调，参数是改变后的页码及每页条数
         PageChange = (page,pageSize) => {
            this.setState({ page: page, pageSize: this.state.pageSize }, () => {
                // 重新调用查询方法
                this.childs.handleFind(this.state.page,this.state.pageSize)
            });
        }
        //下拉选择页数
        onShowSizeChange = (page, pageSize) => {
            this.setState({ page: 1, pageSize: pageSize,search:"search" }, () => {
                // 重新调用查询方法
                this.childs.handleFind(this.state.page,this.state.pageSize)
            })
        }
        // 调用子组件的连接事件 -- 右上基本信息
        OnChildBaseInfo = (ref) => {
            this.childBase = ref
        }
        //右侧
        // 显示分页总条数
        showTotalRight(total) {
            return `共 ${total} 条`;
        }
        // 修改page和pageSize 跳转至---
        onChangeRight = (page, pageSize) => {
            this.setState({ pageRight: page, pageSizeRight: pageSize }, () => {
                // 重新调用查询方法
                // this.handleQuery();
            })
        }
        // 页码改变的回调，参数是改变后的页码及每页条数
        PageChangeRight = (page, pageSize) => {
            this.setState({ pageRight: page, pageSizeRight: pageSize }, () => {
                // 重新调用查询方法
                // this.handleQuery();
            });
        }
        //下拉选择页数
        onShowSizeChangeRight = (page, pageSize) => {
            this.setState({ pageRight: 1, pageSizeRight: pageSize }, () => {
                // 重新调用查询方法
                // this.handleQuery();
            })
        }



        //点击是否生效
        changeChecked = (e) => {
            this.setState({
                checked: e.target.checked,
                page: 1,
                pageSize: 20
            }, () => {
                this.handleQuery()
            })
        }
        //点击是否生效 --右侧
        changeCheckedRight = (e) => {
            this.setState({
                checkedRight: e.target.checked,
                pageRight: 1,
                pageSizeRight: 10
            }, () => {
                this.getBigLocData(this.state.rowId)
            })
        }
        //根据医嘱子类ID获取医嘱子类接收科室
        getBigLocData = (orderCatID) => {
            const { pageRight, pageSizeRight } = this.state
            let data = {}
            data = {
                params: [{
                    orderCatID: orderCatID,
                    status:this.state.checkedRight==true?"Y":"N"
                }],
                pagination: [{
                    pageSize: pageSizeRight,
                    currentPage: pageRight,
                }]
            }
            $http.post('urlS', this, {
                code: '05100202',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0 && res.result.Data) {
                        res.result.Data.map((item, i) => {
                            res.result.Data.key == Number(i)
                        })
                        this.setState({
                            rightData: res.result.Data,
                            totalRight: res.result.TotalCount
                        })
                    }if(res.result.Data&&res.result.Data.length==0&&res.result.TotalCount>0){
                        let prevPage = this.state.page - 1
                        this.onChangeRight(prevPage, this.state.pageSize)
                      }
                }
            })
        }
        // //获取公共科室下拉框
        // getPublicLocSelect = (hospID) => {
        //     let data = {}
        //     data = {
        //         params: [{
        //             hospID:hospID&&hospID?hospID:"",
        //         }],
        //     }
        //     $http.post('urlS', this, {
        //         code: '01050029',
        //         data: data,
        //         success: function (res) {
        //             if (+res.errorCode === 0 && res.result.Data) {
        //                 let arr = res.result.Data && res.result.Data.map((item, index) => {
        //                     res.result.Data[index].key = Number(index)
        //                 })
        //                 this.setState({
        //                     publicLocArr: res.result.Data,
        //                 })
        //             } else {

        //             }
        //         }
        //     })
        // }
        //点击Row 左侧表格
        onClickRow = (record) => {
            return {
                onClick: () => {
                    this.setState({
                        orderCatID: record.orderSubCatID,
                        centerInfo: {},
                        rowIds: "",
                        isDefalult: false
                    })
                    this.childBase.initData(record)
                    // this.tabChild.canSave(record.orderSubCatID)
                    if (record.orderSubCatID) {
                        if (this.state.rowId === "") {
                            this.setState({
                                rowId: record.orderSubCatID,
                                topInfo: record
                            });
                            this.childBase.setDefalut(record)
                            this.getTbsGetRec(record.orderSubCatID)
                            this.tabChild.canSave(record.orderSubCatID)
                            // this.getBigLocData(record.orderSubCatID)
                        } else {
                            if (this.state.rowId !== record.orderSubCatID) {
                                this.setState({
                                    rowId: record.orderSubCatID,
                                    topInfo: record
                                });
                                this.childBase.setDefalut(record)
                                this.getTbsGetRec(record.orderSubCatID)
                                this.tabChild.canSave(record.orderSubCatID)
                                // this.getBigLocData(record.orderSubCatID)
                                this.tabChild.restFile()
                            } else {
                                this.setState({
                                    rowId: "",
                                    topInfo: {},
                                    orderCatID: ""
                                    //   ordShow:false
                                });
                                this.childBase.initDefalut(record)
                                this.tabChild.initTabs()
                                this.childBase.initOrig()
                            }
                        }
                    }
                },
                onDoubleClick: () => {
                    this.setState({
                        rowId: "",
                        topInfo: {},
                        orderCatID: ""
                        //   ordShow:false
                    });
                    this.childBase.initDefalut(record)
                    this.tabChild.initTabs()
                    this.childBase.initOrig()
                }
            };
        }
        //返回添加状态
        initOrigin = () => {
            this.setState({
                rowId: "",
                rowIds:"",
                orderCatID:"",
                isDefalult:false,
                centerInfo:{},
                rightData:[],
            })
            this.tabChild.initTabs()
            this.props.form.resetFields()
        }
        //设置点击row颜色 --左侧表格
        setRowClassName = (record) => {
            return record.orderSubCatID === this.state.rowId ? 'clickRowStyle' : '';
        }

        //点击是否设置为默认
        handleSwithChange = (v) => {
            this.setState({
                isDefalult: v
            })
        }
        //是否默认
        onChangeSwith = (v, record) => {
            let data = {}
            data = {
                params: [{
                    updateUserID: sessionStorage.userData ? JSON.parse(sessionStorage.userData).userID : "",
                    defaultFlag: v == true ? "Y" : "N",
                    orderCatRecLocID: record.orderCatRecLocID,
                }],
            }
            $http.post('urlS', this, {
                code: '05100203',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0) {
                        message.success("设置成功")
                        this.setState({
                            isDefalult: v,
                            centerInfo:record,
                            rowIds:record.orderCatRecLocID,
                        })
                        this.getBigLocData(this.state.orderCatID)
                    }
                }
            })
        }
        //点击右侧表格行
        onClickRightRow = (record) => {
            const { rightData } = this.state
            return {
                onClick: () => {
                    this.setState({
                        centerInfo: {},
                        isDefalult: false,
                    })
                    this.getPublicLocSelect(record.recHospID)
                    this.props.form.resetFields();
                    if (record.orderCatRecLocID) {
                        if (this.state.rowIds === "") {
                            this.setState({
                                rowIds: record.orderCatRecLocID,
                                centerInfo: record,
                                isDefalult: record.defaultFlag == "Y" ? true : false
                            });
                            //   this.getBigLocData(record.orderCatID)
                        } else {
                            if (this.state.rowIds !== record.orderCatRecLocID) {
                                this.setState({
                                    rowIds: record.orderCatRecLocID,
                                    centerInfo: record,
                                    isDefalult: record.defaultFlag == "Y" ? true : false,
                                });
                                this.props.form.resetFields()
                                // this.getBigLocData(record.orderCatID)
                            } else {
                                this.setState({
                                    rowIds: "",
                                    centerInfo: {},
                                    isDefalult: false
                                    //   ordShow:false
                                });
                                this.propsfrom.resetFields()
                                // this.props.form.resetFields();
                            }
                        }
                    }
                },
            }
        }
        //点击右侧医院选项过滤开单科室
        handleHosp=(e,id)=>{
            this.props.form.setFieldsValue({getOpenLoc:undefined ,getLoc:undefined})
            this.getPublicLocSelect(id)
        }
        setRowClassNames = (record) => {
            return record.orderCatRecLocID === this.state.rowIds ? 'clickRowStyle' : '';

        }
        handleLeftOk = () => {
            this.props.form.validateFields((err, values) => {

            })
        }
        
        canSave=()=>{
            this.setState({
                canSave:false
            })
        }
        handleTemDaCancel = () => {
            this.setState({
                OrdDaShow: false
            })
        }
        //删除医嘱子类
        handleDelete=(e,record)=>{
            let data = {}
            data = {
                params: [{
                    updateUserID: sessionStorage.userData ? JSON.parse(sessionStorage.userData).userID : "",
                    orderSubCatID:record.orderSubCatID,
                }],
            }
            $http.post('urlS', this, {
                code: '05100197',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0) {
                        message.success("删除成功")
                       this.initOrigin()
                       this.childs.handleFind(this.state.page,this.state.pageSize);
                    }
                }
            })
        }
        //删除医嘱子类接收科室
        delate=(e,record)=>{
            let data = {}
            data = {
                params: [{
                    updateUserID: sessionStorage.userData ? JSON.parse(sessionStorage.userData).userID : "",
                    orderCatRecLocID:record.orderCatRecLocID,
                }],
            }
            $http.post('urlS', this, {
                code: '05100204',
                data: data,
                success: function (res) {
                    if (+res.errorCode === 0) {
                        message.success("删除成功")
                        this.getBigLocData(this.state.rowId)
                    }
                }
            })
        }
    
        //接收查询到的子类列表
        findSubTable=(subData,TotalCount,mes)=>{
            subData && subData.map((item, index) => {
                subData[index].key = Number(index)
               
               })
               this.setState({
                   leftData:subData,
                   total: TotalCount,
               })
        //    if(subData&&subData.length==0&&TotalCount>0){
        //        let prevPage = this.state.page - 1
        //        this.onChange(prevPage, this.state.pageSize)
        //      }
             if(mes&&mes){
                this.setState({
                    page:1,
                    pageSize:20,
                    rowId:""
                })
                this.initOrigin()
                this.childBase.init()
             }
        }
         // 调用子组件的连接事件 -- 查询子类
         OnChild = (ref) => {
            this.childs = ref
        }
        //调用子组件tabs列表
        onTabChild=(ref)=>{
            this.tabChild =ref
        }
        //添加医嘱子类之后 激活子组件tabs
        canSave=(subID)=>{
            this.tabChild.canSave(subID)
        }
        getTable=()=>{
            //刷新左侧列表
            this.childs.handleFind(this.state.page,this.state.pageSize)
        }
        //点击左侧 获取右侧tab数据
        getTbsGetRec=(SubID)=>{
            this.tabChild.getRec(SubID)
            this.tabChild.getSubHopDa(SubID)
            this.tabChild.getSubUsageData(SubID)
        }
        render() {
            //左侧查询数据表
            const leftDetailColumns = [
                {
                    align: "center",
                    width: '100px',
                    title: '代码',
                    dataIndex: 'orderSubCatcode',
                    key: '2',
                }, {
                    align: "center",
                    width: '100px',
                    title: '描述',
                    dataIndex: 'orderSubCatDesc',
                    key: '3',
                }, {
                    align: "center",
                    width: '100px',
                    title: '状态',
                    dataIndex: 'status',
                    key: '5',
                    render: (value, row, index) => {
                        if(value=="Y"){
                            return "生效"
                        }else{
                            return "失效"
                        }
                        
                    },
                },
                {
                    align: "center",
                    width: '160px',
                    title: '操作',
                    dataIndex: 'createdAt',
                    key: '6',
                    render: (value, row, index) => {
                        return (
                            <span>
                                <Popconfirm title="删除不可恢复，你确定要删除吗?" onCancel={this.handlePopconfirm} onConfirm={(e) => this.handleDelete(e, row)} >
                                    <span className='span' style={{ cursor: "pointer" }} style={{ color: 'rgba(240,65,52,1)' }}>删除</span>
                                </Popconfirm>
                            </span>
                        )
                    },
                },
            ];
            //右侧接收科室表格
            const rightColumns = [
                {
                    align: "center",
                    title: '医院',
                    dataIndex: 'hospitalDec',
                    key: '0',
                    editable: true,
                    render: (text, record, index) => {
                        return text;
                    },
                }, {
                    align: "center",
                    title: '科室类型',
                    dataIndex: 'locTypeDesc',
                    key: '1',
                    editable: true,
                    render: (text, record, index) => {
                        return text;
                    },
                }, {
                    align: "center",
                    title: '开单科室',
                    dataIndex: 'locDesc',
                    key: '2',
                    editable: true,
                    render: (text, record, index) => {
                        return text;
                    },
                }, {
                    align: "center",
                    title: '接收科室',
                    dataIndex: 'recLocDesc',
                    key: '3',
                    editable: true,
                    render: (text, record, index) => {
                        return text;
                    },
                }, {
                    align: "center",
                    title: '状态',
                    dataIndex: 'status',
                    key: '4',
                    editable: true,
                    render: (value, row, index) => {
                        if (value == "Y") {
                            return (
                                "生效"
                            )
                        } else {
                            return (
                                "失效"
                            )
                        }
                    },
                }, {
                    align: "center",
                    title: '默认',
                    dataIndex: 'defaultFlag',
                    key: '5',
                    editable: true,
                    render: (text, record, index) => {
                        return (
                            <Switch checkedChildren="是" unCheckedChildren="否" checked={record.defaultFlag == "Y" ? true : false} onChange={(v) => { this.onChangeSwith(v, record) }} />
                        )
                    },
                },
                {
                    title: '操作',
                    dataIndex: '',
                    key: '6',
                    align: "center",
                    width: 200,
                    render: (text, record, index) => {
                            return (
                                <span>
                                <Popconfirm title="删除不可恢复，你确定要删除吗?" onCancel={this.handlePopcon} onConfirm={(e) => this.delate(e, record)} >
                                    <span className='span' style={{ cursor: "pointer" }} style={{ color: 'rgba(240,65,52,1)' }}>删除</span>
                                </Popconfirm>
                            </span>
                            )


                    }
                }
            ];
            const { getFieldDecorator } = this.props.form;
            let { plainOptions, baseParentType, baseTempType, baseUnit, tempChildDis, OrdDaShow, topInfo, centerInfo } = this.state
            //医院
            // let hosOp = []
            // this.state.hospArr && this.state.hospArr.map(item => {
            //     hosOp.push(<Option key={item.hospID} onClick={(e,)=>this.handleHosp(e,item.hospID)} value={String(item.hospID)}>{item.hospDesc}</Option>)
            // })
            //科室类型
            let locOp = []
            this.state.locArr && this.state.locArr.map(item => {
                locOp.push(<Option key={item.id} role={item.descripts + '^' + item.descriptsSPCode} title={item.descripts} value={String(item.id)}>{item.descripts}</Option>)
            })
            //开单类型
            let openLocOp = []
            this.state.publicLocArr && this.state.publicLocArr.map(item => {
                openLocOp.push(<Option key={item.id} role={item.descripts + '^' + item.descriptsSPCode} title={item.descripts} value={String(item.id)}>{item.descripts}</Option>)
            })
            //接收类型
            let getLocOp = []
            this.state.publicLocArr && this.state.publicLocArr.map(item => {
                getLocOp.push(<Option key={item.id} role={item.descripts + '^' + item.descriptsSPCode} title={item.descripts} value={String(item.id)}>{item.descripts}</Option>)
            })
            return (
                <div>
                    <Row gutter={60} className="majorCategoriesDom" style={{ marginRight: "0" }}>
                        <Col span={9} style={{ paddingRight: "0" }}>
                            <Card title="医嘱子类列表" bordered={false} style={{ marginRight: "4px", }} className="titleDom">
                            <FindSub findSubTable={this.findSubTable}  OnChild={this.OnChild}></FindSub>
                                <Table
                                    className="components-table-demo-nested"
                                    columns={leftDetailColumns}
                                    pagination={false}
                                    bordered
                                    rowClassName={this.setRowClassName}
                                    onRow={this.onClickRow}
                                    rowKey={record => record.key}
                                    dataSource={this.state.leftData}
                                    style={{
                                        height:store.getState().tableHeight.y+44 + 'px',
                                        overflow:"auto"
                                    }}
                                />
                                 <CommonPagination size={this.state.size} page={this.state.page} pageSize={this.state.pageSize} current={this.state.page} total={this.state.total} search={this.state.search}
                                        onShowSizeChange={this.onShowSizeChange.bind(this)} complete={true} dataSource={this.state.leftData}
                                        onChange={this.PageChange.bind(this)} />
                                {/* {
                                    this.state.leftData && this.state.leftData.length > 0 ? <Pagination
                                        size="small"
                                        showQuickJumper
                                        showSizeChanger
                                        defaultCurrent={1}
                                        current={this.state.page}
                                        total={this.state.total}
                                        onChange={this.PageChange}
                                        onRow={this.selectID}
                                        onShowSizeChange={this.onShowSizeChange}
                                        style={{ textAlign: "right", marginTop: '10px' }}
                                        showTotal={() => this.showTotal(this.state.total)}
                                    /> : ""
                                } */}

                            </Card>
                        </Col>
                        <Col span={14} style={{ paddingLeft: "6px", paddingRight: "0" }}>
                            <Card title={this.state.orderCatID && this.state.orderCatID ? "编辑医嘱子类" : "添加医嘱子类"} bordered={false} className="moreInfoCard titleDom" style={{ paddingRight: "0" }}>
                                <div >
                                    <SubBaseInformation canSave={this.canSave} topInfo={topInfo} OnChildBaseInfo={this.OnChildBaseInfo} updataTable={this.getTable} getLast={this.getLast} initOrigin={this.initOrigin}></SubBaseInformation>
                                </div>
                              <SubclassReceivingTabs sendSubId={this.state.rowId} onTabChild={this.onTabChild}></SubclassReceivingTabs>
                            </Card>
                        </Col>
                    </Row>
                </div>
            )
        }
    })
export default SubCategoriesOfMedicalAdvice