From 9e81e8244a981aaf99dffd45a874051bd9120fec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Thu, 25 Jan 2024 09:16:57 +0800
Subject: [PATCH 01/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/index.js | 18 ++
.../components/logViewModal/config.js | 78 +++++++
.../components/logViewModal/index.js | 207 ++++++++++--------
.../components/logViewModal/index.less | 30 +++
pc4mobx/hrmSalary/pages/salaryItem/index.js | 32 ++-
pc4mobx/hrmSalary/stores/baseForm.js | 10 +-
6 files changed, 269 insertions(+), 106 deletions(-)
create mode 100644 pc4mobx/hrmSalary/components/logViewModal/config.js
create mode 100644 pc4mobx/hrmSalary/components/logViewModal/index.less
diff --git a/pc4mobx/hrmSalary/apis/index.js b/pc4mobx/hrmSalary/apis/index.js
index 854c9bf6..6be981c4 100644
--- a/pc4mobx/hrmSalary/apis/index.js
+++ b/pc4mobx/hrmSalary/apis/index.js
@@ -1,4 +1,5 @@
import { WeaTools } from "ecCom";
+import { postFetch } from "../util/request";
// form基础数据
export const getBaseForm = (params) => {
@@ -19,3 +20,20 @@ export const getCondition = (params) => {
export const getTableDatas = (params) => {
return WeaTools.callApi("/api/demo03/weatableDemo", "GET", params);
};
+//获取日志列表
+export const getLogs = params => {
+ const payload = {
+ ...params,
+ module: "hrsa", dataset: "dataset",
+ filterConditions: "[]", transMethod: "hrsa",
+ authParams: "{}"
+ };
+ return postFetch("/api/bs/hrmsalary/elog/getLogs", payload);
+};
+//获取单条操作记录的更新明细
+export const getDetailChanges = params => {
+ const payload = {
+ ...params, module: "hrsa", detailTransMethod: "elogDemoDetail",
+ };
+ return postFetch("/api/bs/hrmsalary/elog/getDetailChanges", payload);
+};
diff --git a/pc4mobx/hrmSalary/components/logViewModal/config.js b/pc4mobx/hrmSalary/components/logViewModal/config.js
new file mode 100644
index 00000000..872a90c0
--- /dev/null
+++ b/pc4mobx/hrmSalary/components/logViewModal/config.js
@@ -0,0 +1,78 @@
+import React from "react";
+import { WeaFormItem, WeaLocaleProvider, WeaSearchGroup, WeaTools } from "ecCom";
+import { WeaSwitch } from "comsMobx";
+import { Button } from "antd";
+
+const getKey = WeaTools.getKey;
+const getLabel = WeaLocaleProvider.getLabel;
+export const logConditions = [
+ {
+ items: [
+ {
+ conditionType: "INPUT",
+ domkey: ["operator"],
+ fieldcol: 18,
+ label: "操作人",
+ lanId: 17482,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
+ },
+ {
+ conditionType: "INPUT",
+ domkey: ["targetname"],
+ fieldcol: 18,
+ label: "对象",
+ lanId: 106,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
+ },
+ {
+ conditionType: "INPUT",
+ domkey: ["operatetypename"],
+ fieldcol: 18,
+ label: "操作类型",
+ lanId: 111,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
+ }
+ ],
+ defaultshow: true,
+ title: ""
+ }
+];
+
+export const renderLogSearchsForm = (form, condition, onSearch = () => void (0)) => {
+ const { isFormInit } = form;
+ const formParams = form.getFormParams();
+ let group = [];
+ isFormInit && condition && condition.map(c => {
+ let items = [];
+ c.items.map(fields => {
+ items.push({
+ com: (
+
+
+ {
+ getKey(fields) === "operatetypename" &&
+
+
+
+
+ }
+ ),
+ colSpan: 1
+ });
+ });
+ group.push(
+ );
+ });
+ return group;
+};
diff --git a/pc4mobx/hrmSalary/components/logViewModal/index.js b/pc4mobx/hrmSalary/components/logViewModal/index.js
index d95ceb25..aeab775a 100644
--- a/pc4mobx/hrmSalary/components/logViewModal/index.js
+++ b/pc4mobx/hrmSalary/components/logViewModal/index.js
@@ -1,99 +1,116 @@
-import React from 'react'
-import { Button, Modal } from 'antd';
-import { WeaInput, WeaRangePicker, WeaTable} from 'ecCom'
-import { logColumns, dataSource } from "../../common/columns"
+/*
+ * Author: 黎永顺
+ * name: 薪酬日志查看
+ * Description:
+ * Date: 2024/1/24
+ */
+import React, { Component } from "react";
+import { inject, observer } from "mobx-react";
+import { WeaDialog, WeaLocaleProvider, WeaTable } from "ecCom";
+import { logConditions, renderLogSearchsForm } from "./config";
+import "./index.less";
-export default class LogViewModal extends React.Component {
- constructor(props) {
- super(props)
- this.state ={
- value: ""
- }
+const getLabel = WeaLocaleProvider.getLabel;
+
+@inject("baseFormStore")
+@observer
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ dataSource: [], columns: [], pageInfo: { current: 1, pageSize: 10, total: 0 },
+ loading: false, conditions: []
+ };
+ }
+
+ componentDidMount() {
+ const { baseFormStore: { form } } = this.props;
+ this.setState({
+ conditions: _.map(logConditions, it => ({
+ ...it, items: _.map(it.items, o => ({ ...o, label: getLabel(o.lanId, o.label) }))
+ }))
+ }, () => form.initFormFields(this.state.conditions));
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ // if (nextProps.visible !== this.props.visible && nextProps.visible) this.getAdjustHistoryList();
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) {
+ this.setState({
+ dataSource: [], columns: [], pageInfo: { current: 0, pageSize: 10, total: 0 },
+ loading: false
+ });
}
- render() {
- return (
- alert("ok")} onCancel={this.props.onCancel}
- className="logViewModal"
- style={{ top: 150 }}
- width={'80%'} height={'50%'}
- >
-
-
-
操作时间
-
- this.setState({ value: v })}
- />
-
-
-
-
操作人
-
- {
- console.log(value);
- this.setState({ value });
- }}
- customBlur={v => {
- console.log("custom blur", v);
- }}
- onFocus={v => console.log("focus", v)}
- onBlur={v => console.log("blur", v)}
- />
-
-
+ }
-
-
对象
-
- {
- console.log(value);
- this.setState({ value });
- }}
- customBlur={v => {
- console.log("custom blur", v);
- }}
- onFocus={v => console.log("focus", v)}
- onBlur={v => console.log("blur", v)}
- />
-
-
+ // getAdjustHistoryList = (extra = {}) => {
+ // const { pageInfo } = this.state;
+ // const { archivesStore: { logForm } } = this.props;
+ // const payload = { ...pageInfo, ...logForm.getFormParams(), ...extra };
+ // this.setState({ loading: true });
+ // getAdjustHistoryList(payload).then(({ status, data }) => {
+ // this.setState({ loading: false });
+ // if (status) {
+ // const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
+ // this.setState({
+ // pageInfo: { ...pageInfo, current, pageSize, total },
+ // dataSource, columns: _.map(columns, it => {
+ // if (it.dataIndex === "operateTime") {
+ // return { ...it, render: (text) => (
{moment(text).format("YYYY-MM-DD")}) };
+ // }
+ // return { ...it };
+ // })
+ // });
+ // }
+ // }).catch(() => this.setState({ loading: false }));
+ // };
-
-
操作类型
-
- {
- console.log(value);
- this.setState({ value });
- }}
- customBlur={v => {
- console.log("custom blur", v);
- }}
- onFocus={v => console.log("focus", v)}
- onBlur={v => console.log("blur", v)}
- />
-
-
-
-
-
-
-
-
-
- )
- }
-}
\ No newline at end of file
+ render() {
+ const { loading, dataSource, columns, pageInfo, conditions } = this.state;
+ const { baseFormStore: { form } } = this.props;
+ const pagination = {
+ ...pageInfo,
+ showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
+ showQuickJumper: true,
+ showSizeChanger: true,
+ pageSizeOptions: ["10", "20", "50", "100"],
+ onShowSizeChange: (current, pageSize) => {
+ this.setState({
+ pageInfo: { ...pageInfo, current, pageSize }
+ }, () => this.getAdjustHistoryList());
+ },
+ onChange: current => {
+ this.setState({
+ pageInfo: { ...pageInfo, current }
+ }, () => this.getAdjustHistoryList());
+ }
+ };
+ const scrollHeight = this.logRef ? this.logRef.state.height - 210 : 606.6;
+ return (
+ this.logRef = dom} className="logDialog" initLoadCss
+ style={{
+ width: 1150,
+ height: 606.6,
+ minHeight: 200,
+ minWidth: 380,
+ maxHeight: "90%",
+ maxWidth: "90%",
+ overflow: "hidden",
+ transform: "translate(0px, 0px)"
+ }}
+ >
+
+ {renderLogSearchsForm(form, conditions, () => this.getAdjustHistoryList({ current: 1 }))}
+
+
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/components/logViewModal/index.less b/pc4mobx/hrmSalary/components/logViewModal/index.less
new file mode 100644
index 00000000..6c10dc6f
--- /dev/null
+++ b/pc4mobx/hrmSalary/components/logViewModal/index.less
@@ -0,0 +1,30 @@
+.logDialog {
+ .wea-dialog-body {
+ overflow-y: hidden;
+ }
+
+ .logDialogContent {
+ background: #F6F6F6;
+ padding: 16px;
+ width: 100%;
+ height: 100%;
+
+ .wea-search-group {
+ padding: 0;
+ margin-bottom: 10px;
+ background: #FFF;
+
+ .wea-form-cell {
+ padding: 0;
+
+ .wea-form-item {
+ padding: 10px;
+ }
+ }
+ }
+
+ .logTable {
+ background: #FFFFFF;
+ }
+ }
+}
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index 921c9d2f..67a0f05e 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -11,6 +11,7 @@ import CustomSalaryItemSlide from "./customSalaryItemSlide";
import CustomPaginationTable from "../../components/customPaginationTable";
import SyncToSalaryAccountSetDialog from "./syncToSalaryAccountSetDialog";
import "../socialSecurityBenefits/programme/index.less";
+import LogDialog from "../../components/logViewModal";
const { getLabel } = WeaLocaleProvider;
@inject("salaryItemStore", "taxAgentStore", "salaryFileStore")
@@ -27,7 +28,8 @@ export default class SalaryItem extends React.Component {
formalModalVisible: false,
searchParams: { current: 1, pageSize: 10, total: 0 },
selectedRowKeys: [],
- syncSalarySetDialog: { visible: false, title: "", id: "" }
+ syncSalarySetDialog: { visible: false, title: "", id: "" },
+ logDialogVisible: false
};
columns.map(item => {
if (item.dataIndex == "refere") {
@@ -191,6 +193,16 @@ export default class SalaryItem extends React.Component {
getTableDatas({ ...searchParams });
}
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
+
render() {
const {
salaryItemStore,
@@ -198,7 +210,7 @@ export default class SalaryItem extends React.Component {
taxAgentStore: { showOperateBtn, showSalaryItemBtn, taxAgentOption }
} = this.props;
const { userStatusList } = salaryFileStore;
- const { selectedRowKeys } = this.state;
+ const { selectedRowKeys, logDialogVisible } = this.state;
const { loading, deleteItemRequest, getTableDatas } = salaryItemStore;
const {
tableDataSource,
@@ -342,11 +354,14 @@ export default class SalaryItem extends React.Component {
};
return (
-
}
- iconBgcolor="#F14A2D"
- showDropIcon={false}
+
} iconBgcolor="#F14A2D"
+ showDropIcon onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon:
,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
@@ -387,7 +402,8 @@ export default class SalaryItem extends React.Component {
}
})}
/>
-
+ {/*操作日志*/}
+
this.setState({ logDialogVisible: false })}/>
{
systemItemVisible &&
this.logVisible = bool
-
-}
\ No newline at end of file
+
+}
From 7cb1b157ebc0c7ba43c2909585be97670e55a097 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Thu, 25 Jan 2024 11:52:10 +0800
Subject: [PATCH 02/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/index.js | 7 +-
.../components/detailLogView/index.js | 81 +++++++++++++++++++
.../components/logViewModal/config.js | 18 ++++-
.../components/logViewModal/index.js | 74 ++++++++++-------
.../components/logViewModal/index.less | 41 ++++++++++
pc4mobx/hrmSalary/pages/salaryItem/index.js | 3 +-
6 files changed, 185 insertions(+), 39 deletions(-)
create mode 100644 pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js
diff --git a/pc4mobx/hrmSalary/apis/index.js b/pc4mobx/hrmSalary/apis/index.js
index 6be981c4..af60888f 100644
--- a/pc4mobx/hrmSalary/apis/index.js
+++ b/pc4mobx/hrmSalary/apis/index.js
@@ -23,17 +23,16 @@ export const getTableDatas = (params) => {
//获取日志列表
export const getLogs = params => {
const payload = {
- ...params,
- module: "hrsa", dataset: "dataset",
+ ...params, module: "hrsa", dataset: "dataset", authParams: "{}",
filterConditions: "[]", transMethod: "hrsa",
- authParams: "{}"
+ showColums: "[{\"columName\":\"操作时间\",\"columIndex\":\"createdate\",\"width\":\"5%\"},{\"columName\":\"操作人\",\"columIndex\":\"operatorname\",\"width\":\"2%\"},{\"columName\":\"操作类型\",\"columIndex\":\"operatetypename\",\"width\":\"5%\"},{\"columName\":\"项目\",\"columIndex\":\"modulenamespan\",\"width\":\"3%\"},{\"columName\":\"对象\",\"columIndex\":\"targetname\",\"width\":\"4%\"},{\"columName\":\"修改详情\",\"columIndex\":\"operatedesc\",\"width\":\"2%\"},{\"columName\":\"客户端IP\",\"columIndex\":\"clientip\",\"width\":\"5%\"}]"
};
return postFetch("/api/bs/hrmsalary/elog/getLogs", payload);
};
//获取单条操作记录的更新明细
export const getDetailChanges = params => {
const payload = {
- ...params, module: "hrsa", detailTransMethod: "elogDemoDetail",
+ ...params, module: "hrsa", detailTransMethod: "elogDemoDetail"
};
return postFetch("/api/bs/hrmsalary/elog/getDetailChanges", payload);
};
diff --git a/pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js b/pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js
new file mode 100644
index 00000000..a5c1a5cc
--- /dev/null
+++ b/pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js
@@ -0,0 +1,81 @@
+/*
+ * Author: 黎永顺
+ * name: 日志查看-详情
+ * Description:
+ * Date: 2024/1/25
+ */
+import React, { Component } from "react";
+import { WeaDialog, WeaLocaleProvider, WeaTransfer } from "ecCom";
+import * as API from "../../../../apis";
+
+const getLabel = WeaLocaleProvider.getLabel;
+const WeaTransferList = WeaTransfer.list;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ dataSource: [], loading: false
+ };
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) this.getDetailChanges(nextProps);
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) this.setState({
+ dataSource: [],
+ loading: false
+ });
+ }
+
+ getDetailChanges = (props) => {
+ const { mainid, logFunction } = props;
+ const payload = { function: logFunction, mainid };
+ this.setState({ loading: true });
+ API.getDetailChanges(payload).then(({ status, data }) => {
+ this.setState({ loading: false });
+ if (status) {
+ this.setState({
+ dataSource: _.map(data, (o, i) => ({
+ ...o, index: i + 1,
+ valueschanges: _.map(o.valueschanges, (g, gi) => ({ id: gi + 1, name: g }))
+ }))
+ });
+ }
+ }).catch(() => this.setState({ loading: false }));
+ };
+
+ render() {
+ const { dataSource } = this.state;
+ const scrollHeight = this.logDetailRef ? this.logDetailRef.state.height - 32 : 606.6;
+ return (
+ this.logDetailRef = dom}
+ style={{
+ width: 750,
+ height: 606.6,
+ minHeight: 200,
+ minWidth: 380,
+ maxHeight: "90%",
+ maxWidth: "90%",
+ overflow: "hidden",
+ transform: "translate(0px, 0px)"
+ }}
+ >
+
+ {
+ _.map(dataSource, item => (
()}
+ height={scrollHeight} checkedCb={() => ({})} checkedKeys={[]}
+ />))
+ }
+
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/components/logViewModal/config.js b/pc4mobx/hrmSalary/components/logViewModal/config.js
index 872a90c0..f3b3189a 100644
--- a/pc4mobx/hrmSalary/components/logViewModal/config.js
+++ b/pc4mobx/hrmSalary/components/logViewModal/config.js
@@ -8,6 +8,16 @@ const getLabel = WeaLocaleProvider.getLabel;
export const logConditions = [
{
items: [
+ {
+ conditionType: "RANGEPICKER",
+ domkey: ["date"],
+ fieldcol: 18,
+ label: "操作时间",
+ lanId: 111,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
+ },
{
conditionType: "INPUT",
domkey: ["operator"],
@@ -44,7 +54,7 @@ export const logConditions = [
}
];
-export const renderLogSearchsForm = (form, condition, onSearch = () => void (0)) => {
+export const renderLogSearchsForm = (form, condition, onSearch = () => void (0), onReset = () => void (0)) => {
const { isFormInit } = form;
const formParams = form.getFormParams();
let group = [];
@@ -61,8 +71,8 @@ export const renderLogSearchsForm = (form, condition, onSearch = () => void (0))
{
getKey(fields) === "operatetypename" &&
-
-
+
+
}
@@ -71,7 +81,7 @@ export const renderLogSearchsForm = (form, condition, onSearch = () => void (0))
});
});
group.push(
-
);
});
return group;
diff --git a/pc4mobx/hrmSalary/components/logViewModal/index.js b/pc4mobx/hrmSalary/components/logViewModal/index.js
index aeab775a..857ed362 100644
--- a/pc4mobx/hrmSalary/components/logViewModal/index.js
+++ b/pc4mobx/hrmSalary/components/logViewModal/index.js
@@ -7,7 +7,9 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { WeaDialog, WeaLocaleProvider, WeaTable } from "ecCom";
+import DetailLogView from "./components/detailLogView";
import { logConditions, renderLogSearchsForm } from "./config";
+import * as API from "../../apis/index";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@@ -19,7 +21,7 @@ class Index extends Component {
super(props);
this.state = {
dataSource: [], columns: [], pageInfo: { current: 1, pageSize: 10, total: 0 },
- loading: false, conditions: []
+ loading: false, conditions: [], logDetailDialog: { visible: false, title: "", logFunction: "", mainid: "" }
};
}
@@ -33,7 +35,7 @@ class Index extends Component {
}
componentWillReceiveProps(nextProps, nextContext) {
- // if (nextProps.visible !== this.props.visible && nextProps.visible) this.getAdjustHistoryList();
+ if (nextProps.visible !== this.props.visible && nextProps.visible) this.getLogs();
if (nextProps.visible !== this.props.visible && !nextProps.visible) {
this.setState({
dataSource: [], columns: [], pageInfo: { current: 0, pageSize: 10, total: 0 },
@@ -42,30 +44,38 @@ class Index extends Component {
}
}
- // getAdjustHistoryList = (extra = {}) => {
- // const { pageInfo } = this.state;
- // const { archivesStore: { logForm } } = this.props;
- // const payload = { ...pageInfo, ...logForm.getFormParams(), ...extra };
- // this.setState({ loading: true });
- // getAdjustHistoryList(payload).then(({ status, data }) => {
- // this.setState({ loading: false });
- // if (status) {
- // const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
- // this.setState({
- // pageInfo: { ...pageInfo, current, pageSize, total },
- // dataSource, columns: _.map(columns, it => {
- // if (it.dataIndex === "operateTime") {
- // return { ...it, render: (text) => (
{moment(text).format("YYYY-MM-DD")}) };
- // }
- // return { ...it };
- // })
- // });
- // }
- // }).catch(() => this.setState({ loading: false }));
- // };
+ getLogs = (extra = {}) => {
+ const { pageInfo, logDetailDialog } = this.state;
+ const { baseFormStore: { form }, logFunction } = this.props;
+ const payload = {
+ ...pageInfo, ...extra, searchMap: { ...form.getFormParams() },
+ function: logFunction, showColums: ""
+ };
+ this.setState({ loading: true });
+ API.getLogs(payload).then(({ status, data }) => {
+ this.setState({ loading: false });
+ if (status) {
+ const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
+ this.setState({
+ pageInfo: { ...pageInfo, current, pageSize, total },
+ dataSource, columns: _.map(columns, it => {
+ if (it.dataIndex === "operatedesc") {
+ return {
+ ...it, render: (__, record) => (
{
+ const { operatedesc: title, uuid: mainid } = record;
+ this.setState({ logDetailDialog: { visible: true, title, logFunction, mainid } });
+ }}>{getLabel(33564, "查看")})
+ };
+ }
+ return { ...it };
+ })
+ });
+ }
+ }).catch(() => this.setState({ loading: false }));
+ };
render() {
- const { loading, dataSource, columns, pageInfo, conditions } = this.state;
+ const { loading, dataSource, columns, pageInfo, conditions, logDetailDialog } = this.state;
const { baseFormStore: { form } } = this.props;
const pagination = {
...pageInfo,
@@ -76,15 +86,15 @@ class Index extends Component {
onShowSizeChange: (current, pageSize) => {
this.setState({
pageInfo: { ...pageInfo, current, pageSize }
- }, () => this.getAdjustHistoryList());
+ }, () => this.getLogs());
},
onChange: current => {
this.setState({
pageInfo: { ...pageInfo, current }
- }, () => this.getAdjustHistoryList());
+ }, () => this.getLogs());
}
};
- const scrollHeight = this.logRef ? this.logRef.state.height - 210 : 606.6;
+ const scrollHeight = this.logRef ? this.logRef.state.height - 254 : 606.6;
return (
- {renderLogSearchsForm(form, conditions, () => this.getAdjustHistoryList({ current: 1 }))}
+ {renderLogSearchsForm(form, conditions, () => this.getLogs({ current: 1 }), () => {
+ form.resetForm();
+ this.getLogs({ current: 1 });
+ })}
+ this.setState({ logDetailDialog: { ...logDetailDialog, visible: false } })}/>
);
diff --git a/pc4mobx/hrmSalary/components/logViewModal/index.less b/pc4mobx/hrmSalary/components/logViewModal/index.less
index 6c10dc6f..0d9e4d57 100644
--- a/pc4mobx/hrmSalary/components/logViewModal/index.less
+++ b/pc4mobx/hrmSalary/components/logViewModal/index.less
@@ -26,5 +26,46 @@
.logTable {
background: #FFFFFF;
}
+
+ .wea-transfer-list-wrapper {
+ border: none;
+
+ .ant-tree-switcher {
+ display: none;
+ }
+
+ .transfer-tree {
+ background: #FFF;
+ border: 1px solid #dadada;
+
+ .treeitem {
+ margin: 0 !important;
+ }
+ }
+ }
+
+ .detailBox {
+ display: flex;
+ align-items: center;
+
+ .order {
+ width: 35px;
+ color: #999;
+ text-align: center;
+ }
+
+ .content {
+ position: relative;
+ flex: 1;
+ min-height: 40px;
+ color: #000;
+ display: flex;
+ align-items: center;
+ justify-content: flex-start;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+ }
}
}
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index 67a0f05e..d808d539 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -403,7 +403,8 @@ export default class SalaryItem extends React.Component {
})}
/>
{/*操作日志*/}
-
this.setState({ logDialogVisible: false })}/>
+ this.setState({ logDialogVisible: false })}/>
{
systemItemVisible &&
Date: Thu, 25 Jan 2024 14:02:34 +0800
Subject: [PATCH 03/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/detailLogView/index.js | 13 ++--
.../components/logViewModal/index.less | 62 ++++++++++++-------
2 files changed, 45 insertions(+), 30 deletions(-)
diff --git a/pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js b/pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js
index a5c1a5cc..7ca588a9 100644
--- a/pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js
+++ b/pc4mobx/hrmSalary/components/logViewModal/components/detailLogView/index.js
@@ -63,14 +63,13 @@ class Index extends Component {
>
{
- _.map(dataSource, item => (
()}
+ _.map(dataSource, item => (!_.isEmpty(item.valueschanges) ? ()}
height={scrollHeight} checkedCb={() => ({})} checkedKeys={[]}
- />))
+ /> : {getLabel(111, "无数据变更记录")}
))
}
diff --git a/pc4mobx/hrmSalary/components/logViewModal/index.less b/pc4mobx/hrmSalary/components/logViewModal/index.less
index 0d9e4d57..79d0bee5 100644
--- a/pc4mobx/hrmSalary/components/logViewModal/index.less
+++ b/pc4mobx/hrmSalary/components/logViewModal/index.less
@@ -9,6 +9,15 @@
width: 100%;
height: 100%;
+ .empty {
+ width: 100%;
+ display: flex;
+ height: 100%;
+ justify-content: center;
+ align-items: center;
+ background: #ffff;
+ }
+
.wea-search-group {
padding: 0;
margin-bottom: 10px;
@@ -37,34 +46,41 @@
.transfer-tree {
background: #FFF;
border: 1px solid #dadada;
+ padding: 0;
- .treeitem {
- margin: 0 !important;
+ & > li:not(:last-child) {
+ .detailBox .content {
+ border-bottom: 1px solid #dadada;
+ }
}
- }
- }
- .detailBox {
- display: flex;
- align-items: center;
+ & > li {
+ margin: 0 !important;
- .order {
- width: 35px;
- color: #999;
- text-align: center;
- }
+ .detailBox {
+ display: flex;
+ align-items: center;
- .content {
- position: relative;
- flex: 1;
- min-height: 40px;
- color: #000;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ .order {
+ width: 35px;
+ color: #999;
+ text-align: center;
+ }
+
+ .content {
+ position: relative;
+ flex: 1;
+ min-height: 40px;
+ color: #000;
+ display: flex;
+ align-items: center;
+ justify-content: flex-start;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+ }
+ }
}
}
}
From 0b3c97a53fc842550faa08a6427f202f876b115c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Tue, 30 Jan 2024 17:34:02 +0800
Subject: [PATCH 04/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/taxAgent/index.js | 39 +++++++++++++++++------
1 file changed, 29 insertions(+), 10 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/taxAgent/index.js b/pc4mobx/hrmSalary/pages/taxAgent/index.js
index 1010c090..a82f231c 100644
--- a/pc4mobx/hrmSalary/pages/taxAgent/index.js
+++ b/pc4mobx/hrmSalary/pages/taxAgent/index.js
@@ -1,13 +1,16 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { Button, Col, message, Modal, Row, Switch } from "antd";
-import { WeaFormItem, WeaInputSearch, WeaSearchGroup, WeaTable, WeaTop } from "ecCom";
+import { WeaFormItem, WeaInputSearch, WeaLocaleProvider, WeaSearchGroup, WeaTable, WeaTop } from "ecCom";
import { renderNoright } from "../../util";
import EditModal from "./editModal";
import TipLabel from "../../components/TipLabel";
import { decentralizationConditions, editConditions } from "./editConditions";
+import LogDialog from "../../components/logViewModal";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
@inject("taxAgentStore")
@observer
export default class TaxAgent extends React.Component {
@@ -30,7 +33,8 @@ export default class TaxAgent extends React.Component {
conditions: editConditions,
decentralizationConditions: decentralizationConditions,
permission: {},
- syncLoading: false
+ syncLoading: false,
+ logDialogVisible: false
};
}
@@ -282,6 +286,15 @@ export default class TaxAgent extends React.Component {
}
});
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
@@ -294,7 +307,8 @@ export default class TaxAgent extends React.Component {
decentralizationConditions,
permission,
syncLoading,
- name
+ name,
+ logDialogVisible
} = this.state;
const {
loading,
@@ -389,12 +403,15 @@ export default class TaxAgent extends React.Component {
return (
-
} // 左侧图标
- iconBgcolor="#F14A2D" // 左侧图标背景色
- buttons={showOperateBtn ? btns : btns.slice(1)}
- showDropIcon={true}>
+
} iconBgcolor="#F14A2D"
+ buttons={showOperateBtn ? btns : btns.slice(1)} showDropIcon onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon:
,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
+ >
@@ -440,7 +457,9 @@ export default class TaxAgent extends React.Component {
-
+ {/*操作日志*/}
+
this.setState({ logDialogVisible: false })}/>
{editModalProps.visible &&
Date: Wed, 31 Jan 2024 10:24:15 +0800
Subject: [PATCH 05/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/adjustSalaryManage/index.js | 28 ++++++++++++---
.../components/statisticsModal.js | 8 +++++
.../pages/analysisOfSalaryStatistics/index.js | 30 ++++++++++++++--
.../analysisOfSalaryStatistics/index.less | 9 ++---
.../hrmSalary/pages/calculate/calculate.js | 30 +++++++++++++---
pc4mobx/hrmSalary/pages/declare/declare.js | 28 ++++++++++++---
.../pages/externalPersonManage/index.js | 25 ++++++++++++--
.../hrmSalary/pages/fieldManagement/index.js | 34 ++++++++++++++-----
pc4mobx/hrmSalary/pages/ledgerPage/index.js | 34 ++++++++++++++-----
.../pages/payrollFiles/config/index.js | 4 +++
.../pages/payrollFiles/salaryFiles.js | 11 ++++--
.../updatePayrollTemplateSlide/index.js | 7 +++-
.../hrmSalary/pages/payrollRelease/index.js | 28 ++++++++++++---
.../hrmSalary/pages/payrollRelease/index.less | 10 +++---
.../standingBook/standingBook.js | 28 +++++++++++++--
.../components/logDialog/index.js | 2 +-
.../welfareArchive/config.js | 6 +++-
.../welfareArchive/index.js | 15 +++++---
18 files changed, 276 insertions(+), 61 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js b/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
index e57ffa58..4e05e6b9 100644
--- a/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
+++ b/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
@@ -12,9 +12,9 @@ import AdvanceInputBtn from "./components/advanceInputBtn";
import AdjustAdvanceSearchPannel from "./components/adjustAdvanceSearchPannel";
import cs from "classnames";
import { Button } from "antd";
-import "./index.less";
import { convertToUrlString } from "../../util/url";
-
+import LogDialog from "../../components/logViewModal";
+import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@@ -25,7 +25,7 @@ class Index extends Component {
super(props);
this.state = {
loading: false, columns: [], dataSource: [], showSearchAd: false,
- pageInfo: { current: 1, pageSize: 10, total: 0 }
+ pageInfo: { current: 1, pageSize: 10, total: 0 }, logDialogVisible: false
};
}
@@ -88,9 +88,18 @@ class Index extends Component {
}
this.handleDebounce();
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { loading, dataSource, columns, pageInfo, showSearchAd } = this.state;
+ const { loading, dataSource, columns, pageInfo, showSearchAd, logDialogVisible } = this.state;
const pagination = {
...pageInfo,
showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
@@ -111,11 +120,17 @@ class Index extends Component {
return (
} iconBgcolor="#F14A2D"
+ icon={} iconBgcolor="#F14A2D" showDropIcon
buttons={[
,
this.openAdvanceSearch()}
onAdvanceSearch={this.adjustRecordItemList}/>
+ ]} onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
]}
>
@@ -129,6 +144,9 @@ class Index extends Component {
dataSource={dataSource} loading={loading}
pagination={pagination} columns={columns}
/>
+ {/*操作日志*/}
+
this.setState({ logDialogVisible: false })}/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/statisticsModal.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/statisticsModal.js
index 1f333b7c..d80b2877 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/statisticsModal.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/statisticsModal.js
@@ -20,6 +20,14 @@ class StatisticsModal extends Component {
};
}
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ document.querySelector(".xc_tj_fx_wrapper").classList.add("zIndex0-statistics");
+ } else if (nextProps.visible !== this.props.visible && !nextProps.visible) {
+ document.querySelector(".xc_tj_fx_wrapper").classList.remove("zIndex0-statistics");
+ }
+ }
+
handleSaveReportList = () => {
const { form, id, onCancel } = this.props;
form.validateForm().then(f => {
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index f9a073e5..3461e431 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -19,6 +19,7 @@ import ReportList from "./components/reportList";
import ReportForm from "./components/reportForm";
import moment from "moment";
import "./index.less";
+import LogDialog from "../../components/logViewModal";
const { getLabel } = WeaLocaleProvider;
@@ -41,7 +42,8 @@ class Index extends Component {
modalReq: {
title: "", visible: false,
typeKey: "", id: ""
- }
+ },
+ logDialogVisible: false
};
}
@@ -243,10 +245,22 @@ class Index extends Component {
initTable && this.dimensionTableRef.dimensionList();
});
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
const { taxAgentStore: { statisticsReportBtn }, attendanceStore: { statisticsForm, reportForm } } = this.props;
- const { selectedKey, modalReq, slideReq, conditions, reportConditions, reportName, keyword, year } = this.state;
+ const {
+ selectedKey, modalReq, slideReq, conditions, reportConditions,
+ reportName, keyword, year, logDialogVisible
+ } = this.state;
const buttons = selectedKey === "statistics" ? [
,
} selectedKey={selectedKey}
- iconBgcolor="#F14A2D" tabDatas={tabs} className="xc_tj_fx_wrapper" showDropIcon={false}
+ iconBgcolor="#F14A2D" tabDatas={tabs} className="xc_tj_fx_wrapper" showDropIcon
buttons={(!statisticsReportBtn && selectedKey === "statistics") ? buttons.slice(-1) : buttons} buttonSpace={10}
onChange={selectedKey => this.setState({ selectedKey }, () => this.state.selectedKey === "statistics" && this.initReportFormCondition())}
+ onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
{
selectedKey === "statistics" ?
@@ -306,6 +327,9 @@ class Index extends Component {
form={statisticsForm} condition={conditions}
initCondition={this.initCondition} onChangeCondition={this.handleChangeCondition}
/>
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
index eac828ef..66ba6d07 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
@@ -1,8 +1,4 @@
.xc_tj_fx_wrapper {
- .wea-new-top-req {
- z-index: 0 !important;
- }
-
.search {
top: -3px;
margin-right: 10px;
@@ -167,6 +163,11 @@
}
}
+.zIndex0-statistics {
+ .wea-new-top-req {
+ z-index: 0 !important;
+ }
+}
//统计维度弹框
.dimensionModalWrapper, .dimensionSlideWrapper {
diff --git a/pc4mobx/hrmSalary/pages/calculate/calculate.js b/pc4mobx/hrmSalary/pages/calculate/calculate.js
index 48018983..6045ec6f 100644
--- a/pc4mobx/hrmSalary/pages/calculate/calculate.js
+++ b/pc4mobx/hrmSalary/pages/calculate/calculate.js
@@ -12,9 +12,10 @@ import moment from "moment";
import CalculateQuery from "./components/calculateQuery";
import CalculateTablelist from "./components/calculateTablelist";
import CalculateDialog from "./components/calculateDialog";
+import ProgressModal from "../../components/progressModal";
+import LogDialog from "../../components/logViewModal";
import { backCalculate, deleteSalaryacct, fileSalaryAcct, reAccounting } from "../../apis/calculate";
import "./index.less";
-import ProgressModal from "../../components/progressModal";
const getLabel = WeaLocaleProvider.getLabel;
@@ -27,10 +28,10 @@ class Calculate extends Component {
queryParams: {
name: "",
dateRange: [
- moment(new Date()).subtract(1, 'year').startOf("year").format("YYYY-MM"),
+ moment(new Date()).subtract(1, "year").startOf("year").format("YYYY-MM"),
moment(new Date()).endOf("year").format("YYYY-MM")
]
- }, isRefresh: false,
+ }, isRefresh: false, logDialogVisible: false,
progressModule: { visible: false, progress: 0, title: getLabel(111, "正在归档中请稍后") },
calcDaialog: { visible: false, title: "" }
};
@@ -169,12 +170,28 @@ class Calculate extends Component {
break;
}
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { queryParams, isRefresh, calcDaialog, progressModule } = this.state;
+ const { queryParams, isRefresh, calcDaialog, progressModule, logDialogVisible } = this.state;
return (
} iconBgcolor="#F14A2D"
- buttons={this.renderCalculateOpts()} className="calculate-main-layout"
+ buttons={this.renderCalculateOpts()} className="calculate-main-layout" showDropIcon
+ onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
@@ -184,6 +201,9 @@ class Calculate extends Component {
isRefresh: bool === "refresh" ? !isRefresh : isRefresh
}, () => bool === "refresh" && window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/calculate/${id}`))}
/>
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
{/* 归档进度条*/}
{
progressModule.visible &&
diff --git a/pc4mobx/hrmSalary/pages/declare/declare.js b/pc4mobx/hrmSalary/pages/declare/declare.js
index f524c784..51910f80 100644
--- a/pc4mobx/hrmSalary/pages/declare/declare.js
+++ b/pc4mobx/hrmSalary/pages/declare/declare.js
@@ -12,6 +12,7 @@ import moment from "moment";
import DeclareQuery from "./components/declareQuery";
import DeclareTablelist from "./components/declareTablelist";
import DeclareDialog from "./components/declareDialog";
+import LogDialog from "../../components/logViewModal";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@@ -25,11 +26,12 @@ class Calculate extends Component {
queryParams: {
taxAgentName: "",
dateRange: [
- moment(new Date()).subtract(1, 'year').startOf("year").format("YYYY-MM"),
+ moment(new Date()).subtract(1, "year").startOf("year").format("YYYY-MM"),
moment(new Date()).endOf("year").format("YYYY-MM")
]
}, isRefresh: false,
- declareDaialog: { visible: false, title: "" }
+ declareDaialog: { visible: false, title: "" },
+ logDialogVisible: false
};
this.handleDebounce = null;
}
@@ -57,13 +59,26 @@ class Calculate extends Component {
];
return !showOperateBtn ? calculateOpts.slice(1) : calculateOpts;
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { queryParams, isRefresh, declareDaialog } = this.state;
+ const { queryParams, isRefresh, declareDaialog, logDialogVisible } = this.state;
return (
} iconBgcolor="#F14A2D"
- buttons={this.renderCalculateOpts()} className="declare-main-layout"
- >
+ buttons={this.renderCalculateOpts()} className="declare-main-layout" showDropIcon
+ onDropMenuClick={this.onDropMenuClick} dropMenuDatas={[{
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}>
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/externalPersonManage/index.js b/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
index 4ba1ed22..49319217 100644
--- a/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
+++ b/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
@@ -14,6 +14,7 @@ import { getSearchs } from "../../util";
import { condition, searchCondition } from "./conditions";
import { deleteExtEmp, listPage } from "../../apis/externalPersonManage";
import "./index.less";
+import LogDialog from "../../components/logViewModal";
const getLabel = WeaLocaleProvider.getLabel;
@@ -23,7 +24,7 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- loading: false,
+ loading: false, logDialogVisible: false,
selectedRowKeys: [],
pageInfo: { current: 1, pageSize: 10, total: 0 },
showSearchAd: false,
@@ -103,10 +104,19 @@ class Index extends Component {
}
}));
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
const {
- showSearchAd, externalPersonManagePayload, loading,
+ showSearchAd, externalPersonManagePayload, loading, logDialogVisible,
pageInfo, selectedRowKeys, dataSource, externalPersonImportPayload
} = this.state;
const {
@@ -136,7 +146,13 @@ class Index extends Component {
}
- iconBgcolor="#F14A2D" showDropIcon={false}
+ iconBgcolor="#F14A2D" showDropIcon onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon:
,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
}
+ {/*操作日志*/}
+
this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/index.js b/pc4mobx/hrmSalary/pages/fieldManagement/index.js
index 0e6564d9..f74f1288 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/index.js
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/index.js
@@ -7,20 +7,22 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { Button, message, Modal } from "antd";
-import { WeaInputSearch, WeaTop } from "ecCom";
+import { WeaInputSearch, WeaLocaleProvider, WeaTop } from "ecCom";
import FieldTable from "./components/fieldTable";
import FieldSlide from "./components/fieldSlide";
import { deleteSalaryField } from "../../apis/fieldManage";
+import LogDialog from "../../components/logViewModal";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
@inject("taxAgentStore")
@observer
class FieldManagement extends Component {
constructor(props) {
super(props);
this.state = {
- searchVal: "",
- doSearch: false,
+ searchVal: "", doSearch: false, logDialogVisible: false,
slideparams: {
visible: false,
title: "新建字段",
@@ -67,9 +69,18 @@ class FieldManagement extends Component {
}
});
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { searchVal, doSearch, slideparams } = this.state;
+ const { searchVal, doSearch, slideparams, logDialogVisible } = this.state;
const { taxAgentStore } = this.props;
const { showSalaryItemBtn, showOperateBtn } = taxAgentStore;
const btns = [
@@ -85,11 +96,15 @@ class FieldManagement extends Component {
];
return (
}
- iconBgcolor="#F14A2D"
- showDropIcon={false}
+ title="字段管理" icon={} iconBgcolor="#F14A2D"
buttons={(showSalaryItemBtn || showOperateBtn) ? btns : btns.slice(-1)}
+ showDropIcon onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
this.setState({ doSearch: !doSearch })}
/>
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/index.js b/pc4mobx/hrmSalary/pages/ledgerPage/index.js
index c9246477..b172e312 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/index.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/index.js
@@ -6,21 +6,23 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaTop } from "ecCom";
+import { WeaLocaleProvider, WeaTop } from "ecCom";
import { Button } from "antd";
import LedgerTable from "./components/ledgerTable";
import LedgerSlide from "./components/ledgerSlide";
import LedgerSearchComp from "./components/ledgerSearchComp";
+import LogDialog from "../../components/logViewModal";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
@inject("taxAgentStore")
@observer
class Index extends Component {
constructor(props) {
super(props);
this.state = {
- searchVal: "",
- doSearch: false,
+ searchVal: "", doSearch: false, logDialogVisible: false,
slideparams: {
visible: false,
title: "新建账套",
@@ -51,9 +53,18 @@ class Index extends Component {
}
});
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { searchVal, doSearch, slideparams } = this.state;
+ const { logDialogVisible, doSearch, slideparams } = this.state;
const { taxAgentStore } = this.props;
const { showOperateBtn } = taxAgentStore;
const btns = [
@@ -65,11 +76,15 @@ class Index extends Component {
];
return (
}
- iconBgcolor="#F14A2D"
- showDropIcon={false}
+ title="薪资账套" className="ledgerOuter" icon={} iconBgcolor="#F14A2D"
buttons={showOperateBtn ? btns : btns.slice(-1)}
+ showDropIcon onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
@@ -78,6 +93,9 @@ class Index extends Component {
onCancel={this.handleResetLedger}
onRefreshList={() => this.setState({ doSearch: !doSearch })}
/>
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
index a8b4dc15..355ccc02 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
@@ -100,6 +100,10 @@ export const renderDropMenuDatas = (selectedKey, showOperateBtn) => {
key: "custom_cols",
icon: ,
content: getLabel(32535, "显示列定制")
+ }, {
+ key: "log",
+ icon: ,
+ content: getLabel(545781, "操作日志")
}];
switch (selectedKey) {
case "pending":
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
index fdea15e6..eaaf5a24 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
@@ -15,6 +15,7 @@ import SalaryFileList from "./components/salaryFileList";
import * as API from "../../apis/payrollFiles";
import { sysinfo } from "../../apis/ruleconfig";
import { convertToUrlString } from "../../util/url";
+import LogDialog from "../../components/logViewModal";
import cs from "classnames";
import "./index.less";
@@ -29,7 +30,7 @@ class SalaryFiles extends Component {
selectedKey: "pending", showSearchAd: false, isQuery: false, showDelSalaryFileBtn: false,
topTabCount: { PENDING: 0, FIXED: 0, SUSPEND: 0, STOP: 0, EXT: 0 }, showExtEmpsWitch: false,
salaryFileImpDialog: { visible: false, title: getLabel(24023, "数据导入"), importType: "", isExtEmp: false },
- salaryImportTypes: []
+ salaryImportTypes: [], logDialogVisible: false
};
this.salaryFileListRef = null;
}
@@ -51,6 +52,9 @@ class SalaryFiles extends Component {
onDropMenuClick = (key) => {
const { state, handleSalaryOpts } = this.salaryFileListRef.wrappedInstance || {};
switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
case "custom_cols":
const { payrollFilesStore: { tableStore } } = this.props;
tableStore.setColSetVisible(true);
@@ -225,7 +229,7 @@ class SalaryFiles extends Component {
render() {
const {
selectedKey, topTabCount, showSearchAd, isQuery, showDelSalaryFileBtn, showExtEmpsWitch,
- salaryFileImpDialog, salaryImportTypes
+ salaryFileImpDialog, salaryImportTypes, logDialogVisible
} = this.state;
const { taxAgentStore: { showOperateBtn } } = this.props;
return (
@@ -257,6 +261,9 @@ class SalaryFiles extends Component {
showDelSalaryFileBtn={showDelSalaryFileBtn}
onChangeTopTabCount={this.queryInsuranceTabTotal}
/>
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
{/* 导入*/}
{
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/components/updatePayrollTemplateSlide/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/components/updatePayrollTemplateSlide/index.js
index ac2cb87c..d923290e 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/components/updatePayrollTemplateSlide/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/components/updatePayrollTemplateSlide/index.js
@@ -30,7 +30,12 @@ class Index extends Component {
}
componentWillReceiveProps(nextProps, nextContext) {
- if (nextProps.visible !== this.props.visible && !nextProps.visible) nextProps.payrollStore.setHasBeenModify(false);
+ if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ document.querySelector(".salary-payroll-main-page").classList.add("zIndex0-payroll-release");
+ } else if (nextProps.visible !== this.props.visible && !nextProps.visible) {
+ document.querySelector(".salary-payroll-main-page").classList.remove("zIndex0-payroll-release");
+ nextProps.payrollStore.setHasBeenModify(false);
+ }
}
save = async () => {
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/index.js
index 8fa3d35e..362a621e 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/index.js
@@ -12,6 +12,7 @@ import TemplateQuery from "./components/reqQuery/templateQuery";
import GrantTableList from "./components/grantTableList";
import PayrollTemplateTableList from "./components/payrollTemplateTableList";
import TemplateBaseSettings from "../payroll/templateBaseSettings";
+import LogDialog from "../../components/logViewModal";
import { Button } from "antd";
import moment from "moment";
import "./index.less";
@@ -28,10 +29,10 @@ class Index extends Component {
queryParams: {
salarySobId: "", name: "",
dateRange: [
- moment(new Date()).subtract(1, 'year').startOf("year").format("YYYY-MM"),
+ moment(new Date()).subtract(1, "year").startOf("year").format("YYYY-MM"),
moment(new Date()).endOf("year").format("YYYY-MM")
]
- }
+ }, logDialogVisible: false
};
this.templateRef = null;
this.baseSetRef = null;
@@ -109,9 +110,18 @@ class Index extends Component {
}
return dom;
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { selectedKey, queryParams } = this.state;
+ const { selectedKey, queryParams, logDialogVisible } = this.state;
const tabs = [
{ key: "grant", title: getLabel(538012, "工资单发放") },
{ key: "template", title: getLabel(543575, "工资单模板设置") },
@@ -126,9 +136,19 @@ class Index extends Component {
selectedKey: key,
queryParams: { ...queryParams, name: "", salarySobId: "" }
})}
- buttons={this.renderReqBtns()}
+ buttons={this.renderReqBtns()} showDropIcon={selectedKey !== "watermark"}
+ onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={[
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ }
+ ]}
>
{this.renderContent()}
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/index.less b/pc4mobx/hrmSalary/pages/payrollRelease/index.less
index 2b3c079f..245c991f 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/index.less
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/index.less
@@ -1,3 +1,9 @@
+.zIndex0-payroll-release {
+ .wea-new-top-req {
+ z-index: 0 !important;
+ }
+}
+
.salary-payroll-main-page {
min-width: 1000px;
overflow: auto;
@@ -14,10 +20,6 @@
}
}
- .wea-new-top-req {
- z-index: 0 !important;
- }
-
.wea-new-top-req-wapper .wea-new-top-req-title > div:last-child {
right: 16px;
}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js
index 8abb378f..d8fa8cc0 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js
@@ -16,6 +16,7 @@ import WelfareRecordList from "./components/welfareRecordList";
import Accountdialog from "./components/accountDialog";
import ProgressModal from "../../../components/progressModal";
import { convertToUrlString } from "../../../util/url";
+import LogDialog from "../../../components/logViewModal";
import moment from "moment";
import "./index.less";
@@ -32,7 +33,8 @@ class StandingBook extends Component {
endTime: moment(new Date()).endOf("year").format("YYYY-MM"),
taxAgents: ""
}, progressVisible: false, progress: 0,
- accountDialog: { visible: false, title: "", loading: false, options: [] }
+ accountDialog: { visible: false, title: "", loading: false, options: [] },
+ logDialogVisible: false
};
this.wfListRef = null;
this.timer = null;
@@ -102,9 +104,18 @@ class StandingBook extends Component {
});
}
};
+ onDropMenuClick = (key) => {
+ switch (key) {
+ case "log":
+ this.setState({ logDialogVisible: true });
+ break;
+ default:
+ break;
+ }
+ };
render() {
- const { accountDialog, queryForm } = this.state;
+ const { accountDialog, queryForm, logDialogVisible } = this.state;
const { taxAgentStore: { showOperateBtn } } = this.props;
const rightBtns = [
);
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
index 98d9f374..5c3658fb 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
@@ -66,7 +66,8 @@ class Index extends Component {
},
exportPayloadUrl: "",
exportPayloadType: false,
- advanceCondition: null
+ advanceCondition: null,
+ targetid: ""
};
this.tableRef = null;
this.addItemRef = null;
@@ -358,7 +359,7 @@ class Index extends Component {
const { id } = record;
key === "handleAddData" ? getAddUpDeduction({ id }).then(({ status, data }) => {
if (status) this[key]("编辑", data);
- }) : this[key](record);
+ }) : key === "log" ? this.setState({ targetid: id }) : this[key](record);
};
handleCloseSlide = () => {
const { slidePayload } = this.state;
@@ -540,7 +541,7 @@ class Index extends Component {
const { taxAgentStore: { showOperateBtn }, cumDeductStore: { form } } = this.props;
const {
declareMonth, taxAgentId, slidePayload, saveLoading, exportPayloadUrl, advanceCondition,
- importPayload, exportPayloadType
+ importPayload, exportPayloadType, targetid
} = this.state;
const tablePayload = { declareMonth: [declareMonth], taxAgentId };
return (
@@ -553,6 +554,7 @@ class Index extends Component {
onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
importPayload={importPayload} onImportFile={this.handleImportFile}
onPreviewImport={this.handlePreviewImport} detailOptBtns={this.getDetailOptBtns()}
+ targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
columns={modalColumns}
>
{
if (status) this[key]("编辑", data);
- }) : this.deleteSelectAddUpSituation(record);
+ }) : key === "log" ? this.setState({ targetid: id }) : this.deleteSelectAddUpSituation(record);
};
/*
* Author: 黎永顺
@@ -544,7 +545,7 @@ class Index extends Component {
const { taxAgentStore: { showOperateBtn }, cumSituationStore: { form } } = this.props;
const {
declareMonth, taxAgentId, slidePayload, saveLoading, exportPayloadUrl, advanceCondition,
- importPayload, year, exportPayloadType
+ importPayload, year, exportPayloadType, targetid
} = this.state;
const tablePayload = { taxYearMonth: `${year}-${declareMonth}`, year, taxAgentId };
return (
@@ -556,9 +557,9 @@ class Index extends Component {
form={form} condition={advanceCondition} onAdSearch={this.handleAdSearch}
onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
importPayload={{ ...importPayload, importOpts: { taxYearMonth: importPayload.importOpts.declareMonth } }}
- onImportFile={this.handleImportFile}
+ onImportFile={this.handleImportFile} columns={situationModalColumns}
onPreviewImport={this.handlePreviewImport} detailOptBtns={this.getDetailOptBtns()}
- columns={situationModalColumns}
+ targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
>
this.tableRef = dom}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js b/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js
index de207b22..742c7894 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js
@@ -8,6 +8,9 @@ import React, { Component } from "react";
import UnifiedTable from "../../components/UnifiedTable";
import { getTableDate } from "../../apis/cumDeduct";
import { Menu, Popover } from "antd";
+import { WeaLocaleProvider } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
class DataTables extends Component {
constructor(props) {
@@ -118,6 +121,7 @@ class DataTables extends Component {
placement="bottomRight"
content={} title="">
@@ -132,8 +136,19 @@ class DataTables extends Component {
onTableOperate({ key: "handleAddData" }, record)}>编辑
- onTableOperate({ key: "deleteSelectAddUpDeduction" }, record)}>删除
+ {
+ showOperateBtn &&
+ onTableOperate(e, record)}>
+ {getLabel(545781, "操作日志")}
+ } title="">
+
+
+ }
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js b/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
index 1cee5ed6..587f2785 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
@@ -22,7 +22,7 @@ class Layout extends Component {
constructor(props) {
super(props);
this.state = {
- showSearchAd: false, logDialogVisible: false
+ showSearchAd: false, logDialogVisible: false, filterConditions: "[]"
};
}
@@ -42,6 +42,15 @@ class Layout extends Component {
*/
window.open(nextProps.exportPayloadUrl, "_self");
}
+ if (nextProps.targetid !== this.props.targetid && nextProps.targetid) {
+ /*
+ * Author: 黎永顺
+ * Description:操作日志
+ * Params:
+ * Date: 2023/2/20
+ */
+ this.onDropMenuClick("log", nextProps.targetid);
+ }
}
componentWillUnmount() {
@@ -52,10 +61,13 @@ class Layout extends Component {
const { onResizeWindowInnerWidth } = this.props;
onResizeWindowInnerWidth(window.innerWidth);
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -63,12 +75,12 @@ class Layout extends Component {
};
render() {
- const { showSearchAd, logDialogVisible } = this.state;
+ const { showSearchAd, logDialogVisible, filterConditions } = this.state;
const {
title, btns, leftComp, children, taxAgentStore: { showOperateBtn },
slidePayload, onClose, onSave, slideLoading, form, condition,
onAdSearch, onCancel, importPayload, onImportSetStep, onImportFile,
- onPreviewImport, detailOptBtns, columns, logFunction
+ onPreviewImport, detailOptBtns, columns, logFunction, onClearTargrtid
} = this.props;
const { visible, title: subtitle, children: slideChildren } = slidePayload;
const {
@@ -143,8 +155,8 @@ class Layout extends Component {
onClose={onClose}
/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
+ this.setState({ logDialogVisible: false }, () => onClearTargrtid())}/>
);
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js
index 2795207c..208534b0 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js
@@ -64,7 +64,8 @@ class Index extends Component {
},
exportPayloadUrl: "",
exportPayloadType: false,
- advanceCondition: null
+ advanceCondition: null,
+ targetid: ""
};
this.tableRef = null;
this.addItemRef = null;
@@ -190,7 +191,7 @@ class Index extends Component {
const { id } = record;
key === "handleAddData" ? getData({ id }).then(({ status, data }) => {
if (status) this[key]("编辑", data);
- }) : this.deleteSelectData(record);
+ }) : key === "log" ? this.setState({ targetid: id }) : this.deleteSelectData(record);
};
/*
* Author: 黎永顺
@@ -538,7 +539,7 @@ class Index extends Component {
const { taxAgentStore: { showOperateBtn }, otherDeductStore: { form } } = this.props;
const {
declareMonth, taxAgentId, slidePayload, saveLoading, exportPayloadUrl, advanceCondition,
- importPayload, exportPayloadType
+ importPayload, exportPayloadType, targetid
} = this.state;
const tablePayload = { declareMonth: [declareMonth], taxAgentId };
return (
@@ -551,6 +552,7 @@ class Index extends Component {
onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
importPayload={importPayload} onImportFile={this.handleImportFile}
onPreviewImport={this.handlePreviewImport} detailOptBtns={this.getDetailOptBtns()}
+ targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
columns={otherModalColumns}
>
{
if (status) this[key]("编辑", data);
- }) : this.specialAddDeductionDeleteSelectData(record);
+ }) : key === "log" ? this.setState({ targetid: id }) : this.specialAddDeductionDeleteSelectData(record);
};
handleCloseSlide = () => {
const { slidePayload } = this.state;
@@ -449,7 +450,7 @@ class Index extends Component {
const { taxAgentStore: { showOperateBtn }, specialAddStore: { advanceForm } } = this.props;
const {
taxAgentId, slidePayload, saveLoading, exportPayloadUrl, advanceCondition, importPayload,
- exportPayloadType
+ exportPayloadType, targetid
} = this.state;
const tablePayload = { taxAgentId };
return (
@@ -462,6 +463,7 @@ class Index extends Component {
onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
importPayload={importPayload} onImportFile={this.handleImportFile}
onPreviewImport={this.handlePreviewImport} detailOptBtns={[]}
+ targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
columns={specialModalColumns}
>
{getLabel(83110, "查看详情")}
+ {
+ !showWithDrawBtn && this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+ }
{
showWithDrawBtn &&
}
+ {
+ showWithDrawBtn &&
+
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
+ }
;
}
}
diff --git a/pc4mobx/hrmSalary/pages/declare/declare.js b/pc4mobx/hrmSalary/pages/declare/declare.js
index 51910f80..dfdc681e 100644
--- a/pc4mobx/hrmSalary/pages/declare/declare.js
+++ b/pc4mobx/hrmSalary/pages/declare/declare.js
@@ -31,7 +31,7 @@ class Calculate extends Component {
]
}, isRefresh: false,
declareDaialog: { visible: false, title: "" },
- logDialogVisible: false
+ logDialogVisible: false, filterConditions: "[]"
};
this.handleDebounce = null;
}
@@ -59,10 +59,13 @@ class Calculate extends Component {
];
return !showOperateBtn ? calculateOpts.slice(1) : calculateOpts;
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -70,7 +73,7 @@ class Calculate extends Component {
};
render() {
- const { queryParams, isRefresh, declareDaialog, logDialogVisible } = this.state;
+ const { queryParams, isRefresh, declareDaialog, logDialogVisible, filterConditions } = this.state;
return (
} iconBgcolor="#F14A2D"
buttons={this.renderCalculateOpts()} className="declare-main-layout" showDropIcon
@@ -80,7 +83,8 @@ class Calculate extends Component {
}
]}>
-
+ this.onDropMenuClick(type, targetid)}/>
this.setState({
declareDaialog: { ...declareDaialog, visible: false },
@@ -88,7 +92,7 @@ class Calculate extends Component {
})}
/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
diff --git a/pc4mobx/hrmSalary/pages/externalPersonManage/index.js b/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
index 49319217..7a99295c 100644
--- a/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
+++ b/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
@@ -24,7 +24,7 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- loading: false, logDialogVisible: false,
+ loading: false, logDialogVisible: false, filterConditions: "[]",
selectedRowKeys: [],
pageInfo: { current: 1, pageSize: 10, total: 0 },
showSearchAd: false,
@@ -104,10 +104,13 @@ class Index extends Component {
}
}));
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -116,7 +119,7 @@ class Index extends Component {
render() {
const {
- showSearchAd, externalPersonManagePayload, loading, logDialogVisible,
+ showSearchAd, externalPersonManagePayload, loading, logDialogVisible, filterConditions,
pageInfo, selectedRowKeys, dataSource, externalPersonImportPayload
} = this.state;
const {
@@ -197,6 +200,8 @@ class Index extends Component {
this.handleAdd(id)}
style={{ paddingRight: 8 }}>编辑
+ this.onDropMenuClick("log", id)}
+ style={{ paddingRight: 8 }}>{getLabel(545781, "操作日志")}
{/* this.handleDelete(id)}>删除*/}
)
@@ -239,7 +244,7 @@ class Index extends Component {
}
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
index 87af593d..ad3cd14a 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
@@ -5,11 +5,13 @@
* Date: 2023/1/19
*/
import React, { Component } from "react";
-import { WeaTable } from "ecCom";
+import { WeaLocaleProvider, WeaTable } from "ecCom";
import { inject, observer } from "mobx-react";
-import { Switch } from "antd";
+import { Dropdown, Menu, Switch } from "antd";
import { salaryFieldList } from "../../../apis/fieldManage";
+const getLabel = WeaLocaleProvider.getLabel;
+
@inject("taxAgentStore")
@observer
class FieldTable extends Component {
@@ -75,6 +77,17 @@ class FieldTable extends Component {
record.canDelete && (showSalaryItemBtn || showOperateBtn) &&
onDeleteLedger(record)}>删除
}
+
+
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
;
};
} else {
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/index.js b/pc4mobx/hrmSalary/pages/fieldManagement/index.js
index f74f1288..65da711e 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/index.js
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/index.js
@@ -22,7 +22,7 @@ class FieldManagement extends Component {
constructor(props) {
super(props);
this.state = {
- searchVal: "", doSearch: false, logDialogVisible: false,
+ searchVal: "", doSearch: false, logDialogVisible: false, filterConditions: "[]",
slideparams: {
visible: false,
title: "新建字段",
@@ -69,10 +69,13 @@ class FieldManagement extends Component {
}
});
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -80,7 +83,7 @@ class FieldManagement extends Component {
};
render() {
- const { searchVal, doSearch, slideparams, logDialogVisible } = this.state;
+ const { searchVal, doSearch, slideparams, logDialogVisible, filterConditions } = this.state;
const { taxAgentStore } = this.props;
const { showSalaryItemBtn, showOperateBtn } = taxAgentStore;
const btns = [
@@ -108,7 +111,9 @@ class FieldManagement extends Component {
>
this.handleDeleteField([record.id])}/>
+ onDeleteLedger={(record) => this.handleDeleteField([record.id])}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}
+ />
this.setState({
@@ -121,7 +126,7 @@ class FieldManagement extends Component {
onRefreshList={() => this.setState({ doSearch: !doSearch })}
/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js
index 9f842e24..68f24fde 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js
@@ -5,13 +5,15 @@
* Date: 2022/12/7
*/
import React, { Component } from "react";
-import { WeaCheckbox, WeaTable } from "ecCom";
+import { WeaCheckbox, WeaLocaleProvider, WeaTable } from "ecCom";
import { inject, observer } from "mobx-react";
import { Menu, message, Modal, Popover } from "antd";
import { changeLedgerStatus, deleteLedger, getLedgerList } from "../../../apis/ledger";
import CopyLedgerModal from "./copyLedgerModal";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
@inject("taxAgentStore", "ledgerStore")
@observer
class LedgerTable extends Component {
@@ -91,6 +93,7 @@ class LedgerTable extends Component {
placement="bottomRight"
content={} title="">
@@ -161,6 +164,9 @@ class LedgerTable extends Component {
}
});
break;
+ case "log":
+ this.props.onFilterLog(key, id);
+ break;
default:
break;
}
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/index.js b/pc4mobx/hrmSalary/pages/ledgerPage/index.js
index b172e312..d053ae3b 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/index.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/index.js
@@ -22,7 +22,7 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- searchVal: "", doSearch: false, logDialogVisible: false,
+ searchVal: "", doSearch: false, logDialogVisible: false, filterConditions: "[]",
slideparams: {
visible: false,
title: "新建账套",
@@ -53,10 +53,13 @@ class Index extends Component {
}
});
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -64,7 +67,7 @@ class Index extends Component {
};
render() {
- const { logDialogVisible, doSearch, slideparams } = this.state;
+ const { logDialogVisible, filterConditions, doSearch, slideparams } = this.state;
const { taxAgentStore } = this.props;
const { showOperateBtn } = taxAgentStore;
const btns = [
@@ -87,14 +90,15 @@ class Index extends Component {
]}
>
-
+ this.onDropMenuClick(type, targetid)}/>
this.setState({ doSearch: !doSearch })}
/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
index d13cd2fe..5defd410 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
@@ -44,7 +44,12 @@ class Index extends Component {
const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
this.setState({
dataSource, pageInfo: { ...pageInfo, current, pageSize, total },
- columns: _.map(columns, it => ({ ...it, width: 150 }))
+ columns: [..._.map(columns, it => ({ ...it, width: 150 })), {
+ dataIndex: "options",
+ title: getLabel(30585, "操作"),
+ width: 120, render: (_, record) => ( this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")})
+ }]
});
}
}).catch(() => this.setState({ loading: false }));
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
index 4c882560..385cdf51 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
@@ -83,9 +83,13 @@ class Index extends Component {
dataIndex: "options",
title: getLabel(30585, "操作"),
width: 120,
- render: (_, record) => ({getLabel(33564, "查看")})
+ render: (_, record) => (
+ {getLabel(33564, "查看")}
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+ )
}]}
/>
);
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
index cef2bb12..f7323c48 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
@@ -19,7 +19,7 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- selectedKey: "1", logDialogVisible: false,
+ selectedKey: "1", logDialogVisible: false, filterConditions: "[]",
salaryYearMonth: [
moment().subtract(1, "year").startOf("year").format("YYYY-MM"),
moment().endOf("year").format("YYYY-MM")
@@ -32,20 +32,24 @@ class Index extends Component {
let Dom = null;
switch (selectedKey) {
case "1":
- Dom = ;
+ Dom = this.onDropMenuClick(type, targetid)}/>;
break;
case "2":
- Dom = ;
+ Dom = this.onDropMenuClick(type, targetid)}/>;
break;
default:
break;
}
return Dom;
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -53,7 +57,7 @@ class Index extends Component {
};
render() {
- const { selectedKey, salaryYearMonth, logDialogVisible } = this.state;
+ const { selectedKey, salaryYearMonth, logDialogVisible, filterConditions } = this.state;
const tabs = [
{ key: "1", title: getLabel(111, "工资单") },
{ key: "2", title: getLabel(543150, "调薪记录") }
@@ -82,7 +86,7 @@ class Index extends Component {
>
{this.renderContent()}
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
index bf3cfc17..90c6938c 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
@@ -109,6 +109,9 @@ class Index extends Component {
}
});
break;
+ case "log":
+ this.props.onFilterLog(id, params.record.id);
+ break;
default:
break;
}
@@ -143,7 +146,8 @@ class Index extends Component {
"删除待办": getLabel(543181, "删除待办"), "查看": getLabel(33564, "查看"),
"取消停薪": getLabel(543309, "取消停薪"), "共": getLabel(18609, "共"),
"条": getLabel(18256, "条"), "设为发薪人员": getLabel(543308, "设为发薪人员"),
- "停薪": getLabel(542692, "停薪"), "编辑": getLabel(501169, "编辑")
+ "停薪": getLabel(542692, "停薪"), "编辑": getLabel(501169, "编辑"),
+ "操作日志": getLabel(545781, "操作日志")
};
const childFrameObj = document.getElementById("atdTable");
childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
index eaaf5a24..3306e038 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
@@ -30,7 +30,7 @@ class SalaryFiles extends Component {
selectedKey: "pending", showSearchAd: false, isQuery: false, showDelSalaryFileBtn: false,
topTabCount: { PENDING: 0, FIXED: 0, SUSPEND: 0, STOP: 0, EXT: 0 }, showExtEmpsWitch: false,
salaryFileImpDialog: { visible: false, title: getLabel(24023, "数据导入"), importType: "", isExtEmp: false },
- salaryImportTypes: [], logDialogVisible: false
+ salaryImportTypes: [], logDialogVisible: false, filterConditions: ""
};
this.salaryFileListRef = null;
}
@@ -49,11 +49,14 @@ class SalaryFiles extends Component {
handleOpenAdvanceSearch = () => this.setState({ showSearchAd: true });
handleAdvanceSearch = () => this.setState({ isQuery: !this.state.isQuery });
onAdSearch = () => this.setState({ showSearchAd: false, isQuery: !this.state.isQuery });
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
const { state, handleSalaryOpts } = this.salaryFileListRef.wrappedInstance || {};
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
case "custom_cols":
const { payrollFilesStore: { tableStore } } = this.props;
@@ -229,7 +232,7 @@ class SalaryFiles extends Component {
render() {
const {
selectedKey, topTabCount, showSearchAd, isQuery, showDelSalaryFileBtn, showExtEmpsWitch,
- salaryFileImpDialog, salaryImportTypes, logDialogVisible
+ salaryFileImpDialog, salaryImportTypes, logDialogVisible, filterConditions
} = this.state;
const { taxAgentStore: { showOperateBtn } } = this.props;
return (
@@ -260,9 +263,10 @@ class SalaryFiles extends Component {
selectedKey={selectedKey} showOperateBtn={showOperateBtn}
showDelSalaryFileBtn={showDelSalaryFileBtn}
onChangeTopTabCount={this.queryInsuranceTabTotal}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}
/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
{/* 导入*/}
{
salaryAcctType === 1 &&
- 补发
+ {getLabel(388064, "补发")}
}
{`${getLabel(15323, "第")}${acctTimes}${getLabel(18929, "次")}`}
@@ -90,6 +90,9 @@ class Index extends Component {
message.warning(getLabel(543602, "请设置默认模板"));
}
break;
+ case "log":
+ this.props.onFilterLog(key, id);
+ break;
default:
break;
}
@@ -140,11 +143,17 @@ class Index extends Component {
style={{ marginRight: 10 }} target="_blank"
>{getLabel(83110, "查看详情")}
}
+ {
+ !canSeeDetail &&
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+ }
{
sendNum !== sendTotal && !showGrant &&
this.handleOpts(e, record)}>
{getLabel(543603, "更新模板")}
+ {getLabel(545781, "操作日志")}
}
>
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTemplateTableList/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTemplateTableList/index.js
index cb9c2402..47fe8228 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTemplateTableList/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTemplateTableList/index.js
@@ -115,6 +115,9 @@ class Index extends Component {
}
});
break;
+ case "log":
+ this.props.onFilterLog(key, id);
+ break;
default:
break;
}
@@ -165,6 +168,7 @@ class Index extends Component {
this.handleOpts(e, record)}>
{getLabel(535052, "删除")}
+ {getLabel(545781, "操作日志")}
}
>
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/index.js
index 362a621e..ebc36b4e 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/index.js
@@ -32,7 +32,7 @@ class Index extends Component {
moment(new Date()).subtract(1, "year").startOf("year").format("YYYY-MM"),
moment(new Date()).endOf("year").format("YYYY-MM")
]
- }, logDialogVisible: false
+ }, logDialogVisible: false, filterConditions: "[]"
};
this.templateRef = null;
this.baseSetRef = null;
@@ -93,11 +93,13 @@ class Index extends Component {
onUpdateTemp={(id) => this.setState({ selectedKey: "template" }, () => {
this.templateRef.wrappedInstance.handleOpts({ key: "edit" }, { id });
})}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}
/>;
break;
case "template":
dom = this.templateRef = dom} queryParams={queryParams}
- isRefresh={isRefresh} forceUpdate={() => this.forceUpdate()}/>;
+ isRefresh={isRefresh} forceUpdate={() => this.forceUpdate()}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}/>;
break;
case "watermark":
dom = {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -121,7 +126,7 @@ class Index extends Component {
};
render() {
- const { selectedKey, queryParams, logDialogVisible } = this.state;
+ const { selectedKey, queryParams, logDialogVisible, filterConditions } = this.state;
const tabs = [
{ key: "grant", title: getLabel(538012, "工资单发放") },
{ key: "template", title: getLabel(543575, "工资单模板设置") },
@@ -148,7 +153,7 @@ class Index extends Component {
{this.renderContent()}
{/*操作日志*/}
this.setState({ logDialogVisible: false })}/>
+ onCancel={() => this.setState({ logDialogVisible: false })} filterConditions={filterConditions}/>
);
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index d808d539..edfebb4c 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -29,7 +29,7 @@ export default class SalaryItem extends React.Component {
searchParams: { current: 1, pageSize: 10, total: 0 },
selectedRowKeys: [],
syncSalarySetDialog: { visible: false, title: "", id: "" },
- logDialogVisible: false
+ logDialogVisible: false, filterConditions: "[]"
};
columns.map(item => {
if (item.dataIndex == "refere") {
@@ -136,8 +136,10 @@ export default class SalaryItem extends React.Component {
render: (text, record) => {
return (
- this.onEditItem(record, true)}>{(showSalaryItemBtn || showOperateBtn) ? "编辑" : "查看"}
+ this.onEditItem(record, true)}>{(showSalaryItemBtn || showOperateBtn) ? "编辑" : "查看"}
+ this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")}
{
(record.canDelete && (showSalaryItemBtn || showOperateBtn)) &&
{
+
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -210,7 +216,7 @@ export default class SalaryItem extends React.Component {
taxAgentStore: { showOperateBtn, showSalaryItemBtn, taxAgentOption }
} = this.props;
const { userStatusList } = salaryFileStore;
- const { selectedRowKeys, logDialogVisible } = this.state;
+ const { selectedRowKeys, logDialogVisible, filterConditions } = this.state;
const { loading, deleteItemRequest, getTableDatas } = salaryItemStore;
const {
tableDataSource,
@@ -403,7 +409,7 @@ export default class SalaryItem extends React.Component {
})}
/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
{
systemItemVisible &&
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/welfareRecordList.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/welfareRecordList.js
index c5d90a68..550dd048 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/welfareRecordList.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/welfareRecordList.js
@@ -105,6 +105,9 @@ class WelfareRecordList extends Component {
}
});
break;
+ case "log":
+ this.props.onFilterLog(id, params.id);
+ break;
default:
break;
}
@@ -117,7 +120,7 @@ class WelfareRecordList extends Component {
"未归档": getLabel(17999, "已归档"), "操作": getLabel(30585, "操作"),
"核算": getLabel(538780, "核算"), "归档": getLabel(251, "归档"),
"查看": getLabel(33564, "查看"), "重新核算": getLabel(542637, "重新核算"),
- "删除": getLabel(535052, "删除")
+ "删除": getLabel(535052, "删除"), "操作日志": getLabel(545781, "操作日志")
};
const childFrameObj = document.getElementById("unitTable");
childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
@@ -136,7 +139,8 @@ class WelfareRecordList extends Component {
pageInfo: { ...pageInfo, current, pageSize, total },
dataSource, columns
}, () => this.postMessageToChild({
- scrollHeight: 108, dataSource, columns, pageInfo: this.state.pageInfo, showOperateBtn
+ scrollHeight: 108, dataSource, columns, pageInfo: this.state.pageInfo, showOperateBtn,
+ unitTableType: "welfareRecord"
}));
}
}).catch(() => this.setState({ loading: false }));
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js
index d8fa8cc0..f4089c44 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/standingBook.js
@@ -34,7 +34,7 @@ class StandingBook extends Component {
taxAgents: ""
}, progressVisible: false, progress: 0,
accountDialog: { visible: false, title: "", loading: false, options: [] },
- logDialogVisible: false
+ logDialogVisible: false, filterConditions: "[]"
};
this.wfListRef = null;
this.timer = null;
@@ -104,10 +104,13 @@ class StandingBook extends Component {
});
}
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -115,7 +118,7 @@ class StandingBook extends Component {
};
render() {
- const { accountDialog, queryForm, logDialogVisible } = this.state;
+ const { accountDialog, queryForm, logDialogVisible, filterConditions } = this.state;
const { taxAgentStore: { showOperateBtn } } = this.props;
const rightBtns = [ this.setState({
accountDialog: { ...accountDialog, visible: true, title: getLabel(538780, "核算") }
@@ -141,7 +144,8 @@ class StandingBook extends Component {
}}
onPutAccountOptions={options => this.setState({ accountDialog: { ...accountDialog, options } })}
/>
- this.wfListRef = dom} queryForm={queryForm}/>
+ this.wfListRef = dom} queryForm={queryForm}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}/>
this.setState({
@@ -149,7 +153,7 @@ class StandingBook extends Component {
})} onOk={this.handleAccount}
/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
{/*核算进度条*/}
{
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js
index 05a7381a..6d5e4468 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js
@@ -138,6 +138,9 @@ class Index extends Component {
onOk: () => this.handleWelfareOpts(_.camelCase(id), [baseInfo])
});
break;
+ case "log":
+ this.props.onFilterLog(id, baseInfo);
+ break;
default:
break;
}
@@ -231,7 +234,8 @@ class Index extends Component {
"增员": getLabel(543180, "增员"), "删除档案": getLabel(23238, "删除档案"),
"删除待办": getLabel(543181, "删除待办"), "减员": getLabel(543182, "减员"),
"查看": getLabel(33564, "查看"), "取消停缴": getLabel(543183, "取消停缴"),
- "共": getLabel(18609, "共"), "条": getLabel(18256, "条")
+ "共": getLabel(18609, "共"), "条": getLabel(18256, "条"),
+ "操作日志": getLabel(545781, "操作日志")
};
const childFrameObj = document.getElementById("atdTable");
childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
index afd726f5..1aa48599 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
@@ -36,7 +36,7 @@ class Index extends Component {
selectedKey: "1", showSearchAd: false, isQuery: false, logDialogVisible: false,
topTabCount: { stayAdd: 0, paying: 0, stayDel: 0, stopPay: 0, ext: 0 },
welfareImpDialog: { visible: false, title: getLabel(24023, "数据导入"), runStatuses: "" },
- showExtEmpsWitch: false, recordDialogVisible: false
+ showExtEmpsWitch: false, recordDialogVisible: false, filterConditions: "[]"
};
}
@@ -66,7 +66,7 @@ class Index extends Component {
}
});
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "fullStaffIncrease":
case "fullReduction":
@@ -89,7 +89,10 @@ class Index extends Component {
this.setState({ recordDialogVisible: true });
break;
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -132,7 +135,7 @@ class Index extends Component {
render() {
const {
selectedKey, topTabCount, showSearchAd, isQuery, recordDialogVisible,
- logDialogVisible, welfareImpDialog, showExtEmpsWitch
+ logDialogVisible, filterConditions, welfareImpDialog, showExtEmpsWitch
} = this.state;
const { taxAgentStore: { showOperateBtn } } = this.props;
const tipList = _.find(welfareTipList, o => o.viewcondition === selectedKey).list;
@@ -163,13 +166,14 @@ class Index extends Component {
this.welfareListRef = dom}
runStatuses={selectedKey} showOperateBtn={showOperateBtn}
onChangeTopTabCount={this.queryInsuranceTabTotal}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}
/>
{/*提示*/}
{!_.isEmpty(tipList) && }
{/*基数调整记录*/}
this.setState({ recordDialogVisible: false })}/>
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
{/* 导入*/}
this.handleOpts("delete", record)}>{getLabel(535052, "删除")}
+
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
}>
@@ -268,6 +272,17 @@ class Index extends Component {
onClick={() => this.handleOpts("custom-edit", record)}>{getLabel(501169, "编辑")}
this.handleOpts("custom-delete", record)}>{getLabel(535052, "删除")}
+
+
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
)
};
return (
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
index 67dc9751..d1bd4b81 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
@@ -22,8 +22,8 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- selectedKey: "SOCIAL_SECURITY", showSearchAd: false, isQuery: false, logDialogVisible: false,
- customQuery: ""
+ selectedKey: "SOCIAL_SECURITY", showSearchAd: false, isQuery: false, customQuery: "",
+ logDialogVisible: false, filterConditions: "[]"
};
this.welfarePlanListRef = null;
}
@@ -48,10 +48,13 @@ class Index extends Component {
handleOpenAdvanceSearch = () => this.setState({ showSearchAd: true });
handleAdvanceSearch = (customQuery = "") => this.setState({ isQuery: !this.state.isQuery, customQuery });
onAdSearch = () => this.setState({ showSearchAd: false, isQuery: !this.state.isQuery });
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -60,7 +63,7 @@ class Index extends Component {
render() {
const { taxAgentStore: { showOperateBtn } } = this.props;
- const { logDialogVisible, selectedKey, showSearchAd, isQuery, customQuery } = this.state;
+ const { logDialogVisible, filterConditions, selectedKey, showSearchAd, isQuery, customQuery } = this.state;
return (
{/*列表*/}
this.welfarePlanListRef = dom} customQuery={customQuery}
- selectedKey={selectedKey} isQuery={isQuery}/>
+ selectedKey={selectedKey} isQuery={isQuery}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}/>
{/*操作日志*/}
this.setState({ logDialogVisible: false })}/>
+ filterConditions={filterConditions} onCancel={() => this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/taxAgent/index.js b/pc4mobx/hrmSalary/pages/taxAgent/index.js
index a82f231c..39ceeec2 100644
--- a/pc4mobx/hrmSalary/pages/taxAgent/index.js
+++ b/pc4mobx/hrmSalary/pages/taxAgent/index.js
@@ -1,6 +1,6 @@
import React from "react";
import { inject, observer } from "mobx-react";
-import { Button, Col, message, Modal, Row, Switch } from "antd";
+import { Button, Col, Dropdown, Menu, message, Modal, Row, Switch } from "antd";
import { WeaFormItem, WeaInputSearch, WeaLocaleProvider, WeaSearchGroup, WeaTable, WeaTop } from "ecCom";
import { renderNoright } from "../../util";
import EditModal from "./editModal";
@@ -34,7 +34,8 @@ export default class TaxAgent extends React.Component {
decentralizationConditions: decentralizationConditions,
permission: {},
syncLoading: false,
- logDialogVisible: false
+ logDialogVisible: false,
+ filterConditions: "[]"
};
}
@@ -286,10 +287,13 @@ export default class TaxAgent extends React.Component {
}
});
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "log":
- this.setState({ logDialogVisible: true });
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: targetid ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${targetid}\"}]` : "[]"
+ });
break;
default:
break;
@@ -308,7 +312,8 @@ export default class TaxAgent extends React.Component {
permission,
syncLoading,
name,
- logDialogVisible
+ logDialogVisible,
+ filterConditions
} = this.state;
const {
loading,
@@ -376,6 +381,17 @@ export default class TaxAgent extends React.Component {
onClick={() => this.deleteTaxAgent(record.id)}>
删除
+
+
+ this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
}
],
@@ -458,7 +474,7 @@ export default class TaxAgent extends React.Component {
{/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
{editModalProps.visible &&
Date: Fri, 23 Feb 2024 15:59:06 +0800
Subject: [PATCH 14/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/SalaryAdjustmentRecords/index.js | 7 +------
pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js | 2 +-
pc4mobx/hrmSalary/pages/salaryItem/index.js | 10 +++++-----
3 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
index 5defd410..d13cd2fe 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
@@ -44,12 +44,7 @@ class Index extends Component {
const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
this.setState({
dataSource, pageInfo: { ...pageInfo, current, pageSize, total },
- columns: [..._.map(columns, it => ({ ...it, width: 150 })), {
- dataIndex: "options",
- title: getLabel(30585, "操作"),
- width: 120, render: (_, record) => ( this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")})
- }]
+ columns: _.map(columns, it => ({ ...it, width: 150 }))
});
}
}).catch(() => this.setState({ loading: false }));
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
index f7323c48..7a697539 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
@@ -36,7 +36,7 @@ class Index extends Component {
onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}/>;
break;
case "2":
- Dom = this.onDropMenuClick(type, targetid)}/>;
+ Dom = ;
break;
default:
break;
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index edfebb4c..f1869a57 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -132,20 +132,20 @@ export default class SalaryItem extends React.Component {
columns.push({
key: "operate",
title: "操作",
- width: 120,
+ width: 185,
render: (text, record) => {
return (
- this.onEditItem(record, true)}>{(showSalaryItemBtn || showOperateBtn) ? "编辑" : "查看"}
- this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")}
+ this.onEditItem(record, true)}>{(showSalaryItemBtn || showOperateBtn) ? "编辑" : "查看"}
{
(record.canDelete && (showSalaryItemBtn || showOperateBtn)) &&
this.handleDeleteItem(record)}
>{getLabel(535052, "删除")}
}
+ this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")}
);
}
From fe9542438651abb538d5f613445a86f46d6c0607 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Fri, 23 Feb 2024 16:20:29 +0800
Subject: [PATCH 15/24] =?UTF-8?q?feature/2.10.1.2402.01-=E6=88=91=E7=9A=84?=
=?UTF-8?q?=E8=96=AA=E8=B5=84=E7=A6=8F=E5=88=A9=E6=98=BE=E7=A4=BA=E5=9F=BA?=
=?UTF-8?q?=E7=A1=80=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/index.js | 1 +
.../hrmSalary/pages/ruleConfig/conditions.js | 0
pc4mobx/hrmSalary/pages/ruleConfig/form.js | 0
.../hrmSalary/pages/ruleConfig/ruleConfig.js | 23 +++++++++++++++++++
4 files changed, 24 insertions(+)
create mode 100644 pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
create mode 100644 pc4mobx/hrmSalary/pages/ruleConfig/form.js
create mode 100644 pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js
index e1fc1ff9..46cd7407 100644
--- a/pc4mobx/hrmSalary/index.js
+++ b/pc4mobx/hrmSalary/index.js
@@ -185,6 +185,7 @@ const Routes = (
+
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
new file mode 100644
index 00000000..e69de29b
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/form.js b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
new file mode 100644
index 00000000..e69de29b
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
new file mode 100644
index 00000000..2f3fb6b1
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -0,0 +1,23 @@
+/*
+ * Author: 黎永顺
+ * name: 规则配置
+ * Description:
+ * Date: 2024/2/23
+ */
+import React, { Component } from "react";
+import { WeaLocaleProvider } from "ecCom";
+import "./index.less";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class RuleConfig extends Component {
+ render() {
+ return (
+
+
+
+ );
+ }
+}
+
+export default RuleConfig;
From ac479676e0c2eb0921c29375b4d3e772ff285560 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Fri, 23 Feb 2024 17:38:42 +0800
Subject: [PATCH 16/24] =?UTF-8?q?release/2.10.1.2402.01-=E4=B8=AA=E7=A8=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/index.js | 5 +-
.../hrmSalary/pages/ruleConfig/conditions.js | 167 ++++++++++++++++++
pc4mobx/hrmSalary/pages/ruleConfig/form.js | 31 ++++
pc4mobx/hrmSalary/pages/ruleConfig/index.less | 47 ++++-
.../hrmSalary/pages/ruleConfig/ruleConfig.js | 38 +++-
pc4mobx/hrmSalary/stores/baseForm.js | 41 ++---
6 files changed, 296 insertions(+), 33 deletions(-)
diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js
index 46cd7407..072f856a 100644
--- a/pc4mobx/hrmSalary/index.js
+++ b/pc4mobx/hrmSalary/index.js
@@ -43,7 +43,8 @@ import TemplatePreview from "./pages/payroll/templatePreview";
import PayrollTemplatePreview from "./pages/payroll/templatePreview/tmpPreview"; //重构的工资单模板预览页面
import MobilePayroll from "./pages/mobilePayroll";
import SysConfig from "./pages/sysConfig";
-import RuleConfig from "./pages/ruleConfig";
+import RuleConfig from "./pages/ruleConfig/ruleConfig";
+import RuleConfigs from "./pages/ruleConfig";
import Appconfig from "./pages/appConfig";
import FieldManagement from "./pages/fieldManagement";
import AnalysisOfSalaryStatistics from "./pages/analysisOfSalaryStatistics";
@@ -185,7 +186,7 @@ const Routes = (
-
+
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
index e69de29b..90dbfd6c 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
@@ -0,0 +1,167 @@
+import React from "react";
+import { WeaLocaleProvider } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+export const conditions = [
+ {
+ items: [
+ {
+ conditionType: "SELECT",
+ domkey: ["orderRule"],
+ fieldcol: 10,
+ label: getLabel(15512, "排序字段"),
+ labelcol: 8,
+ options: [],
+ viewAttr: 2
+ },
+ {
+ conditionType: "SELECT",
+ domkey: ["ascOrDesc"],
+ fieldcol: 10,
+ label: getLabel(543351, "正序/倒序"),
+ labelcol: 8,
+ options: [],
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(543356, "排序规则"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SELECT",
+ domkey: ["rule"],
+ fieldcol: 10,
+ label: getLabel(543352, "人员字段"),
+ labelcol: 8,
+ options: [],
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(543357, "人员校验规则"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SWITCH",
+ domkey: ["enctry"],
+ fieldcol: 10,
+ label: getLabel(526997, "加密设置"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(543358, "加密规则"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SWITCH",
+ domkey: ["operateTaxDeclaration"],
+ fieldcol: 10,
+ label: getLabel(111, "系统算税"),
+ labelcol: 8,
+ viewAttr: 2
+ },
+ {
+ conditionType: "SWITCH",
+ domkey: ["withDrawTaxDeclaration"],
+ fieldcol: 10,
+ label: getLabel(111, "撤回申报表"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(111, "算税规则"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SWITCH",
+ domkey: ["confValue"],
+ fieldcol: 10,
+ label: getLabel(111, "允许删除档案"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(538004, "薪资档案"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SWITCH",
+ domkey: ["welBaseDiffByPerAndCom"],
+ fieldcol: 10,
+ label: getLabel(111, "区分个人和公司"),
+ labelcol: 8,
+ viewAttr: 2
+ },
+ {
+ conditionType: "SWITCH",
+ domkey: ["welBaseAutoAdjust"],
+ fieldcol: 10,
+ label: getLabel(111, "导入基数自动调整上/下限"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(111, "福利档案基数"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SELECT",
+ domkey: ["matchRuleOptions"],
+ fieldcol: 10,
+ label: getLabel(111, "匹配规则"),
+ options: [],
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(111, "薪资核算人员匹配规则"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "INPUTNUMBER",
+ domkey: ["salaryAcctFixedColumns"],
+ fieldcol: 10,
+ label: getLabel(111, "固定数"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(111, "薪资核算固定列头数"),
+ defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SWITCH",
+ domkey: ["extEmpsWitch"],
+ fieldcol: 10,
+ label: getLabel(111, "开启非系统人员"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(111, "非系统人员"),
+ defaultshow: true
+ }
+];
+export const payloadList = [
+ { enumClass: "com.engine.salary.sys.enums.SalaryAcctEmployeeRuleEnum" },
+ { enumClass: "com.engine.salary.sys.enums.OrderRuleEnum" },
+ { enumClass: "com.engine.salary.sys.enums.AscOrDescEnum" },
+ { enumClass: "com.engine.salary.sys.enums.MatchEmployeeModeEnum" }
+];
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/form.js b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
index e69de29b..770ebc7b 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/form.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
@@ -0,0 +1,31 @@
+import React from "react";
+import { WeaFormItem, WeaSearchGroup } from "ecCom";
+import { WeaSwitch } from "comsMobx";
+
+export const renderRuleForm = (form, condition, onChange) => {
+ const { isFormInit } = form;
+ const formParams = form.getFormParams();
+ let group = [];
+ isFormInit && condition && condition.map(c => {
+ let items = [];
+ c.items.map(fields => {
+ items.push({
+ com: (
+
+
+ ),
+ colSpan: 1,
+ hide: fields.hide
+ });
+ });
+ !_.isEmpty(items) && group.push(
+ );
+ });
+ return group;
+};
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/index.less b/pc4mobx/hrmSalary/pages/ruleConfig/index.less
index 57870c25..a4599477 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/index.less
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/index.less
@@ -1,9 +1,44 @@
-.ruleWrapper {
- height: 100%;
+.ruleWrapper-layout {
+ .wea-new-top-content {
+ overflow: hidden !important;
- .titleWrapper {
- display: flex;
- justify-content: space-between;
- align-items: center;
+ .ruleWrapper {
+ padding: 16px;
+ background: #e5e5e5;
+ height: 100%;
+ overflow: hidden auto;
+
+ .wea-search-group {
+ background: #fff;
+ margin-bottom: 16px;
+
+ .wea-content {
+ padding: 8px !important;
+
+ .wea-form-cell:not(:last-child) {
+ .wea-form-item {
+ border-bottom: 1px solid #e5e5e5;
+ }
+ }
+ }
+ }
+
+ .wea-search-group, .wea-form-cell {
+ padding: 0;
+
+ .wea-form-item {
+ padding: 5px 16px;
+
+ .wea-form-item-label {
+ color: #666;
+ }
+ }
+ }
+
+ .wea-form-cell-wrapper {
+ background: #FFF;
+ border: 1px solid #e5e5e5;
+ }
+ }
}
}
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
index 2f3fb6b1..bbaa3bec 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -5,17 +5,45 @@
* Date: 2024/2/23
*/
import React, { Component } from "react";
-import { WeaLocaleProvider } from "ecCom";
+import { inject, observer } from "mobx-react";
+import { WeaLocaleProvider, WeaTop } from "ecCom";
+import { renderRuleForm } from "./form";
+import { conditions } from "./conditions";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
+@inject("baseFormStore")
+@observer
class RuleConfig extends Component {
- render() {
- return (
-
+ constructor(props) {
+ super(props);
+ this.state = {
+ conditions: []
+ };
+ }
-
+ componentDidMount() {
+ const { baseFormStore: { form } } = this.props;
+ form.initFormFields(conditions);
+ }
+
+ init = async () => {
+ };
+
+ handleChange = (value) => {
+ console.log(value);
+ };
+
+ render() {
+ const { baseFormStore: { form } } = this.props;
+ return (
+ {getLabel(543355, "规则配置")}} icon={}
+ iconBgcolor="#F14A2D" buttons={[]} className="ruleWrapper-layout"
+ >
+ {renderRuleForm(form, conditions, this.handleChange)}
+
);
}
}
diff --git a/pc4mobx/hrmSalary/stores/baseForm.js b/pc4mobx/hrmSalary/stores/baseForm.js
index 38d436b4..3eb3a57e 100644
--- a/pc4mobx/hrmSalary/stores/baseForm.js
+++ b/pc4mobx/hrmSalary/stores/baseForm.js
@@ -1,15 +1,16 @@
-import { observable, action, toJS } from 'mobx';
-import { message } from 'antd';
-import { WeaForm, WeaLogView } from 'comsMobx';
-import { WeaLocaleProvider } from 'ecCom';
+import { action, observable } from "mobx";
+import { message } from "antd";
+import { WeaForm, WeaLogView } from "comsMobx";
+import { WeaLocaleProvider } from "ecCom";
-import * as API from '../apis'; // 引入API接口文件
+import * as API from "../apis"; // 引入API接口文件
-const {LogStore} = WeaLogView;
+const { LogStore } = WeaLogView;
const getLabel = WeaLocaleProvider.getLabel;
export class BaseFormStore {
- @observable form = new WeaForm(); // nrew 一个form
+ @observable form = new WeaForm(); // 规则渲染form
+
@observable logStore = new LogStore();
@observable condition = []; // 存储后台得到的form数据
@observable saveLoading = false; // 保存状态处理:保证保存的时候接口只走一次
@@ -18,9 +19,9 @@ export class BaseFormStore {
@observable logVisible = false; // 控制日志弹框的显影
@action // 初始化操作: 一般用来初始化获取后台数据
- doInit = () =>{
+ doInit = () => {
this.getBaseForm();
- }
+ };
@action // 获得form配置数据
getBaseForm = () => {
@@ -32,22 +33,22 @@ export class BaseFormStore {
this.form.initFormFields(result.condition);
}
}));
- }
+ };
@action // 保存
saveForm = () => {
- this.form.validateForm().then(action(f=>{ // 表单的校验: 直接使用form的validateForm方法即可
+ this.form.validateForm().then(action(f => { // 表单的校验: 直接使用form的validateForm方法即可
if (f.isValid) { // 校验听过: 走保存接口
this.saveLoading = true;
const params = this.form.getFormParams();
API.saveForm(params).then(action(
result => {
- this.saveLoading = false
- if(result.api_status){ // 保存成功: 1、给出提示 2、刷新form数据
- message.success(`${getLabel(18758,'保存成功')}`);
+ this.saveLoading = false;
+ if (result.api_status) { // 保存成功: 1、给出提示 2、刷新form数据
+ message.success(`${getLabel(18758, "保存成功")}`);
this.getBaseForm();
- }else {
- message.error(`${getLabel(22620,'保存失败')}`);
+ } else {
+ message.error(`${getLabel(22620, "保存失败")}`);
}
}
));
@@ -55,9 +56,9 @@ export class BaseFormStore {
f.showErrors();
}
}));
- }
+ };
@action
- setLogVisible = bool => this.logVisible = bool
-
-}
\ No newline at end of file
+ setLogVisible = bool => this.logVisible = bool;
+
+}
From b42f9c8e13173fae044bb69ec23030307cd404db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Mon, 26 Feb 2024 15:29:04 +0800
Subject: [PATCH 17/24] =?UTF-8?q?feature/2.10.1.2402.01-=E6=88=91=E7=9A=84?=
=?UTF-8?q?=E8=96=AA=E8=B5=84=E7=A6=8F=E5=88=A9=E6=98=BE=E7=A4=BA=E5=9F=BA?=
=?UTF-8?q?=E7=A1=80=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/index.js | 4 +-
.../hrmSalary/pages/mySalaryBenefits/index.js | 49 ++-
.../hrmSalary/pages/ruleConfig/conditions.js | 42 ++-
pc4mobx/hrmSalary/pages/ruleConfig/form.js | 3 +-
.../hrmSalary/pages/ruleConfig/ruleConfig.js | 281 +++++++++++++++++-
5 files changed, 343 insertions(+), 36 deletions(-)
diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js
index 072f856a..b116155e 100644
--- a/pc4mobx/hrmSalary/index.js
+++ b/pc4mobx/hrmSalary/index.js
@@ -10,7 +10,7 @@ import Programme_old from "./pages/socialSecurityBenefits/programme";
// import Archivess from "./pages/socialSecurityBenefits/archives";
import Archives from "./pages/socialSecurityBenefits/welfareArchive"; //社保福利档案重构页面
import StandingBookDemo from "./pages/socialSecurityBenefits/standingBook";
-import StandingBook from "./pages/socialSecurityBenefits/standingBook/standingBook";//社保福利台账重构页面
+import StandingBook from "./pages/socialSecurityBenefits/standingBook/standingBook"; //社保福利台账重构页面
import StandingBookDetail from "./pages/socialSecurityBenefits/standingBookDetail";
import StandingBookOfflineComparison from "./pages/socialSecurityBenefits/standingBookOfflineComparison";
import SalaryItem from "./pages/salaryItem";
@@ -44,7 +44,6 @@ import PayrollTemplatePreview from "./pages/payroll/templatePreview/tmpPreview";
import MobilePayroll from "./pages/mobilePayroll";
import SysConfig from "./pages/sysConfig";
import RuleConfig from "./pages/ruleConfig/ruleConfig";
-import RuleConfigs from "./pages/ruleConfig";
import Appconfig from "./pages/appConfig";
import FieldManagement from "./pages/fieldManagement";
import AnalysisOfSalaryStatistics from "./pages/analysisOfSalaryStatistics";
@@ -186,7 +185,6 @@ const Routes = (
-
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
index 89d25e4d..7f8a1678 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/index.js
@@ -9,6 +9,8 @@ import { WeaLocaleProvider, WeaReqTop } from "ecCom";
import Payroll from "./components/payrollTable";
import SalaryAdjustmentRecords from "./components/SalaryAdjustmentRecords";
import { MonthRangePicker } from "../reportView/components/statisticalMicroSettingsSlide";
+import Authority from "../mySalary/authority";
+import * as API from "../../apis/ruleconfig";
import moment from "moment";
import "./index.less";
@@ -18,14 +20,32 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- selectedKey: "1",
+ selectedKey: "0", sysinfo: {}, tabs: [], store: { loading: false, hasRight: false },
salaryYearMonth: [
- moment().subtract(1, 'year').startOf("year").format("YYYY-MM"),
+ moment().subtract(1, "year").startOf("year").format("YYYY-MM"),
moment().endOf("year").format("YYYY-MM")
]
};
}
+ async componentDidMount() {
+ const { data: sysinfo } = await API.sysinfo();
+ const { adjustShowStatus, salaryShowStatus } = sysinfo;
+ let tabs = [
+ { key: "1", title: getLabel(111, "工资单") },
+ { key: "2", title: getLabel(543150, "调薪记录") }
+ ];
+ salaryShowStatus === "0" && (tabs = _.filter(tabs, o => o.key !== "1"));
+ adjustShowStatus === "0" && (tabs = _.filter(tabs, o => o.key !== "2"));
+ this.setState({ sysinfo, tabs }, () => {
+ const { tabs, store } = this.state;
+ this.setState({
+ selectedKey: !_.isEmpty(tabs) ? _.head(tabs).key : "0",
+ store: { ...store, hasRight: !_.isEmpty(tabs) }
+ });
+ });
+ }
+
renderContent = () => {
const { selectedKey, salaryYearMonth } = this.state;
let Dom = null;
@@ -43,11 +63,7 @@ class Index extends Component {
};
render() {
- const { selectedKey, salaryYearMonth } = this.state;
- const tabs = [
- { key: "1", title: getLabel(111, "工资单") },
- { key: "2", title: getLabel(543150, "调薪记录") }
- ];
+ const { selectedKey, salaryYearMonth, tabs } = this.state;
const btns = [
{getLabel(542604, "薪资所属月")}
@@ -56,14 +72,17 @@ class Index extends Component {
];
return (
- }
- iconBgcolor="#F14A2D" tabDatas={tabs} className="mySalary_wrapper"
- buttons={selectedKey === "1" ? btns : []} buttonSpace={10} selectedKey={selectedKey}
- onChange={selectedKey => this.setState({ selectedKey })}
- >
- {this.renderContent()}
-
+
+ }
+ iconBgcolor="#F14A2D" tabDatas={tabs} className="mySalary_wrapper"
+ buttons={selectedKey === "1" ? btns : []} buttonSpace={10} selectedKey={selectedKey}
+ onChange={selectedKey => this.setState({ selectedKey })}
+ >
+ {this.renderContent()}
+
+
);
}
}
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
index 90dbfd6c..c04384b0 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
@@ -47,7 +47,7 @@ export const conditions = [
items: [
{
conditionType: "SWITCH",
- domkey: ["enctry"],
+ domkey: ["OPEN_APPLICATION_ENCRYPT"],
fieldcol: 10,
label: getLabel(526997, "加密设置"),
labelcol: 8,
@@ -61,15 +61,15 @@ export const conditions = [
items: [
{
conditionType: "SWITCH",
- domkey: ["operateTaxDeclaration"],
+ domkey: ["taxDeclarationFunction"],
fieldcol: 10,
label: getLabel(111, "系统算税"),
labelcol: 8,
- viewAttr: 2
+ viewAttr: 1
},
{
conditionType: "SWITCH",
- domkey: ["withDrawTaxDeclaration"],
+ domkey: ["WITHDRAW_TAX_DECLARATION"],
fieldcol: 10,
label: getLabel(111, "撤回申报表"),
labelcol: 8,
@@ -83,7 +83,7 @@ export const conditions = [
items: [
{
conditionType: "SWITCH",
- domkey: ["confValue"],
+ domkey: ["salaryArchiveDelete"],
fieldcol: 10,
label: getLabel(111, "允许删除档案"),
labelcol: 8,
@@ -119,7 +119,7 @@ export const conditions = [
items: [
{
conditionType: "SELECT",
- domkey: ["matchRuleOptions"],
+ domkey: ["matchRule"],
fieldcol: 10,
label: getLabel(111, "匹配规则"),
options: [],
@@ -157,6 +157,36 @@ export const conditions = [
],
title: getLabel(111, "非系统人员"),
defaultshow: true
+ },
+ {
+ items: [
+ {
+ conditionType: "SWITCH",
+ domkey: ["salaryShowStatus"],
+ fieldcol: 10,
+ label: getLabel(111, "显示工资单页签"),
+ labelcol: 8,
+ viewAttr: 2
+ },
+ {
+ conditionType: "SWITCH",
+ domkey: ["adjustShowStatus"],
+ fieldcol: 10,
+ label: getLabel(111, "显示调薪记录页签"),
+ labelcol: 8,
+ viewAttr: 2
+ },
+ {
+ conditionType: "SWITCH",
+ domkey: ["taxAgentShowStatus"],
+ fieldcol: 10,
+ label: getLabel(111, "显示【个税扣缴义务人】信息"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ title: getLabel(111, "我的薪资福利设置"),
+ defaultshow: true
}
];
export const payloadList = [
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/form.js b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
index 770ebc7b..c1308ec4 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/form.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
@@ -14,8 +14,7 @@ export const renderRuleForm = (form, condition, onChange) => {
+ tipPosition="bottom">
),
colSpan: 1,
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
index bbaa3bec..45049a14 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -6,11 +6,16 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaLocaleProvider, WeaTop } from "ecCom";
+import { WeaLocaleProvider, WeaTools, WeaTop } from "ecCom";
+import { message, Modal } from "antd";
+import * as API from "../../apis/ruleconfig";
+import { conditions, payloadList } from "./conditions";
import { renderRuleForm } from "./form";
-import { conditions } from "./conditions";
+import { getConditionDomkeys } from "../../util";
import "./index.less";
+import ProgressModal from "../../components/progressModal";
+const getKey = WeaTools.getKey;
const getLabel = WeaLocaleProvider.getLabel;
@inject("baseFormStore")
@@ -18,31 +23,287 @@ const getLabel = WeaLocaleProvider.getLabel;
class RuleConfig extends Component {
constructor(props) {
super(props);
- this.state = {
- conditions: []
- };
+ this.state = { conditions: [], sysinfo: {}, progressVisible: false, progress: 50 };
+ this.timer = null;
}
componentDidMount() {
- const { baseFormStore: { form } } = this.props;
- form.initFormFields(conditions);
+ const promise = this.init();
}
init = async () => {
+ const { data: sysinfo } = await API.sysinfo();
+ const [{ data: matchRule }, { data: orderRule }, { data: ascOrDesc }, { data: rule }] =
+ await Promise.all(_.map(payloadList, it => API.commonEnumList(it)));
+ const optionsList = { matchRule, orderRule, ascOrDesc, rule };
+ this.setState({
+ sysinfo, conditions: _.map(conditions, item => ({
+ ...item, items: _.map(item.items, o => {
+ if (getKey(o) === "matchRule" || getKey(o) === "orderRule" || getKey(o) === "ascOrDesc" || getKey(o) === "rule") {
+ return { ...o, options: _.map(optionsList[getKey(o)], g => ({ key: g.value, showname: g.defaultLabel })) };
+ } else if (getKey(o) === "OPEN_APPLICATION_ENCRYPT") {
+ return { ...o, viewAttr: sysinfo.showEncryptOperationButton === "true" ? 2 : 1 };
+ }
+ return { ...o };
+ })
+ }))
+ }, async () => {
+ const { baseFormStore: { form } } = this.props;
+ form.initFormFields(this.state.conditions);
+ await this.updateFormData();
+ });
};
-
- handleChange = (value) => {
- console.log(value);
+ updateFormData = async () => {
+ const { data: sysinfo } = await API.sysinfo();
+ const { baseFormStore: { form } } = this.props;
+ _.map(getConditionDomkeys(this.state.conditions), item => {
+ if (item === "rule") {
+ form.updateFields({ [item]: { value: sysinfo["matchEmployeeMode"] || "" } });
+ } else if (item === "matchRule") {
+ form.updateFields({ [item]: { value: sysinfo["salaryAcctEmployeeRule"] || "" } });
+ } else if (item === "taxDeclarationFunction") {
+ form.updateFields({ [item]: { value: sysinfo["taxDeclarationFunction"] === "0" ? "0" : "1" } });
+ } else if (item === "taxAgentShowStatus" || item === "salaryShowStatus" || item === "adjustShowStatus") {
+ form.updateFields({ [item]: { value: sysinfo[item] || "1" } });
+ } else {
+ form.updateFields({ [item]: { value: sysinfo[item] || "" } });
+ }
+ });
+ };
+ handleChange = (params) => {
+ const key = _.keys(params)[0];
+ const val = params[key].value;
+ Modal.confirm({
+ title: getLabel(131329, "信息确认"),
+ content: (key === "taxDeclarationFunction" && val === "0") ? getLabel(544276, "关闭之后,将无法开启,确认要保存吗?") : getLabel(543854, "确认要保存吗?"),
+ onOk: () => {
+ switch (key) {
+ case "orderRule":
+ case "ascOrDesc":
+ this.updateOrderRule();
+ break;
+ case "rule":
+ this.saveMatchEmployeeModeRule();
+ break;
+ case "OPEN_APPLICATION_ENCRYPT":
+ this.saveEncryptSetting();
+ break;
+ case "taxDeclarationFunction":
+ this.operateTaxDeclarationFunction();
+ break;
+ case "matchRule":
+ this.saveSalaryAcctEmployeeRule();
+ break;
+ case "WITHDRAW_TAX_DECLARATION":
+ case "salaryArchiveDelete":
+ const url = {
+ WITHDRAW_TAX_DECLARATION: "saveWithDrawTaxDeclaration", salaryArchiveDelete: "saveArchiveDelete"
+ };
+ this.ruleSettings(key, url[key]);
+ break;
+ case "welBaseDiffByPerAndCom":
+ case "welBaseAutoAdjust":
+ case "salaryAcctFixedColumns":
+ case "extEmpsWitch":
+ case "taxAgentShowStatus":
+ case "salaryShowStatus":
+ case "adjustShowStatus":
+ const confTitle = {
+ welBaseDiffByPerAndCom: getLabel(111, "福利档案基数区分个人和公司"),
+ welBaseAutoAdjust: getLabel(111, "福利档案导入基数不符合要求时自动调整为上限/下限"),
+ salaryAcctFixedColumns: getLabel(545791, "薪资核算固定列头数"),
+ extEmpsWitch: getLabel(544097, "开启非系统人员"),
+ taxAgentShowStatus: getLabel(111, "显示【个税扣缴义务人】信息"),
+ salaryShowStatus: getLabel(111, "显示工资单页签"),
+ adjustShowStatus: getLabel(111, "显示调薪记录页签")
+ };
+ this.unifiedSettings(key, confTitle[key]);
+ break;
+ default:
+ break;
+ }
+ },
+ onCancel: () => this.updateFormData()
+ });
+ };
+ /*
+ * Author: 黎永顺
+ * Description:排序规则-保存
+ * Params:
+ * Date: 2024/2/26
+ */
+ updateOrderRule = () => {
+ const { baseFormStore: { form } } = this.props;
+ const { orderRule, ascOrDesc } = form.getFormParams();
+ API.updateOrderRule({ orderRule, ascOrDesc }).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(22619, "保存成功!"));
+ } else {
+ message.error(errormsg || getLabel(22620, "保存失败!"));
+ }
+ });
+ };
+ /*
+ * Author: 黎永顺
+ * Description: 人员校验规则-人员字段保存
+ * Params:
+ * Date: 2024/2/26
+ */
+ saveMatchEmployeeModeRule = () => {
+ const { baseFormStore: { form } } = this.props;
+ const { rule } = form.getFormParams();
+ API.saveMatchEmployeeModeRule({ rule }).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(22619, "保存成功!"));
+ } else {
+ message.error(errormsg || getLabel(22620, "保存失败!"));
+ }
+ });
+ };
+ /*
+ * Author: 黎永顺
+ * Description: 薪资核算人员匹配规则-匹配规则
+ * Params:
+ * Date: 2024/2/26
+ */
+ saveSalaryAcctEmployeeRule = () => {
+ const { baseFormStore: { form } } = this.props;
+ const { matchRule: rule } = form.getFormParams();
+ API.saveSalaryAcctEmployeeRule({ rule }).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(22619, "保存成功!"));
+ } else {
+ message.error(errormsg || getLabel(22620, "保存失败!"));
+ }
+ });
+ };
+ /*
+ * Author: 黎永顺
+ * Description: 算税规则-系统算税设置
+ * Params:
+ * Date: 2024/2/26
+ */
+ operateTaxDeclarationFunction = () => {
+ const { baseFormStore: { form } } = this.props;
+ const { taxDeclarationFunction: operateTaxDeclaration } = form.getFormParams();
+ API.operateTaxDeclarationFunction({ operateTaxDeclaration }).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(22619, "保存成功!"));
+ } else {
+ message.error(errormsg || getLabel(22620, "保存失败!"));
+ }
+ });
+ };
+ /*
+ * Author: 黎永顺
+ * Description: 加密设置
+ * Params:
+ * Date: 2024/2/26
+ */
+ saveEncryptSetting = () => {
+ const { baseFormStore: { form } } = this.props;
+ const { OPEN_APPLICATION_ENCRYPT: isOpenEncrypt } = form.getFormParams();
+ API.saveEncryptSetting({ isOpenEncrypt }).then(({ data, status, errormsg }) => {
+ if (status) {
+ const { isSuccess, progressId, msg } = data;
+ if (!isSuccess) {
+ message.error(errormsg || msg || getLabel(22620, "保存失败!"));
+ return;
+ }
+ this.setState({ progressVisible: true, progress: 0 }, () => {
+ let number = 1;
+ this.timer && clearInterval(this.timer);
+ this.timer = setInterval(() => {
+ API.getEncryptProgress({ progressId }).then(({ status, data, errormsg }) => {
+ const { progress_statue } = data;
+ if (progress_statue === "success" && this.timer) {
+ clearInterval(this.timer);
+ this.timer = null;
+ number = 1;
+ this.setState({
+ progress: 100
+ }, () => {
+ this.setState({
+ progressVisible: false
+ });
+ });
+ message.success(getLabel(22619, "保存成功!"));
+ } else if (progress_statue === "in_progress" && this.timer) {
+ if (this.state.progress >= 90) {
+ this.setState({
+ progress: this.state.progress + (0.001 * this.state.progress)
+ });
+ } else {
+ this.setState({
+ progress: 10 * number
+ }, () => number++);
+ }
+ } else if (!status || (progress_statue === "fail" && this.timer)) {
+ clearInterval(this.timer);
+ this.timer = null;
+ number = 1;
+ this.setState({
+ progress: 100
+ }, () => {
+ this.setState({
+ progressVisible: false
+ });
+ });
+ message.error(errormsg || getLabel(22620, "保存失败!"));
+ }
+ });
+ }, 1000);
+ });
+ }
+ });
+ };
+ /*
+ * Author: 黎永顺
+ * Description: 规则设置
+ * Params:
+ * Date: 2024/2/26
+ */
+ ruleSettings = (key, urlName) => {
+ const { baseFormStore: { form } } = this.props;
+ const payload = { confValue: form.getFormParams()[key] };
+ API[urlName](payload).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(22619, "保存成功!"));
+ } else {
+ message.error(errormsg || getLabel(22620, "保存失败!"));
+ }
+ });
+ };
+ unifiedSettings = (confKey, confTitle) => {
+ const { baseFormStore: { form } } = this.props;
+ let payload = {
+ confKey, confValue: form.getFormParams()[confKey],
+ module: "basic", title: confTitle
+ };
+ API.saveSysOperate(payload).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(22619, "保存成功!"));
+ } else {
+ message.error(errormsg || getLabel(22620, "保存失败!"));
+ }
+ });
};
render() {
const { baseFormStore: { form } } = this.props;
+ const { conditions, progressVisible, progress } = this.state;
return (
{getLabel(543355, "规则配置")}} icon={}
iconBgcolor="#F14A2D" buttons={[]} className="ruleWrapper-layout"
>
{renderRuleForm(form, conditions, this.handleChange)}
+ {/*加解密进度条*/}
+ {
+ progressVisible &&
+ this.setState({ progressVisible: false, progress: 0 })}/>
+ }
);
}
From 07e19164d8f08c4e8f1c11cadc8afc4d185f46d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Tue, 27 Feb 2024 13:49:21 +0800
Subject: [PATCH 18/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../payrollRelease/components/grantTableList/index.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js
index 2637bcb8..25bbc2cf 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js
@@ -148,6 +148,17 @@ class Index extends Component {
this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
}
+ {
+ sendNum === sendTotal && !showGrant &&
+ this.handleOpts(e, record)}>
+ {getLabel(545781, "操作日志")}
+
+ }
+ >
+
+
+ }
{
sendNum !== sendTotal && !showGrant &&
Date: Wed, 28 Feb 2024 15:48:22 +0800
Subject: [PATCH 19/24] =?UTF-8?q?hotfix/2.10.1.2402.01=20=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E8=AE=BE=E7=BD=AE?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=96=AA=E8=B5=84=E8=B4=A6=E5=A5=97=E7=9A=84?=
=?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/reportView/components/condition.js | 13 +++++++++++++
.../components/statisticalMicroSettingsSlide.js | 16 ++++++++++++++--
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/condition.js b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
index 9d141953..d4f8417f 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/condition.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
@@ -18,6 +18,19 @@ export const condition = [
multiple: true,
viewAttr: 2
},
+ {
+ colSpan: 2,
+ checkbox: false,
+ checkboxValue: false,
+ conditionType: "SELECT",
+ domkey: ["salarySob"],
+ fieldcol: 18,
+ label: getLabel(538010, "薪资账套"),
+ labelcol: 6,
+ options: [],
+ multiple: true,
+ viewAttr: 2
+ },
{
browserConditionParam: {
completeParams: {},
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
index f5237045..8065a654 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
@@ -31,6 +31,7 @@ import {
} from "../../../apis/statistics";
import { commonEnumList } from "../../../apis/ruleconfig";
import { getTaxAgentSelectList } from "../../../apis/taxAgent";
+import { getPayrollTemplateLedgerList } from "../../../apis/payroll";
import { condition } from "./condition";
import cs from "classnames";
import "../index.less";
@@ -68,7 +69,8 @@ class StatisticalMicroSettingsSlide extends Component {
}
}
- getTaxAgentSelectList = (props) => {
+ getTaxAgentSelectList = async (props) => {
+ const { data: salarySobList } = await getPayrollTemplateLedgerList();
getTaxAgentSelectList(true).then(({ status, data }) => {
if (status) {
const conditions = _.map(condition, item => {
@@ -80,6 +82,11 @@ class StatisticalMicroSettingsSlide extends Component {
...child, viewAttr: props.isShare ? 1 : child.viewAttr,
options: _.map(data, o => ({ key: o.id, showname: o.content }))
};
+ } else if (getKey(child) === "salarySob") {
+ return {
+ ...child, viewAttr: props.isShare ? 1 : child.viewAttr,
+ options: _.map(salarySobList, o => ({ key: o.id, showname: o.content }))
+ };
}
return { ...child, viewAttr: props.isShare ? 1 : child.viewAttr };
})
@@ -124,8 +131,9 @@ class StatisticalMicroSettingsSlide extends Component {
const { salaryMonth, timeType, dataSource } = this.state;
const { form, id, dimension, onClose } = this.props;
const [salaryStartMonth, salaryEndMonth] = salaryMonth;
- const { department, employee, position, subCompany, taxAgent, ...extra } = form.getFormDatas();
+ const { department, employee, position, subCompany, taxAgent, salarySob, ...extra } = form.getFormDatas();
const { value, valueSpan } = taxAgent;
+ const { value: sobValue, valueSpan: sobValueSpan } = salarySob;
if (!salaryEndMonth || !salaryStartMonth) {
this.refs.weaError.showError();
return;
@@ -138,6 +146,10 @@ class StatisticalMicroSettingsSlide extends Component {
// position: _.map(position.valueObj, it => ({ id: it.id, name: it.name })),
subCompany: _.map(subCompany.valueObj, it => ({ id: it.id, name: it.name })),
taxAgent: value ? _.map(value.split(","), (it, idx) => ({ id: it, name: valueSpan.split(",")[idx] })) : [],
+ salarySob: sobValue ? _.map(sobValue.split(","), (it, idx) => ({
+ id: it,
+ name: sobValueSpan.split(",")[idx]
+ })) : [],
items: dataSource,
salaryEndMonth: salaryEndMonth + "-01",
salaryStartMonth: salaryStartMonth + "-01"
From 752eb6b6d17f3c7c2eafed027ff96e8ee8acac77 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, 28 Feb 2024 16:42:15 +0800
Subject: [PATCH 20/24] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/pages/adjustSalaryManage/index.js | 16 +++++++++++++---
.../attendance/components/fieldMangComp.js | 16 +++++++++++++---
.../pages/externalPersonManage/index.js | 15 ++++++++++++---
.../components/payrollTable/index.js | 14 ++++++++++++--
.../components/grantTableList/index.js | 5 -----
pc4mobx/hrmSalary/pages/salaryItem/index.js | 13 +++++++++++--
6 files changed, 61 insertions(+), 18 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js b/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
index 034ef98d..59b752f3 100644
--- a/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
+++ b/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
@@ -11,7 +11,7 @@ import { adjustRecordItemList } from "../../apis/adjustManage";
import AdvanceInputBtn from "./components/advanceInputBtn";
import AdjustAdvanceSearchPannel from "./components/adjustAdvanceSearchPannel";
import cs from "classnames";
-import { Button } from "antd";
+import { Button, Dropdown, Menu } from "antd";
import { convertToUrlString } from "../../util/url";
import LogDialog from "../../components/logViewModal";
import "./index.less";
@@ -65,8 +65,18 @@ class Index extends Component {
return { ...o, width: 150 };
}), {
dataIndex: "options", title: getLabel(30585, "操作"),
- width: 120, render: (_, record) => ( this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")})
+ width: 120, render: (_, record) => (
+
+
+ this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+ )
}]
});
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/fieldMangComp.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/fieldMangComp.js
index fd9f744e..5380abfe 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/fieldMangComp.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/fieldMangComp.js
@@ -6,7 +6,7 @@
*/
import React, { Component } from "react";
import { WeaCheckbox, WeaLocaleProvider, WeaTable } from "ecCom";
-import { Col, message, Row } from "antd";
+import { Col, Dropdown, Menu, message, Row } from "antd";
import AttendanceCustomFieldsModal from "./attendanceCustomFieldsModal";
import { getAttendanceFieldList, updateAttendanceFieldStatus } from "../../../../apis/attendance";
import TipLabel from "../../../../components/TipLabel";
@@ -92,8 +92,18 @@ class FieldMangComp extends Component {
dataIndex: "options",
title: getLabel(30585, "操作"),
width: 120,
- render: (_, record) => ( this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")})
+ render: (_, record) => (
+
+
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+ )
}];
};
diff --git a/pc4mobx/hrmSalary/pages/externalPersonManage/index.js b/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
index 7a99295c..6ccce9c0 100644
--- a/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
+++ b/pc4mobx/hrmSalary/pages/externalPersonManage/index.js
@@ -9,7 +9,7 @@ import { inject, observer } from "mobx-react";
import { WeaHelpfulTip, WeaLocaleProvider, WeaTab, WeaTable, WeaTop } from "ecCom";
import ExternalPersonManageEditSlide from "./components/externalPersonManageEditSlide";
import ExternalPersonImport from "./components/externalPersonImport";
-import { Button, message, Modal } from "antd";
+import { Button, Dropdown, Menu, message, Modal } from "antd";
import { getSearchs } from "../../util";
import { condition, searchCondition } from "./conditions";
import { deleteExtEmp, listPage } from "../../apis/externalPersonManage";
@@ -200,8 +200,17 @@ class Index extends Component {
this.handleAdd(id)}
style={{ paddingRight: 8 }}>编辑
- this.onDropMenuClick("log", id)}
- style={{ paddingRight: 8 }}>{getLabel(545781, "操作日志")}
+
+
+ this.onDropMenuClick("log", id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
{/* this.handleDelete(id)}>删除*/}
)
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
index 385cdf51..4e746a70 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
@@ -6,6 +6,7 @@
*/
import React, { Component } from "react";
import { WeaLocaleProvider, WeaTable } from "ecCom";
+import { Dropdown, Menu } from "antd";
import { mySalaryBillList, mySalaryBillList4Card } from "../../../../apis/mySalaryBenefits";
import moment from "moment";
@@ -87,8 +88,17 @@ class Index extends Component {
{getLabel(33564, "查看")}
- this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
)
}]}
/>
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js
index 25bbc2cf..64e91b27 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/components/grantTableList/index.js
@@ -143,11 +143,6 @@ class Index extends Component {
style={{ marginRight: 10 }} target="_blank"
>{getLabel(83110, "查看详情")}
}
- {
- !canSeeDetail &&
- this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
- }
{
sendNum === sendTotal && !showGrant &&
this.handleDeleteItem(record)}
>{getLabel(535052, "删除")}
}
- this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ this.onDropMenuClick("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
);
}
From 91bc849b49439ff7252700ecb40ef4f39cd9c947 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Tue, 5 Mar 2024 14:23:13 +0800
Subject: [PATCH 21/24] =?UTF-8?q?feature/2.10.1.2402.01-=E7=A4=BE=E4=BF=9D?=
=?UTF-8?q?=E5=8F=B0=E8=B4=A6=E5=AF=BC=E5=85=A5=E7=BC=93=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/calculate.js | 4 ++++
.../acctResult/importModal/selectFieldModal.js | 11 ++++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index 1cfca645..d328b700 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -232,6 +232,10 @@ export const updateLockStatus = (params) => {
export const cacheImportField = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/cacheImportField", params);
};
+// 导入社保台账添加表头字段缓存
+export const cacheWelfareListField = (params) => {
+ return postFetch("/api/bs/hrmsalary/siaccount/cacheWelfareList", params);
+};
//薪资核算-页面查看权限
export const salaryacctAcctresultCheckAuth = params => {
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/checkAuth", "GET", params);
diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js
index f288cc35..2dc1d2f3 100644
--- a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js
+++ b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js
@@ -2,7 +2,7 @@ import React from "react";
import { Button, Col, Row } from "antd";
import { inject, observer } from "mobx-react";
import { WeaCheckbox, WeaDialog } from "ecCom";
-import { cacheImportField } from "../../../../apis/calculate";
+import { cacheImportField, cacheWelfareListField } from "../../../../apis/calculate";
@inject("calculateStore", "standingBookStore")
@observer
@@ -112,15 +112,24 @@ export default class SelectFieldModal extends React.Component {
//薪资核算详情页面的导入表单字段缓存功能
if (window.location.hash.indexOf("calculateDetail") !== -1) {
const { status } = await this.cacheImportField();
+ } else if (window.location.hash.indexOf("standingBookDetail") !== -1) {
+ const { status } = await this.cacheWelfareListField();
}
this.props.onAdd(this.fieldData);
this.props.onCancel();
};
+ //薪资核算导入缓存字段
cacheImportField = () => {
const salaryItemList = _.reduce(_.keys(this.fieldData), (pre, cur) => ([...pre, ...this.fieldData[cur]]), []);
const salaryItems = _.map(_.filter(salaryItemList, it => !!it.checked), item => item.salaryItemId);
return cacheImportField({ salaryItems });
};
+ //社保台账导入缓存字段
+ cacheWelfareListField = () => {
+ const salaryItemList = _.reduce(_.keys(this.fieldData), (pre, cur) => ([...pre, ...this.fieldData[cur]]), []);
+ const welfareNames = _.map(_.filter(salaryItemList, it => !!it.checked), item => item.fieldId);
+ return cacheWelfareListField({ welfareNames });
+ };
// 标题checkbox点击
handleTitleCheckboxChange(value, flag) {
From df9e9c9a21ee44004386742cc68b4abcd5b6fd9d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Tue, 5 Mar 2024 17:49:37 +0800
Subject: [PATCH 22/24] =?UTF-8?q?feature/2.10.1.2402.01-=E7=A4=BE=E4=BF=9D?=
=?UTF-8?q?=E5=8F=B0=E8=B4=A6=E5=AF=BC=E5=85=A5=E7=BC=93=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/calculate.js | 4 -
pc4mobx/hrmSalary/apis/standingBook.js | 8 ++
.../importModal/selectFieldModal.js | 10 +-
.../components/importHeaderSetDialog.js | 84 +++++++++++
.../standingBookDetail/components/index.less | 18 +++
.../components/makeupDifference.js | 41 +++---
.../standingBookDetail/components/normal.js | 39 ++---
.../standingBookCalcImportDialog.js | 136 ++++++++++++++++++
8 files changed, 281 insertions(+), 59 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js
create mode 100644 pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js
diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index d328b700..1cfca645 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -232,10 +232,6 @@ export const updateLockStatus = (params) => {
export const cacheImportField = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/cacheImportField", params);
};
-// 导入社保台账添加表头字段缓存
-export const cacheWelfareListField = (params) => {
- return postFetch("/api/bs/hrmsalary/siaccount/cacheWelfareList", params);
-};
//薪资核算-页面查看权限
export const salaryacctAcctresultCheckAuth = params => {
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/checkAuth", "GET", params);
diff --git a/pc4mobx/hrmSalary/apis/standingBook.js b/pc4mobx/hrmSalary/apis/standingBook.js
index 8cf772a5..fbcca3c2 100644
--- a/pc4mobx/hrmSalary/apis/standingBook.js
+++ b/pc4mobx/hrmSalary/apis/standingBook.js
@@ -197,3 +197,11 @@ export const getBalancePaymentGroup = params => {
export const addNewBalance = params => {
return postFetch("/api/bs/hrmsalary/siaccount/detail/addNewBalance", params);
};
+// 导入社保台账添加表头字段缓存-正常缴纳以及补缴
+export const cacheWelfareListField = (params) => {
+ return postFetch("/api/bs/hrmsalary/siaccount/cacheWelfareList", params);
+};
+// 导入社保台账添加表头字段缓存-补差缓存
+export const cacheBalanceWelfareList = (params) => {
+ return postFetch("/api/bs/hrmsalary/siaccount/cacheBalanceWelfareList", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js
index 2dc1d2f3..99d55f54 100644
--- a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js
+++ b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js
@@ -2,7 +2,7 @@ import React from "react";
import { Button, Col, Row } from "antd";
import { inject, observer } from "mobx-react";
import { WeaCheckbox, WeaDialog } from "ecCom";
-import { cacheImportField, cacheWelfareListField } from "../../../../apis/calculate";
+import { cacheImportField } from "../../../../apis/calculate";
@inject("calculateStore", "standingBookStore")
@observer
@@ -112,8 +112,6 @@ export default class SelectFieldModal extends React.Component {
//薪资核算详情页面的导入表单字段缓存功能
if (window.location.hash.indexOf("calculateDetail") !== -1) {
const { status } = await this.cacheImportField();
- } else if (window.location.hash.indexOf("standingBookDetail") !== -1) {
- const { status } = await this.cacheWelfareListField();
}
this.props.onAdd(this.fieldData);
this.props.onCancel();
@@ -124,12 +122,6 @@ export default class SelectFieldModal extends React.Component {
const salaryItems = _.map(_.filter(salaryItemList, it => !!it.checked), item => item.salaryItemId);
return cacheImportField({ salaryItems });
};
- //社保台账导入缓存字段
- cacheWelfareListField = () => {
- const salaryItemList = _.reduce(_.keys(this.fieldData), (pre, cur) => ([...pre, ...this.fieldData[cur]]), []);
- const welfareNames = _.map(_.filter(salaryItemList, it => !!it.checked), item => item.fieldId);
- return cacheWelfareListField({ welfareNames });
- };
// 标题checkbox点击
handleTitleCheckboxChange(value, flag) {
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js
new file mode 100644
index 00000000..3dd17ed2
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js
@@ -0,0 +1,84 @@
+/*
+ * Author: 黎永顺
+ * name: 社保福利台账-核算-导入表头设置
+ * Description:
+ * Date: 2024/3/5
+ */
+import React, { Component } from "react";
+import { Button, Col, Row } from "antd";
+import { WeaCheckbox, WeaDialog, WeaLocaleProvider } from "ecCom";
+import "./index.less";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class ImportHeaderSetDialog extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ itemsCheckeds: [], showOnlyChecked: false
+ };
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ this.setState({ itemsCheckeds: nextProps.selectItems });
+ }
+ }
+
+ handleShowOnlyChecked = (showOnlyChecked) => this.setState({ showOnlyChecked: !!Number(showOnlyChecked) });
+ handleSelectAll = (checked) => {
+ const { itemsByGroup } = this.props;
+ if (checked === "1") {
+ this.setState({ itemsCheckeds: _.map(itemsByGroup, it => it.fieldId) });
+ } else {
+ this.setState({ itemsCheckeds: [] });
+ }
+ };
+
+ render() {
+ const { showOnlyChecked, itemsCheckeds } = this.state;
+ const { itemsByGroup } = this.props;
+ let dataSource = _.map(itemsByGroup, it => {
+ return { ...it, checked: itemsCheckeds.includes(it.fieldId) };
+ });
+ if (showOnlyChecked) {
+ dataSource = _.filter(dataSource, it => !!it.checked);
+ }
+ return (
+ this.props.onAdd(itemsCheckeds)}>{getLabel(111, "添加")},
+ {getLabel(111, "取消")}
+ ]}
+ bottomLeft={
+
+
+
+
+ }
+ >
+ {
+
+ {
+ !_.isEmpty(dataSource) ?
+ _.map(dataSource, it => {
+ const { fieldId, salaryItemName, checked } = it;
+ return
+ this.setState({ itemsCheckeds: _.xorWith(itemsCheckeds, [fieldId], _.isEqual) })}/>
+ ;
+ }) : 暂无数据
+ }
+
+ }
+
+ );
+ }
+}
+
+export default ImportHeaderSetDialog;
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/index.less b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/index.less
index 2ceecea0..235eba25 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/index.less
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/index.less
@@ -290,3 +290,21 @@
}
}
}
+
+//导入头部设置
+.headerSetWrapper {
+ .ant-modal-body {
+ .ant-row {
+ padding: 16px 25px;
+ }
+ }
+
+ .ant-col-8 {
+ padding: 0 8px !important;
+ }
+
+ .wea-content {
+ padding: 8px 16px 0;
+ }
+}
+
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js
index 057f8379..9ff5fb28 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js
@@ -13,15 +13,23 @@ import * as API from "../../../../apis/standingBook";
import { calcPageNo } from "../../../../util";
import RegList from "./regList";
import RegEditDetial from "./regEditDetial";
-import AcctResultImportModal from "../../../calculateDetail/acctResult/importModal/acctResultImportModal";
import AddCompensationPersonnelDialog from "./addCompensationPersonnelDialog";
+import StandingBookCalcImportDialog from "./standingBookCalcImportDialog";
import "./index.less";
class MakeupDifference extends Component {
constructor(props) {
super(props);
this.state = {
- selectKey: [], fieldData: {}, loading: { save: false }, importDiffModal: { visible: false },
+ selectKey: [], loading: { save: false },
+ importDiffModal: {
+ visible: false,
+ fieldUrl: "getBalanceWelfareList",
+ tmpUrl: "exportSiaccountWelfarebalanceimporttemplatetetemplate",
+ cacheUrl: "cacheBalanceWelfareList",
+ importUrl: "importBalanceInsuranceDetail",
+ importparams: {}
+ },
returnEditPersonSlide: {
title: "", editId: "", visible: false
},
@@ -65,7 +73,12 @@ class MakeupDifference extends Component {
});
break;
case "import":
- this.setState({ importDiffModal: { ...importDiffModal, visible: true } });
+ this.setState({
+ importDiffModal: {
+ ...importDiffModal, visible: true,
+ importparams: { billMonth: getQueryString("billMonth") }
+ }
+ });
break;
case "export":
const url = `${window.location.origin}/api/bs/hrmsalary/welfare/balance/export?billMonth=${billMonth}&paymentOrganization=${paymentOrganization}`;
@@ -103,7 +116,7 @@ class MakeupDifference extends Component {
render() {
const billMonth = getQueryString("billMonth");
- const { selectKey, importDiffModal, fieldData, returnEditPersonSlide, addPersonalDialog } = this.state;
+ const { selectKey, importDiffModal, returnEditPersonSlide, addPersonalDialog } = this.state;
return (
isRefresh && this.diffListRef.recessionList())}
/>
{/*导入补差*/}
- {
- importDiffModal.visible &&
- this.setState({ fieldData })}
- onCancel={() => {
- this.setState({ importDiffModal: { ...importDiffModal, visible: false }, fieldData: {} }, () => {
- const name = this.regTopRef.state.name;
- this.diffListRef.recessionList({ userName: name });
- });
- }}
- isStandingBook
- standingBookType="difference"
- />
- }
+ this.setState({
+ importDiffModal: { ...importDiffModal, visible: false }
+ }, () => isInit && this.diffListRef.recessionList())}/>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
index 2fe404a5..45f1a728 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
@@ -11,7 +11,7 @@ import { WeaFormItem, WeaInput, WeaSearchGroup, WeaTab } from "ecCom";
import { calcPageNo } from "../../../../util";
import { getQueryString } from "../../../../util/url";
import ProgressModal from "../../../../components/progressModal";
-import AcctResultImportModal from "../../../calculateDetail/acctResult/importModal/acctResultImportModal";
+import StandingBookCalcImportDialog from "./standingBookCalcImportDialog";
import AdjustmentSlide from "./adjustmentSlide";
import { getCalculateProgress } from "../../../../apis/calculate";
import RegEditDetial from "./regEditDetial";
@@ -48,7 +48,8 @@ export default class NormalIndex extends Component {
progress: 0,
fieldData: {}, //选中的表单头信息
importParams: { //导入信息的弹框表示
- visible: false
+ visible: false, fieldUrl: "getWelfareList", tmpUrl: "exportSiaccountWelfareImporttemplate",
+ cacheUrl: "cacheWelfareListField", importUrl: "importInsuranceAcctDetail", importparams: {}
},
returnEditPersonSlide: {
title: "",
@@ -473,7 +474,12 @@ export default class NormalIndex extends Component {
];
const btn4 = [
this.setState({ importParams: { ...importParams, visible: true } })}>导入数据
+ onClick={() => this.setState({
+ importParams: {
+ ...importParams, visible: true,
+ tmpUrl: selectedKey === "1" ? "exportSiaccountWelfareImporttemplate" : "exportSiaccountWelfaresupplyimporttemplatetemplate"
+ }
+ })}>导入数据
];
const btn5 = [
导出全部
@@ -544,29 +550,10 @@ export default class NormalIndex extends Component {
progress={this.state.progress}
/>
{/*导入弹框*/}
- {
- importParams.visible &&
- {
- this.setState({
- fieldData
- });
- }}
- onCancel={() => {
- this.setState({ importParams: { ...importParams, visible: false }, fieldData: {} }, () => {
- const { billMonth, selectedKey, paymentOrganization } = this.props;
- const { current } = this.state;
- selectedKey === "1"
- ? this.getNormalList({ billMonth, current, paymentOrganization })
- : this.getSupplementaryList({ billMonth, current, paymentOrganization });
- });
- }}
- isStandingBook
- standingBookTabKey={selectedKey}
- />
- }
+ this.setState({
+ importParams: { ...importParams, visible: false }
+ }, () => isInit && this.handleSearch())}/>
{/* table */}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js
new file mode 100644
index 00000000..0dc97e42
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js
@@ -0,0 +1,136 @@
+/*
+ * Author: 黎永顺
+ * name: 社保福利台账-核算-导入
+ * Description:
+ * Date: 2024/3/5
+ */
+import React, { Component } from "react";
+import { WeaLocaleProvider } from "ecCom";
+import { Badge, Button, message } from "antd";
+import ImportDialog from "../../../../components/importDialog";
+import ImportHeaderSetDialog from "./importHeaderSetDialog";
+import * as API from "../../../../apis/standingBook";
+import { getQueryString } from "../../../../util/url";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class StandingBookCalcImportDialog extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ headerFieldsDialog: { visible: false, itemsByGroup: [], selectItems: [] },
+ importDialog: {
+ visible: false, title: "", nextloading: false,
+ link: null, importResult: {}, imageId: "",
+ previewUrl: "/api/bs/hrmsalary/siaccount/welfare/preview"
+ }
+ };
+ }
+
+ async componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ const { fieldUrl } = nextProps;
+ const { data } = await API[fieldUrl]();
+ this.setState({
+ importDialog: {
+ ...this.state.importDialog, link: this.handleExportTemp, title: getLabel(24023, "数据导入")
+ },
+ headerFieldsDialog: {
+ ...this.state.headerFieldsDialog, itemsByGroup: data,
+ selectItems: _.map(_.filter(data, k => k.checked), o => o.fieldId)
+ }
+ });
+ }
+ this.setState({ importDialog: { ...this.state.importDialog, visible: nextProps.visible } });
+ }
+
+ handleImport = (payload) => {
+ const { importDialog, headerFieldsDialog: { selectItems } } = this.state;
+ if (_.isEmpty(selectItems)) {
+ message.error(getLabel(111, "请选择表头字段"));
+ } else {
+ const { importUrl, importparams = {} } = this.props;
+ this.setState({ importDialog: { ...importDialog, nextloading: true } });
+ API[importUrl]({ ...payload, ...importparams }).then(({ data, status, errormsg }) => {
+ this.setState({ importDialog: { ...importDialog, nextloading: false } });
+ if (status) {
+ this.setState({
+ importDialog: { ...importDialog, ...payload, importResult: data }
+ });
+ } else {
+ message.warning(errormsg);
+ }
+ }).catch(() => this.setState({ importDialog: { ...importDialog, nextloading: false } }));
+ }
+ };
+ handleExportTemp = () => {
+ const { tmpUrl } = this.props;
+ const { headerFieldsDialog: { selectItems, itemsByGroup } } = this.state;
+ if (_.isEmpty(selectItems)) {
+ message.error(getLabel(111, "请选择表头字段"));
+ } else {
+ const billMonth = getQueryString("billMonth");
+ const paymentOrganization = getQueryString("paymentOrganization");
+ const payload = {
+ billMonth,
+ welfareNames: _.map(_.filter(itemsByGroup, k => selectItems.includes(k.fieldId)), o => o.salaryItemName),
+ paymentOrganization: Number(paymentOrganization)
+ };
+ const promise = API[tmpUrl](payload);
+ }
+ };
+ handleSelectedField = () => {
+ this.setState({
+ headerFieldsDialog: {
+ ...this.state.headerFieldsDialog, visible: true
+ }
+ });
+ };
+ /*
+ * Author: 黎永顺
+ * Description:表单选项
+ * Params:
+ * Date: 2023/9/18
+ */
+ renderFormComponent = () => {
+ const { selectItems } = this.state.headerFieldsDialog;
+ return
+
+ {getLabel(111, "请选择表头字段")}
+
+
;
+ };
+
+ render() {
+ const { importDialog, headerFieldsDialog } = this.state;
+ const { cacheUrl } = this.props;
+ return (
+
+ this.setState(({
+ importDialog: { ...importDialog, importResult: {}, imageId: "" }
+ }))}
+ nextCallback={imageId => this.setState({ importDialog: { ...importDialog, imageId } })}
+ nextUplaodCallback={imageId => this.handleImport({ imageId })}
+ />
+ {/*表头设置*/}
+ this.setState({
+ headerFieldsDialog: { ...headerFieldsDialog, visible: false }
+ })}
+ onAdd={selectItems => this.setState({
+ headerFieldsDialog: { ...headerFieldsDialog, visible: false, selectItems }
+ }, () => {
+ const { selectItems: welfareNames } = this.state.headerFieldsDialog;
+ const promise = API[cacheUrl]({ welfareNames });
+ })}
+ />
+
+ );
+ }
+}
+
+export default StandingBookCalcImportDialog;
From 87d699c59de4322524ae708639e94b34a595cc61 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, 6 Mar 2024 14:04:47 +0800
Subject: [PATCH 23/24] =?UTF-8?q?feature/2.10.1.2402.01-=E7=A4=BE=E4=BF=9D?=
=?UTF-8?q?=E5=8F=B0=E8=B4=A6=E5=AF=BC=E5=85=A5=E7=BC=93=E5=AD=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../standingBookDetail/components/importHeaderSetDialog.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js
index 3dd17ed2..2fe7cb3d 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/importHeaderSetDialog.js
@@ -22,6 +22,8 @@ class ImportHeaderSetDialog extends Component {
componentWillReceiveProps(nextProps, nextContext) {
if (nextProps.visible !== this.props.visible && nextProps.visible) {
this.setState({ itemsCheckeds: nextProps.selectItems });
+ } else {
+ this.setState({ itemsCheckeds: [], showOnlyChecked: false });
}
}
From fce72a71fce21b9d38bb54f15df7407380fbf651 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, 6 Mar 2024 14:33:28 +0800
Subject: [PATCH 24/24] hotfix/2.10.1.2402.01
---
.../hrmSalary/pages/payroll/templateBaseSettings.js | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
index d8a1eeb2..ace92ee2 100644
--- a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
+++ b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
@@ -70,8 +70,15 @@ class TemplateBaseSettings extends Component {
};
salaryBillBaseSetSave = () => {
const { watermark, watermarkStatus, wmSetting, ackFeedbackSetting, salaryBillViewingLimitSetting } = this.state;
- const { feedBackUrl, mobileFeedbackUrl } = ackFeedbackSetting;
- if (!feedBackUrl || !mobileFeedbackUrl) {
+ const { feedBackUrl, mobileFeedbackUrl, feedbackStatus, autoAckDays, ackStatus } = ackFeedbackSetting;
+ if (ackStatus === "1" && _.isNil(autoAckDays)) {
+ Modal.warning({
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
+ });
+ return;
+ }
+ if (feedbackStatus === "1" && (!feedBackUrl || !mobileFeedbackUrl)) {
Modal.warning({
title: getLabel(111, "信息确认"),
content: getLabel(111, "必要信息不完整,红色*为必填项!")