import React from "react"; import { Col, Row } from "antd"; import { WeaHelpfulTip, WeaSearchGroup } from "ecCom"; import { inject, observer } from "mobx-react"; import "./index.less"; import SelectedTab from "../../components/selectedTab"; import SalaryItemChangeList from "./salaryItemChangeList"; import TaxAgentChangeList from "./taxAgentChangeList"; const selectedTabItems = [ { key: "0", name: "薪资调整记录" }, {/*暂时去掉调整个税扣缴义务人导入按钮*/ } // { // key: "1", // name: "个税扣缴义务人调整记录" // } ]; @inject("salaryFileStore") @observer export default class SalaryFileViewSlide extends React.Component { constructor(props) { super(props); this.state = { baseInfoVisible: true, salaryItemVisible: true, selectedTab: "0", }; } componentWillMount() { const { salaryFileStore: { getArchiveForm, fetchSingleSalaryItemList, salaryAdjustmentInfo } } = this.props; getArchiveForm(this.props.id); fetchSingleSalaryItemList({ salaryArchiveId: this.props.id }); salaryAdjustmentInfo() } // tab页签切换回调 handleTabChange(item) { this.setState({ selectedTab: item.key }); } render() { const { salaryFileStore: { detailForm } } = this.props; const { baseInfo, adjustSalaryItems } = detailForm; return (
{ this.setState({ baseInfoVisible: value }); }}/> { this.state.baseInfoVisible &&
姓名 {baseInfo && baseInfo.employee && baseInfo.employee.username} 部门 {baseInfo && baseInfo.employee && baseInfo.employee.department} 岗位 {baseInfo && baseInfo.employee && baseInfo.employee.position} 入职时间 {baseInfo && baseInfo.employee && baseInfo.employee.hiredate} 手机号 {baseInfo && baseInfo.employee && baseInfo.employee.mobile} 个税扣缴义务人 {baseInfo && baseInfo.employee && baseInfo.employee.taxAgent}
} 薪资档案 } items={[]} onVisibleChange={(value) => { this.setState({ salaryItemVisible: value }); }}/> { this.state.salaryItemVisible &&
{ adjustSalaryItems && adjustSalaryItems.map(item => (
{item.name}
{item.value}
)) }
} { this.handleTabChange(item); }}/>} items={[]} onVisibleChange={(value) => { this.setState({ salaryItemVisible: value }); }}/> { this.state.selectedTab == "0" ? : }
); } }