From e9f78c0ed671712bdcb1f1939522cb3334c95e25 Mon Sep 17 00:00:00 2001 From: MustangDeng <670124965@qq.com> Date: Thu, 17 Mar 2022 17:18:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=96=AA=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/pages/calculateDetail/index.js | 2 +- .../pages/salaryFile/changeSalaryModal.js | 55 +++++++++++++++++ pc4mobx/hrmSalary/pages/salaryFile/columns.js | 26 +++++++- pc4mobx/hrmSalary/pages/salaryFile/index.js | 60 ++++++++++++++++++- pc4mobx/hrmSalary/pages/salaryFile/index.less | 20 +++++++ 5 files changed, 157 insertions(+), 6 deletions(-) create mode 100644 pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js create mode 100644 pc4mobx/hrmSalary/pages/salaryFile/index.less diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/index.js b/pc4mobx/hrmSalary/pages/calculateDetail/index.js index 503b118c..9e9e912a 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/index.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/index.js @@ -45,7 +45,7 @@ export default class CalculateDetail extends React.Component { ) } - } + } const topTab = [{ title: "人员确认", diff --git a/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js new file mode 100644 index 00000000..f86f72ed --- /dev/null +++ b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js @@ -0,0 +1,55 @@ +import React from 'react' +import { Row, Col, Table, Modal, Icon } from 'antd' +import { WeaInput, WeaSelect } from "ecCom" +import { changeSalaryModalColumns, dataSource } from './columns' +import "./index.less" + +export default class ChangeSalaryModal extends React.Component { + render() { + return ( + {this.props.onCancel()}}> +
+ + + 生效日期 + + + + + + + + 调整原因 + + + + + + + + 说明 + + + + + +
+ +
+
+ 调薪明细 +
+ + +
+
+ +
+ + + + + + ) + } +} \ No newline at end of file diff --git a/pc4mobx/hrmSalary/pages/salaryFile/columns.js b/pc4mobx/hrmSalary/pages/salaryFile/columns.js index cb9722d4..9ffc948c 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/columns.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/columns.js @@ -31,13 +31,35 @@ export const columns = [ }, { title: "操作", + dataIndex: 'cz', + key: 'cz', + } +] + +export const changeSalaryModalColumns = [ + { + title: '薪资项目', dataIndex: 'title', - key: 'title', + key: 'title' + }, + { + title: '调整前', + dataIndex: 'title', + key: 'title' + }, + { + title: '调整后', + dataIndex: 'title', + key: 'title' } ] -export const dataSource = []; +export const dataSource = [ + { + title: "测试" + } +]; diff --git a/pc4mobx/hrmSalary/pages/salaryFile/index.js b/pc4mobx/hrmSalary/pages/salaryFile/index.js index c9e68d8c..173aef63 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/index.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/index.js @@ -2,9 +2,9 @@ import React from 'react'; import { inject, observer } from 'mobx-react'; import { toJS } from 'mobx'; -import { Button, Table, DatePicker } from 'antd'; +import { Button, Table, DatePicker, Dropdown, Menu } from 'antd'; -import { WeaTop, WeaTab, WeaRightMenu, WeaRangePicker, WeaTable } from 'ecCom'; +import { WeaTop, WeaTab, WeaRightMenu, WeaRangePicker, WeaTable, WeaInputSearch } from 'ecCom'; import { renderNoright, getSearchs } from '../../util'; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中 import CustomTab from '../../components/customTab'; @@ -12,6 +12,8 @@ import ContentWrapper from '../../components/contentWrapper'; import { columns, dataSource } from './columns'; +import ChangeSalaryModal from "./changeSalaryModal" + const { MonthPicker } = DatePicker; @inject('baseTableStore') @@ -21,7 +23,8 @@ export default class SalaryFile extends React.Component { super(props); this.state = { value: "", - selectedKey: "0" + selectedKey: "0", + changeSalaryVisible: false } } render() { @@ -61,6 +64,44 @@ export default class SalaryFile extends React.Component { } + const handleMenuClick = (e) => { + if(e.key == "1") { + this.setState({ + changeSalaryVisible: true + }) + } + } + + const handleMenuClick2 = () => { + + } + + const menu = ( + + 调薪 + 调整个税扣缴义务人 + 档案初始化 + + ); + + + const menu2 = ( + + 导出全部 + + ); + + const renderRightOperation = () => { + return ( +
+ 导入 + 导出 + + +
+ ) + } + return (
+ + + { + this.state.changeSalaryVisible && {this.setState({changeSalaryVisible: false})}} + /> + } +
) } diff --git a/pc4mobx/hrmSalary/pages/salaryFile/index.less b/pc4mobx/hrmSalary/pages/salaryFile/index.less new file mode 100644 index 00000000..7e71ca75 --- /dev/null +++ b/pc4mobx/hrmSalary/pages/salaryFile/index.less @@ -0,0 +1,20 @@ +.changeSalaryModal { + padding: 10px 20px; + .itemWrapper { + line-height: 47px; + } + .contentWrapper { + margin-top: 10px; + .contentTitleWrapper { + height: 40px; + line-height: 40px; + .rightIconWrapper { + display: inline-block; + float: right; + } + } + .tableWrapper { + margin-top: 10px; + } + } +} \ No newline at end of file