import React, {Fragment, PureComponent} from 'react';
import {
    DeleteOutlined,
    EditOutlined,
    PlusOutlined,
    SearchOutlined,
    RedoOutlined,
    DownOutlined, 
	ExclamationCircleFilled,
	UpOutlined,
	InfoCircleFilled,
	QuestionCircleFilled,
	DownloadOutlined,
	AppstoreOutlined,
} from '@ant-design/icons';
import {connect, history} from '@umijs/max';
import {Button, Card, Divider, Dropdown, message, Modal, Popconfirm, Space, Switch, Tag,Row,Col, Tabs} from 'antd';
import StandardTable from '@/components/StandardTable';

import { MyIcon } from "@/components/Icon"
import style from "@/global.less";
import AllStaffUPHCreateForm from './form/AllStaffUPHCreateForm'; //新增表单
import AllStaffUPHUpdateForm from './form/AllStaffUPHUpdateForm'; //修改表单
import AllStaffUPHViewForm from './form/AllStaffUPHViewForm'; //查看表单
import AllStaffUPHRenderSimpleForm from './form/AllStaffUPHRenderSimpleForm'; //简单查询表单
import AllStaffUPHRenderAdvancedForm from './form/AllStaffUPHRenderAdvancedForm'; //高级查询表单
import styles from './AllStaffUPHList.less';
import datadictionary from "@/utils/dataDictionary";
import {formatDate} from "@/utils/formatUtils";
import { formatDictText, checkButtonAuthority } from "@/utils/globalCommon";

const { confirm } = Modal;

//预约类型
const sex_type = datadictionary.sex
const user_status = datadictionary.user_status
const sys_user_post = datadictionary.sys_user_post
            
const mockData = {
	list: [
		{
			key:1,
			rq: "2025-01-04",
			uph: 100,
			hy: 'IT行业',
			zhy: '软件开发',
			dq: '信息大区',
			gzd: '北京',
			gzdbm: '101122',
			uphpm: '1',
			ckxlzylpczcg: '1000',
			xlzylpczcg: '900',
			cqsc: 200,
			cqscpczcg: 100,
			zcgcqsc: 300,
			zjzygspczcg: 400,
			zjzygszbpczcg: '60%',
			jjzygszbpczcg: '30%',
			xlzyl: 1000,
			zzcxlzyl: 0,
			gxxl: 0.00,
			cqrs: 80,
			kqrs: 77,
			zzrs: 100,
			jjrs: 65,
			jsrs: 50,
			cqgstczcgs: 300,
			cqgs: 200,
			zcgcqgs: 400,
			rjcqsc: 9,
			kqycl: 0,
			zjgstczcgs: 220,
			jjgstczcgs: 180,
			xzgstczcgs: 40,
			zyjs: 1000,
			zybgs: 990,
			zydds: 830,
			zyrwhs: 700,
			zykws: 760,
			zyskus: 455,
			jbb: 3.2,
			jdb: 3.1,
			zjzygs: 190,
			jjzygs: 120,
			xzgs: 60,
			zjzygszb: 0.8,
			jjzygszb: 0.2,
			xzgszb: 0.3,
			xxsc: 20,
			zhglgs: 0,
		},
		{
			key:1,
			rq: "2025-01-04",
			uph: 100,
			hy: 'IT行业',
			zhy: '软件开发',
			dq: '信息大区',
			gzd: '上海',
			gzdbm: '133222',
			uphpm: '1',
			ckxlzylpczcg: '1100',
			xlzylpczcg: '800',
			cqsc: 300,
			cqscpczcg: 200,
			zcgcqsc: 400,
			zjzygspczcg: 380,
			zjzygszbpczcg: '70%',
			jjzygszbpczcg: '20%',
			xlzyl: 1000,
			zzcxlzyl: 0,
			gxxl: 0.00,
			cqrs: 80,
			kqrs: 77,
			zzrs: 100,
			jjrs: 65,
			jsrs: 50,
			cqgstczcgs: 300,
			cqgs: 200,
			zcgcqgs: 400,
			rjcqsc: 9,
			kqycl: 0,
			zjgstczcgs: 220,
			jjgstczcgs: 180,
			xzgstczcgs: 40,
			zyjs: 1000,
			zybgs: 990,
			zydds: 830,
			zyrwhs: 700,
			zykws: 760,
			zyskus: 455,
			jbb: 3.2,
			jdb: 3.1,
			zjzygs: 160,
			jjzygs: 120,
			xzgs: 60,
			zjzygszb: 0.8,
			jjzygszb: 0.2,
			xzgszb: 0.3,
			xxsc: 20,
			zhglgs: 0,
		}
	],
	pagination: {},
}
@connect(({ allstaffuph, loading }) => ({
    allstaffuph,
    loading: loading.models.allstaffuph,
}))

class AllStaffUPHList extends PureComponent {
    state = {
        modalVisible: false,
        updateModalVisible: false,
        viewModalVisible: false,
        expandForm: false,
        selectedRows: [],
        formValues: {},
        updateFormValues: {},
        viewFormValues: {},
		toggleExpand: false,
    }

    columns = [ 
        {
            title: '日期',
            dataIndex: 'rq',
            key: 'rq',
            width: 100,
            fixed: 'left',
        }, {
            title: '行业',
            dataIndex: 'hy',
            key: 'hy',
            width: 80,
            fixed: 'left',
        },{
            title: '子行业',
            dataIndex: 'zhy',
            key: 'zhy',
            width: 80,
        }, {
            title: '大区',
            dataIndex: 'dq',
            key: 'dq',
            width: 80,
        },{
            title: '工作点',
            dataIndex: 'gzd',
            key: 'gzd',
            width: 80,
        }, {
            title: '工作点编码',
            dataIndex: 'gzdbm',
            key: 'gzdbm',
            width: 80,
        }, {
            title: 'UPH',
            dataIndex: 'uph',
            key: 'uph',
            width: 80,
        },
        {
            title: 'UPH排名',
            dataIndex: 'uphpm',
            key: 'uphpm',
			width: 80,
        },
		{
		    title: '出库效率作业量(排除支持岗)',
		    dataIndex: 'ckxlzylpczcg',
		    key: 'ckxlzylpczcgw',
		    width: 80,
		},
		{
		    title: '效率作业量(排除支持岗)',
		    dataIndex: 'xlzylpczcg',
		    key: 'xlzylpczcgw',
		    width: 80,
		},
		{
		    title: '出勤时长',
		    dataIndex: 'cqsc',
		    key: 'cqsc',
		    width: 80,
		},
		{
		    title: '出勤时长(排除支持岗)',
		    dataIndex: 'cqscpczcg',
		    key: 'cqscpczcgw',
		    width: 80,
		},
		{
		    title: '支持岗出勤时长',
		    dataIndex: 'zcgcqsc',
		    key: 'zcgcqsc',
		    width: 80,
		},
		{
		    title: '直接作业工时',
		    dataIndex: 'zjzygs',
		    key: 'zjzygs',
		    width: 80,
		},
		{
		    title: '直接作业工时(排除支持岗)',
		    dataIndex: 'zjzygspczcg',
		    key: 'zjzygspczcg',
		    width: 80,
		},
		{
		    title: '直接作业工时占比(排除支持岗)',
		    dataIndex: 'zjzygszbpczcg',
		    key: 'zjzygszbpczcg',
		    width: 80,
		},
		{
		    title: '闲置工时',
		    dataIndex: 'xzgs',
		    key: 'xzgs',
		    width: 80,
		},
		{
		    title: '闲置工时(排除支持岗)',
		    dataIndex: 'xzgspczcg',
		    key: 'xzgspczcg',
		    width: 80,
		},
		{
		    title: '闲置工时占比(排除支持岗)',
		    dataIndex: 'xzgszbpczcg',
		    key: 'xzgszbpczcg',
		    width: 80,
		},
		{
		    title: '综合管理工时',
		    dataIndex: 'zhglgs',
		    key: 'zhglgs',
		    width: 80,
		},
		{
		    title: '休息时长',
		    dataIndex: 'xxsc',
		    key: 'xxsc',
		    width: 80,
		},
		{
		    title: '作业件数',
		    dataIndex: 'zyjs',
		    key: 'zyjs',
		    width: 80,
		},
		{
		    title: '作业包裹数',
		    dataIndex: 'zybgs',
		    key: 'zybgs',
		    width: 80,
		},
		{
		    title: '作业订单数',
		    dataIndex: 'zydds',
		    key: 'zydds',
		    width: 80,
		},
		{
		    title: '作业任务行数',
		    dataIndex: 'zyrwhs',
		    key: 'zyrwhs',
		    width: 80,
		},
		{
		    title: '作业库位数',
		    dataIndex: 'zykws',
		    key: 'zykws',
		    width: 80,
		},
		{
		    title: '作业sku数',
		    dataIndex: 'zyskus',
		    key: 'zyskus',
		    width: 80,
		},
		{
		    title: '出库件数',
		    dataIndex: 'ckjs',
		    key: 'ckjs',
		    width: 80,
		},
		{
		    title: '出库包裹数',
		    dataIndex: 'ckbgs',
		    key: 'ckbgs',
		    width: 80,
		},
		{
		    title: '出库单数',
		    dataIndex: 'ckds',
		    key: 'ckds',
		    width: 80,
		},
		{
		    title: '预测单量',
		    dataIndex: 'ycdl',
		    key: 'ycdl',
		    width: 80,
		},
		{
		    title: '考勤人数',
		    dataIndex: 'kqrs',
		    key: 'kqrs',
		    width: 80,
		},
		{
		    title: '出勤人数',
		    dataIndex: 'cqrs',
		    key: 'cqrs',
		    width: 80,
		},
		{
		    title: '出勤人数(排除支持岗)',
		    dataIndex: 'cqrspczcg',
		    key: 'cqrspczcg',
		    width: 80,
		},
		{
		    title: '操作',
		    fixed: 'right',
		    width: 100,
		    render: (text, record) => {
		        return (
		            <Fragment>
		                <a className={style.iconstyle}> 单仓UPH </a>
		            </Fragment>
		        )
		    }
		},
    ]
	
    componentDidMount() {
        // const { dispatch, staffsheet: { params } } = this.props

        // dispatch({
        //     type: 'timesheet/query_page_for_prouser',
        // })

        // this.setState({
        //     expandForm: params?.expandForm || false,
        // })
    }

    handleStandardTableChange = (pagination, sorter) => {
        const { dispatch } = this.props
        const { formValues } = this.state

        const params = {
            currentPage: pagination.current,
            pageSize: pagination.pageSize,
            ...formValues
        }

        sorter.field && (params.sorter = `${sorter.field}_${sorter.order}`)

        // dispatch({
        //     type: 'prouser/query_page_for_prouser',
        //     payload: params
        // })
    }

    handleFormReset = () => {
        const { dispatch } = this.props
        this.setState({
            formValues: {}
        })

        // dispatch({
        //     type: 'prouser/query_page_for_prouser',
        //     payload: {
        //         resetFlag: true
        //     }
        // })
    }

    toggleForm = () => {
        const { expandForm } = this.state
        this.setState({
            expandForm: !expandForm
        })
    }

    handleSelectRows = rows => {
        this.setState({
            selectedRows: rows
        })
    }

    handleSearch = values => {
        const { dispatch } = this.props
        const { expandForm } = this.state

        this.setState({
            formValues: values
        })

        // dispatch({
        //     type: 'prouser/query_page_for_prouser',
        //     payload: {
        //         ...values,
        //         resetFlag: true,
        //         expandForm
        //     }
        // })
    }

    handleModalVisible = flag => {
        this.setState({
            modalVisible: !!flag
        })
    }

    handleUpdateModalVisible = (flag, record) => {
        this.setState({
            updateModalVisible: !!flag,
            updateFormValues: record || {}
        })
    }

    handleViewModalVisible = (flag, record) => {
        this.setState({
            viewModalVisible: !!flag,
            viewFormValues: record || {}
        })
    }

    handleAdd = fields => {
        const { dispatch } = this.props

        dispatch({
            type: 'prouser/insert_for_prouser',
            payload: {
                user_id: fields.user_id,
                user_name: fields.user_name,
                user_name_cn: fields.user_name_cn,
                user_name_en: fields.user_name_en,
                password: fields.password,
                email: fields.email,
                phone: fields.phone,
                landline: fields.landline,
                sex: fields.sex,
                avatar: fields.avatar,
                sign: fields.sign,
                tags: fields.tags,
                id_card: fields.id_card,
                birthday: fields.birthday,
                job_status: fields.job_status,
                hiredate: fields.hiredate,
                departure_time: fields.departure_time,
                user_type: fields.user_type,
                emp_no: fields.emp_no,
                access_card_no: fields.access_card_no,
                country: fields.country,
                province: fields.province,
                city: fields.city,
                address: fields.address,
                work_addr: fields.work_addr,
                floor: fields.floor,
                inprovince: fields.inprovince,
                // dept_code: fields.dept_code,
                // dept_name: fields.dept_name,
                inner_dept_code: fields.inner_dept_code,
                org_code: fields.org_code,
                org_name: fields.org_name,
                inner_org_code: fields.inner_org_code,
                posts: fields.posts,
                wx_openid: fields.wx_openid,
                wx_mpopenid: fields.wx_mpopenid,
                wx_miniopenid: fields.wx_miniopenid,
                wx_unionid: fields.wx_unionid,
                mobile_imei: fields.mobile_imei,
                device_num: fields.device_num,
                al_taobao: fields.al_taobao,
                al_alipay: fields.al_alipay,
                al_dingding: fields.al_dingding,
                is_system_user: fields.is_system_user,
                mgr_type: fields.mgr_type,
                pwd_security_level: fields.pwd_security_level,
                pwd_update_date: fields.pwd_update_date,
                last_login_ip: fields.last_login_ip,
                last_login_date: fields.last_login_date,
                freeze_date: fields.freeze_date,
                freeze_cause: fields.freeze_cause,
                zindex: fields.zindex,
                wx_msg: fields.wx_msg,
                email_msg: fields.email_msg,
                system_msg: fields.system_msg,
                remarks: fields.remarks,
                status: fields.status,
                creator: fields.creator,
                create_date: fields.create_date,
                updater: fields.updater,
                update_date: fields.update_date
            },
            callback: (res) => {
                if(res.success == true) {
                    message.success('添加成功')
                    this.handleModalVisible()
                }
            }
        })
    }

    handleDeleteRecord = record => {
        const { dispatch } = this.props

        dispatch({
            type: 'prouser/delete_by_primarykey_for_prouser',
            payload: {
                recordid: record.user_id
            },
            callback: res => {
                if (res.success) {
                    message.success('删除成功')

                    this.setState({
                        selectedRows: []
                    })
                }
            }
        })
    }

    handleUpdate = fields => {
        const { dispatch } = this.props

        dispatch({
            type: 'prouser/update_for_prouser',
            payload: {
                user_id: fields.user_id,
                user_name: fields.user_name,
                user_name_cn: fields.user_name_cn,
                user_name_en: fields.user_name_en,
                password: fields.password,
                email: fields.email,
                phone: fields.phone,
                landline: fields.landline,
                sex: fields.sex,
                avatar: fields.avatar,
                sign: fields.sign,
                tags: fields.tags,
                id_card: fields.id_card,
                birthday: fields.birthday,
                job_status: fields.job_status,
                hiredate: fields.hiredate,
                departure_time: fields.departure_time,
                user_type: fields.user_type,
                emp_no: fields.emp_no,
                access_card_no: fields.access_card_no,
                country: fields.country,
                province: fields.province,
                city: fields.city,
                address: fields.address,
                work_addr: fields.work_addr,
                floor: fields.floor,
                inprovince: fields.inprovince,
                // dept_code: fields.dept_code,
                // dept_name: fields.dept_name,
                inner_dept_code: fields.inner_dept_code,
                org_code: fields.org_code,
                org_name: fields.org_name,
                inner_org_code: fields.inner_org_code,
                posts: fields.posts,
                wx_openid: fields.wx_openid,
                wx_mpopenid: fields.wx_mpopenid,
                wx_miniopenid: fields.wx_miniopenid,
                wx_unionid: fields.wx_unionid,
                mobile_imei: fields.mobile_imei,
                device_num: fields.device_num,
                al_taobao: fields.al_taobao,
                al_alipay: fields.al_alipay,
                al_dingding: fields.al_dingding,
                is_system_user: fields.is_system_user,
                mgr_type: fields.mgr_type,
                pwd_security_level: fields.pwd_security_level,
                pwd_update_date: fields.pwd_update_date,
                last_login_ip: fields.last_login_ip,
                last_login_date: fields.last_login_date,
                freeze_date: fields.freeze_date,
                freeze_cause: fields.freeze_cause,
                zindex: fields.zindex,
                wx_msg: fields.wx_msg,
                email_msg: fields.email_msg,
                system_msg: fields.system_msg,
                remarks: fields.remarks,
                status: fields.status,
                creator: fields.creator,
                create_date: fields.create_date,
                updater: fields.updater,
                update_date: fields.update_date
            },
            callback: (res) => {
                if(res.success === true) {
                    message.success('修改成功')
                    this.handleUpdateModalVisible()
                }
            }
        })
    }

    // 修改用户状态
    handleUpdateUserStatus = (fields, status, msg) => {
        const { dispatch } = this.props

        confirm({
            title: `确定要 ${ msg } 当前用户的吗?`,
            icon: <ExclamationCircleFilled />,
            onOk() {
                dispatch({
                    type: 'prouser/update_for_prouser',
                    payload: {
                        user_id: fields.user_id,
                        status: status,
                    },
                    callback: (res) => {
                        if(res.success === true) {
                            message.success('修改成功')
                        }
                    }
                })
            }
        })
    }

    // 修改用户密码
    handleUpdateUserPassword = fields => {
        const { dispatch } = this.props
        confirm({
            title: '确定要重置当前用户的密码吗?',
            icon: <ExclamationCircleFilled />,
            onOk() {
                dispatch({
                    type: 'prouser/resetpwd_for_prouser',
                    payload: {
                        user_id: fields.user_id
                    },
                    callback: (res) => {
                        if(res.success === true) {
                            message.success('重置成功')
                        }
                    }
                })
            }
        })
    }

    renderSimpleForm() {
        const { allstaffuph: { params } } = this.props
        const parentMethods = {
            handleSearch: this.handleSearch,
            handleFormReset: this.handleFormReset,
            toggleForm: this.toggleForm,
            params
        }

        return <AllStaffUPHRenderSimpleForm {...parentMethods} />
    }

    renderAdvancedForm() {
        const { dispatch, prouser: { selectDeptTree, selectOrganTree, params } } = this.props
        const parentMethods = {
            handleSearch: this.handleSearch,
            handleFormReset: this.handleFormReset,
            toggleForm: this.toggleForm,
            dispatch: dispatch,
            selectDeptTree: selectDeptTree,
            selectOrganTree: selectOrganTree,
            params
        }

        return <AllStaffUPHRenderAdvancedForm {...parentMethods} />
    }

    renderForm() {
        const { expandForm } = this.state
        return expandForm ? this.renderAdvancedForm() : this.renderSimpleForm()
    }
	
	handleCollapse = () => {
	    const { toggleExpand } = this.state
	    this.setState({
	        toggleExpand: !toggleExpand
	    })
	}

    render() {
        const {
            allstaffuph: {
                data,
                selectDeptTree,
                selectOrganTree
            },
            loading,
            dispatch
        } = this.props
        const {
            selectedRows,
            modalVisible,
            updateModalVisible,
            viewModalVisible,
            updateFormValues,
            viewFormValues,
			toggleExpand,
        } = this.state

        const parentMethods = {
            handleAdd: this.handleAdd,
            handleModalVisible: this.handleModalVisible,
            dispatch: dispatch,
            loading,
            selectDeptTree: selectDeptTree,
            selectOrganTree: selectOrganTree
        }

        const updateMethods = {
            handleUpdateModalVisible: this.handleUpdateModalVisible,
            handleUpdate: this.handleUpdate,
            dispatch: dispatch,
            loading,
            selectDeptTree: selectDeptTree,
            selectOrganTree: selectOrganTree
        }

        const viewMethods = {
            handleViewModalVisible: this.handleViewModalVisible
        }
		
		const tabItems = [
		  {
		    key: '1',
		    label: '工作点',
		    children: <>
				<div style={{display: 'flex',justifyContent: "space-between",padding: '0 10px'}}>
					<div style={{lineHeight: "42px"}}>
						<span>选中 0 项/共 2 项</span>
						<Button type="primary" style={{margin: "0 10px"}}>对比权限申请与详情</Button>
						<Button>对比</Button>
					</div>
					<div style={{marginBottom: 10}}>
						<Button icon={<DownloadOutlined />}>
							导出
						</Button>
					</div>
				</div>
				<StandardTable
					rowKey={'user_id'}
					selectedRows={selectedRows}
					loading={loading}
					data={mockData}
					columns={this.columns}
					onSelectRow={this.handleSelectRows}
					selectionType="checkbox"
					onChange={this.handleStandardTableChange}
					scroll={{ x: 1000, y: 300}}
					showTotal={(total, range) => total}
				/>
			</>,
		  }
		];

        return (
            <>
                <Card bordered={false}>
                    <div className={styles.proUsertableList}>
                        <div className={styles.proUsertableListForm}>{this.renderForm()}</div>
						<div className={styles.dataSummary}>
							<div>
								<div className={styles.summaryIcon}><AppstoreOutlined style={{color: '#fff'}}/></div>
								<div style={{display: 'inline-block'}}>
									<span style={{fontSize: 18,fontWeight: 500,marginRight: 10}}>汇总</span>
									<span>必须先启动工序定义，才开始数据加工与呈现（数据滞后1小时）</span>
								</div>
							</div>
							<div className={styles.summaryButton} onClick={() => this.handleCollapse()}>
								{toggleExpand ? <><UpOutlined /> 收起</> : <><DownOutlined /> 展开</>}
							</div>
						</div>
						<div style={{display: toggleExpand?'block':'none',padding: '0 10px'}}>
							<div className={styles.summaryContent}>
								<div style={{paddingLeft: 0}}>
									<div className={styles.titleLabel}>作业件数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>1000</div>
								</div>
								<div>
									<div className={styles.titleLabel}>作业包裹数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>500</div>
								</div>
								<div>
									<div className={styles.titleLabel}>作业订单数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>200</div>
								</div>
								<div>
									<div className={styles.titleLabel}>出库件数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>300</div>
								</div>
								<div>
									<div className={styles.titleLabel}>出库包裹数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>100</div>
								</div>
								<div>
									<div className={styles.titleLabel}>出库单数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>80</div>
								</div>
							</div>
							<div className={styles.summaryContent}>
								<div style={{paddingLeft: 0}}>
									<div className={styles.titleLabel}>在职人数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>600</div>
								</div>
								<div>
									<div className={styles.titleLabel}>支持岗人数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>60</div>
								</div>
								<div>
									<div className={styles.titleLabel}>出勤人数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>500</div>
								</div>
								<div>
									<div className={styles.titleLabel}>考勤人数</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>500</div>
								</div>
								<div>
									<div className={styles.titleLabel}>出勤工时(排除支持岗)</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>2000</div>
								</div>
								<div>
									<div className={styles.titleLabel}>出勤率</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>100%</div>
								</div>
							</div>
							<div className={styles.summaryContent}>
								<div style={{paddingLeft: 0}}>
									<div className={styles.titleLabel}>直接工时(排除支持岗)</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>1800</div>
								</div>
								<div>
									<div className={styles.titleLabel}>闲置工时</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>210</div>
								</div>
								<div>
									<div className={styles.titleLabel}>直接工时占比(排除支持岗)</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>60%</div>
								</div>
								<div>
									<div className={styles.titleLabel}>闲置工时占比</div>
									<div className={styles.titleVal}><QuestionCircleFilled className={styles.toolTip}/>10%</div>
								</div>
							</div>
						</div>

						<Tabs defaultActiveKey="1" items={tabItems} />
                    </div>
                </Card>

                {modalVisible && <AllStaffUPHCreateForm {...parentMethods} modalVisible={modalVisible} />}

                {updateFormValues && Object.keys(updateFormValues).length ? (
                    <AllStaffUPHUpdateForm
                        {...updateMethods}
                        updateModalVisible={updateModalVisible}
                        values={updateFormValues}
                    />
                ) : null}

                {viewFormValues && Object.keys(viewFormValues).length ? (
                    <AllStaffUPHViewForm
                        {...viewMethods}
                        viewModalVisible={viewModalVisible}
                        values={viewFormValues}
                    />
                ) : null}
            </>
        )
    }
}

export default AllStaffUPHList
