From 5ec07d20e0c275487e1860e7ee45c91ffa1569b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Wed, 25 Sep 2024 15:37:02 +0800
Subject: [PATCH] =?UTF-8?q?feature/2.15.1.2407.01-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BB=A5=E5=8F=8A=E5=AD=97=E6=AE=B5=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=E6=94=B9=E9=80=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/salaryItem/index.js | 41 +++-----
pc4mobx/hrmSalary/pages/salaryItem/index.less | 24 ++---
.../syncToSalaryAccountSetDialog.js | 3 +-
.../pages/salaryItem/systemSalaryItemModal.js | 94 +++++++------------
4 files changed, 59 insertions(+), 103 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index 7cd6da90..6e8073d4 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -18,9 +18,9 @@ export default class SalaryItem extends React.Component {
constructor(props) {
super(props);
this.state = {
- name: "", isQuery: false, loading: false,
+ name: "", isQuery: false, loading: false, sysVisible: false,
customItemDialog: { visible: false, title: "", buttons: [] },// 自定义薪资项弹窗
- syncSalarySetDialog: { visible: false, title: "", id: "" }, // 同步到薪资账套弹窗
+ syncSalarySetDialog: { visible: false, id: "" }, // 同步到薪资账套弹窗
logDialogVisible: false, filterConditions: "[]"
};
}
@@ -109,9 +109,7 @@ export default class SalaryItem extends React.Component {
const title = key === "edit" ? getLabel(111, "修改自定义薪资项目") : getLabel(111, "新建自定义薪资项目");
const buttons = key === "edit" ? [
,
@@ -131,6 +129,7 @@ export default class SalaryItem extends React.Component {
this.handleDeleteItem(targetid);
break;
case "sysAdd":
+ this.setState({ sysVisible: true });
break;
default:
break;
@@ -139,12 +138,14 @@ export default class SalaryItem extends React.Component {
render() {
const { salaryItemStore, taxAgentStore: { showOperateBtn, showSalaryItemBtn } } = this.props;
- const { selectedRowKeys, logDialogVisible, filterConditions, name, isQuery, customItemDialog } = this.state;
+ const {
+ selectedRowKeys, logDialogVisible, filterConditions, name, isQuery, customItemDialog, sysVisible
+ } = this.state;
const { loading, deleteItemRequest, getTableDatas } = salaryItemStore;
const { systemItemVisible, setSystemItemVisible } = salaryItemStore;
const menu = (
-