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 001/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 002/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 003/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 004/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 005/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 014/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 015/127] =?UTF-8?q?feature/2.10.1.2402.01-=E6=88=91?=
=?UTF-8?q?=E7=9A=84=E8=96=AA=E8=B5=84=E7=A6=8F=E5=88=A9=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E5=9F=BA=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 016/127] =?UTF-8?q?release/2.10.1.2402.01-=E4=B8=AA?=
=?UTF-8?q?=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 017/127] =?UTF-8?q?feature/2.10.1.2402.01-=E6=88=91?=
=?UTF-8?q?=E7=9A=84=E8=96=AA=E8=B5=84=E7=A6=8F=E5=88=A9=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E5=9F=BA=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 018/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 019/127] =?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 020/127] =?UTF-8?q?feature/2.10.1.2401.01-=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=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 021/127] =?UTF-8?q?feature/2.10.1.2402.01-=E7=A4=BE?=
=?UTF-8?q?=E4=BF=9D=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 022/127] =?UTF-8?q?feature/2.10.1.2402.01-=E7=A4=BE?=
=?UTF-8?q?=E4=BF=9D=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 023/127] =?UTF-8?q?feature/2.10.1.2402.01-=E7=A4=BE?=
=?UTF-8?q?=E4=BF=9D=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 024/127] 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, "必要信息不完整,红色*为必填项!")
From 439ed5c822760b519e448e25e032e4e68637dd1e 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 15:19:21 +0800
Subject: [PATCH 025/127] hotfix/2.10.1.2402.01
---
pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
index ace92ee2..059b9aa3 100644
--- a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
+++ b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
@@ -106,7 +106,7 @@ class TemplateBaseSettings extends Component {
render() {
const { watermarkStatus, watermark, watermarkSet, ackFeedbackSetting, salaryBillViewingLimitSetting } = this.state;
const { ackStatus, feedbackStatus, autoAckDays, feedBackUrl, mobileFeedbackUrl } = ackFeedbackSetting;
- const { limitMonth = 0 } = salaryBillViewingLimitSetting;
+ const { limitMonth } = salaryBillViewingLimitSetting;
return (
From f70d539ef451acba9751c580c580a718e6ca3349 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, 7 Mar 2024 09:09:07 +0800
Subject: [PATCH 026/127] =?UTF-8?q?=E6=97=A5=E5=BF=97bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/socialSecurityBenefits/welfareArchive/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
index 5ed371ad..f2844ef5 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
@@ -66,7 +66,7 @@ class Index extends Component {
}
});
};
- onDropMenuClick = (key) => {
+ onDropMenuClick = (key, targetid = "") => {
switch (key) {
case "import":
this.setState({
From dbc68102dd4b15f5543bba41bdcda7ffdec2a4ac 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, 7 Mar 2024 09:48:11 +0800
Subject: [PATCH 027/127] =?UTF-8?q?=E6=97=A5=E5=BF=97bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/employeeDetails.js | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/employeeDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/employeeDetails.js
index 17a73140..48816b74 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/employeeDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/employeeDetails.js
@@ -6,6 +6,7 @@
*/
import React, { Component } from "react";
import { WeaLocaleProvider, WeaTable } from "ecCom";
+import { Dropdown, Menu } from "antd";
import { statisticsEmployeeList } from "../../../apis/statistics";
import "../index.less";
@@ -57,8 +58,17 @@ class EmployeeDetails extends Component {
return
{getLabel(111, "查看")}
- this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ this.props.onFilterLog("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
;
}
}]
From d1f8f5d9aa68a555b51c169a1ae331b649eaaa3f 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, 7 Mar 2024 10:10:04 +0800
Subject: [PATCH 028/127] =?UTF-8?q?=E8=96=AA=E9=85=AC=E6=8A=A5=E8=A1=A8?=
=?UTF-8?q?=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/index.js | 5 +++++
.../reportView/components/statisticalMicroSettingsSlide.js | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/index.js b/pc4mobx/hrmSalary/apis/index.js
index eabea534..668d2591 100644
--- a/pc4mobx/hrmSalary/apis/index.js
+++ b/pc4mobx/hrmSalary/apis/index.js
@@ -35,3 +35,8 @@ export const getDetailChanges = params => {
};
return postFetch("/api/bs/hrmsalary/elog/getDetailChanges", payload);
};
+//获取薪资账套全列表
+export const getSalarysobListAll = params => {
+ return postFetch("/api/bs/hrmsalary/salarysob/listAll", params);
+};
+
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
index 8065a654..738e1fb6 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
@@ -31,7 +31,7 @@ import {
} from "../../../apis/statistics";
import { commonEnumList } from "../../../apis/ruleconfig";
import { getTaxAgentSelectList } from "../../../apis/taxAgent";
-import { getPayrollTemplateLedgerList } from "../../../apis/payroll";
+import { getSalarysobListAll } from "../../../apis";
import { condition } from "./condition";
import cs from "classnames";
import "../index.less";
@@ -70,7 +70,7 @@ class StatisticalMicroSettingsSlide extends Component {
}
getTaxAgentSelectList = async (props) => {
- const { data: salarySobList } = await getPayrollTemplateLedgerList();
+ const { data: salarySobList } = await getSalarysobListAll();
getTaxAgentSelectList(true).then(({ status, data }) => {
if (status) {
const conditions = _.map(condition, item => {
From 3b0f7bd5ce67e1658e4069196c48f66c9bc79472 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, 7 Mar 2024 10:31:56 +0800
Subject: [PATCH 029/127] =?UTF-8?q?=E8=96=AA=E9=85=AC=E6=8A=A5=E8=A1=A8?=
=?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../reportView/components/statisticalMicroSettingsSlide.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
index 738e1fb6..71baa2f7 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
@@ -85,7 +85,7 @@ class StatisticalMicroSettingsSlide extends Component {
} else if (getKey(child) === "salarySob") {
return {
...child, viewAttr: props.isShare ? 1 : child.viewAttr,
- options: _.map(salarySobList, o => ({ key: o.id, showname: o.content }))
+ options: _.map(salarySobList, o => ({ key: String(o.id), showname: o.name }))
};
}
return { ...child, viewAttr: props.isShare ? 1 : child.viewAttr };
From e4d272481c93ac2c88335b95fef9e7424e9c74b2 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, 11 Mar 2024 17:19:20 +0800
Subject: [PATCH 030/127] =?UTF-8?q?hotfix/3.0.0.2403.01=20=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E8=AE=BE=E7=BD=AE=E6=B7=BB=E5=8A=A0=E5=A4=B1?=
=?UTF-8?q?=E6=95=88=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/payroll/templateBaseSettings.js | 18 ++++++++++++++++--
.../pages/payrollFiles/salaryFiles.js | 2 +-
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
index 059b9aa3..ec910237 100644
--- a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
+++ b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
@@ -40,7 +40,7 @@ class TemplateBaseSettings extends Component {
mobileFeedbackUrl: ""
},
salaryBillViewingLimitSetting: {
- limitMonth: 0
+ limitMonth: 0, burningAfterReadingMin: null
}
};
}
@@ -106,7 +106,7 @@ class TemplateBaseSettings extends Component {
render() {
const { watermarkStatus, watermark, watermarkSet, ackFeedbackSetting, salaryBillViewingLimitSetting } = this.state;
const { ackStatus, feedbackStatus, autoAckDays, feedBackUrl, mobileFeedbackUrl } = ackFeedbackSetting;
- const { limitMonth } = salaryBillViewingLimitSetting;
+ const { limitMonth, burningAfterReadingMin } = salaryBillViewingLimitSetting;
return (
@@ -216,6 +216,20 @@ class TemplateBaseSettings extends Component {
style={{ marginLeft: 10 }}
placement="top"/>
+
+ {getLabel(111, "首次查看")}
+ this.setState({
+ salaryBillViewingLimitSetting: {
+ ...salaryBillViewingLimitSetting, burningAfterReadingMin
+ }
+ })}/>
+ {getLabel(111, "分钟后无法查看工资单")}
+
+
);
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
index 8ef3c6df..3c670d5c 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
@@ -224,7 +224,7 @@ class SalaryFiles extends Component {
message.warning(getLabel(543345, "请选择需要导出的数据!"));
return;
}
- payload = { ids: selectedRowKeys.join(",") };
+ payload = { ids: selectedRowKeys.join(","), runStatusList };
}
window.open(`${url}?${convertToUrlString(payload)}`, "_blank");
};
From dc49211090d08c69aa416f6781c1774b5b306400 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, 13 Mar 2024 09:26:29 +0800
Subject: [PATCH 031/127] =?UTF-8?q?hotfix/3.0.0.2403.01=20=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E8=AE=BE=E7=BD=AE=E6=B7=BB=E5=8A=A0=E5=A4=B1?=
=?UTF-8?q?=E6=95=88=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/index.js | 4 ++--
pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/index.js b/pc4mobx/hrmSalary/apis/index.js
index 668d2591..007bb6e6 100644
--- a/pc4mobx/hrmSalary/apis/index.js
+++ b/pc4mobx/hrmSalary/apis/index.js
@@ -26,14 +26,14 @@ export const getLogs = params => {
...params, module: "hrsa", dataset: "dataset", authParams: "{}", transMethod: "hrsa",
showColums: "[{\"columName\":\"操作时间\",\"columIndex\":\"createdate\",\"width\":\"5%\"},{\"columName\":\"操作人\",\"columIndex\":\"operatorname\",\"width\":\"2%\"},{\"columName\":\"操作类型\",\"columIndex\":\"operatetypename\",\"width\":\"5%\"},{\"columName\":\"对象\",\"columIndex\":\"targetname\",\"width\":\"4%\"},{\"columName\":\"修改详情\",\"columIndex\":\"operatedesc\",\"width\":\"2%\"},{\"columName\":\"客户端IP\",\"columIndex\":\"clientip\",\"width\":\"5%\"}]"
};
- return postFetch("/api/bs/hrmsalary/elog/getLogs", payload);
+ return postFetch("/api/bs/hrmelog/elog/getLogs", payload);
};
//获取单条操作记录的更新明细
export const getDetailChanges = params => {
const payload = {
...params, module: "hrsa", detailTransMethod: "elogDemoDetail"
};
- return postFetch("/api/bs/hrmsalary/elog/getDetailChanges", payload);
+ return postFetch("/api/bs/hrmelog/elog/getDetailChanges", payload);
};
//获取薪资账套全列表
export const getSalarysobListAll = params => {
diff --git a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
index ec910237..9eaa2ece 100644
--- a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
+++ b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
@@ -226,7 +226,7 @@ class TemplateBaseSettings extends Component {
})}/>
{getLabel(111, "分钟后无法查看工资单")}
From b1ddea5305f96022d50cf6e428d5bee93ef78f8c 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, 13 Mar 2024 11:22:54 +0800
Subject: [PATCH 032/127] =?UTF-8?q?hotfix/3.0.0.2403.01=20=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E8=AE=BE=E7=BD=AE=E6=B7=BB=E5=8A=A0=E5=A4=B1?=
=?UTF-8?q?=E6=95=88=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js b/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
index e57ffa58..cb1b28d3 100644
--- a/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
+++ b/pc4mobx/hrmSalary/pages/adjustSalaryManage/index.js
@@ -50,7 +50,7 @@ class Index extends Component {
effectiveTime: effectiveTime1 ? [effectiveTime1, effectiveTime2] : [],
operateTime: operateTime1 ? [operateTime1, operateTime2] : []
};
- this.setState({ loading: true });
+ this.setState({ loading: true, showSearchAd: false });
adjustRecordItemList(payload).then(({ status, data }) => {
this.setState({ loading: false });
if (status) {
From ffaf5dc036e80e6bc2bf7e8bf6748921f6251724 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, 13 Mar 2024 14:23:08 +0800
Subject: [PATCH 033/127] hotfix/3.0.0.2403.01
---
.../doCalc/components/salaryCalcPersonConfirm/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js
index 83588d5b..68b7245f 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js
@@ -173,10 +173,10 @@ class Index extends Component {
const { routeParams: { salaryAcctRecordId } } = this.props;
saveAcctemployee({ salaryAcctRecordId, employeeIds }).then(({ status, errormsg }) => {
if (status) {
- message.success(getLabel(541531, "添加成功!"));
+ message.success(getLabel(26712, "添加成功!"));
this.queryPCList();
} else {
- message.error(errormsg || getLabel(111, "添加失败!"));
+ message.error(errormsg || getLabel(545246, "添加失败!"));
}
});
};
From 0771ad9ed3e8530bdcf3aa3badffdc4809569872 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, 13 Mar 2024 17:27:49 +0800
Subject: [PATCH 034/127] =?UTF-8?q?hotfix/3.0.0.2403.01=20=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E9=87=87=E9=9B=86=E9=A1=B5=E9=9D=A2=E5=AF=BC=E5=85=A5?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/importDialog/index.less | 24 ++++++
.../cumDeduct/components/importFormCom.js | 2 +-
.../pages/dataAcquisition/cumDeduct/index.js | 59 ++-----------
.../dataAcquisition/cumSituation/index.js | 58 +------------
.../pages/dataAcquisition/importDialog.js | 84 +++++++++++++++++++
.../hrmSalary/pages/dataAcquisition/layout.js | 46 +++++-----
.../dataAcquisition/otherDeduct/index.js | 32 +------
.../specialAddDeduction/index.js | 54 +-----------
8 files changed, 152 insertions(+), 207 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/dataAcquisition/importDialog.js
diff --git a/pc4mobx/hrmSalary/components/importDialog/index.less b/pc4mobx/hrmSalary/components/importDialog/index.less
index 95cee40b..21d314d9 100644
--- a/pc4mobx/hrmSalary/components/importDialog/index.less
+++ b/pc4mobx/hrmSalary/components/importDialog/index.less
@@ -120,6 +120,30 @@
}
}
+ .import-option {
+ .screenWrapper {
+ padding: 0;
+ margin: 10px;
+ border: 1px solid #e5e5e5;
+
+ .wea-content {
+ padding: 0;
+ }
+
+ .wea-form-cell {
+ padding: 0 16px;
+
+ .wea-date-picker {
+ width: 85%;
+ }
+ }
+
+ .wea-helpful-tip {
+ padding-left: 10px;
+ }
+ }
+ }
+
}
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/importFormCom.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/importFormCom.js
index 0044f630..4746d846 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/importFormCom.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/importFormCom.js
@@ -32,7 +32,7 @@ class ImportFormCom extends Component {
value: taxAgentId || "",
onChange: this.screenChange,
options: [{ key: "", showname: "全部" }, ...taxAgentOption],
- key: "taxAgentId"
+ key: "taxAgentId", viewAttr: 3
})
}
];
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
index 5c3658fb..eaba3e5b 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
@@ -19,14 +19,13 @@ import {
editAddUpDeduction,
getAddUpDeduction,
getCumDeductSaCondition,
- importCumDeductParam,
- importCumDeductPreview
+ importCumDeductParam
} from "../../../apis/cumDeduct";
import DataTables from "../dataTables";
import AddItems from "../addItems";
import ImportFormCom from "./components/importFormCom";
import TableRecord from "../components/tableRecord";
-import { dataCollectCondition, modalColumns } from "./columns";
+import { dataCollectCondition } from "./columns";
import { removePropertyCondition } from "../../../util/response";
import { convertToUrlString } from "../../../util/url";
import Layout from "../layout";
@@ -59,10 +58,9 @@ class Index extends Component {
taxAgentId: ""
},
importFormComponent: null,
- step: 0,
templateLink: "/api/bs/hrmsalary/addUpDeduction/downloadTemplate",
importResult: {},
- slideDataSource: []
+ previewUrl: "/api/bs/hrmsalary/addUpDeduction/preview"
},
exportPayloadUrl: "",
exportPayloadType: false,
@@ -200,41 +198,6 @@ class Index extends Component {
exportPayloadUrl: `${window.location.origin}/api/bs/hrmsalary/addUpDeduction/export?ids=${ids.join(",")}&declareMonth=${declareMonth}&taxAgentId=${taxAgentId}`
});
};
- /*
- * Author: 黎永顺
- * Description: 导入数据采集数据
- * Params:
- * Date: 2023/2/20
- */
- handleImportFile = (params) => {
- importCumDeductParam(params).then(({ status, data }) => {
- if (status) {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, importResult: data }
- });
- }
- });
- };
- /*
- * Author: 黎永顺
- * Description: 导入数据采集-数据查看
- * Params:
- * Date: 2023/2/20
- */
- handlePreviewImport = (params) => {
- importCumDeductPreview(params).then(({ status, data, errormsg }) => {
- if (status) {
- const { preview = [] } = data;
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, slideDataSource: preview }
- });
- } else {
- message.error(errormsg || "预览失败");
- }
- });
- };
/*
* Author: 黎永顺
* Description: 数据采集-信息保存
@@ -530,12 +493,6 @@ class Index extends Component {
importPayload: { ...importPayload, importOpts: { ...importOpts, [key]: value } }
});
};
- handleImportSetStep = (step) => {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, step }
- });
- };
render() {
const { taxAgentStore: { showOperateBtn }, cumDeductStore: { form } } = this.props;
@@ -551,11 +508,9 @@ class Index extends Component {
slideLoading={saveLoading} exportPayloadUrl={exportPayloadUrl}
exportPayloadType={exportPayloadType} logFunction="addupdeduction"
form={form} condition={advanceCondition} onAdSearch={this.handleAdSearch}
- onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
- importPayload={importPayload} onImportFile={this.handleImportFile}
- onPreviewImport={this.handlePreviewImport} detailOptBtns={this.getDetailOptBtns()}
+ onCancel={this.handleCloseImport} onImportFile={importCumDeductParam}
+ importPayload={importPayload} detailOptBtns={this.getDetailOptBtns()}
targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
- columns={modalColumns}
>
this.tableRef = dom}
@@ -588,9 +543,9 @@ export const DataCollectionDatePicker = (props) => {
;
};
export const DataCollectionSelect = (props) => {
- const { value, label, onChange, options, key, labelCol = 10, wrapperCol = 14 } = props;
+ const { value, label, onChange, options, key, labelCol = 10, wrapperCol = 14, viewAttr = 2 } = props;
return
- onChange({ key, value: val })} options={options}/>
+ onChange({ key, value: val })} options={options} viewAttr={viewAttr}/>
;
};
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js
index d6b70c9c..dd32ab7c 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js
@@ -15,8 +15,7 @@ import {
editAddUpSituation,
getAddUpSituation,
getCumSituationSaCondition,
- importCumSituationParam,
- importCumSituationPreview
+ importCumSituationParam
} from "../../../apis/cumSituation";
import { removePropertyCondition } from "../../../util/response";
import DataTables from "../dataTables";
@@ -27,7 +26,6 @@ import moment from "moment";
import { dataCollectCondition, taxOptions } from "./columns";
import AddItems from "../addItems";
import TableRecord from "../components/tableRecord";
-import { situationModalColumns } from "../cumDeduct/columns";
import { convertToUrlString } from "../../../util/url";
const getKey = WeaTools.getKey;
@@ -57,10 +55,9 @@ class Index extends Component {
declareMonth: moment(new Date()).format("YYYY-MM")
},
importFormComponent: null,
- step: 0,
templateLink: "/api/bs/hrmsalary/addUpSituation/downloadTemplate",
importResult: {},
- slideDataSource: []
+ previewUrl: "/api/bs/hrmsalary/addUpSituation/preview"
},
exportPayloadUrl: "",
exportPayloadType: false,
@@ -126,46 +123,6 @@ class Index extends Component {
});
}
};
- /*
- * Author: 黎永顺
- * Description: 导入数据采集数据
- * Params:
- * Date: 2023/2/20
- */
- handleImportFile = (params) => {
- const { declareMonth, ...extra } = params;
- const payload = {
- taxYearMonth: declareMonth,
- ...extra
- };
- importCumSituationParam(payload).then(({ status, data }) => {
- if (status) {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, importResult: data }
- });
- }
- });
- };
- /*
- * Author: 黎永顺
- * Description: 导入数据采集-数据查看
- * Params:
- * Date: 2023/2/20
- */
- handlePreviewImport = (params) => {
- importCumSituationPreview(params).then(({ status, data, errormsg }) => {
- if (status) {
- const { preview = [] } = data;
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, slideDataSource: preview }
- });
- } else {
- message.error(errormsg || "预览失败");
- }
- });
- };
/*
* Author: 黎永顺
* Description:列表操作
@@ -485,12 +442,6 @@ class Index extends Component {
importPayload: { ...importPayload, importOpts: { ...importOpts, [key]: value } }
});
};
- handleImportSetStep = (step) => {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, step }
- });
- };
/*
* Author: 黎永顺
* Description:详情页面-操作按钮
@@ -555,10 +506,9 @@ class Index extends Component {
slideLoading={saveLoading} exportPayloadUrl={exportPayloadUrl}
exportPayloadType={exportPayloadType} logFunction="addupsituation"
form={form} condition={advanceCondition} onAdSearch={this.handleAdSearch}
- onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
+ onCancel={this.handleCloseImport} onImportFile={importCumSituationParam}
+ detailOptBtns={this.getDetailOptBtns()}
importPayload={{ ...importPayload, importOpts: { taxYearMonth: importPayload.importOpts.declareMonth } }}
- onImportFile={this.handleImportFile} columns={situationModalColumns}
- onPreviewImport={this.handlePreviewImport} detailOptBtns={this.getDetailOptBtns()}
targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
>
{
+ const { importDialog } = this.state, { onImportFile, importOpts } = this.props;
+ this.setState({ importDialog: { ...importDialog, nextloading: true } });
+ onImportFile({ ...payload, ...importOpts }).then(({ data, status }) => {
+ this.setState({ importDialog: { ...importDialog, nextloading: false } });
+ if (status) {
+ this.setState({
+ importDialog: { ...importDialog, ...payload, importResult: data }
+ });
+ }
+ }).catch(() => this.setState({ importDialog: { ...importDialog, nextloading: false } }));
+ };
+
+ render() {
+ const { importDialog, hasData } = this.state;
+ const { visible, onCancel, importParams, templateLink, importOpts } = this.props;
+ return (
+ this.setState({
+ importDialog: { ...importDialog, importResult: {}, imageId: "", link: "" }
+ })}
+ exportDataDom={
+ this.setState({ hasData: val === "1" }, () => {
+ this.setState({
+ importDialog: {
+ ...importDialog,
+ link: `${templateLink}?${convertToUrlString({ ...importOpts, hasData: this.state.hasData })}`
+ }
+ });
+ })}
+ />
+ }
+ nextCallback={imageId => this.setState({ importDialog: { ...importDialog, imageId } })}
+ nextUplaodCallback={imageId => this.handleImport({ imageId })}
+ />
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js b/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
index 587f2785..0c42281c 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
@@ -8,11 +8,11 @@ import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
import { WeaLocaleProvider, WeaNewScroll, WeaSlideModal, WeaTab, WeaTop } from "ecCom";
-import ImportModal from "../../components/importModal";
+import ImportModal from "./importDialog";
+import LogDialog from "../../components/logViewModal";
import SlideModalTitle from "../../components/slideModalTitle";
import { getSearchs } from "../../util";
import "./index.less";
-import LogDialog from "../../components/logViewModal";
const getLabel = WeaLocaleProvider.getLabel;
@@ -78,14 +78,13 @@ class Layout extends Component {
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, onClearTargrtid
+ slidePayload, onClose, onSave, slideLoading, form, condition, onImportFile,
+ onAdSearch, onCancel, importPayload, detailOptBtns, logFunction, onClearTargrtid
} = this.props;
const { visible, title: subtitle, children: slideChildren } = slidePayload;
const {
- visible: importVisiable, step, importFormComponent, importOpts,
- importResult, slideDataSource, templateLink
+ visible: importVisiable, importFormComponent, importOpts,
+ importResult, templateLink, previewUrl
} = importPayload;
return (
@@ -115,21 +114,26 @@ class Layout extends Component {
{children}
{/*导入弹框*/}
onCancel(true)}
- slideDataSource={slideDataSource}
- previewImport={onPreviewImport}
- importFile={onImportFile}
- templateLink={templateLink}
- renderFormComponent={() => importFormComponent}
- visiable={importVisiable}
- onCancel={onCancel}
+ visible={importVisiable} onCancel={onCancel} importParams={importFormComponent}
+ importOpts={importOpts} importResult={importResult} templateLink={templateLink}
+ previewUrl={previewUrl} onImportFile={onImportFile}
/>
+ {/* onCancel(true)}*/}
+ {/* slideDataSource={slideDataSource}*/}
+ {/* previewImport={onPreviewImport}*/}
+ {/* importFile={onImportFile}*/}
+ {/* templateLink={templateLink}*/}
+ {/* renderFormComponent={() => importFormComponent}*/}
+ {/* visiable={importVisiable}*/}
+ {/* onCancel={onCancel}*/}
+ {/*/>*/}
{/* 新增-编辑-详情弹框 */}
{
- importOtherDeductionParam(params).then(({ status, data }) => {
- if (status) {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, importResult: data }
- });
- }
- });
- };
/*
* Author: 黎永顺
* Description: 导入数据采集-数据查看
@@ -479,12 +461,6 @@ class Index extends Component {
importPayload: { ...importPayload, importOpts: { ...importOpts, [key]: value } }
});
};
- handleImportSetStep = (step) => {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, step }
- });
- };
/*
* Author: 黎永顺
* Description:详情页面-操作按钮
@@ -549,11 +525,9 @@ class Index extends Component {
slideLoading={saveLoading} exportPayloadUrl={exportPayloadUrl}
exportPayloadType={exportPayloadType} logFunction="otherdeduction"
form={form} condition={advanceCondition} onAdSearch={this.handleAdSearch}
- onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
- importPayload={importPayload} onImportFile={this.handleImportFile}
- onPreviewImport={this.handlePreviewImport} detailOptBtns={this.getDetailOptBtns()}
+ onCancel={this.handleCloseImport} importPayload={importPayload}
+ detailOptBtns={this.getDetailOptBtns()} onImportFile={importOtherDeductionParam}
targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
- columns={otherModalColumns}
>
this.tableRef = dom}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/specialAddDeduction/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/specialAddDeduction/index.js
index 25288174..fe79d45f 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/specialAddDeduction/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/specialAddDeduction/index.js
@@ -11,8 +11,7 @@ import {
specialAddDeductionDeleteAllData,
specialAddDeductionDeleteSelectData,
specialAddDeductionEditData,
- specialAddDeductionImportData,
- specialAddDeductionPreview
+ specialAddDeductionImportData
} from "../../../apis/special";
import { removePropertyCondition } from "../../../util/response";
import { DataCollectionSelect } from "../cumDeduct";
@@ -20,7 +19,6 @@ import ImportFormCom from "../cumDeduct/components/importFormCom";
import { condition } from "./components/condition";
import AddItems from "../addItems";
import TableRecord from "../components/tableRecord";
-import { specialModalColumns } from "../cumDeduct/columns";
import { convertToUrlString } from "../../../util/url";
const getKey = WeaTools.getKey;
@@ -47,10 +45,9 @@ class Index extends Component {
taxAgentId: ""
},
importFormComponent: null,
- step: 0,
templateLink: "/api/bs/hrmsalary/specialAddDeduction/downloadTemplate",
importResult: {},
- slideDataSource: []
+ previewUrl: "/api/bs/hrmsalary/specialAddDeduction/preview"
},
exportPayloadUrl: "",
exportPayloadType: false,
@@ -101,41 +98,6 @@ class Index extends Component {
});
}
};
- /*
- * Author: 黎永顺
- * Description: 导入数据采集数据
- * Params:
- * Date: 2023/2/20
- */
- handleImportFile = (params) => {
- specialAddDeductionImportData(params).then(({ status, data }) => {
- if (status) {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, importResult: data }
- });
- }
- });
- };
- /*
- * Author: 黎永顺
- * Description: 导入数据采集-数据查看
- * Params:
- * Date: 2023/2/20
- */
- handlePreviewImport = (params) => {
- specialAddDeductionPreview(params).then(({ status, data, errormsg }) => {
- if (status) {
- const { preview = [] } = data;
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, slideDataSource: preview }
- });
- } else {
- message.error(errormsg || "预览失败");
- }
- });
- };
/*
* Author: 黎永顺
* Description: 高级搜素框-表单项
@@ -439,12 +401,6 @@ class Index extends Component {
importPayload: { ...importPayload, importOpts: { ...importOpts, [key]: value } }
});
};
- handleImportSetStep = (step) => {
- const { importPayload } = this.state;
- this.setState({
- importPayload: { ...importPayload, step }
- });
- };
render() {
const { taxAgentStore: { showOperateBtn }, specialAddStore: { advanceForm } } = this.props;
@@ -460,11 +416,9 @@ class Index extends Component {
slideLoading={saveLoading} exportPayloadUrl={exportPayloadUrl}
exportPayloadType={exportPayloadType} logFunction="specialAddDeduction"
form={advanceForm} condition={advanceCondition} onAdSearch={this.handleAdSearch}
- onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
- importPayload={importPayload} onImportFile={this.handleImportFile}
- onPreviewImport={this.handlePreviewImport} detailOptBtns={[]}
+ onCancel={this.handleCloseImport} detailOptBtns={[]}
+ importPayload={importPayload} onImportFile={specialAddDeductionImportData}
targetid={targetid} onClearTargrtid={() => this.setState({ targetid: "" })}
- columns={specialModalColumns}
>
this.tableRef = dom}
From 0a23b261b198e250c2fc03d3d02060f151910041 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, 14 Mar 2024 10:14:06 +0800
Subject: [PATCH 035/127] release/3.0.0.2403.01
---
pc4mobx/hrmSalary/apis/index.js | 2 +-
pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/apis/index.js b/pc4mobx/hrmSalary/apis/index.js
index 007bb6e6..4cb3b93c 100644
--- a/pc4mobx/hrmSalary/apis/index.js
+++ b/pc4mobx/hrmSalary/apis/index.js
@@ -24,7 +24,7 @@ export const getTableDatas = (params) => {
export const getLogs = params => {
const payload = {
...params, module: "hrsa", dataset: "dataset", authParams: "{}", transMethod: "hrsa",
- showColums: "[{\"columName\":\"操作时间\",\"columIndex\":\"createdate\",\"width\":\"5%\"},{\"columName\":\"操作人\",\"columIndex\":\"operatorname\",\"width\":\"2%\"},{\"columName\":\"操作类型\",\"columIndex\":\"operatetypename\",\"width\":\"5%\"},{\"columName\":\"对象\",\"columIndex\":\"targetname\",\"width\":\"4%\"},{\"columName\":\"修改详情\",\"columIndex\":\"operatedesc\",\"width\":\"2%\"},{\"columName\":\"客户端IP\",\"columIndex\":\"clientip\",\"width\":\"5%\"}]"
+ showColums: "[{\"columName\":\"操作时间\",\"columIndex\":\"createdate\",\"width\":\"5%\"},{\"columName\":\"操作人\",\"columIndex\":\"operatorname\",\"width\":\"2%\"},{\"columName\":\"操作类型\",\"columIndex\":\"operatetypename\",\"width\":\"5%\"},{\"columName\":\"对象\",\"columIndex\":\"targetname\",\"width\":\"4%\"},{\"columName\":\"客户端IP\",\"columIndex\":\"clientip\",\"width\":\"5%\"},{\"columName\":\"修改详情\",\"columIndex\":\"operatedesc\",\"width\":\"2%\"}]"
};
return postFetch("/api/bs/hrmelog/elog/getLogs", payload);
};
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
index 45049a14..3e50d8ad 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -43,6 +43,11 @@ class RuleConfig extends Component {
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 };
+ } else if (getKey(o) === "taxDeclarationFunction") {
+ return {
+ ...o,
+ viewAttr: (_.isNil(sysinfo.taxDeclarationFunction) || sysinfo.taxDeclarationFunction !== "0") ? 2 : 1
+ };
}
return { ...o };
})
@@ -189,6 +194,7 @@ class RuleConfig extends Component {
API.operateTaxDeclarationFunction({ operateTaxDeclaration }).then(({ status, errormsg }) => {
if (status) {
message.success(getLabel(22619, "保存成功!"));
+ const promise = this.init();
} else {
message.error(errormsg || getLabel(22620, "保存失败!"));
}
From 5e3c20edc072ba092c0b8fa634e1a0b205dad30d 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, 15 Mar 2024 09:19:59 +0800
Subject: [PATCH 036/127] release/3.0.0.2403.01
---
pc4mobx/hrmSalary/apis/index.js | 2 +-
.../components/importDialog/index.less | 24 ++++
.../components/selectItemsModal/index.js | 12 +-
.../components/selectItemsModal/index.less | 2 +-
.../selectItemsModal/selectItemsWrapper.js | 13 +-
.../components/attendanceCustomFieldsModal.js | 10 +-
.../components/attendanceDataComp.js | 133 +++++-------------
.../components/attendanceRefrenceDataModal.js | 17 +--
.../attendance/components/importDialog.js | 82 +++++++++++
.../components/importFormOptions.js | 5 +-
.../attendance/components/index.less | 4 -
.../pages/dataAcquisition/attendance/index.js | 7 +-
.../dataAcquisition/attendance/index.less | 2 +-
.../pages/dataAcquisition/cumDeduct/index.js | 3 +-
.../pages/dataAcquisition/dataTables.js | 5 +-
.../pages/dataAcquisition/importDialog.js | 22 ++-
pc4mobx/hrmSalary/stores/attendanceStore.js | 2 +
17 files changed, 202 insertions(+), 143 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importDialog.js
diff --git a/pc4mobx/hrmSalary/apis/index.js b/pc4mobx/hrmSalary/apis/index.js
index 007bb6e6..4cb3b93c 100644
--- a/pc4mobx/hrmSalary/apis/index.js
+++ b/pc4mobx/hrmSalary/apis/index.js
@@ -24,7 +24,7 @@ export const getTableDatas = (params) => {
export const getLogs = params => {
const payload = {
...params, module: "hrsa", dataset: "dataset", authParams: "{}", transMethod: "hrsa",
- showColums: "[{\"columName\":\"操作时间\",\"columIndex\":\"createdate\",\"width\":\"5%\"},{\"columName\":\"操作人\",\"columIndex\":\"operatorname\",\"width\":\"2%\"},{\"columName\":\"操作类型\",\"columIndex\":\"operatetypename\",\"width\":\"5%\"},{\"columName\":\"对象\",\"columIndex\":\"targetname\",\"width\":\"4%\"},{\"columName\":\"修改详情\",\"columIndex\":\"operatedesc\",\"width\":\"2%\"},{\"columName\":\"客户端IP\",\"columIndex\":\"clientip\",\"width\":\"5%\"}]"
+ showColums: "[{\"columName\":\"操作时间\",\"columIndex\":\"createdate\",\"width\":\"5%\"},{\"columName\":\"操作人\",\"columIndex\":\"operatorname\",\"width\":\"2%\"},{\"columName\":\"操作类型\",\"columIndex\":\"operatetypename\",\"width\":\"5%\"},{\"columName\":\"对象\",\"columIndex\":\"targetname\",\"width\":\"4%\"},{\"columName\":\"客户端IP\",\"columIndex\":\"clientip\",\"width\":\"5%\"},{\"columName\":\"修改详情\",\"columIndex\":\"operatedesc\",\"width\":\"2%\"}]"
};
return postFetch("/api/bs/hrmelog/elog/getLogs", payload);
};
diff --git a/pc4mobx/hrmSalary/components/importDialog/index.less b/pc4mobx/hrmSalary/components/importDialog/index.less
index 21d314d9..4c9430f2 100644
--- a/pc4mobx/hrmSalary/components/importDialog/index.less
+++ b/pc4mobx/hrmSalary/components/importDialog/index.less
@@ -142,6 +142,30 @@
padding-left: 10px;
}
}
+
+ .attendanceFormWrapper {
+ padding: 0 10px;
+ margin: 10px 0;
+ border: 1px solid #e5e5e5;
+
+ .wea-form-cell {
+ padding: 0 !important;
+ }
+
+ .wea-select, .ant-select-selection, .ant-select {
+ width: 100%;
+ }
+
+ .wea-select {
+ display: inline-block;
+ position: relative;
+ }
+
+ .ant-select-selection {
+ height: 30px;
+ border-radius: 0;
+ }
+ }
}
}
diff --git a/pc4mobx/hrmSalary/components/selectItemsModal/index.js b/pc4mobx/hrmSalary/components/selectItemsModal/index.js
index b7d01a5d..cae0464d 100644
--- a/pc4mobx/hrmSalary/components/selectItemsModal/index.js
+++ b/pc4mobx/hrmSalary/components/selectItemsModal/index.js
@@ -9,7 +9,6 @@ import { WeaCheckbox, WeaDialog, WeaInputSearch } from "ecCom";
import { Button } from "antd";
import "./index.less";
-
export default class SelectItemModal extends React.Component {
constructor(props) {
super(props);
@@ -58,10 +57,19 @@ export default class SelectItemModal extends React.Component {
const bottomLeft = ;
return (
{children}
diff --git a/pc4mobx/hrmSalary/components/selectItemsModal/index.less b/pc4mobx/hrmSalary/components/selectItemsModal/index.less
index 6486a98c..7572d9da 100644
--- a/pc4mobx/hrmSalary/components/selectItemsModal/index.less
+++ b/pc4mobx/hrmSalary/components/selectItemsModal/index.less
@@ -19,7 +19,7 @@
flex-wrap: wrap;
li {
- width: 124px;
+ width: 140px;
overflow: hidden;
padding: 4px 0;
diff --git a/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js b/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js
index 1a0d44d0..81c29aed 100644
--- a/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js
+++ b/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js
@@ -11,21 +11,22 @@ class SelectItemsWrapper extends Component {
constructor(props) {
super(props);
this.state = {
- searchVal: "",
- selectItem: [],
- groupItem: [],
- showOnlyChecked: false
+ searchVal: "", selectItem: [], groupItem: [], showOnlyChecked: false
};
}
componentDidMount() {
- const { dataSource } = this.props
+ this.initSelectItem();
+ }
+
+ initSelectItem = () => {
+ const { dataSource } = this.props;
this.setState({
selectItem: _.map(_.filter(_.reduce(dataSource, (pre, cur) => {
return [...pre, ...cur.items];
}, []), item => !!item.checked), it => it.id)
});
- }
+ };
handleSearchItemSet = (searchVal) => this.setState({ searchVal });
handleShowOnlyChecked = (showOnlyChecked) => this.setState({ showOnlyChecked: !!Number(showOnlyChecked) });
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceCustomFieldsModal.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceCustomFieldsModal.js
index 0bbc46f0..aa7fd242 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceCustomFieldsModal.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceCustomFieldsModal.js
@@ -22,7 +22,9 @@ class AttendanceCustomFieldsModal extends Component {
}
componentWillReceiveProps(nextProps, nextContext) {
+ const { attendanceStore: { initForm } } = nextProps;
if (nextProps.visible !== this.props.visible && nextProps.visible) this.handleResetForm();
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) initForm();
}
@@ -62,12 +64,8 @@ class AttendanceCustomFieldsModal extends Component {
保存
];
return (
-
- {getSearchs(form, conditions, 1)}
+
+ {getSearchs(form, conditions, 1)}
);
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataComp.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataComp.js
index cd8ec31a..dd103159 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataComp.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataComp.js
@@ -14,14 +14,13 @@ import {
getLedgerList,
getSalaryCycleAndAttendCycle,
importAttendQuoteData,
- previewAttendQuote,
returnToAttendanceFieldSettingDefault,
saveAttendanceFieldSetting,
saveAttendanceFieldSettingAsDefault
} from "../../../../apis/attendance";
-import ImportModal from "../../../../components/importModal";
-import HeaderSet from "../../../../components/importModal/headerSet";
-import ImportFormOptions from "./importFormOptions";
+import ImportModal from "./importDialog";
+// import HeaderSet from "../../../../components/importModal/headerSet";
+// import ImportFormOptions from "./importFormOptions";
import SelectItemModal from "../../../../components/selectItemsModal";
import moment from "moment";
import SelectItemsWrapper from "../../../../components/selectItemsModal/selectItemsWrapper";
@@ -45,10 +44,7 @@ class AttendanceDataComp extends Component {
pageSize: 10,
total: 0
},
- importData: {
- visiable: false, params: {}, step: 0,
- columns: [], slideDataSource: [], importResult: []
- },
+ importData: { visible: false, params: {} },
importFormPayload: {
salaryYearMonth: moment().format("YYYY-MM"), salarySobList: [],
salarySobId: "", salaryCycle: "", attendCycle: ""
@@ -87,15 +83,24 @@ class AttendanceDataComp extends Component {
}
}).catch(() => this.setState({ loading: { ...loading, query: false } }));
};
- getLedgerList = () => {
+ getLedgerList = (importData) => {
const { importFormPayload } = this.state;
getLedgerList().then(({ status, data }) => {
if (status) {
this.setState({
importFormPayload: {
- ...importFormPayload,
+ ...importFormPayload, salarySobId: _.head(data).id,
salarySobList: _.map(data, it => ({ key: it.id, showname: it.content }))
}
+ }, async () => {
+ const { importFormPayload } = this.state;
+ const { salaryYearMonth, salarySobId } = importFormPayload;
+ const payload = { salaryYearMonthStr: salaryYearMonth, salarySobId };
+ const { data } = await getSalaryCycleAndAttendCycle(payload);
+ this.setState({
+ importData: { ...importData, params: { salaryYearMonth, salarySobId } },
+ importFormPayload: { ...importFormPayload, ...data }
+ });
});
}
});
@@ -154,64 +159,12 @@ class AttendanceDataComp extends Component {
}
});
};
- handleImportAttendanceData = (importData) => {
- const { importFormPayload } = this.state;
- const { salaryYearMonth, salarySobId } = importFormPayload;
- this.getLedgerList();
- this.setState({ importData: { ...importData, params: { salaryYearMonth, salarySobId } } });
- };
- setStep = step => this.setState({ importData: { ...this.state.importData, step } });
- handleFinish = () => {
+ handleImportAttendanceData = (importData) => this.getLedgerList(importData);
+ handleFinish = (isFresh) => {
const { importData } = this.state;
- const { step } = importData;
this.setState({
- importData: {
- ...importData, visiable: false, params: {}, step: 0,
- columns: [], slideDataSource: [], importResult: []
- }
- });
- step === 2 && this.getAttendanceList();
- };
- handlePreviewImport = (params) => {
- const { importData } = this.state;
- previewAttendQuote(params).then(({ status, data }) => {
- if (status) {
- const { headers, list } = data;
- this.setState({
- importData: {
- ...importData,
- columns: _.map(headers, (it, dataIndex) => ({ title: it, dataIndex })),
- slideDataSource: _.map(list, item => {
- return _.reduce(item, (pre, cur, key) => (_.assign(pre, { [key]: cur })), {});
- })
- }
- });
- }
- });
- };
- handleImport = (params) => {
- const { importData } = this.state;
- const { step } = importData;
- importAttendQuoteData(params).then(({ status, data }) => {
- if (status) {
- this.setState({
- importData: {
- ...importData,
- step: step + 1,
- importResult: data
- }
- });
- }
- });
- };
- handleTemplateLinkClick = () => {
- const { importFormPayload } = this.state;
- const { salarySobId, salaryYearMonth } = importFormPayload;
- if (!salarySobId || !salaryYearMonth) {
- message.warning("请完善导入选项,再下载");
- return;
- }
- window.open(`/api/bs/hrmsalary/attendQuote/downloadTemplate?salaryYearMonth=${salaryYearMonth}&salarySobId=${salarySobId}`);
+ importData: { ...importData, visible: false, params: {} }
+ }, () => isFresh && this.getAttendanceList());
};
/*
* Author: 黎永顺
@@ -236,7 +189,7 @@ class AttendanceDataComp extends Component {
onSelectItem={this.handleSelectItem}
/>
}
- });
+ }, () => this.setItemRef && this.setItemRef.initSelectItem());
}
}).catch(() => this.setState({ loading: { ...loading, headset: false } }));
};
@@ -392,46 +345,30 @@ class AttendanceDataComp extends Component {
}
}
]}
- dataSource={dataSource}
- pagination={pagination}
- loading={loading.query}
- />
+ dataSource={dataSource} pagination={pagination} loading={loading.query}/>
{/* 考勤引用导入 */}
- this.handleHeaderSettings({ sourceType: "IMPORT" })}/>}
- renderFormComponent={() =>
- }
+
{/* 表头设置 */}
+ onMoreOpts={this.handleMoreOpts} onSave={this.handleSave}/>
{/* 考勤数据引用 */}
-
+
{/* 考勤数据查看 */}
- this.setState({
- attendanceViewPayload: {
- ...attendanceViewPayload,
- visible: false,
- attendQuoteId: ""
- }
- })}
- />
+ this.setState({
+ attendanceViewPayload: {
+ ...attendanceViewPayload,
+ visible: false,
+ attendQuoteId: ""
+ }
+ })}/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceRefrenceDataModal.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceRefrenceDataModal.js
index 2308b556..14de4956 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceRefrenceDataModal.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceRefrenceDataModal.js
@@ -13,7 +13,10 @@ import { getSearchs } from "../../../../util";
import {
checkOperation,
getAttendanceFieldSettingList,
- getLedgerList, returnToAttendanceFieldSettingDefault, saveAttendanceFieldSetting, saveAttendanceFieldSettingAsDefault,
+ getLedgerList,
+ returnToAttendanceFieldSettingDefault,
+ saveAttendanceFieldSetting,
+ saveAttendanceFieldSettingAsDefault,
syncAttendanceRefer
} from "../../../../apis/attendance";
import SelectItemModal from "../../../../components/selectItemsModal";
@@ -124,7 +127,7 @@ class AttendanceRefrenceDataModal extends Component {
onSelectItem={this.handleSelectItem}
/>
}
- });
+ }, () => this.setItemRef && this.setItemRef.initSelectItem());
}
}).catch(() => this.setState({ headerSetLoading: false }));
};
@@ -209,12 +212,10 @@ class AttendanceRefrenceDataModal extends Component {
表头设置
];
return (
-
- {getSearchs(refenceform, condition, 1)}
+
+
+ {getSearchs(refenceform, condition, 1)}
+
{/* 表头设置 */}
{
+ const { hasData } = this.state;
+ const { importFormPayload } = this.props;
+ const { salarySobId, salaryYearMonth } = importFormPayload;
+ if (!salarySobId || !salaryYearMonth) {
+ Modal.warning({
+ title: getLabel(131329, "信息确认"),
+ content: getLabel(518702, "必要信息不完整,红色*为必填项!")
+ });
+ return;
+ }
+ window.open(`/api/bs/hrmsalary/attendQuote/downloadTemplate?salaryYearMonth=${salaryYearMonth}&salarySobId=${salarySobId}`);
+ };
+ handleImport = (payload) => {
+ const { importDialog } = this.state, { importAttendQuoteData, params } = this.props;
+ this.setState({ importDialog: { ...importDialog, nextloading: true } });
+ importAttendQuoteData({ ...payload, ...params }).then(({ data, status }) => {
+ this.setState({ importDialog: { ...importDialog, nextloading: false } });
+ if (status) {
+ this.setState({
+ importDialog: { ...importDialog, ...payload, importResult: data }
+ });
+ }
+ }).catch(() => this.setState({ importDialog: { ...importDialog, nextloading: false } }));
+ };
+
+ render() {
+ const { importDialog } = this.state;
+ const {
+ visible, onCancel, importFormPayload, onChangeImportForm, onHeaderSettings, loading
+ } = this.props;
+ return (
+ this.setState({
+ importDialog: { ...importDialog, importResult: {}, imageId: "", link: "" }
+ })}
+ importParams={}
+ exportDataDom={ onHeaderSettings({ sourceType: "IMPORT" })}/>}
+ nextCallback={imageId => this.setState({ importDialog: { ...importDialog, imageId } })}
+ nextUplaodCallback={imageId => this.handleImport({ imageId })}
+ />
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importFormOptions.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importFormOptions.js
index f16d18f3..08dfe2c2 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importFormOptions.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importFormOptions.js
@@ -40,8 +40,9 @@ class ImportFormOptions extends Component {
label: "薪资账套",
value: salarySobId || "",
onChange: this.screenChange,
- options: [{ key: "", showname: "" }, ...salarySobList],
- key: "salarySobId"
+ options: salarySobList,
+ key: "salarySobId",
+ viewAttr: 3
})
},
{ com: Input("薪资周期", salaryCycle) },
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less
index 6e340057..640d1b83 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less
@@ -18,10 +18,6 @@
}
}
-.attendanceFormWrapper {
- padding: 0;
-}
-
.attendanceSlideWrapper {
.wea-slide-modal-title {
height: initial;
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js
index 7f4c67c1..e27fc31e 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js
@@ -57,12 +57,7 @@ class Index extends Component {
};
handleChangeSalaryMonth = (salaryMonth) => this.setState({ salaryMonth }, () => this.attendanceTableRef.getAttendanceList({ salaryYearMonth: _.compact(this.state.salaryMonth) }));
handleAddAttendFileds = () => this.fieldMangRef.handleTriggerAttendFileds();
- handleImportAttendanceData = () => {
- this.attendanceTableRef.handleImportAttendanceData({
- visiable: true, params: {}, step: 0,
- columns: [], slideDataSource: [], importResult: []
- });
- };
+ handleImportAttendanceData = () => this.attendanceTableRef.handleImportAttendanceData({ visible: true, params: {} });
handleQuoteAttendanceData = () => {
this.attendanceTableRef.handleQuoteAttendanceData({
visible: true, title: "引用考勤数据"
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less
index e4dae347..fafbff7c 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.less
@@ -4,7 +4,7 @@
flex-direction: column;
.wea-form-item {
- padding: 8px 16px;
+ padding: 8px 16px 0 16px;
.to {
padding: 0 10px
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
index eaba3e5b..5d9db24e 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
@@ -545,7 +545,8 @@ export const DataCollectionDatePicker = (props) => {
export const DataCollectionSelect = (props) => {
const { value, label, onChange, options, key, labelCol = 10, wrapperCol = 14, viewAttr = 2 } = props;
return
- onChange({ key, value: val })} options={options} viewAttr={viewAttr}/>
+ onChange({ key, value: val })} options={options}
+ viewAttr={viewAttr}/>
;
};
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js b/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js
index 742c7894..e677d531 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/dataTables.js
@@ -35,7 +35,10 @@ class DataTables extends Component {
getTableDate = (extraPayload = {}) => {
const { loading, pageInfo } = this.state;
const { url, payload } = this.props;
- const module = { ...pageInfo, url, ...payload, ...extraPayload };
+ const module = {
+ ...pageInfo, url, ...payload, ...extraPayload,
+ departmentIds: extraPayload.departmentIds ? extraPayload.departmentIds.split(",") : []
+ };
this.setState({ loading: { ...loading, query: true } });
getTableDate(module).then(({ status, data }) => {
this.setState({ loading: { ...loading, query: false } });
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/importDialog.js b/pc4mobx/hrmSalary/pages/dataAcquisition/importDialog.js
index 1cc14192..0e1777e9 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/importDialog.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/importDialog.js
@@ -1,19 +1,16 @@
/*
* Author: 黎永顺
- * name: 最优年终奖计税方案-策略-导入
+ * name:数据采集四个基础项-导入
* Description:
- * Date: 2024/3/1
+ * Date: 2024/3/14
*/
import React, { Component } from "react";
-import { inject, observer } from "mobx-react";
import { WeaCheckbox, WeaLocaleProvider } from "ecCom";
import ImportDialog from "../../components/importDialog";
import { convertToUrlString } from "../../util/url";
const getLabel = WeaLocaleProvider.getLabel;
-@inject("specialAddStore")
-@observer
class Index extends Component {
constructor(props) {
super(props);
@@ -32,11 +29,24 @@ class Index extends Component {
this.setState({
importDialog: {
...importDialog, link: `${templateLink}?${convertToUrlString({ ...importOpts, hasData })}`,
- importResult, params: importOpts, previewUrl
+ importResult, params: importOpts, previewUrl, extraPreview: importOpts
}
});
}
+ handleExportTemp = () => {
+ const { hasData } = this.state;
+ const { templateLink, importOpts } = this.props;
+ if (!Object.values(importOpts).every(o => !!o)) {
+ Modal.warning({
+ title: getLabel(131329, "信息确认"),
+ content: getLabel(518702, "必要信息不完整,红色*为必填项!")
+ });
+ return;
+ }
+ const payload = { ...importOpts, hasData };
+ window.open(`${templateLink}?${convertToUrlString(payload)}`, "_blank");
+ };
handleImport = (payload) => {
const { importDialog } = this.state, { onImportFile, importOpts } = this.props;
this.setState({ importDialog: { ...importDialog, nextloading: true } });
diff --git a/pc4mobx/hrmSalary/stores/attendanceStore.js b/pc4mobx/hrmSalary/stores/attendanceStore.js
index f309619e..d34866d3 100644
--- a/pc4mobx/hrmSalary/stores/attendanceStore.js
+++ b/pc4mobx/hrmSalary/stores/attendanceStore.js
@@ -4,6 +4,8 @@ import { WeaForm } from "comsMobx";
export class AttendanceStore {
@observable form = new WeaForm();
+ @action("字段管理-新建字段表单初始化")
+ initForm = () => this.form = new WeaForm();
@observable refenceform = new WeaForm();
//薪酬统计 新增form
@observable statisticsForm = new WeaForm();
From 689c837749fc24be4abc59498bd7d6d3f7994f3a 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, 15 Mar 2024 15:09:16 +0800
Subject: [PATCH 037/127] =?UTF-8?q?hotfix/3.00.0.2403.01=20=E8=80=83?=
=?UTF-8?q?=E6=83=85=E7=AE=A1=E7=90=86=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/attendanceDataViewSlide.js | 104 ++++++------------
.../attendance/components/index.less | 30 +++++
.../welfareArchive/config.js | 2 +-
3 files changed, 65 insertions(+), 71 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
index 1011398c..4e2735aa 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
@@ -5,26 +5,19 @@
* Date: 2023/3/7
*/
import React, { Component } from "react";
-import { WeaFormItem, WeaInput, WeaInputSearch, WeaSlideModal } from "ecCom";
+import { WeaInputSearch, WeaLocaleProvider, WeaSlideModal, WeaTable, WeaTop } from "ecCom";
import { Button } from "antd";
-import SlideModalTitle from "../../../../components/slideModalTitle";
import { viewAttendQuote } from "../../../../apis/attendance";
-import UnifiedTable from "../../../../components/UnifiedTable";
import "./index.less";
+const { getLabel } = WeaLocaleProvider;
+
class AttendanceDataViewSlide extends Component {
constructor(props) {
super(props);
this.state = {
- loading: {
- query: false
- },
- keyword: "",
- dataSource: [],
- columns: [],
- pageInfo: {
- current: 1, pageSize: 10, total: 0
- }
+ loading: { query: false }, keyword: "", dataSource: [], columns: [],
+ pageInfo: { current: 1, pageSize: 10, total: 0 }
};
}
@@ -46,29 +39,12 @@ class AttendanceDataViewSlide extends Component {
if (status) {
const { columns, list: dataSource, pageNum: current, pageSize, total } = data.pageInfo;
this.setState({
- pageInfo: { ...pageInfo, current, pageSize, total },
- dataSource,
- columns
+ pageInfo: { ...pageInfo, current, pageSize, total }, dataSource,
+ columns: _.map(columns, o => ({ ...o, width: 150, fixed: o.dataIndex === "username" ? "left" : null }))
});
}
}).catch(() => this.setState({ loading: { ...loading, query: false } }));
};
- renderCustomOperate = () => {
- const { keyword } = this.state;
- const { showOperateBtn } = this.props;
- return ([
-
- {showOperateBtn && 导出全部}
- this.setState({ keyword })}
- onSearch={() => this.viewAttendQuote({ current: 1 }, this.props)}
- />
-
- ]);
- };
handleExportAttendQuote = () => {
if (!this.handleDebounce) {
this.handleDebounce = _.debounce(() => {
@@ -83,7 +59,7 @@ class AttendanceDataViewSlide extends Component {
render() {
const { showOperateBtn, salaryYearMonth, ...extra } = this.props;
- const { columns, dataSource, loading, pageInfo } = this.state;
+ const { columns, dataSource, loading, pageInfo, keyword } = this.state;
const pagination = {
...pageInfo,
showTotal: (total) => `共 ${total} 条`,
@@ -101,45 +77,33 @@ class AttendanceDataViewSlide extends Component {
}, () => this.viewAttendQuote({}, this.props));
}
};
+ const btns = [
+ {getLabel(81272, "导出全部")},
+ this.setState({ keyword })}
+ onSearch={() => this.viewAttendQuote({ current: 1 }, this.props)}
+ />
+ ];
return (
-
- }
- content={
-
-
-
-
- ({
- ...item,
- render: (text) => {
- return {text} ;
- }
- }))}
- dataSource={dataSource}
- pagination={pagination}
- loading={loading.query}
- xWidth={columns.length * 180}
- />
-
- }
+ }
+ iconBgcolor="#F14A2D"
+ buttons={showOperateBtn ? btns : btns.slice(1)}/>
+ }
+ content={
+
+
+
{getLabel(543376, "考勤周期")}:{salaryYearMonth}
+
+
+
+
+ }
/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less
index 640d1b83..51316cab 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/index.less
@@ -19,10 +19,18 @@
}
.attendanceSlideWrapper {
+ .wea-slide-modal-content {
+ height: 100%;
+ }
+
.wea-slide-modal-title {
height: initial;
line-height: initial;
text-align: left;
+
+ .wea-new-top > div:last-child {
+ padding-right: 50px !important;
+ }
}
.rodal-close {
@@ -30,6 +38,28 @@
top: 10px !important;
}
+ .attendance-slide-body {
+ background: #f6f6f6;
+ height: 100%;
+ overflow-y: auto;
+ padding: 16px;
+
+ .attendance-tb-tip {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 4px 0;
+ min-height: 32px;
+ line-height: 18px;
+ margin-bottom: 8px;
+ }
+
+ .wea-new-table {
+ background: #FFF;
+ }
+ }
+
+
}
@media (min-width: 1260px) {
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
index ea717c4f..2c0a760d 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
@@ -825,7 +825,7 @@ const BenefitBaseComponent = (props) => {
customComponent={
{getLabel(543195, "各项福利基数一致")}
onSameChange(items, v)}
- disabled={runStatuses === "4,5" || !showOperateBtn}/>
+ disabled={runStatuses === "4,5" || !showOperateBtn} precision={2}/>
}
title={title} col={2} showGroup className="twoColumns-welfare-info-wrapper"
/>;
From 80acc5f18a05b8db27091bfb1bc8b930d75ab403 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, 18 Mar 2024 16:03:04 +0800
Subject: [PATCH 038/127] hotfix/2.12.1.2403.02
---
pc4mobx/hrmSalary/components/importDialog/index.less | 6 +++++-
pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/components/importDialog/index.less b/pc4mobx/hrmSalary/components/importDialog/index.less
index 4c9430f2..d37389ea 100644
--- a/pc4mobx/hrmSalary/components/importDialog/index.less
+++ b/pc4mobx/hrmSalary/components/importDialog/index.less
@@ -152,7 +152,11 @@
padding: 0 !important;
}
- .wea-select, .ant-select-selection, .ant-select {
+ .wea-select {
+ width: 200px !important;
+ }
+
+ .ant-select-selection, .ant-select {
width: 100%;
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
index 5d9db24e..7fca9256 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
@@ -545,7 +545,7 @@ export const DataCollectionDatePicker = (props) => {
export const DataCollectionSelect = (props) => {
const { value, label, onChange, options, key, labelCol = 10, wrapperCol = 14, viewAttr = 2 } = props;
return
- onChange({ key, value: val })} options={options}
+ onChange({ key, value: val })} options={options}
viewAttr={viewAttr}/>
;
};
From d9f3fafd51e13c4ee23a472c3abf808b633b12f0 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, 19 Mar 2024 14:29:00 +0800
Subject: [PATCH 039/127] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E9=80=8F=E8=A7=86=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/payrollFiles.js | 70 ++++++++++---------
.../pages/reportView/components/index.less | 7 ++
.../components/povitpivotChartModal.js | 21 ++++--
pc4mobx/hrmSalary/util/request.js | 3 +
4 files changed, 63 insertions(+), 38 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/payrollFiles.js b/pc4mobx/hrmSalary/apis/payrollFiles.js
index 7ebdb6bb..f2516b5a 100644
--- a/pc4mobx/hrmSalary/apis/payrollFiles.js
+++ b/pc4mobx/hrmSalary/apis/payrollFiles.js
@@ -1,5 +1,5 @@
import { WeaTools } from "ecCom";
-import { postFetch } from "../util/request";
+import { postExportFetch, postFetch } from "../util/request";
//获取薪资档案各tab的人数
export const queryTabTotal = (params) => {
@@ -11,65 +11,69 @@ export const queryList = ({ url, ...params }) => {
};
// 导入档案
export const importSalaryArchive = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/importSalaryArchive', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/importSalaryArchive", params);
+};
// 薪资档案预览
export const salaryArchivePreview = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/preview', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/preview", params);
+};
// 公共枚举接口
export const commonEnumList = (params) => {
- return WeaTools.callApi('/api/bs/hrmsalary/common/enum/list', 'GET', params);
-}
+ return WeaTools.callApi("/api/bs/hrmsalary/common/enum/list", "GET", params);
+};
// 获取导入类型
export const getImportTypes = () => {
- return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getImportTypes', 'GET', {});
-}
+ return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getImportTypes", "GET", {});
+};
// 发起调薪地址
export const salaryAdjustmentInfo = (params) => {
- return WeaTools.callApi('/api/bs/hrmsalary/process/salaryAdjustmentInfo', 'GET', params);
-}
+ return WeaTools.callApi("/api/bs/hrmsalary/process/salaryAdjustmentInfo", "GET", params);
+};
// 停薪
export const stopSalary = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/stopSalary', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/stopSalary", params);
+};
// 一键全部设为定薪员工
export const allGotoFixed = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/allGotoFixed', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/allGotoFixed", params);
+};
// 设为定薪员工
export const gotoFixed = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/gotoFixed', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/gotoFixed", params);
+};
// 停薪
export const gotoStop = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/gotoStop', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/gotoStop", params);
+};
//全部停薪
export const allGotoStop = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/allGotoStop', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/allGotoStop", params);
+};
// 取消停薪
export const cancelStop = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/cancelStop', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/cancelStop", params);
+};
// 保存发薪设置
export const savePaySet = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/savePaySet', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/savePaySet", params);
+};
// 待定薪删除待办
export const deletePendingTodo = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/deletePendingTodo', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/deletePendingTodo", params);
+};
// 待停薪删除待办
export const deleteSuspendTodo = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/deleteSuspendTodo', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/deleteSuspendTodo", params);
+};
// 待定薪、停薪员工 是否允许删除薪资档案
export const salaryArchiveDelete = (params) => {
- return WeaTools.callApi('/api/bs/hrmsalary/sys/conf/code?code=salaryArchiveDelete', 'GET', params);
-}
+ return WeaTools.callApi("/api/bs/hrmsalary/sys/conf/code?code=salaryArchiveDelete", "GET", params);
+};
// 删除薪资档案
export const deleteSalaryArchive = (params) => {
- return postFetch('/api/bs/hrmsalary/salaryArchive/deleteSalaryArchive', params);
-}
+ return postFetch("/api/bs/hrmsalary/salaryArchive/deleteSalaryArchive", params);
+};
+// 数据透视列表导出
+export const exportDataPerspective = (params) => {
+ return postExportFetch("/api/bs/hrmsalary/report/statistics/report/exportDataPerspective", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/index.less b/pc4mobx/hrmSalary/pages/reportView/components/index.less
index d77aab7f..53e93a64 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/index.less
+++ b/pc4mobx/hrmSalary/pages/reportView/components/index.less
@@ -62,6 +62,13 @@
.ant-spin-nested-loading, .ant-spin-container {
height: 100%;
}
+
+ .header-custom {
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
}
.shareDialogWrapper {
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js b/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
index 801bb99e..9f9bddf7 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
@@ -5,11 +5,12 @@
* Date: 2023/6/8
*/
import React, { Component } from "react";
-import { WeaDialog, WeaLocaleProvider } from "ecCom";
-import { WeaTableNew } from "comsMobx";
-import { Spin } from "antd";
-import { toJS } from "mobx";
import { inject, observer } from "mobx-react";
+import { WeaDialog, WeaLoadingGlobal, WeaLocaleProvider } from "ecCom";
+import * as API from "../../../apis/payrollFiles";
+import { WeaTableNew } from "comsMobx";
+import { Button, Spin } from "antd";
+import { toJS } from "mobx";
import "./index.less";
const WeaTableComx = WeaTableNew.WeaTable;
@@ -103,13 +104,23 @@ class PovitpivotChartModal extends Component {
showSum: false, pageInfo
});
};
+ exportDataPerspective = () => {
+ WeaLoadingGlobal.start();
+ const { id, dimensionId, dimensionValue, isShare } = this.props;
+ const promise = API.exportDataPerspective({ id, dimensionId, dimensionValue, isShare });
+ WeaLoadingGlobal.destroy();
+ };
render() {
const { loading } = this.state;
const { payrollFilesStore: { pivotTableStore } } = this.props;
return (
+ {getLabel(111, "数据透视")}
+ {getLabel(17416, "导出")}
+ }
+ scalable className="pivot-wrapper" initLoadCss
visible={this.props.visible} style={{ width: "80vw", height: "80vh" }}
buttons={[]} onCancel={this.props.onCancel}>
diff --git a/pc4mobx/hrmSalary/util/request.js b/pc4mobx/hrmSalary/util/request.js
index 821d58d6..4fd7e4e4 100644
--- a/pc4mobx/hrmSalary/util/request.js
+++ b/pc4mobx/hrmSalary/util/request.js
@@ -1,3 +1,5 @@
+import { WeaLoadingGlobal } from "ecCom";
+
const server = window.server || "";
export const formHeaderPost = (url, method, params, header) => {
if (typeof localStorage.access_token === "string" && localStorage.access_token !== "") {
@@ -34,6 +36,7 @@ export const postExportFetch = (url, params) => {
}
url = server + url + "?__random__=" + (new Date()).valueOf();
return fetch(url, getFetchParams("POST", params)).then(res => {
+ WeaLoadingGlobal.destroy();
const filename = res.headers.get("Content-Disposition").split("filename=")[1];
res.blob().then(blob => {
const url = window.URL.createObjectURL(blob);
From 8af1f0a79a58ed712790bfc3b745e88ffeff6d18 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, 19 Mar 2024 17:55:37 +0800
Subject: [PATCH 040/127] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E5=AE=8C?=
=?UTF-8?q?=E6=88=90=E5=AF=BC=E5=85=A5=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/salaryEditCalcImport/index.js | 2 +-
.../dataAcquisition/attendance/components/importDialog.js | 5 ++++-
.../payrollFiles/components/salaryFileImportDialog/index.js | 2 +-
.../components/standingBookCalcImportDialog.js | 2 +-
.../components/welfareArchivesImportDialog/index.js | 2 +-
5 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalcImport/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalcImport/index.js
index 463c7df4..ce58c616 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalcImport/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalcImport/index.js
@@ -63,7 +63,7 @@ class Index extends Component {
this.setState({
importDialog: {
...this.state.importDialog, link: this.handleExportTemp,
- visible: nextProps.visible, title: nextProps.title
+ visible: nextProps.visible, title: nextProps.title, importResult: {}
}
});
}
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importDialog.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importDialog.js
index bf67e4b2..72df9bde 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importDialog.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/importDialog.js
@@ -29,7 +29,10 @@ class Index extends Component {
const { hasData, importDialog } = this.state;
const { params, previewUrl } = nextProps;
this.setState({
- importDialog: { ...importDialog, link: this.handleExportTemp, params, previewUrl, extraPreview: params }
+ importDialog: {
+ ...importDialog, importResult: {}, link: this.handleExportTemp,
+ params, previewUrl, extraPreview: params
+ }
});
}
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js
index 1a60b901..313a8675 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js
@@ -51,7 +51,7 @@ class Index extends Component {
if (isExtEmp) payload = { ...payload, extSalaryArchiveList: true };
this.setState({
importDialog: {
- ...this.state.importDialog, extraPreview,
+ ...this.state.importDialog, extraPreview, importResult: {},
link: `/api/bs/hrmsalary/salaryArchive/downloadTemplate?${convertToUrlString(payload)}`
}
});
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js
index 0dc97e42..fb4a2db8 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/standingBookCalcImportDialog.js
@@ -33,7 +33,7 @@ class StandingBookCalcImportDialog extends Component {
const { data } = await API[fieldUrl]();
this.setState({
importDialog: {
- ...this.state.importDialog, link: this.handleExportTemp, title: getLabel(24023, "数据导入")
+ ...this.state.importDialog, importResult: {}, link: this.handleExportTemp, title: getLabel(24023, "数据导入")
},
headerFieldsDialog: {
...this.state.headerFieldsDialog, itemsByGroup: data,
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareArchivesImportDialog/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareArchivesImportDialog/index.js
index 149a304c..b61a17c2 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareArchivesImportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareArchivesImportDialog/index.js
@@ -35,7 +35,7 @@ class Index extends Component {
};
this.setState({
importDialog: {
- ...this.state.importDialog,
+ ...this.state.importDialog, importResult: {},
link: `/api/bs/hrmsalary/scheme/template/export?${convertToUrlString(payload)}`
}
});
From 272e45d3e5e734e1867cca77272cba43042ccaef 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, 20 Mar 2024 09:10:06 +0800
Subject: [PATCH 041/127] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A1=A3=E6=A1=88=E8=B0=83=E8=96=AA=EF=BC=8C=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E5=B0=8F=E6=95=B0=E4=BD=8D=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/salaryFile/salaryArchiveEditAdjLogRecord.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/salaryArchiveEditAdjLogRecord.js b/pc4mobx/hrmSalary/pages/salaryFile/salaryArchiveEditAdjLogRecord.js
index a091c42f..a46b7129 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/salaryArchiveEditAdjLogRecord.js
+++ b/pc4mobx/hrmSalary/pages/salaryFile/salaryArchiveEditAdjLogRecord.js
@@ -63,7 +63,8 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
salaryArchiveItemDetail: {
...salaryArchiveItemDetail,
list: _.map(salaryArchiveItemDetail.list, o => ({
- ...o, dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === o.salaryItem).dataType
+ ...o, dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === o.salaryItem).dataType,
+ pattern: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === o.salaryItem).pattern
}))
},
conditions: _.map(adjCondition, item => {
@@ -108,7 +109,8 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
if (o.salaryItem === salaryItemId) {
return {
...o, salaryBefore: data,
- dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === salaryItemId).dataType
+ dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === salaryItemId).dataType,
+ pattern: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === salaryItemId).pattern
};
}
return { ...o };
@@ -238,7 +240,7 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
...o, render: (__, record) => {
if (record.dataType === "number") {
return this.handleChangeAdjustAfter(record, v)}
/>;
} else {
From 1deceeb3e8955c884537ced9f0b4f2e3f95a2191 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, 20 Mar 2024 16:36:56 +0800
Subject: [PATCH 042/127] =?UTF-8?q?feature/2.12.1.2403.02-=E7=A4=BE?=
=?UTF-8?q?=E4=BF=9D=E6=A1=A3=E6=A1=88=E4=BF=9D=E5=AD=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../welfareEditArchiveSlide/index.js | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js
index 03a89212..304724fb 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js
@@ -180,7 +180,7 @@ class Index extends Component {
welfareType, validate: welfareData[`${underTakeType}SchemeId`] ? !!welfareData[`${underTakeType}StartTime`] : true
};
};
- save = async () => {
+ save = async (changeData = false) => {
const socailPayload = this.covertPayload("SOCIAL_SECURITY", "social", getConditionDomkeys(this.props.socialBase.items), getConditionDomkeys(this.props.socialBase.comItems || [])),
fundPayload = this.covertPayload("ACCUMULATION_FUND", "fund", getConditionDomkeys(this.props.fundBase.items), getConditionDomkeys(this.props.fundBase.comItems || [])),
otherPayload = this.covertPayload("OTHER", "other", getConditionDomkeys(this.props.otherBase.items), getConditionDomkeys(this.props.otherBase.comItems || []));
@@ -198,13 +198,24 @@ class Index extends Component {
}, {
status: otherStatus,
errormsg: otherErrorMsg = "!"
- }] = await Promise.all([API.save(socailPayload), API.save(fundPayload), API.save(otherPayload)]);
+ }] = await Promise.all([
+ API.save({ ...socailPayload, changeData }),
+ API.save({ ...fundPayload, changeData }),
+ API.save({ ...otherPayload, changeData })]);
this.setState({ loading: false });
if (socialStatus && fundStatus && otherStatus) {
message.success(getLabel(30700, "操作成功!"));
this.props.onClose(true);
} else {
- message.error(socialErrorMsg + fundErrorMsg + otherErrorMsg);
+ Modal.confirm({
+ title: getLabel(131329, "信息确认"),
+ content:
+
{socialErrorMsg + fundErrorMsg + otherErrorMsg}
+
{getLabel(111, "是否自动将方案的上下限调整为设置值?")}
+
,
+ onOk: () => this.save(true),
+ onCancel: () => this.props.onClose()
+ });
}
};
updateFormData = (baseData) => this.setState({ formData: { ...this.state.formData, ...baseData } });
@@ -278,7 +289,7 @@ class Index extends Component {
{
runStatuses !== "4,5" && showOperateBtn &&
- {getLabel(537558, "保存")}
+ this.save()} loading={loading}>{getLabel(537558, "保存")}
}
;
From a7e75331e1a5b220f8b1f570beb3aed9bd2e3afb 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, 21 Mar 2024 13:49:18 +0800
Subject: [PATCH 043/127] =?UTF-8?q?hotfix/2.12.1.2403.02=201=E3=80=81?=
=?UTF-8?q?=E5=B7=A5=E8=B5=84=E5=8D=95=E5=8F=91=E6=94=BE-=E6=9F=A5?=
=?UTF-8?q?=E7=9C=8B=E8=AF=A6=E6=83=85-=E9=AB=98=E7=BA=A7=E6=90=9C?=
=?UTF-8?q?=E7=B4=A2=20=E9=83=A8=E9=97=A8=E8=83=BD=E5=A4=9A=E9=80=89?=
=?UTF-8?q?=EF=BC=8C=20=E5=A4=9A=E9=80=89=E5=88=86=E9=83=A8=202=E3=80=81?=
=?UTF-8?q?=E7=A4=BE=E4=BF=9D=E7=A6=8F=E5=88=A9=E5=8F=B0=E8=B4=A6=EF=BC=9A?=
=?UTF-8?q?=E6=AD=A3=E5=B8=B8=E7=BC=B4=E7=BA=B3=E3=80=81=E8=A1=A5=E7=BC=B4?=
=?UTF-8?q?=E3=80=81=E9=80=80=E5=B7=AE=E3=80=81=E8=A1=A5=E5=B7=AE=20?=
=?UTF-8?q?=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2=E5=A2=9E=E5=8A=A0=E9=83=A8?=
=?UTF-8?q?=E9=97=A8=E7=AD=9B=E9=80=89=EF=BC=8C=E5=A4=9A=E5=88=86=E9=83=A8?=
=?UTF-8?q?=E7=AD=9B=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/payroll/payrollDetail/index.js | 9 ++++-
.../components/makeupDifference.js | 4 +-
.../standingBookDetail/components/normal.js | 39 ++++++++++++++-----
.../standingBookDetail/components/regTop.js | 30 ++++++++++----
.../components/regression.js | 39 ++++++++++---------
pc4mobx/hrmSalary/stores/payroll.js | 6 ++-
6 files changed, 86 insertions(+), 41 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
index 6e6479c0..efa982db 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
@@ -87,9 +87,14 @@ export default class PayrollDetail extends React.Component {
const { child, ...extraParams } = extra;
const salarySendId = getQueryString("id");
const { payrollStore } = this.props;
- const { detailListConditionForm: form } = payrollStore;
- const payload = { salarySendId, ...pageInfo, ...extraParams, ...form.getFormParams() };
+ const { detailListConditionForm: form, setDetailListShowSearchAd } = payrollStore;
+ const payload = {
+ salarySendId, ...pageInfo, ...extraParams, ...form.getFormParams(),
+ departmentIds: form.getFormParams().departmentIds ? form.getFormParams().departmentIds.split(",") : [],
+ subCompanyIds: form.getFormParams().subCompanyIds ? form.getFormParams().subCompanyIds.split(",") : []
+ };
this.setState({ loading: true });
+ setDetailListShowSearchAd(false)
getPayrollDetailList(payload).then(({ status, data }) => {
this.setState({ loading: false });
if (status) {
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js
index 9ff5fb28..d0085fd7 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/makeupDifference.js
@@ -62,6 +62,8 @@ class MakeupDifference extends Component {
const { importDiffModal, addPersonalDialog } = this.state;
const name = this.regTopRef.state.name;
const workcode = this.regTopRef.state.workcode;
+ const departmentIds = this.regTopRef.state.departmentIds ? this.regTopRef.state.departmentIds.split(",") : [];
+ const subCompanyIds = this.regTopRef.state.subCompanyIds ? this.regTopRef.state.subCompanyIds.split(",") : [];
const billMonth = getQueryString("billMonth");
const paymentOrganization = getQueryString("paymentOrganization");
switch (key) {
@@ -85,7 +87,7 @@ class MakeupDifference extends Component {
window.open(url, "_self");
break;
case "search":
- this.diffListRef.recessionList({ userName: name, workcode, current: 1 });
+ this.diffListRef.recessionList({ userName: name, workcode, departmentIds, subCompanyIds, current: 1 });
break;
case "add":
this.setState({
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
index 45f1a728..d7366471 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js
@@ -5,9 +5,9 @@
* LastEditTime: 2022-06-29 09:53:36
*/
import React, { Component } from "react";
-import { Button, Icon, message, Modal, Spin, Tooltip } from "antd";
+import { Button, Col, Icon, message, Modal, Row, Spin, Tooltip } from "antd";
import { inject, observer } from "mobx-react";
-import { WeaFormItem, WeaInput, WeaSearchGroup, WeaTab } from "ecCom";
+import { WeaBrowser, WeaFormItem, WeaInput, WeaLocaleProvider, WeaSearchGroup, WeaTab } from "ecCom";
import { calcPageNo } from "../../../../util";
import { getQueryString } from "../../../../util/url";
import ProgressModal from "../../../../components/progressModal";
@@ -19,6 +19,7 @@ import SupplementarySlide from "./supplementarySlide";
import _ from "lodash";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("standingBookStore")
@observer
export default class NormalIndex extends Component {
@@ -44,6 +45,8 @@ export default class NormalIndex extends Component {
},
searchValue: "",
workcode: "",
+ departmentIds: "",
+ subCompanyIds: "",
progressVisible: false,
progress: 0,
fieldData: {}, //选中的表单头信息
@@ -149,14 +152,18 @@ export default class NormalIndex extends Component {
current: 1,
paymentOrganization,
userName: this.state.searchValue,
- workcode: this.state.workcode
+ workcode: this.state.workcode,
+ departmentIds: this.state.departmentIds ? this.state.departmentIds.split(",") : [],
+ subCompanyIds: this.state.subCompanyIds ? this.state.subCompanyIds.split(",") : []
})
: this.getSupplementaryList({
billMonth,
current: 1,
paymentOrganization,
userName: this.state.searchValue,
- workcode: this.state.workcode
+ workcode: this.state.workcode,
+ departmentIds: this.state.departmentIds ? this.state.departmentIds.split(",") : [],
+ subCompanyIds: this.state.subCompanyIds ? this.state.subCompanyIds.split(",") : []
});
};
@@ -445,12 +452,24 @@ export default class NormalIndex extends Component {
};
getSearchs = () => {
return
-
- this.setState({ workcode: v })}
- />
-
+
+
+ this.setState({ workcode: v })}
+ />
+
+
+ this.setState({ departmentIds: v })}/>
+
+
+ this.setState({ subCompanyIds: v })}/>
+
+
;
};
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regTop.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regTop.js
index 72acc3f1..0c6de7cc 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regTop.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regTop.js
@@ -1,6 +1,6 @@
import React, { Component } from "react";
-import { Button } from "antd";
-import { WeaFormItem, WeaHelpfulTip, WeaInput, WeaLocaleProvider, WeaSearchGroup, WeaTab } from "ecCom";
+import { Button, Col, Row } from "antd";
+import { WeaBrowser, WeaFormItem, WeaHelpfulTip, WeaInput, WeaLocaleProvider, WeaSearchGroup, WeaTab } from "ecCom";
import { getQueryString } from "../../../../util/url";
const getLabel = WeaLocaleProvider.getLabel;
@@ -11,6 +11,8 @@ class RegTop extends Component {
this.state = {
name: "",
workcode: "",
+ departmentIds: "",
+ subCompanyIds: "",
showSearchAd: false
};
}
@@ -56,12 +58,24 @@ class RegTop extends Component {
};
getSearchs = () => {
return
-
- this.setState({ workcode: v })}
- />
-
+
+
+ this.setState({ workcode: v })}
+ />
+
+
+ this.setState({ departmentIds: v })}/>
+
+
+ this.setState({ subCompanyIds: v })}/>
+
+
;
};
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js
index 4b4e790d..3b35e57e 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regression.js
@@ -6,7 +6,6 @@
*/
import React, { Component } from "react";
import { message, Modal } from "antd";
-import { WeaNewScroll } from "ecCom";
import RegTop from "./regTop";
import RegList from "./regList";
import RegAddEmployee from "./regAddEmployee";
@@ -75,6 +74,8 @@ class Regression extends Component {
const { returnPersonModal } = this.state;
const name = this.regTopRef.state.name;
const workcode = this.regTopRef.state.workcode;
+ const departmentIds = this.regTopRef.state.departmentIds ? this.regTopRef.state.departmentIds.split(",") : [];
+ const subCompanyIds = this.regTopRef.state.subCompanyIds ? this.regTopRef.state.subCompanyIds.split(",") : [];
const billMonth = getQueryString("billMonth");
const creator = Number(getQueryString("creator"));
const paymentOrganization = getQueryString("paymentOrganization");
@@ -98,7 +99,7 @@ class Regression extends Component {
window.open(url, "_self");
break;
case "search":
- this.regListRef.recessionList({ userName: name, workcode, current: 1 });
+ this.regListRef.recessionList({ userName: name, workcode, departmentIds, subCompanyIds, current: 1 });
break;
default:
break;
@@ -136,23 +137,23 @@ class Regression extends Component {
/>
{/**/}
- this.regListRef = dom}
- visible={returnPersonModal.visible}
- onChangeRowkey={(selectKey) => this.setState({ selectKey })}
- onEdit={this.handleEdit}
- />
- {/*编辑弹框*/}
-
- {/* 弹框 */}
- this.regEmmployeeRef = dom}
- {...returnPersonModal}
- loading={loading}
- onCancel={this.handleCloseModal}
- onSave={this.handleSave}
- />
+ this.regListRef = dom}
+ visible={returnPersonModal.visible}
+ onChangeRowkey={(selectKey) => this.setState({ selectKey })}
+ onEdit={this.handleEdit}
+ />
+ {/*编辑弹框*/}
+
+ {/* 弹框 */}
+ this.regEmmployeeRef = dom}
+ {...returnPersonModal}
+ loading={loading}
+ onCancel={this.handleCloseModal}
+ onSave={this.handleSave}
+ />
{/**/}
diff --git a/pc4mobx/hrmSalary/stores/payroll.js b/pc4mobx/hrmSalary/stores/payroll.js
index e170d4fc..4da841d0 100644
--- a/pc4mobx/hrmSalary/stores/payroll.js
+++ b/pc4mobx/hrmSalary/stores/payroll.js
@@ -453,7 +453,11 @@ export class payrollStore {
@action
getInfoList = (params = {}) => {
let form = this.grantListConditionForm.getFormParams();
- params = { ...form, ...params };
+ params = {
+ ...form, ...params,
+ departmentIds: form.departmentIds ? form.departmentIds.split(",") : [],
+ subCompanyIds: form.subCompanyIds ? form.subCompanyIds.split(",") : []
+ };
API.getInfoList(params).then(res => {
if (res.status) {
this.salaryGrantTableStore = res.data.columns;
From c51c93c8122f0058fd7fffb66f256126f7acf054 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, 25 Mar 2024 17:23:42 +0800
Subject: [PATCH 044/127] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E8=B0=83?=
=?UTF-8?q?=E8=96=AA=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/salaryFile/index.less | 4 +++-
pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/index.less b/pc4mobx/hrmSalary/pages/salaryFile/index.less
index ebc4a8a4..ac388b47 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/index.less
+++ b/pc4mobx/hrmSalary/pages/salaryFile/index.less
@@ -169,10 +169,12 @@
}
.adjustItem-layout {
- .ant-table-fixed td {
+ .ant-table-fixed-left td > span:last-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ width: 100px;
+ display: inline-block;
}
}
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js b/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js
index 13706751..97bb8519 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js
+++ b/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js
@@ -4,6 +4,7 @@ import { WeaLocaleProvider, WeaTable } from "ecCom";
import { inject, observer } from "mobx-react";
import { deleteSalaryItem } from "../../apis/archive";
import SalaryArchiveEditAdjLogRecord from "./salaryArchiveEditAdjLogRecord";
+import "./index.less";
const { getLabel } = WeaLocaleProvider;
@inject("salaryFileStore")
From 85c222def8426529036415ebbed2fd8849e263e2 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, 26 Mar 2024 09:14:32 +0800
Subject: [PATCH 045/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E9=A1=B9=E4=BB=A5=E5=8F=8A=E8=96=AA=E8=B5=84=E6=98=8E=E7=BB=86?=
=?UTF-8?q?=E7=9A=84=E5=BC=80=E5=8F=91=201=E3=80=81=E8=A1=A5=E7=AE=97?=
=?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/index.js | 3 +
.../pages/supplementaryCalc/index.js | 190 ++++++++++++++++++
.../pages/supplementaryCalc/index.less | 0
3 files changed, 193 insertions(+)
create mode 100644 pc4mobx/hrmSalary/pages/supplementaryCalc/index.js
create mode 100644 pc4mobx/hrmSalary/pages/supplementaryCalc/index.less
diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js
index 0990c113..1aaf8045 100644
--- a/pc4mobx/hrmSalary/index.js
+++ b/pc4mobx/hrmSalary/index.js
@@ -51,6 +51,7 @@ import WatermarkPreview from "./pages/payroll/watermarkPreview";
import ExternalPersonManage from "./pages/externalPersonManage";
import AdjustSalaryManage from "./pages/adjustSalaryManage";
import TopologyMap from "./pages/topologyMap";
+import SupplementaryCalc from "./pages/supplementaryCalc";
import stores from "./stores";
import "./style/index";
@@ -110,6 +111,7 @@ const DataAcquisition = (props) => props.children;
// reportView 薪酬报表查看
// externalPersonManage 非系统人员管理
// adjustSalaryManage 档案管理
+// supplementaryCalc 补算
const Routes = (
+
);
diff --git a/pc4mobx/hrmSalary/pages/supplementaryCalc/index.js b/pc4mobx/hrmSalary/pages/supplementaryCalc/index.js
new file mode 100644
index 00000000..558c2c38
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/supplementaryCalc/index.js
@@ -0,0 +1,190 @@
+/*
+ * Author: 黎永顺
+ * name: 补算
+ * Description:
+ * Date: 2024/3/26
+ */
+import React, { Component } from "react";
+import { Button, message } from "antd";
+import { WeaBrowser, WeaError, WeaFormItem, WeaLocaleProvider, WeaSearchGroup, WeaSelect, WeaTop } from "ecCom";
+import { supplementAcctRecord } from "../../apis";
+import "./index.less";
+
+const { getLabel } = WeaLocaleProvider;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ type: "sob", salaryItemIds: "", salarySobIds: "",
+ salaryAcctRecordIds: "", loading: false
+ };
+ }
+
+ handleChangeItems = (key, value) => {
+ this.setState({ [key]: value });
+ };
+ handleSubmit = () => {
+ const { salaryItemIds, salarySobIds, salaryAcctRecordIds, type } = this.state;
+ if (!salaryItemIds && !salarySobIds && type === "sob") {
+ this.refs.salaryItemError.showError();
+ this.refs.salarySobError.showError();
+ return;
+ }
+ if (!salaryItemIds && !salaryAcctRecordIds && type === "record") {
+ this.refs.salaryItemError.showError();
+ this.refs.salaryPigeonholeError.showError();
+ return;
+ }
+ if (!salaryItemIds) {
+ this.refs.salaryItemError.showError();
+ return;
+ }
+ if (!salaryAcctRecordIds && type === "record") {
+ this.refs.salaryPigeonholeError.showError();
+ return;
+ }
+ if (!salarySobIds && type === "sob") {
+ this.refs.salarySobError.showError();
+ return;
+ }
+ this.setState({ loading: true });
+ supplementAcctRecord({
+ type,
+ salaryAcctRecordIds: salaryAcctRecordIds ? salaryAcctRecordIds.split(",") : [],
+ salarySobIds: salarySobIds ? salarySobIds.split(",") : [],
+ salaryItemIds: salaryItemIds ? salaryItemIds.split(",") : []
+ }).then(({ status, errormsg }) => {
+ this.setState({ loading: false });
+ if (status) {
+ message.success(getLabel(111, "补算成功"));
+ } else {
+ message.error(errormsg || getLabel(111, "补算失败"));
+ }
+ }).catch(() => this.setState({ loading: false }));
+ };
+
+ render() {
+ const { type, salaryItemIds, salarySobIds, salaryAcctRecordIds, loading } = this.state;
+ return (
+ }
+ buttons={[
+ {getLabel(111, "补算")}
+ ]}
+ >
+
+
+
+
+ this.setState({ type }, () => {
+ this.setState({ salarySobIds: "", salaryAcctRecordIds: "", salaryItemIds: "" });
+ })}
+ />
+
+
+ {
+ type === "sob" ?
+
+
+ this.handleChangeItems("salarySobIds", salarySobIds)}
+ />
+
+ :
+
+
+ this.handleChangeItems("salaryAcctRecordIds", salaryAcctRecordIds)}
+ />
+
+
+ }
+
+
+ this.handleChangeItems("salaryItemIds", salaryItemIds)}
+ />
+
+
+
+
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/supplementaryCalc/index.less b/pc4mobx/hrmSalary/pages/supplementaryCalc/index.less
new file mode 100644
index 00000000..e69de29b
From 8d58561b887be557a637fd7e26df4eed1d731c3d 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, 26 Mar 2024 17:07:21 +0800
Subject: [PATCH 046/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E9=A1=B9=E4=BB=A5=E5=8F=8A=E8=96=AA=E8=B5=84=E6=98=8E=E7=BB=86?=
=?UTF-8?q?=E7=9A=84=E5=BC=80=E5=8F=91=201=E3=80=81=E8=A1=A5=E7=AE=97?=
=?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90=202=E3=80=81?=
=?UTF-8?q?=E8=96=AA=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8-?=
=?UTF-8?q?=E8=96=AA=E8=B5=84=E6=8A=A5=E8=A1=A8=E7=9A=84=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/index.js | 5 +-
pc4mobx/hrmSalary/apis/statistics.js | 14 +-
.../components/advanceInputBtn/index.js | 33 ++++
.../components/advanceInputBtn/index.less | 29 ++++
.../components/conditions.js | 88 +++++++++++
.../components/salaryDetails.js | 148 ++++++++++++++++++
.../components/searchPannel/index.js | 77 +++++++++
.../pages/analysisOfSalaryStatistics/index.js | 75 +++++++--
.../analysisOfSalaryStatistics/index.less | 58 ++++++-
.../pages/reportView/components/condition.js | 13 ++
.../statisticalMicroSettingsSlide.js | 16 +-
.../pages/supplementaryCalc/index.less | 7 +
pc4mobx/hrmSalary/stores/attendanceStore.js | 5 +-
13 files changed, 545 insertions(+), 23 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.js
create mode 100644 pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.less
create mode 100644 pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
create mode 100644 pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/searchPannel/index.js
diff --git a/pc4mobx/hrmSalary/apis/index.js b/pc4mobx/hrmSalary/apis/index.js
index 4cb3b93c..92514839 100644
--- a/pc4mobx/hrmSalary/apis/index.js
+++ b/pc4mobx/hrmSalary/apis/index.js
@@ -39,4 +39,7 @@ export const getDetailChanges = params => {
export const getSalarysobListAll = params => {
return postFetch("/api/bs/hrmsalary/salarysob/listAll", params);
};
-
+//补算
+export const supplementAcctRecord = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/supplementAcctRecord", params);
+};
diff --git a/pc4mobx/hrmSalary/apis/statistics.js b/pc4mobx/hrmSalary/apis/statistics.js
index 3b70ee59..76056002 100644
--- a/pc4mobx/hrmSalary/apis/statistics.js
+++ b/pc4mobx/hrmSalary/apis/statistics.js
@@ -1,5 +1,5 @@
import { WeaTools } from "ecCom";
-import { postFetch } from "../util/request";
+import { postExportFetch, postFetch } from "../util/request";
//薪酬统计维度下拉列表
export const dimensionGetForm = (params) => {
@@ -122,3 +122,15 @@ export const getExpandFieldSettings = (params) => {
export const statisticsReportDuplicate = (params) => {
return WeaTools.callApi("/api/bs/hrmsalary/report/statistics/report/duplicate", "GET", params);
};
+//薪酬统计报表-薪资明细列表
+export const getSalaryList = (params) => {
+ return postFetch("/api/bs/hrmsalary/report/statistics/employee/salaryList", params);
+};
+//薪酬统计报表-薪资明细列表总计行
+export const getSalaryListSum = (params) => {
+ return postFetch("/api/bs/hrmsalary/report/statistics/employee/salaryListSum", params);
+};
+// 薪酬统计报表-薪资明细导出
+export const exportSalaryList = (params) => {
+ return postExportFetch("/api/bs/hrmsalary/report/statistics/employee/exportSalaryList", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.js
new file mode 100644
index 00000000..86a5f416
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.js
@@ -0,0 +1,33 @@
+/*
+ * Author: 黎永顺
+ * name:薪酬统计报表-高级搜索
+ * Description:
+ * Date: 2024/3/26
+ */
+import React, { Component } from "react";
+import { inject, observer } from "mobx-react";
+import { Button } from "antd";
+import { WeaInputSearch, WeaLocaleProvider } from "ecCom";
+import "./index.less";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+@inject("attendanceStore")
+@observer
+class Index extends Component {
+ render() {
+ const { attendanceStore: { salaryDetailSearchForm } } = this.props;
+ return (
+
+ salaryDetailSearchForm.updateFields({ keyword: v })}
+ onSearch={this.props.onAdvanceSearch}
+ />
+ {getLabel(545754, "高级搜索")}
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.less b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.less
new file mode 100644
index 00000000..9081d39f
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/advanceInputBtn/index.less
@@ -0,0 +1,29 @@
+.achrive-advance-search {
+ display: flex;
+ align-items: center;
+ position: relative;
+ top: -1.5px;
+
+ .wea-advanced-search {
+ top: 2px;
+ left: -1px;
+ height: 28px;
+ line-height: 1;
+ border-radius: 0;
+ position: relative;
+ color: #474747;
+ padding: 4px 15px;
+ }
+
+ .wea-advanced-search:hover {
+ border: 1px solid #dadada;
+ color: #474747;
+ }
+
+ .text-elli {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ top: 1px;
+ }
+}
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/conditions.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/conditions.js
index 080dd0e4..6a19614c 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/conditions.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/conditions.js
@@ -1,3 +1,4 @@
+import React from "react";
import { WeaLocaleProvider } from "ecCom";
const { getLabel } = WeaLocaleProvider;
@@ -131,3 +132,90 @@ export const extensionCondition = [
defaultshow: true
}
];
+export const salaryDetailSearchConditions = [
+ {
+ items: [
+ {
+ conditionType: "INPUT",
+ domkey: ["keyword"],
+ fieldcol: 16,
+ label: getLabel(111, "姓名/工号"),
+ labelcol: 8,
+ value: "",
+ viewAttr: 2
+ },
+ {
+ conditionType: "SELECT",
+ domkey: ["taxAgentIds"],
+ fieldcol: 16,
+ label: getLabel(537996, "个税扣缴义务人"),
+ labelcol: 8,
+ options: [],
+ multiple: true,
+ viewAttr: 2
+ },
+ {
+ browserConditionParam: {
+ completeParams: {},
+ conditionDataParams: {},
+ dataParams: {},
+ destDataParams: {},
+ hasAddBtn: false,
+ hasAdvanceSerach: false,
+ idSeparator: ",",
+ isAutoComplete: 1,
+ isDetail: 0,
+ isMultCheckbox: false,
+ isSingle: false,
+ icon: "icon-coms-hrm",
+ linkUrl: "",
+ pageSize: 10,
+ quickSearchName: "",
+ replaceDatas: [],
+ title: "",
+ type: "164",
+ viewAttr: 2
+ },
+ colSpan: 1,
+ conditionType: "BROWSER",
+ domkey: ["subcompanyIds"],
+ fieldcol: 16,
+ label: getLabel(33553, "分部"),
+ labelcol: 8,
+ viewAttr: 2
+ },
+ {
+ browserConditionParam: {
+ completeParams: {},
+ conditionDataParams: {},
+ dataParams: {},
+ destDataParams: {},
+ hasAddBtn: false,
+ hasAdvanceSerach: false,
+ idSeparator: ",",
+ isAutoComplete: 1,
+ isDetail: 0,
+ isMultCheckbox: false,
+ isSingle: false,
+ icon: "icon-coms-hrm",
+ linkUrl: "",
+ pageSize: 10,
+ quickSearchName: "",
+ replaceDatas: [],
+ title: "",
+ type: "57",
+ viewAttr: 2
+ },
+ conditionType: "BROWSER",
+ domkey: ["departmentIds"],
+ fieldcol: 16,
+ label: getLabel(27511, "部门"),
+ labelcol: 8,
+ viewAttr: 2
+ }
+ ],
+ defaultshow: true,
+ title: getLabel(1361, "基本信息"),
+ col: 2
+ }
+];
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
new file mode 100644
index 00000000..e83e95ca
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -0,0 +1,148 @@
+/*
+ * Author: 黎永顺
+ * name:薪资明细列表
+ * Description:
+ * Date: 2024/3/26
+ */
+import React, { Component } from "react";
+import { inject, observer } from "mobx-react";
+import { toJS } from "mobx";
+import { WeaLoadingGlobal, WeaLocaleProvider } from "ecCom";
+import { WeaTableNew } from "comsMobx";
+import { message, Spin } from "antd";
+import * as API from "../../../apis/statistics";
+import { getIframeParentHeight } from "../../../util";
+import { sysConfCodeRule } from "../../../apis/ruleconfig";
+import "../index.less";
+
+const WeaTableComx = WeaTableNew.WeaTable;
+const { getLabel } = WeaLocaleProvider;
+
+@inject("attendanceStore")
+@observer
+class SalaryDetails extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ loading: false, dataSource: [], columns: [], selectedRowKeys: [],
+ pageInfo: { current: 1, pageSize: 10, total: 0 }, payload: {},
+ countResult: {}, showTotalCell: false
+ };
+ }
+
+ componentDidMount() {
+ this.getSalaryList(this.props);
+ window.addEventListener("message", this.handleReceive, false);
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.isQuery !== this.props.isQuery) this.getSalaryList(nextProps);
+ }
+
+ componentWillUnmount() {
+ window.removeEventListener("message", this.handleReceive, false);
+ this.setState(({ selectedRowKeys: [] }));
+ }
+
+ handleReceive = ({ data }) => {
+ const { type, payload: { id, params } = {} } = data;
+ const { pageInfo } = this.state;
+ if (type === "init") {
+ this.getColumns();
+ } else if (type === "turn") {
+ if (id === "PAGEINFO") {
+ const { pageNum: current, size: pageSize } = params;
+ this.setState({ pageInfo: { ...pageInfo, current, pageSize } }, () => this.getSalaryList(this.props));
+ } else if (id === "CHECKBOX") {
+ const { selectedRowKeys: checkBox } = params;
+ this.setState({ selectedRowKeys: checkBox });
+ }
+ }
+ };
+ postMessageToChild = (payload) => {
+ const i18n = {
+ "共": getLabel(18609, "共"), "条": getLabel(18256, "条"),
+ "总计": getLabel(523, "总计")
+ };
+ const childFrameObj = document.getElementById("atdTable");
+ childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
+ };
+ getSalaryList = (props) => {
+ const { attendanceStore: { salaryDetailSearchForm, tableStore }, dateRange } = props;
+ const [startDateStr, endDateStr] = dateRange;
+ const { taxAgentIds, subcompanyIds, departmentIds, ...extra } = salaryDetailSearchForm.getFormParams();
+ const { pageInfo } = this.state;
+ const payload = {
+ taxAgentIds: taxAgentIds ? taxAgentIds.split(",") : [],
+ departmentIds: departmentIds ? departmentIds.split(",") : [],
+ subcompanyIds: subcompanyIds ? subcompanyIds.split(",") : [],
+ ...extra, ...pageInfo, startDateStr, endDateStr
+ };
+ this.setState({ loading: true });
+ API.getSalaryList(payload).then(async ({ status, data }) => {
+ const [{ data: sumData }, { data: confCode }] = await Promise.all([API.getSalaryListSum(payload), sysConfCodeRule({ code: "OPEN_ACCT_RESULT_SUM" })]);
+ this.setState({ loading: false });
+ if (status) {
+ const { dataKey, pageInfo: pageparams } = data;
+ const { list: dataSource, pageNum: current, total, pageSize } = pageparams;
+ this.setState({
+ dataSource, pageInfo: { ...pageInfo, current, total, pageSize }, payload,
+ countResult: sumData.sumRow, showTotalCell: confCode === "1"
+ }, () => tableStore.getDatas(dataKey.datas));
+ }
+ }).catch(() => this.setState({ loading: false }));
+ };
+ handleExportSalaryList = (key) => {
+ let { selectedRowKeys, payload } = this.state;
+ if (key === "SELECTED" && selectedRowKeys.length === 0) {
+ message.warning(getLabel(543345, "请选择需要导出的数据!"));
+ return;
+ }
+ WeaLoadingGlobal.start();
+ const promise = API.exportSalaryList({ ...payload, ids: selectedRowKeys });
+ };
+ getColumns = () => {
+ const { attendanceStore: { tableStore } } = this.props;
+ const { dataSource, pageInfo, selectedRowKeys, countResult, showTotalCell } = this.state;
+ const columns = _.filter(toJS(tableStore.columns), (item) => item.display === "true" && item.dataIndex !== "acctTimes");
+ if (!_.isEmpty(columns)) {
+ this.postMessageToChild({
+ dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true, tableScrollHeight: 154,
+ sumRow: countResult,
+ columns: _.map(columns, (it, idx) => ({
+ ...it,
+ width: (it.dataIndex === "taxAgent" || it.dataIndex === "salarySob") ? 176 : it.oldWidth,
+ fixed: (idx === 1 || idx === 0 || idx === 2) ? "left" : "",
+ ellipsis: true
+ }))
+ });
+ }
+ return [];
+ };
+
+ render() {
+ const { loading, dataSource } = this.state;
+ const { attendanceStore: { tableStore } } = this.props;
+ return (
+
+
+
+
+
+
+ );
+ }
+}
+
+export default SalaryDetails;
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/searchPannel/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/searchPannel/index.js
new file mode 100644
index 00000000..170320c9
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/searchPannel/index.js
@@ -0,0 +1,77 @@
+/*
+ * Author: 黎永顺
+ * name:薪酬统计报薪资明细-高级查询
+ * Description:
+ * Date: 2024/3/26
+ */
+import React, { Component } from "react";
+import { WeaLocaleProvider, WeaTools } from "ecCom";
+import { Button } from "antd";
+import { inject, observer } from "mobx-react";
+import { getSearchs } from "../../../../util";
+import { salaryDetailSearchConditions } from "../conditions";
+import { getTaxAgentSelectList } from "../../../../apis/taxAgent";
+
+const getLabel = WeaLocaleProvider.getLabel;
+const getKey = WeaTools.getKey;
+
+@inject("attendanceStore")
+@observer
+class SalaryDetailAdvanceSearchPannel extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ searchConditions: []
+ };
+ }
+
+ async componentDidMount() {
+ const [{ data: taxAgentList }] = await Promise.all([getTaxAgentSelectList()]);
+ this.setState({
+ searchConditions: _.map(salaryDetailSearchConditions, item => {
+ return {
+ ...item,
+ items: _.map(item.items, child => {
+ if (getKey(child) === "taxAgentIds") {
+ return {
+ ...child, options: _.map(taxAgentList, o => ({ key: o.id, showname: o.content }))
+ };
+ }
+ return { ...child };
+ })
+ };
+ })
+ }, () => {
+ const { attendanceStore: { salaryDetailSearchForm } } = this.props;
+ salaryDetailSearchForm.initFormFields(this.state.searchConditions);
+ });
+ }
+
+ render() {
+ const { searchConditions } = this.state;
+ const { attendanceStore: { salaryDetailSearchForm } } = this.props;
+ return (
+
+
+ {getSearchs(salaryDetailSearchForm, searchConditions, 2, false)}
+
+
+
+
+ {getLabel(388113, "搜索")}
+
+
+ salaryDetailSearchForm.resetForm()}>{getLabel(2022, "重置")}
+
+
+ {getLabel(31129, "取消")}
+
+
+
+
+ );
+ }
+}
+
+export default SalaryDetailAdvanceSearchPannel;
+
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index 3666ec39..886900e6 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -7,19 +7,24 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { WeaDatePicker, WeaInputSearch, WeaLocaleProvider, WeaReqTop } from "ecCom";
-import { Button } from "antd";
+import { Button, Dropdown, Menu } from "antd";
import { condition, reportCondition } from "./components/conditions";
import { commonEnumList, reportGetForm } from "../../apis/ruleconfig";
import { dimensionGetForm } from "../../apis/statistics";
import EmployeeDetails from "./components/employeeDetails";
+import SalaryDetails from "./components/salaryDetails";
import StatisticsModal from "./components/statisticsModal";
import DimensionSlide from "./components/dimensionSlide";
import DimensionTable from "./components/dimensionTable";
import ReportList from "./components/reportList";
import ReportForm from "./components/reportForm";
-import moment from "moment";
-import "./index.less";
import LogDialog from "../../components/logViewModal";
+import { MonthRangePicker } from "../reportView/components/statisticalMicroSettingsSlide";
+import AdvanceInputBtn from "./components/advanceInputBtn";
+import SearchPannel from "./components/searchPannel";
+import moment from "moment";
+import cs from "classnames";
+import "./index.less";
const { getLabel } = WeaLocaleProvider;
@@ -36,6 +41,12 @@ class Index extends Component {
reportName: "",
keyword: "",
year: moment().format("YYYY"),
+ dateRange: [
+ moment(new Date()).subtract(1, "year").startOf("year").format("YYYY-MM"),
+ moment(new Date()).endOf("year").format("YYYY-MM")
+ ],
+ showSearchAd: false,
+ isQuery: false,
slideReq: {
visible: false, formId: ""
},
@@ -257,12 +268,20 @@ class Index extends Component {
break;
}
};
+ handleOpenAdvanceSearch = () => this.setState({ showSearchAd: true });
+ handleAdvanceSearch = () => this.setState({ isQuery: !this.state.isQuery });
+ onAdSearch = () => this.setState({ showSearchAd: false, isQuery: !this.state.isQuery });
+ handleExportSalaryList = (key) => this.salaryRef.wrappedInstance.handleExportSalaryList(key);
render() {
- const { taxAgentStore: { statisticsReportBtn }, attendanceStore: { statisticsForm, reportForm } } = this.props;
+ const {
+ taxAgentStore: { statisticsReportBtn },
+ attendanceStore: { statisticsForm, reportForm, tableStore }
+ } = this.props;
const {
selectedKey, modalReq, slideReq, conditions, reportConditions,
- reportName, keyword, year, logDialogVisible, filterConditions
+ reportName, keyword, year, logDialogVisible, filterConditions,
+ dateRange, showSearchAd, isQuery
} = this.state;
const buttons = selectedKey === "statistics" ? [
this.handleReqBtnsClick("addReport")}>{getLabel(111, "新建报表")},
@@ -272,7 +291,7 @@ class Index extends Component {
value={reportName}
onChange={reportName => this.setState({ reportName })}
onSearch={() => this.handleReqBtnsClick("search")}/>
- ] : [
+ ] : selectedKey === "statistics" ? [
{getLabel(111, "年薪资核算人员明细:")}
this.setState({ year })}/>
@@ -281,10 +300,38 @@ class Index extends Component {
value={keyword}
onChange={keyword => this.setState({ keyword })}
onSearch={() => this.employeeListRef.statisticsEmployeeList()}/>
+ ] : [
+ this.handleExportSalaryList("ALL")}
+ overlay={}>{getLabel(81272, "导出全部")},
+ this.setState({ dateRange: v }, () => this.handleAdvanceSearch())}/>,
+
+ ];
+ const dropMenuDatas = [
+ {
+ key: "log", icon: ,
+ content: getLabel(545781, "操作日志")
+ },
+ {
+ key: "BTN_COLUMN",
+ icon: ,
+ content: getLabel(111, "显示列定制"),
+ onClick: () => {
+ tableStore.setColSetVisible(true);
+ tableStore.tableColSet(true);
+ }
+ }
];
const tabs = [
{ key: "statistics", title: getLabel(111, "统计表") },
- { key: "detail", title: getLabel(111, "员工明细") }
+ { key: "detail", title: getLabel(111, "员工明细") },
+ { key: "salaryDetail", title: getLabel(111, "薪资明细") }
];
return (
this.setState({ selectedKey }, () => this.state.selectedKey === "statistics" && this.initReportFormCondition())}
onDropMenuClick={this.onDropMenuClick}
- dropMenuDatas={[
- {
- key: "log", icon: ,
- content: getLabel(545781, "操作日志")
- }
- ]}
+ dropMenuDatas={selectedKey !== "salaryDetail" ? _.filter(dropMenuDatas, o => o.key !== "BTN_COLUMN") : dropMenuDatas}
>
+
+ this.setState({ showSearchAd: false })} onAdSearch={this.onAdSearch}/>
+
{
selectedKey === "statistics" ?
this.onDropMenuClick(type, targetid)}
- /> : : selectedKey === "detail" ? this.employeeListRef = dom}
keyword={keyword} year={year}
onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}
- />
+ /> : this.salaryRef = dom} dateRange={dateRange} isQuery={isQuery}/>
}
{
- const { data: salarySobList } = await getSalarysobListAll();
+ const [salarySobList, empStatusList] = await Promise.all([getSalarysobListAll(), commonEnumList({ enumClass: "com.engine.salary.enums.salarysob.SalaryEmployeeStatusEnum" })]);
getTaxAgentSelectList(true).then(({ status, data }) => {
if (status) {
const conditions = _.map(condition, item => {
@@ -85,7 +85,12 @@ class StatisticalMicroSettingsSlide extends Component {
} else if (getKey(child) === "salarySob") {
return {
...child, viewAttr: props.isShare ? 1 : child.viewAttr,
- options: _.map(salarySobList, o => ({ key: String(o.id), showname: o.name }))
+ options: _.map(salarySobList.data, o => ({ key: String(o.id), showname: o.name }))
+ };
+ } else if (getKey(child) === "status") {
+ return {
+ ...child, viewAttr: props.isShare ? 1 : child.viewAttr,
+ options: _.map(empStatusList.data, o => ({ key: o.value.toString(), showname: o.defaultLabel }))
};
}
return { ...child, viewAttr: props.isShare ? 1 : child.viewAttr };
@@ -131,8 +136,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, salarySob, ...extra } = form.getFormDatas();
+ const { department, employee, position, subCompany, taxAgent, salarySob, status, ...extra } = form.getFormDatas();
const { value, valueSpan } = taxAgent;
+ const { value: statusVal, valueSpan: statusValSpan } = status;
const { value: sobValue, valueSpan: sobValueSpan } = salarySob;
if (!salaryEndMonth || !salaryStartMonth) {
this.refs.weaError.showError();
@@ -146,6 +152,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] })) : [],
+ status: statusVal ? _.map(statusVal.split(","), (it, idx) => ({
+ id: it,
+ name: statusValSpan.split(",")[idx]
+ })) : [],
salarySob: sobValue ? _.map(sobValue.split(","), (it, idx) => ({
id: it,
name: sobValueSpan.split(",")[idx]
diff --git a/pc4mobx/hrmSalary/pages/supplementaryCalc/index.less b/pc4mobx/hrmSalary/pages/supplementaryCalc/index.less
index e69de29b..15401c45 100644
--- a/pc4mobx/hrmSalary/pages/supplementaryCalc/index.less
+++ b/pc4mobx/hrmSalary/pages/supplementaryCalc/index.less
@@ -0,0 +1,7 @@
+.retroactiveWrapper {
+ height: 100%;
+
+ .wea-error {
+ width: 100%;
+ }
+}
diff --git a/pc4mobx/hrmSalary/stores/attendanceStore.js b/pc4mobx/hrmSalary/stores/attendanceStore.js
index d34866d3..142caa6d 100644
--- a/pc4mobx/hrmSalary/stores/attendanceStore.js
+++ b/pc4mobx/hrmSalary/stores/attendanceStore.js
@@ -1,6 +1,7 @@
import { action, observable } from "mobx";
-import { WeaForm } from "comsMobx";
+import { WeaForm, WeaTableNew } from "comsMobx";
+const { TableStore } = WeaTableNew;
export class AttendanceStore {
@observable form = new WeaForm();
@@ -13,6 +14,8 @@ export class AttendanceStore {
//报表查看 统计数据范围及规则设置form
@observable settingForm = new WeaForm();
//报表查看 分享报表
+ @observable salaryDetailSearchForm = new WeaForm();
+ @observable tableStore = new TableStore();//薪资明细表格仓库
@observable shareForm = new WeaForm();
@observable shareLogForm = new WeaForm();
@observable sharePerForm = new WeaForm();
From 7fcc3594e53fd59e23637ce44306f3344df38424 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, 26 Mar 2024 17:08:06 +0800
Subject: [PATCH 047/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E9=A1=B9=E4=BB=A5=E5=8F=8A=E8=96=AA=E8=B5=84=E6=98=8E=E7=BB=86?=
=?UTF-8?q?=E7=9A=84=E5=BC=80=E5=8F=91=201=E3=80=81=E8=A1=A5=E7=AE=97?=
=?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90=202=E3=80=81?=
=?UTF-8?q?=E8=96=AA=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8-?=
=?UTF-8?q?=E8=96=AA=E8=B5=84=E6=8A=A5=E8=A1=A8=E7=9A=84=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index 886900e6..c9efba65 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -331,7 +331,7 @@ class Index extends Component {
const tabs = [
{ key: "statistics", title: getLabel(111, "统计表") },
{ key: "detail", title: getLabel(111, "员工明细") },
- { key: "salaryDetail", title: getLabel(111, "薪资明细") }
+ // { key: "salaryDetail", title: getLabel(111, "薪资明细") }
];
return (
Date: Wed, 27 Mar 2024 10:11:30 +0800
Subject: [PATCH 048/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E9=A1=B9=E4=BB=A5=E5=8F=8A=E8=96=AA=E8=B5=84=E6=98=8E=E7=BB=86?=
=?UTF-8?q?=E7=9A=84=E5=BC=80=E5=8F=91=201=E3=80=81=E8=A1=A5=E7=AE=97?=
=?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90=202=E3=80=81?=
=?UTF-8?q?=E8=96=AA=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8-?=
=?UTF-8?q?=E8=96=AA=E8=B5=84=E6=8A=A5=E8=A1=A8=E7=9A=84=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../analysisOfSalaryStatistics/components/salaryDetails.js | 4 +++-
pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js | 2 +-
pc4mobx/hrmSalary/util/index.js | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index e83e95ca..7ff80bb3 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -36,7 +36,9 @@ class SalaryDetails extends Component {
}
componentWillReceiveProps(nextProps, nextContext) {
- if (nextProps.isQuery !== this.props.isQuery) this.getSalaryList(nextProps);
+ if (nextProps.isQuery !== this.props.isQuery) this.setState({
+ pageInfo: { ...this.state.pageInfo, current: 1 }
+ }, () => this.getSalaryList(nextProps));
}
componentWillUnmount() {
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index c9efba65..886900e6 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -331,7 +331,7 @@ class Index extends Component {
const tabs = [
{ key: "statistics", title: getLabel(111, "统计表") },
{ key: "detail", title: getLabel(111, "员工明细") },
- // { key: "salaryDetail", title: getLabel(111, "薪资明细") }
+ { key: "salaryDetail", title: getLabel(111, "薪资明细") }
];
return (
{
const dom = document.querySelector(selector);
let height = 280;
if (dom && total > 0) {
- height = (parseFloat(dom.style.height) > 620 && total === 10) ? total * 48 + 108: total < 10 ? total * 48 + 108 : parseFloat(dom.style.height) - extraHeight;
+ height = (parseFloat(dom.style.height) > 620 && total === 10) ? total * 48 + 108 : total < 10 ? (total + 1) * 48 + 108 : parseFloat(dom.style.height) - extraHeight;
}
return height;
};
From 15439581f4291f840f64edf238c376f6c62e9257 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, 27 Mar 2024 14:07:25 +0800
Subject: [PATCH 049/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E9=A1=B9=E4=BB=A5=E5=8F=8A=E8=96=AA=E8=B5=84=E6=98=8E=E7=BB=86?=
=?UTF-8?q?=E7=9A=84=E5=BC=80=E5=8F=91=201=E3=80=81=E8=A1=A5=E7=AE=97?=
=?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=AE=8C=E6=88=90=202=E3=80=81?=
=?UTF-8?q?=E8=96=AA=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8-?=
=?UTF-8?q?=E8=96=AA=E8=B5=84=E6=8A=A5=E8=A1=A8=E7=9A=84=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/pages/analysisOfSalaryStatistics/index.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index 886900e6..d4681ac2 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -291,7 +291,7 @@ class Index extends Component {
value={reportName}
onChange={reportName => this.setState({ reportName })}
onSearch={() => this.handleReqBtnsClick("search")}/>
- ] : selectedKey === "statistics" ? [
+ ] : selectedKey === "detail" ? [
{getLabel(111, "年薪资核算人员明细:")}
this.setState({ year })}/>
@@ -336,11 +336,11 @@ class Index extends Component {
return (
} selectedKey={selectedKey}
- iconBgcolor="#F14A2D" tabDatas={tabs} className="xc_tj_fx_wrapper" showDropIcon
+ iconBgcolor="#F14A2D" tabDatas={tabs} className="xc_tj_fx_wrapper"
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={selectedKey !== "salaryDetail" ? _.filter(dropMenuDatas, o => o.key !== "BTN_COLUMN") : dropMenuDatas}
+ showDropIcon={selectedKey !== "detail"} onDropMenuClick={this.onDropMenuClick}
+ dropMenuDatas={selectedKey === "salaryDetail" ? dropMenuDatas.slice(-1) : dropMenuDatas.slice(0, 1)}
>
this.setState({ showSearchAd: false })} onAdSearch={this.onAdSearch}/>
From 9471a5a737695fc39b98eba8e673fe95a3e19284 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, 28 Mar 2024 16:49:44 +0800
Subject: [PATCH 050/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC?=
=?UTF-8?q?=E5=87=BA=E6=A8=A1=E6=9D=BF=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/customCalcExportDialog/index.js | 10 ++++++++--
.../components/customCalcExportDialog/index.less | 11 +++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
index c3e1f838..7dedaa0d 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
@@ -8,7 +8,7 @@
import React, { Component } from "react";
import { Button, Col, message, Row } from "antd";
import { inject, observer } from "mobx-react";
-import { WeaCheckbox, WeaDialog, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
+import { WeaCheckbox, WeaDialog, WeaLocaleProvider, WeaSearchGroup, WeaSelect } from "ecCom";
import { customCacheExportField } from "../../../../../apis/calculate";
import { convertToUrlString } from "../../../../../util/url";
import "./index.less";
@@ -84,10 +84,14 @@ class Index extends Component {
return { ...item, salaryItems: _.filter(item.salaryItems, it => !!it.checked) };
});
}
+ const titleComp =
+ {getLabel(111, "选择字段")}
+
+
;
return (
{getLabel(17416, "导出")},
+ {getLabel(111, "存为模板")},
+ {getLabel(111, "模板管理")},
{getLabel(31129, "取消")}
]}
bottomLeft={
Date: Fri, 29 Mar 2024 10:19:33 +0800
Subject: [PATCH 051/127] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA?=
=?UTF-8?q?=E7=A8=8E-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/calculate.js | 8 ++
pc4mobx/hrmSalary/common/columns.js | 77 ------------
pc4mobx/hrmSalary/common/conditions.js | 24 ++++
.../customCalcExportDialog/index.js | 26 +++-
.../components/expFieldsSetDialog/index.js | 117 ++++++++++++++++++
.../expFieldsSetDialog/tempDialog.js | 73 +++++++++++
.../expTempManagementDialog/index.js | 96 ++++++++++++++
pc4mobx/hrmSalary/stores/calculate.js | 2 +
8 files changed, 340 insertions(+), 83 deletions(-)
delete mode 100644 pc4mobx/hrmSalary/common/columns.js
create mode 100644 pc4mobx/hrmSalary/common/conditions.js
create mode 100644 pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js
create mode 100644 pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/tempDialog.js
create mode 100644 pc4mobx/hrmSalary/pages/calculate/doCalc/components/expTempManagementDialog/index.js
diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index 1cfca645..38c0c08b 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -250,3 +250,11 @@ export const customCacheExportField = (params) => {
export const salaryacctBatchUpdate = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/batchUpdate", params);
};
+//薪资核算-自定义导出模板保存新建
+export const saveExportTemplate = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/saveExportTemplate", params);
+};
+//薪资核算-获取自定义导出模板列表
+export const getExportTemplateList = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/exportTemplateList", params);
+};
diff --git a/pc4mobx/hrmSalary/common/columns.js b/pc4mobx/hrmSalary/common/columns.js
deleted file mode 100644
index 4c9dc027..00000000
--- a/pc4mobx/hrmSalary/common/columns.js
+++ /dev/null
@@ -1,77 +0,0 @@
-export const logColumns = [
- {
- title: "操作时间",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "操作人",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "操作类型",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "模块",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "对象",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "修改详情",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "客户端IP",
- dataIndex: 'title',
- key: 'title',
- }
-]
-
-export const testColumns = [
- {
- title: "姓名",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "个税扣缴义务人",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "部门",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "手机号",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "工号",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "证件号码",
- dataIndex: 'title',
- key: 'title',
- },
- {
- title: "入职日期",
- dataIndex: 'title',
- key: 'title',
- },
-]
-
-export const dataSource = [];
\ No newline at end of file
diff --git a/pc4mobx/hrmSalary/common/conditions.js b/pc4mobx/hrmSalary/common/conditions.js
new file mode 100644
index 00000000..81e041a6
--- /dev/null
+++ b/pc4mobx/hrmSalary/common/conditions.js
@@ -0,0 +1,24 @@
+import React from "react";
+import { WeaLocaleProvider } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
+//薪资核算-自定义导出-模板设置
+export const tempConditions = [
+ {
+ items: [
+ {
+ colSpan: 1,
+ conditionType: "INPUT",
+ domkey: ["templateName"],
+ fieldcol: 16,
+ label: getLabel(111, "导出模板名称"),
+ labelcol: 8,
+ value: "",
+ rules: "required|string",
+ viewAttr: 3
+ }
+ ],
+ defaultshow: true,
+ title: ""
+ }
+];
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
index 7dedaa0d..2a4f2390 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
@@ -9,9 +9,11 @@ import React, { Component } from "react";
import { Button, Col, message, Row } from "antd";
import { inject, observer } from "mobx-react";
import { WeaCheckbox, WeaDialog, WeaLocaleProvider, WeaSearchGroup, WeaSelect } from "ecCom";
+import ExpTempManagementDialog from "../expTempManagementDialog";
import { customCacheExportField } from "../../../../../apis/calculate";
import { convertToUrlString } from "../../../../../util/url";
import "./index.less";
+import TempDialog from "../expFieldsSetDialog/tempDialog";
const { getLabel } = WeaLocaleProvider;
@@ -21,8 +23,8 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- itemsCheckeds: [],
- showOnlyChecked: false
+ itemsCheckeds: [], showOnlyChecked: false, tempMangeDialog: { visible: false, salaryAcctRecordId: "" },
+ tempDialog: { visible: false, salaryAcctRecordId: "", id: "", salaryItemIds: [] }
};
}
@@ -69,8 +71,8 @@ class Index extends Component {
};
render() {
- const { showOnlyChecked, itemsCheckeds } = this.state;
- const { itemsByGroup } = this.props;
+ const { showOnlyChecked, itemsCheckeds, tempMangeDialog, tempDialog } = this.state;
+ const { itemsByGroup, salaryAcctRecordId } = this.props;
let dataSource = _.map(itemsByGroup, item => {
return {
...item,
@@ -104,8 +106,13 @@ class Index extends Component {
}}
buttons={[
{getLabel(17416, "导出")},
- {getLabel(111, "存为模板")},
- {getLabel(111, "模板管理")},
+ this.setState({
+ tempDialog: { visible: true, salaryAcctRecordId, id: "", salaryItemIds: [] }
+ })}>{getLabel(111, "存为模板")},
+ this.setState({
+ tempMangeDialog: { visible: true, salaryAcctRecordId }
+ })}>{getLabel(111, "模板管理")},
{getLabel(31129, "取消")}
]}
bottomLeft={;
})
}
+ this.setState({ tempMangeDialog: { visible: false } })}
+ />
+ {/*模板保存*/}
+ this.setState({
+ tempDialog: { ...tempDialog, visible: false }
+ })}/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js
new file mode 100644
index 00000000..6ffcfa93
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js
@@ -0,0 +1,117 @@
+/*
+ * Author: 黎永顺
+ * name:自定义导出-导出字段设置
+ * Description:
+ * Date: 2024/3/28
+ */
+import React, { Component } from "react";
+import { WeaCheckbox, WeaDialog, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
+import { Button, Col, Row } from "antd";
+import * as API from "../../../../../apis/calculate";
+import TempDialog from "./tempDialog";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ itemsCheckeds: [], itemsByGroup: [],
+ tempDialog: { visible: false, salaryAcctRecordId: "", id: "", salaryItemIds: [] }
+ };
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) this.getExportField(nextProps);
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) this.setState({
+ itemsCheckeds: [], itemsByGroup: []
+ });
+ }
+
+ getExportField = (props) => {
+ const { salaryAcctRecordId } = props;
+ API.getExportField({ salaryAcctRecordId }).then(({ status, data }) => {
+ if (status) {
+ const { itemsByGroup } = data;
+ this.setState({ itemsByGroup });
+ }
+ });
+ };
+ handleSelectGroupAll = (groupId, checked) => {
+ const { itemsCheckeds, itemsByGroup } = this.state;
+ _.map(itemsByGroup, item => {
+ if (item.salarySobItemGroupId === groupId) {
+ if (!!Number(checked)) {
+ this.setState({
+ itemsCheckeds: [...itemsCheckeds, ..._.map(item.salaryItems, child => child.salaryItemId)]
+ });
+ } else {
+ this.setState({
+ itemsCheckeds: _.differenceWith(itemsCheckeds, _.map(item.salaryItems, child => child.salaryItemId), _.isEqual)
+ });
+ }
+ }
+ });
+ };
+
+ render() {
+ const { itemsCheckeds, itemsByGroup, tempDialog } = this.state;
+ const { salaryAcctRecordId, tempId: id } = this.props;
+ let dataSource = _.map(itemsByGroup, item => {
+ return {
+ ...item, salaryItems: _.map(item.salaryItems, child => {
+ return { ...child, checked: itemsCheckeds.includes(child.salaryItemId) };
+ })
+ };
+ });
+ return (
+ this.setState({
+ tempDialog: {
+ visible: true, salaryAcctRecordId, id, salaryItemIds: itemsCheckeds
+ }
+ })}>{getLabel(111, "保存")}]}
+ >
+ {
+ _.map(dataSource, item => {
+ const { salarySobItemGroupName, salaryItems, salarySobItemGroupId } = item;
+ const value = _.every(salaryItems, it => !!it.checked) ? "1" : "0";
+ return this.handleSelectGroupAll(salarySobItemGroupId, val)}
+ />}>
+
+ {
+ !_.isEmpty(salaryItems) ?
+ _.map(salaryItems, it => {
+ const { salaryItemId, salaryItemName, checked } = it;
+ return
+ this.setState({ itemsCheckeds: _.xorWith(itemsCheckeds, [salaryItemId], _.isEqual) })}
+ />
+ ;
+ }) : {getLabel(83553, "暂无数据")}
+ }
+
+ ;
+ })
+ }
+ this.setState({
+ tempDialog: { ...tempDialog, visible: false }
+ }, () => isRefresh && this.props.onCancel(true))}/>
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/tempDialog.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/tempDialog.js
new file mode 100644
index 00000000..c6c9d754
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/tempDialog.js
@@ -0,0 +1,73 @@
+/*
+ * Author: 黎永顺
+ * name: 导出模板保存框
+ * Description:
+ * Date: 2024/3/29
+ */
+import React, { Component } from "react";
+import { inject, observer } from "mobx-react";
+import { WeaDialog, WeaLocaleProvider } from "ecCom";
+import { Button, message } from "antd";
+import { getSearchs } from "../../../../../util";
+import { tempConditions } from "../../../../../common/conditions";
+import * as API from "../../../../../apis/calculate";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+@inject("calculateStore")
+@observer
+class TempDialog extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ loading: false
+ };
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ nextProps.calculateStore.tempForm.initFormFields(tempConditions);
+ } else {
+ nextProps.calculateStore.initTempForm();
+ }
+ }
+
+ save = () => {
+ const { calculateStore: { tempForm }, salaryAcctRecordId, id, salaryItemIds } = this.props;
+ tempForm.validateForm().then(f => {
+ if (f.isValid) {
+ const payload = tempForm.getFormParams();
+ this.setState({ loading: true });
+ API.saveExportTemplate({ ...payload, salaryAcctRecordId, id, salaryItemIds })
+ .then(({ status, errormsg }) => {
+ this.setState({ loading: false });
+ if (status) {
+ message.success(getLabel(111, "操作成功!"));
+ this.props.onCancel(true);
+ } else {
+ message.error(errormsg);
+ }
+ }).catch(() => this.setState({ loading: false }));
+ } else {
+ f.showErrors();
+ }
+ });
+ };
+
+ render() {
+ const { loading } = this.state;
+ const { calculateStore: { tempForm } } = this.props;
+ return (
+ {getLabel(111, "保存")}
+ ]}
+ >
+ {getSearchs(tempForm, tempConditions, 1, false)}
+
+ );
+ }
+}
+
+export default TempDialog;
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expTempManagementDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expTempManagementDialog/index.js
new file mode 100644
index 00000000..8e19670e
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expTempManagementDialog/index.js
@@ -0,0 +1,96 @@
+/*
+ * Author: 黎永顺
+ * name: 自定义导出-导出模板管理
+ * Description:
+ * Date: 2024/3/28
+ */
+import React, { Component } from "react";
+import { WeaButtonIcon, WeaDialog, WeaInputSearch, WeaLocaleProvider, WeaTab, WeaTable } from "ecCom";
+import ExpFieldsSetDialog from "../expFieldsSetDialog";
+import * as API from "../../../../../apis/calculate";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ pageInfo: { current: 1, pageSize: 10, total: 0 }, dataSource: [], columns: [], loading: false,
+ fieldsSetDialog: { visible: false, salaryAcctRecordId: "" }, query: { templateName: "" },
+ selectedRowKeys: []
+ };
+ this.dialogRef = null;
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) this.getExportTemplateList(nextProps);
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) this.setState({ selectedRowKeys: [] });
+ }
+
+ getExportTemplateList = (props) => {
+ const { pageInfo, query } = this.state;
+ const { salaryAcctRecordId } = props;
+ const payload = { ...pageInfo, ...query, salaryAcctRecordId };
+ this.setState({ loading: true });
+ API.getExportTemplateList(payload).then(({ status, data }) => {
+ this.setState({ loading: false });
+ if (status) {
+ const {} = data;
+ }
+ }).catch(() => this.setState({ loading: false }));
+ };
+
+ render() {
+ const { fieldsSetDialog, query, pageInfo, selectedRowKeys, dataSource, columns } = this.state;
+ const { salaryAcctRecordId } = this.props;
+ const dialogBodyHeight = this.dialogRef ? this.dialogRef.state.height : 600;
+ 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.getExportTemplateList(this.props));
+ },
+ onChange: current => {
+ this.setState({
+ pageInfo: { ...pageInfo, current }
+ }, () => this.getExportTemplateList(this.props));
+ }
+ };
+ const rowSelection = {
+ selectedRowKeys, onChange: selectedRowKeys => this.setState({ selectedRowKeys })
+ };
+ return (
+ this.dialogRef = dom} initLoadCss className="tempManageDialogLayout"
+ style={{
+ width: 700, height: 606.6, minHeight: 200, minWidth: 380, maxHeight: "70%",
+ maxWidth: "90%", overflow: "hidden", transform: "translate(0px, 0px)"
+ }}
+ >
+ this.setState({ fieldsSetDialog: { visible: true, salaryAcctRecordId } })}/>,
+ ,
+ this.setState({ query: { ...query, templateName: val } })}
+ onSearch={() => this.getExportTemplateList(this.props)}/>
+ ]}/>
+
+ this.setState({
+ fieldsSetDialog: { ...fieldsSetDialog, visible: false }
+ }, () => isRefresh && this.getExportTemplateList(this.props))}/>
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/stores/calculate.js b/pc4mobx/hrmSalary/stores/calculate.js
index 86d3b498..262488ad 100644
--- a/pc4mobx/hrmSalary/stores/calculate.js
+++ b/pc4mobx/hrmSalary/stores/calculate.js
@@ -14,6 +14,8 @@ export class calculateStore {
@observable calculateForm = new WeaForm(); //薪资核算重构-核算form
@observable batchUpdateForm = new WeaForm(); //批量更新薪资项目-批量更新form
@action initBatchUpdateForm = () => this.batchUpdateForm = new WeaForm();
+ @observable tempForm = new WeaForm(); //导出模板设置-模板form
+ @action initTempForm = () => this.tempForm = new WeaForm();
@observable tableStore = new TableStore(); // new table
@observable form = new WeaForm(); // nrew 一个form
From e5f1ede7724cd47bce3503f863511dcc0c43d39e 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, 29 Mar 2024 10:36:39 +0800
Subject: [PATCH 052/127] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E6=A8=A1=E6=9D=BFbug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/payrollRelease/components/payrollTempBaseSet/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTempBaseSet/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTempBaseSet/index.js
index 904d9ca4..7774309e 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTempBaseSet/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/components/payrollTempBaseSet/index.js
@@ -174,7 +174,7 @@ class Index extends Component {
if (it === "ackFeedbackStatus" || it === "feedbackStatus") {
payrollTempFeedbackForm.updateFields({ [it]: fieldsEchoData[it] ? "1" : "0" });
} else {
- payrollTempFeedbackForm.updateFields({ [it]: !_.isNil(fieldsEchoData[it]) ? fieldsEchoData[it].toString() : "/" });
+ payrollTempFeedbackForm.updateFields({ [it]: !_.isEmpty(fieldsEchoData[it]) ? fieldsEchoData[it].toString() : "/" });
}
});
this.setState({
From 1fad3eabdf8ed75e8cb5c6fa5c18673e03afecb9 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, 29 Mar 2024 10:48:31 +0800
Subject: [PATCH 053/127] =?UTF-8?q?release/2.12.1.2403.02=20=E6=9A=82?=
=?UTF-8?q?=E6=97=B6=E5=8E=BB=E6=8E=89=E8=96=AA=E9=85=AC=E7=BB=9F=E8=AE=A1?=
=?UTF-8?q?=E6=8A=A5=E8=A1=A8=E4=B8=AD=E7=9A=84=E8=96=AA=E8=B5=84=E6=98=8E?=
=?UTF-8?q?=E7=BB=86tab?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index d4681ac2..a653e118 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -331,7 +331,7 @@ class Index extends Component {
const tabs = [
{ key: "statistics", title: getLabel(111, "统计表") },
{ key: "detail", title: getLabel(111, "员工明细") },
- { key: "salaryDetail", title: getLabel(111, "薪资明细") }
+ // { key: "salaryDetail", title: getLabel(111, "薪资明细") }
];
return (
Date: Fri, 29 Mar 2024 14:37:49 +0800
Subject: [PATCH 054/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC?=
=?UTF-8?q?=E5=87=BA=E6=A8=A1=E6=9D=BF=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/calculate.js | 9 +++
.../customCalcExportDialog/index.js | 62 ++++++++++++++--
.../components/expFieldsSetDialog/index.js | 43 +++++++----
.../expTempManagementDialog/index.js | 74 +++++++++++++++++--
4 files changed, 160 insertions(+), 28 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index 38c0c08b..0abda464 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -258,3 +258,12 @@ export const saveExportTemplate = (params) => {
export const getExportTemplateList = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/exportTemplateList", params);
};
+//薪资核算-删除自定义导出模板列表
+export const deleteExportTemplate = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/deleteExportTemplate", params);
+};
+//薪资核算-获取导出模板详细信息
+export const getExportTemplateForm = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/getExportTemplateForm", params);
+};
+
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
index 2a4f2390..d90e5830 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
@@ -10,7 +10,12 @@ import { Button, Col, message, Row } from "antd";
import { inject, observer } from "mobx-react";
import { WeaCheckbox, WeaDialog, WeaLocaleProvider, WeaSearchGroup, WeaSelect } from "ecCom";
import ExpTempManagementDialog from "../expTempManagementDialog";
-import { customCacheExportField } from "../../../../../apis/calculate";
+import {
+ customCacheExportField,
+ getExportField,
+ getExportTemplateForm,
+ getExportTemplateList
+} from "../../../../../apis/calculate";
import { convertToUrlString } from "../../../../../util/url";
import "./index.less";
import TempDialog from "../expFieldsSetDialog/tempDialog";
@@ -24,18 +29,43 @@ class Index extends Component {
super(props);
this.state = {
itemsCheckeds: [], showOnlyChecked: false, tempMangeDialog: { visible: false, salaryAcctRecordId: "" },
- tempDialog: { visible: false, salaryAcctRecordId: "", id: "", salaryItemIds: [] }
+ tempDialog: { visible: false, salaryAcctRecordId: "", id: "", salaryItemIds: [] },
+ tempOptions: [
+ { key: "", showname: "" },
+ { key: "system", showname: getLabel(111, "系统模板") }
+ ]
};
}
- componentWillReceiveProps(nextProps, nextContext) {
+ async componentWillReceiveProps(nextProps, nextContext) {
if (nextProps.visible !== this.props.visible && nextProps.visible) {
this.setState({
itemsCheckeds: !_.isEmpty(nextProps.checkItems) ? nextProps.checkItems : []
+ }, () => this.getExportTemplateList(nextProps));
+ } else {
+ this.setState({
+ tempOptions: [
+ { key: "", showname: "" },
+ { key: "system", showname: getLabel(111, "系统模板") }
+ ]
});
}
}
+ getExportTemplateList = (props) => {
+ const { salaryAcctRecordId } = props;
+ getExportTemplateList({ salaryAcctRecordId }).then(({ status, data }) => {
+ if (status) {
+ const { pageInfo: { list } } = data;
+ this.setState({
+ tempOptions: [
+ ...this.state.tempOptions, ..._.map(list, o => ({ key: String(o.id), showname: o.templateName }))
+ ]
+ });
+ }
+ });
+ };
+
customExportClick = () => {
const { calculateStore: { ECSearchForm }, salaryAcctRecordId } = this.props;
const { itemsCheckeds } = this.state;
@@ -69,9 +99,25 @@ class Index extends Component {
}
});
};
+ handleChangeExpTemp = async (id) => {
+ switch (id) {
+ case "system":
+ const { salaryAcctRecordId } = this.props;
+ const { data: { checkItems: checkeds } } = await getExportField({ salaryAcctRecordId });
+ this.setState({ itemsCheckeds: checkeds });
+ break;
+ case "":
+ this.setState({ itemsCheckeds: "" });
+ break;
+ default:
+ const { data: { checkItems } } = await getExportTemplateForm({ id });
+ this.setState({ itemsCheckeds: _.map(checkItems, o => parseInt(o)) });
+ break;
+ }
+ };
render() {
- const { showOnlyChecked, itemsCheckeds, tempMangeDialog, tempDialog } = this.state;
+ const { showOnlyChecked, itemsCheckeds, tempMangeDialog, tempDialog, tempOptions } = this.state;
const { itemsByGroup, salaryAcctRecordId } = this.props;
let dataSource = _.map(itemsByGroup, item => {
return {
@@ -88,7 +134,7 @@ class Index extends Component {
}
const titleComp =
{getLabel(111, "选择字段")}
-
+
;
return (
{getLabel(17416, "导出")},
this.setState({
- tempDialog: { visible: true, salaryAcctRecordId, id: "", salaryItemIds: [] }
+ tempDialog: { visible: true, salaryAcctRecordId, id: "", salaryItemIds: itemsCheckeds }
})}>{getLabel(111, "存为模板")},
this.setState({
@@ -145,7 +191,9 @@ class Index extends Component {
})
}
this.setState({ tempMangeDialog: { visible: false } })}
+ onCancel={() => this.setState({
+ tempMangeDialog: { ...tempMangeDialog, visible: false }
+ }, () => this.getExportTemplateList(this.props))}
/>
{/*模板保存*/}
this.setState({
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js
index 6ffcfa93..ec38b1bf 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/expFieldsSetDialog/index.js
@@ -6,7 +6,7 @@
*/
import React, { Component } from "react";
import { WeaCheckbox, WeaDialog, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
-import { Button, Col, Row } from "antd";
+import { Button, Col, message, Row } from "antd";
import * as API from "../../../../../apis/calculate";
import TempDialog from "./tempDialog";
@@ -29,11 +29,11 @@ class Index extends Component {
}
getExportField = (props) => {
- const { salaryAcctRecordId } = props;
+ const { salaryAcctRecordId, checkItems } = props;
API.getExportField({ salaryAcctRecordId }).then(({ status, data }) => {
if (status) {
const { itemsByGroup } = data;
- this.setState({ itemsByGroup });
+ this.setState({ itemsByGroup, itemsCheckeds: checkItems });
}
});
};
@@ -43,24 +43,45 @@ class Index extends Component {
if (item.salarySobItemGroupId === groupId) {
if (!!Number(checked)) {
this.setState({
- itemsCheckeds: [...itemsCheckeds, ..._.map(item.salaryItems, child => child.salaryItemId)]
+ itemsCheckeds: [...itemsCheckeds, ..._.map(item.salaryItems, child => String(child.salaryItemId))]
});
} else {
this.setState({
- itemsCheckeds: _.differenceWith(itemsCheckeds, _.map(item.salaryItems, child => child.salaryItemId), _.isEqual)
+ itemsCheckeds: _.differenceWith(itemsCheckeds, _.map(item.salaryItems, child => String(child.salaryItemId)), _.isEqual)
});
}
}
});
};
+ save = () => {
+ const { itemsCheckeds } = this.state;
+ const { salaryAcctRecordId, tempId: id, templateName } = this.props;
+ if (!id) {
+ this.setState({
+ tempDialog: {
+ visible: true, salaryAcctRecordId, id, salaryItemIds: itemsCheckeds
+ }
+ });
+ } else {
+ API.saveExportTemplate({ templateName, salaryAcctRecordId, id, salaryItemIds: itemsCheckeds })
+ .then(({ status, errormsg }) => {
+ this.setState({ loading: false });
+ if (status) {
+ message.success(getLabel(111, "操作成功!"));
+ this.props.onCancel(true);
+ } else {
+ message.error(errormsg);
+ }
+ }).catch(() => this.setState({ loading: false }));
+ }
+ };
render() {
const { itemsCheckeds, itemsByGroup, tempDialog } = this.state;
- const { salaryAcctRecordId, tempId: id } = this.props;
let dataSource = _.map(itemsByGroup, item => {
return {
...item, salaryItems: _.map(item.salaryItems, child => {
- return { ...child, checked: itemsCheckeds.includes(child.salaryItemId) };
+ return { ...child, checked: itemsCheckeds.includes(String(child.salaryItemId)) };
})
};
});
@@ -72,11 +93,7 @@ class Index extends Component {
width: 700, height: 606.6, minHeight: 200, minWidth: 380, maxHeight: "70%",
maxWidth: "90%", overflow: "hidden", transform: "translate(0px, 0px)"
}}
- buttons={[ this.setState({
- tempDialog: {
- visible: true, salaryAcctRecordId, id, salaryItemIds: itemsCheckeds
- }
- })}>{getLabel(111, "保存")}]}
+ buttons={[{getLabel(111, "保存")}]}
>
{
_.map(dataSource, item => {
@@ -93,7 +110,7 @@ class Index extends Component {
const { salaryItemId, salaryItemName, checked } = it;
return
this.setState({ itemsCheckeds: _.xorWith(itemsCheckeds, [salaryItemId], _.isEqual) })}
+ onChange={() => this.setState({ itemsCheckeds: _.xorWith(itemsCheckeds, [String(salaryItemId)], _.isEqual) })}
/>
;
}) : {
this.setState({ loading: false });
if (status) {
- const {} = data;
+ const { pageInfo: { columns, list: dataSource, pageNum: current, pageSize, total } } = data;
+ this.setState({
+ dataSource, pageInfo: { ...pageInfo, current, pageSize, total },
+ columns: [...columns, {
+ dataIndex: "operate", title: getLabel(111, "操作"), width: 120,
+ render: (__, record) => (
+ this.getExportTemplateForm(record)}>{getLabel(111, "编辑")}
+ this.deleteExportTemplate([record.id])}>{getLabel(111, "删除")}
+ )
+ }]
+ });
}
}).catch(() => this.setState({ loading: false }));
};
+ getExportTemplateForm = (record) => {
+ const { id, templateName } = record;
+ const { fieldsSetDialog } = this.state;
+ const { salaryAcctRecordId } = this.props;
+ API.getExportTemplateForm({ id }).then(({ status, data }) => {
+ if (status) {
+ const { checkItems } = data;
+ this.setState({
+ fieldsSetDialog: {
+ ...fieldsSetDialog, tempId: id, templateName, visible: true, salaryAcctRecordId, checkItems
+ }
+ });
+ } else {
+ this.setState({
+ fieldsSetDialog: {
+ ...fieldsSetDialog, tempId: id, templateName, visible: true, salaryAcctRecordId, checkItems: []
+ }
+ });
+ }
+ });
+ };
+ deleteExportTemplate = (ids) => {
+ Modal.confirm({
+ title: getLabel(131329, "信息确认"),
+ content: getLabel(111, "确定要删除吗?"),
+ onOk: () => {
+ API.deleteExportTemplate({ ids }).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(111, "操作成功!"));
+ this.setState({ selectedRowKeys: [] }, () => this.getExportTemplateList(this.props));
+ } else {
+ message.error(errormsg);
+ }
+ });
+ }
+ });
+ };
render() {
const { fieldsSetDialog, query, pageInfo, selectedRowKeys, dataSource, columns } = this.state;
@@ -75,18 +125,26 @@ class Index extends Component {
>
this.setState({ fieldsSetDialog: { visible: true, salaryAcctRecordId } })}/>,
+ onClick={() => this.setState({
+ fieldsSetDialog: {
+ ...fieldsSetDialog, visible: true, tempId: "", templateName: "",
+ salaryAcctRecordId, checkItems: []
+ }
+ })}/>,
,
+ disabled={_.isEmpty(selectedRowKeys)}
+ onClick={() => this.deleteExportTemplate(selectedRowKeys)}/>,
this.setState({ query: { ...query, templateName: val } })}
- onSearch={() => this.getExportTemplateList(this.props)}/>
+ onSearch={() => this.setState({
+ pageInfo: { ...pageInfo, current: 1 }
+ }, () => this.getExportTemplateList(this.props))}/>
]}/>
+ scroll={{ y: `calc(${dialogBodyHeight}px - 148px)` }}/>
this.setState({
- fieldsSetDialog: { ...fieldsSetDialog, visible: false }
+ fieldsSetDialog: { ...fieldsSetDialog, visible: false, checkItems: [] }
}, () => isRefresh && this.getExportTemplateList(this.props))}/>
);
From 3ab97c5a709fd9a59b7901e2bf253c098bac3c19 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, 29 Mar 2024 16:15:11 +0800
Subject: [PATCH 055/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC?=
=?UTF-8?q?=E5=87=BA=E6=A8=A1=E6=9D=BF=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../customCalcExportDialog/index.js | 27 ++++++++++++-------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
index d90e5830..b1ca3ffb 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
@@ -31,7 +31,7 @@ class Index extends Component {
itemsCheckeds: [], showOnlyChecked: false, tempMangeDialog: { visible: false, salaryAcctRecordId: "" },
tempDialog: { visible: false, salaryAcctRecordId: "", id: "", salaryItemIds: [] },
tempOptions: [
- { key: "", showname: "" },
+ { key: "NULL", showname: "" },
{ key: "system", showname: getLabel(111, "系统模板") }
]
};
@@ -45,7 +45,7 @@ class Index extends Component {
} else {
this.setState({
tempOptions: [
- { key: "", showname: "" },
+ { key: "NULL", showname: "" },
{ key: "system", showname: getLabel(111, "系统模板") }
]
});
@@ -106,8 +106,8 @@ class Index extends Component {
const { data: { checkItems: checkeds } } = await getExportField({ salaryAcctRecordId });
this.setState({ itemsCheckeds: checkeds });
break;
- case "":
- this.setState({ itemsCheckeds: "" });
+ case "NULL":
+ this.setState({ itemsCheckeds: [] });
break;
default:
const { data: { checkItems } } = await getExportTemplateForm({ id });
@@ -134,7 +134,8 @@ class Index extends Component {
}
const titleComp =
{getLabel(111, "选择字段")}
-
+
;
return (
{getLabel(17416, "导出")},
this.setState({
- tempDialog: { visible: true, salaryAcctRecordId, id: "", salaryItemIds: itemsCheckeds }
+ tempDialog: { visible: true, salaryAcctRecordId, id: "", salaryItemIds: itemsCheckeds },
+ tempOptions: [
+ { key: "NULL", showname: "" },
+ { key: "system", showname: getLabel(111, "系统模板") }
+ ]
})}>{getLabel(111, "存为模板")},
this.setState({
- tempMangeDialog: { visible: true, salaryAcctRecordId }
+ tempMangeDialog: { visible: true, salaryAcctRecordId },
+ tempOptions: [
+ { key: "NULL", showname: "" },
+ { key: "system", showname: getLabel(111, "系统模板") }
+ ]
})}>{getLabel(111, "模板管理")},
{getLabel(31129, "取消")}
]}
@@ -196,9 +205,9 @@ class Index extends Component {
}, () => this.getExportTemplateList(this.props))}
/>
{/*模板保存*/}
- this.setState({
+ this.setState({
tempDialog: { ...tempDialog, visible: false }
- })}/>
+ }, () => this.getExportTemplateList(this.props))}/>
);
}
From 8dac6eab6b26960d04a633f6971b63fed97f8d1e 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, 29 Mar 2024 16:52:28 +0800
Subject: [PATCH 056/127] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC?=
=?UTF-8?q?=E5=87=BA=E6=A8=A1=E6=9D=BF=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/customCalcExportDialog/index.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
index b1ca3ffb..eb96a45b 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/customCalcExportDialog/index.js
@@ -32,7 +32,7 @@ class Index extends Component {
tempDialog: { visible: false, salaryAcctRecordId: "", id: "", salaryItemIds: [] },
tempOptions: [
{ key: "NULL", showname: "" },
- { key: "system", showname: getLabel(111, "系统模板") }
+ { key: "system", selected: true, showname: getLabel(111, "系统模板") }
]
};
}
@@ -46,7 +46,7 @@ class Index extends Component {
this.setState({
tempOptions: [
{ key: "NULL", showname: "" },
- { key: "system", showname: getLabel(111, "系统模板") }
+ { key: "system", selected: true, showname: getLabel(111, "系统模板") }
]
});
}
@@ -134,7 +134,7 @@ class Index extends Component {
}
const titleComp =
{getLabel(111, "选择字段")}
-
;
return (
@@ -157,7 +157,7 @@ class Index extends Component {
tempDialog: { visible: true, salaryAcctRecordId, id: "", salaryItemIds: itemsCheckeds },
tempOptions: [
{ key: "NULL", showname: "" },
- { key: "system", showname: getLabel(111, "系统模板") }
+ { key: "system", selected: true, showname: getLabel(111, "系统模板") }
]
})}>{getLabel(111, "存为模板")},
{getLabel(111, "模板管理")},
{getLabel(31129, "取消")}
From 75bb200e9dc9acb0bfe8656dc372fa1e2422f3a4 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, 1 Apr 2024 14:00:50 +0800
Subject: [PATCH 057/127] =?UTF-8?q?release/2.12.1.2403.02=20=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=98=8E=E7=BB=86=E4=BB=A5=E5=8F=8A=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E5=90=88=E5=B9=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index a653e118..d4681ac2 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -331,7 +331,7 @@ class Index extends Component {
const tabs = [
{ key: "statistics", title: getLabel(111, "统计表") },
{ key: "detail", title: getLabel(111, "员工明细") },
- // { key: "salaryDetail", title: getLabel(111, "薪资明细") }
+ { key: "salaryDetail", title: getLabel(111, "薪资明细") }
];
return (
Date: Tue, 2 Apr 2024 17:45:59 +0800
Subject: [PATCH 058/127] =?UTF-8?q?=E5=A4=9A=E8=AF=AD=E8=A8=80bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/salaryFilesEditSlide/index.js | 5 ++-
.../pages/payrollFiles/config/index.js | 17 ++++----
.../pages/payrollFiles/salaryFiles.js | 3 +-
.../pages/reportView/components/index.less | 1 +
pc4mobx/hrmSalary/pages/salaryItem/index.less | 1 +
.../standingBook/index.less | 1 +
.../welfareArchive/config.js | 12 +++---
.../welfareArchive/index.js | 3 +-
.../welfarePlanAdvanceSearchPannel/index.js | 18 +++++++-
.../components/welfarePlanCopyDialog/index.js | 2 +-
.../components/welfarePlanEditSlide/index.js | 13 ++++--
.../components/welfarePlanList/index.js | 14 ++++--
.../welfarePlan/config.js | 43 +++++++++++++------
.../welfarePlan/index.js | 4 +-
.../welfarePlan/index.less | 1 +
15 files changed, 96 insertions(+), 42 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js
index d4eaf520..d93c4aba 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js
@@ -62,7 +62,8 @@ class Index extends Component {
conditions: _.map(salaryFilesConditions, o => {
if (o.salaryFile) {
return {
- ...o, items: _.map(adjustSalaryItems, g => {
+ ...o, title: getLabel(o.lanId, o.title), titleHelpful: getLabel(o.titleHelpfulLanId, o.titleHelpful),
+ items: _.map(adjustSalaryItems, g => {
const otherParams = g.dataType === "number" ? { precision: g.pattern } : {};
return {
colSpan: 3, fieldcol: 14, label: g.name, labelcol: 10, ...otherParams,
@@ -73,7 +74,7 @@ class Index extends Component {
};
}
return {
- ...o, items: _.map(o.items, g => {
+ ...o, title: getLabel(o.lanId, o.title), items: _.map(o.items, g => {
if (getKey(g) === "payStartDate") {
return {
...g, label: getLabel(g.lanId, g.label),
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
index ffd98075..46bce19e 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
@@ -43,11 +43,11 @@ export const tabCondition = [
}
];
export const tabList = [
- { viewcondition: "pending", title: getLabel(542689, "待定薪"), showcount: true, groupid: "PENDING" },
- { viewcondition: "fixed", title: getLabel(544638, "发薪员工"), showcount: true, groupid: "FIXED" },
- { viewcondition: "suspend", title: getLabel(542691, "待停薪"), showcount: true, groupid: "SUSPEND" },
- { viewcondition: "stop", title: getLabel(544637, "停薪员工"), showcount: true, groupid: "STOP" },
- { viewcondition: "ext", title: getLabel(542679, "非系统人员"), showcount: true, groupid: "EXT" }
+ { viewcondition: "pending", title: "待定薪", lanId: 542689, showcount: true, groupid: "PENDING" },
+ { viewcondition: "fixed", title: "发薪员工", lanId: 544638, showcount: true, groupid: "FIXED" },
+ { viewcondition: "suspend", title: "待停薪", lanId: 542691, showcount: true, groupid: "SUSPEND" },
+ { viewcondition: "stop", title: "停薪员工", lanId: 544637, showcount: true, groupid: "STOP" },
+ { viewcondition: "ext", title: "非系统人员", lanId: 542679, showcount: true, groupid: "EXT" }
];
export const renderReqBtns = (selectedKey, salaryImportTypes, onSalaryOpts, showOperateBtn) => {
let reqBtns = [
@@ -367,7 +367,7 @@ export const salaryFileSearchConditions = [
export const salaryFilesConditions = [
{
defaultshow: true, title: getLabel(1361, "基本信息"),
- col: 3,
+ col: 3, lanId: 1361,
items: [
{
colSpan: 3,
@@ -439,7 +439,7 @@ export const salaryFilesConditions = [
},
{
defaultshow: true, title: getLabel(543329, "发薪设置"),
- col: 1,
+ col: 1,lanId: 543329,
items: [
{
colSpan: 1,
@@ -469,7 +469,8 @@ export const salaryFilesConditions = [
{
defaultshow: true, title: getLabel(538004, "薪资档案"),
titleHelpful: getLabel(543330, "提示:显示已生效的最新数据"),
- col: 2, salaryFile: true,
+ titleHelpfulLanId: 543330,
+ col: 2, salaryFile: true,lanId: 538004,
items: []
}
];
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
index 596b79c1..59fed35e 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
@@ -242,6 +242,7 @@ class SalaryFiles extends Component {
salaryFileImpDialog, salaryImportTypes, logDialogVisible, filterConditions
} = this.state;
const { taxAgentStore: { showOperateBtn } } = this.props;
+ const tabs = _.map(tabList, o => ({ ...o, title: getLabel(o.lanId, o.title) }));
return (
this.setState({ selectedKey: key })}
/>
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/index.less b/pc4mobx/hrmSalary/pages/reportView/components/index.less
index 53e93a64..f4a8496f 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/index.less
+++ b/pc4mobx/hrmSalary/pages/reportView/components/index.less
@@ -106,6 +106,7 @@
.wea-select .wdb {
word-break: break-all !important;
word-wrap: break-word !important;
+ white-space: nowrap !important;
}
.wea-select .wea-select-input {
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.less b/pc4mobx/hrmSalary/pages/salaryItem/index.less
index 90870f6c..1d28f1ca 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.less
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.less
@@ -139,6 +139,7 @@
.wea-select .wdb {
word-break: break-all !important;
word-wrap: break-word !important;
+ white-space: nowrap !important;
}
.wea-select .wea-select-input {
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.less b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.less
index bd34d5bd..38dae0ed 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.less
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.less
@@ -104,6 +104,7 @@
.wea-select .wdb {
word-break: break-all !important;
word-wrap: break-word !important;
+ white-space: nowrap !important;
}
.wea-select .wea-select-input {
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
index 2c0a760d..7431c2d7 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
@@ -54,11 +54,11 @@ export const optTypeEnum = [
}
];
export const tabList = [
- { viewcondition: "1", title: getLabel(542711, "待增员"), showcount: true, groupid: "stayAdd" },
- { viewcondition: "2,3", title: getLabel(542504, "在缴员工"), showcount: true, groupid: "paying" },
- { viewcondition: "3", title: getLabel(542713, "待减员"), showcount: true, groupid: "stayDel" },
- { viewcondition: "4,5", title: getLabel(542505, "停缴员工"), showcount: true, groupid: "stopPay" },
- { viewcondition: "ext", title: getLabel(542679, "非系统人员"), showcount: true, groupid: "ext" }
+ { viewcondition: "1", title: "待增员", lanId: 542711, showcount: true, groupid: "stayAdd" },
+ { viewcondition: "2,3", title: "在缴员工", lanId: 542504, showcount: true, groupid: "paying" },
+ { viewcondition: "3", title: "待减员", lanId: 542713, showcount: true, groupid: "stayDel" },
+ { viewcondition: "4,5", title: "停缴员工", lanId: 542505, showcount: true, groupid: "stopPay" },
+ { viewcondition: "ext", title: "非系统人员", lanId: 542679, showcount: true, groupid: "ext" }
];
export const welfareTipList = [
{
@@ -143,7 +143,7 @@ export const renderDropMenuDatas = (selectedKey, getLabel, showOperateBtn) => {
key: "record",
icon: ,
content: getLabel(111, "基数调整记录")
- },{
+ }, {
key: "log",
icon: ,
content: getLabel(545781, "操作日志")
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
index f2844ef5..76d00398 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
@@ -147,6 +147,7 @@ class Index extends Component {
} = this.state;
const { taxAgentStore: { showOperateBtn } } = this.props;
const tipList = _.find(welfareTipList, o => o.viewcondition === selectedKey).list;
+ const tabs = _.map(tabList, o => ({ ...o, title: getLabel(o.lanId, o.title) }));
return (
this.setState({ selectedKey: key })}
/>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanAdvanceSearchPannel/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanAdvanceSearchPannel/index.js
index 0ea2dcc2..7e28cdbf 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanAdvanceSearchPannel/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanAdvanceSearchPannel/index.js
@@ -5,12 +5,13 @@
* Date: 2024/2/2
*/
import React, { Component } from "react";
-import { WeaLocaleProvider } from "ecCom";
+import { WeaLocaleProvider, WeaTools } from "ecCom";
import { Button } from "antd";
import { inject, observer } from "mobx-react";
import { getSearchs } from "../../../../../util";
import { searchConditons } from "../../config";
+const getKey = WeaTools.getKey;
const getLabel = WeaLocaleProvider.getLabel;
@inject("programmeStore")
@@ -27,7 +28,20 @@ class WelfarePlanAdvanceSearchPannel extends Component {
return (
- {getSearchs(planSearchForm, searchConditons, 2, false)}
+ {getSearchs(planSearchForm, _.map(searchConditons, item => ({
+ ...item, title: getLabel(item.lanId, item.title),
+ items: _.map(item.items, o => {
+ if (getKey(o) === "paymentTypeEnum") {
+ return {
+ ...o, label: getLabel(o.lanId, o.label),
+ options: _.map(o.options, k => ({ ...k, showname: getLabel(k.lanId, k.showname) }))
+ };
+ }
+ return {
+ ...o, label: getLabel(o.lanId, o.label)
+ };
+ })
+ })), 2, false)}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js
index 59af2d46..79685e74 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js
@@ -54,7 +54,7 @@ class Index extends Component {
const { programmeStore: { planCopyForm }, conditions } = this.props;
return (
{getLabel(537558, "保存")}
]}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js
index a70da52f..d97654e6 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js
@@ -48,15 +48,22 @@ class Index extends Component {
this.setState({
planDatas: schemeDetailList,
conditions: _.map(planConditons, item => ({
- ...item, items: _.map(item.items, o => {
+ ...item, title: getLabel(item.lanId, item.title),
+ items: _.map(item.items, o => {
if (getKey(o) === "taxAgentIds") {
return {
...o, hide: schemeBatch["sharedType"] === "0" || _.isNil(schemeBatch["sharedType"]),
viewAttr: (schemeBatch["sharedType"] === "1" && showOperateBtn) ? 3 : showOperateBtn ? o.viewAttr : 1,
- options: _.map(result, k => ({ key: k.id, showname: k.content }))
+ options: _.map(result, k => ({ key: k.id, showname: k.content })),
+ label: getLabel(o.lanId, o.label)
+ };
+ } else if (getKey(o) === "paymentType" || getKey(o) === "sharedType") {
+ return {
+ ...o, label: getLabel(o.lanId, o.label),
+ options: _.map(o.options, k => ({ ...k, showname: getLabel(k.lanId, k.showname) }))
};
}
- return { ...o, viewAttr: showOperateBtn ? o.viewAttr : 1 };
+ return { ...o, viewAttr: showOperateBtn ? o.viewAttr : 1, label: getLabel(o.lanId, o.label) };
})
}))
}, () => {
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js
index 8b661ed0..1035015a 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js
@@ -178,12 +178,18 @@ class Index extends Component {
this.setState({
copyDialog: {
visible: true, copyId: id, copyName: `${schemeName}-${getLabel(77, "复制")}`,
- title: `${getLabel(77, "复制")}-${_.find(tabWelfarePlanList, o => o.key === selectedKey).title}`,
+ title: `${getLabel(77, "复制")}-${
+ getLabel(_.find(tabWelfarePlanList, o => o.key === selectedKey).lanId, _.find(tabWelfarePlanList, o => o.key === selectedKey).title)
+ }`,
conditions: welfarePlanCopyConditions[selectedKey]
}
}, () => {
const { copyDialog: { conditions, copyName } } = this.state;
- planCopyForm.initFormFields(conditions);
+ planCopyForm.initFormFields(_.map(conditions, item => ({
+ ...item, items: _.map(item.items, o => {
+ return { ...o, label: getLabel(o.lanId, o.label) };
+ })
+ })));
planCopyForm.updateFields({ [`${selectedKey}_schemeName`]: { value: copyName } });
});
break;
@@ -311,7 +317,9 @@ class Index extends Component {
{
selectedKey === "CUSTOM" &&
-
+
+ getLabel(o.lanId, o.title))}/>
+
}
{/*复制方案*/}
onSalaryOpts("SEARCH", v)}
value={customQuery}
options={[
- { key: "", showname: getLabel(111, "全部"), selected: true },
+ { key: "", showname: getLabel(332, "全部"), selected: true },
{ key: "SOCIAL_SECURITY", showname: getLabel(538967, "社保") },
{ key: "ACCUMULATION_FUND", showname: getLabel(538969, "公积金") },
{ key: "OTHER", showname: getLabel(542717, "企业年金及其他福利") }
@@ -63,6 +66,7 @@ export const searchConditons = [
fieldcol: 16,
isQuickSearch: true,
label: getLabel(33162, "方案名称"),
+ lanId: 33162,
labelcol: 8,
value: "",
viewAttr: 2
@@ -74,16 +78,18 @@ export const searchConditons = [
fieldcol: 16,
isQuickSearch: true,
label: getLabel(543163, "缴纳类型"),
+ lanId: 543163,
labelcol: 8,
value: "",
options: [
- { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇") },
- { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村") }
+ { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇"), lanId: 19702 },
+ { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村"), lanId: 19703 }
],
viewAttr: 2
}
],
title: getLabel(82743, "基础信息"),
+ lanId: 82743,
defaultshow: true
}
];
@@ -96,6 +102,7 @@ export const welfarePlanCopyConditions = {
domkey: ["SOCIAL_SECURITY_schemeName"],
fieldcol: 16,
label: getLabel(111, "社保名称"),
+ lanId: 111,
labelcol: 8,
value: "",
rules: "required|string",
@@ -115,6 +122,7 @@ export const welfarePlanCopyConditions = {
domkey: ["ACCUMULATION_FUND_schemeName"],
fieldcol: 16,
label: getLabel(111, "公积金名称"),
+ lanId: 111,
labelcol: 8,
value: "",
rules: "required|string",
@@ -134,6 +142,7 @@ export const welfarePlanCopyConditions = {
domkey: ["OTHER_schemeName"],
fieldcol: 16,
label: getLabel(111, "企业年金及其他福利名称"),
+ lanId: 111,
labelcol: 8,
value: "",
rules: "required|string",
@@ -154,10 +163,11 @@ export const planConditons = [
domkey: ["paymentType"],
fieldcol: 14,
label: getLabel(543163, "缴纳类型"),
+ lanId: 543163,
labelcol: 6,
options: [
- { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇") },
- { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村") }
+ { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇"), lanId: 19702 },
+ { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村"), lanId: 19703 }
],
value: "SCHEME_TOWN",
rules: "required|string",
@@ -168,6 +178,7 @@ export const planConditons = [
domkey: ["schemeName"],
fieldcol: 14,
label: getLabel(33162, "方案名称"),
+ lanId: 33162,
labelcol: 6,
value: "",
rules: "required|string",
@@ -178,10 +189,11 @@ export const planConditons = [
domkey: ["sharedType"],
fieldcol: 14,
label: getLabel(543164, "可见性"),
+ lanId: 543164,
labelcol: 6,
options: [
- { key: "0", showname: getLabel(111, "公共") },
- { key: "1", showname: getLabel(111, "私有") }
+ { key: "0", showname: getLabel(111, "公共"), lanId: 111 },
+ { key: "1", showname: getLabel(111, "私有"), lanId: 111 }
],
value: "0",
rules: "required|string",
@@ -192,6 +204,7 @@ export const planConditons = [
domkey: ["taxAgentIds"],
fieldcol: 14,
label: getLabel(543165, "可见性范围"),
+ lanId: 543165,
labelcol: 6,
multiple: true,
options: [],
@@ -204,12 +217,14 @@ export const planConditons = [
domkey: ["remarks"],
fieldcol: 14,
label: getLabel(536726, "备注"),
+ lanId: 536726,
labelcol: 6,
value: "",
viewAttr: 2
}
],
title: getLabel(82743, "基础信息"),
+ lanId: 82743,
defaultshow: true
}
];
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
index d1bd4b81..20d50c88 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
@@ -13,6 +13,7 @@ import WelfarePlanList from "./components/welfarePlanList";
import LogDialog from "../../../components/logViewModal";
import cs from "classnames";
import "./index.less";
+import { tabList } from "../welfareArchive/config";
const getLabel = WeaLocaleProvider.getLabel;
@@ -64,12 +65,13 @@ class Index extends Component {
render() {
const { taxAgentStore: { showOperateBtn } } = this.props;
const { logDialogVisible, filterConditions, selectedKey, showSearchAd, isQuery, customQuery } = this.state;
+ const tabs = _.map(tabWelfarePlanList, o => ({ ...o, title: getLabel(o.lanId, o.title) }));
return (
}
iconBgcolor="#F14A2D" showDropIcon dropMenuDatas={renderDropMenuDatas(selectedKey, showOperateBtn)}
- onDropMenuClick={this.onDropMenuClick} tabDatas={tabWelfarePlanList} selectedKey={selectedKey}
+ onDropMenuClick={this.onDropMenuClick} tabDatas={tabs} selectedKey={selectedKey}
onChange={selectedKey => this.setState({ selectedKey, showSearchAd: false, customQuery: "" })}
buttons={renderReqBtns(selectedKey, this.handleReqBtnsCLick, showOperateBtn, customQuery)}
>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less
index dc2ed68b..5a057203 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less
@@ -210,6 +210,7 @@
.wea-select .wdb {
word-break: break-all !important;
word-wrap: break-word !important;
+ white-space: nowrap !important;
}
.wea-select .wea-select-input {
From bd3aa05c29934279538222347a9ee2ac0f007e68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sun, 7 Apr 2024 13:59:51 +0800
Subject: [PATCH 059/127] hotfix/2.12.1.2403.02
---
pc4mobx/hrmSalary/components/pcTemplate/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/components/pcTemplate/index.js b/pc4mobx/hrmSalary/components/pcTemplate/index.js
index ba6cd4a0..d0d0a123 100644
--- a/pc4mobx/hrmSalary/components/pcTemplate/index.js
+++ b/pc4mobx/hrmSalary/components/pcTemplate/index.js
@@ -24,7 +24,7 @@ export const dealTemplate = (itemTypeList, type) => {
const { items, groupName, groupId } = group;
if (items.length !== 0) {
items.forEach((item) => {
- item.salaryItemValue = !_.isNil(item.salaryItemValue) ? item.salaryItemValue : "100";
+ item.salaryItemValue = !_.isNil(item.salaryItemValue) ? item.salaryItemValue : "";
});
if (items.length % 2 && type === "pc") items.push({});
// 未分类不展示标题
From f8e78a97ac85db2bf9be273b478dc9d2eb76323e 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, 11 Apr 2024 15:15:26 +0800
Subject: [PATCH 060/127] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E5=8F=91=E6=94=BE=E9=A1=B5=E9=9D=A2=E5=8E=BB?=
=?UTF-8?q?=E6=8E=89=E5=AF=BC=E5=87=BAPDF=E7=9A=84=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index ff091152..4e44a75f 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -398,10 +398,10 @@ export default class PayrollGrant extends React.Component {
);
let btnDom = [
From 709ec6abd72ca5b73f6b061b120af51413c01144 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, 15 Apr 2024 16:07:41 +0800
Subject: [PATCH 061/127] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E8=A7=84?=
=?UTF-8?q?=E5=88=99=E8=AE=BE=E7=BD=AE-=E5=8A=A0=E5=AF=86=E8=A7=A3?=
=?UTF-8?q?=E5=AF=86=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
index 3e50d8ad..efda13dd 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -38,7 +38,8 @@ class RuleConfig extends Component {
const optionsList = { matchRule, orderRule, ascOrDesc, rule };
this.setState({
sysinfo, conditions: _.map(conditions, item => ({
- ...item, items: _.map(item.items, o => {
+ ...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") {
@@ -70,6 +71,8 @@ class RuleConfig extends Component {
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 if (item === "OPEN_APPLICATION_ENCRYPT") {
+ form.updateFields({ [item]: { value: _.isNil(sysinfo[item]) ? "1" : (sysinfo[item] || "") } });
} else {
form.updateFields({ [item]: { value: sysinfo[item] || "" } });
}
@@ -297,13 +300,15 @@ class RuleConfig extends Component {
render() {
const { baseFormStore: { form } } = this.props;
- const { conditions, progressVisible, progress } = this.state;
+ const { conditions, progressVisible, progress, sysinfo } = this.state;
+ const ruleConditions = sysinfo.showEncryptOperationButton === "true" ? conditions :
+ _.filter(conditions, o => o.title !== getLabel(543358, "加密规则"));
return (
{getLabel(543355, "规则配置")}} icon={}
iconBgcolor="#F14A2D" buttons={[]} className="ruleWrapper-layout"
>
- {renderRuleForm(form, conditions, this.handleChange)}
+ {renderRuleForm(form, ruleConditions, this.handleChange)}
{/*加解密进度条*/}
{
progressVisible &&
From 6d56f162b1c0e23496b7623bca86c916aa0c900d 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, 16 Apr 2024 17:10:31 +0800
Subject: [PATCH 062/127] hotfix/2.12.1.2403.02
---
pc4mobx/hrmSalary/pages/calculate/index.less | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/index.less b/pc4mobx/hrmSalary/pages/calculate/index.less
index 98cfc21f..699c416f 100644
--- a/pc4mobx/hrmSalary/pages/calculate/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/index.less
@@ -86,7 +86,7 @@
display: none;
}
- td {
+ td:not(.ant-table-selection-column) {
span {
width: 100%;
overflow: hidden;
From 11618b6aff5388f71f8b174a9b5fc4190af989ea 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, 17 Apr 2024 14:44:30 +0800
Subject: [PATCH 063/127] hotfix/2.12.1.2403.02
---
pc4mobx/hrmSalary/pages/calculate/index.less | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/index.less b/pc4mobx/hrmSalary/pages/calculate/index.less
index 699c416f..bc3f7755 100644
--- a/pc4mobx/hrmSalary/pages/calculate/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/index.less
@@ -83,7 +83,7 @@
.ant-table-tbody {
.ant-table-row-indent {
- display: none;
+ display: none!important;
}
td:not(.ant-table-selection-column) {
From 0241c017b8a1536d26173a052d4c305423c37809 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, 24 Apr 2024 10:42:04 +0800
Subject: [PATCH 064/127] =?UTF-8?q?hotfix/2.12.1.2404.02=20=E6=9B=B4?=
=?UTF-8?q?=E5=A4=9A=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/components/moreBtnMenu/index.js | 62 +++++++++++++
.../components/moreBtnMenu/index.less | 86 +++++++++++++++++++
2 files changed, 148 insertions(+)
create mode 100644 pc4mobx/hrmSalary/components/moreBtnMenu/index.js
create mode 100644 pc4mobx/hrmSalary/components/moreBtnMenu/index.less
diff --git a/pc4mobx/hrmSalary/components/moreBtnMenu/index.js b/pc4mobx/hrmSalary/components/moreBtnMenu/index.js
new file mode 100644
index 00000000..003705c9
--- /dev/null
+++ b/pc4mobx/hrmSalary/components/moreBtnMenu/index.js
@@ -0,0 +1,62 @@
+/*
+ * Author: 黎永顺
+ * name: 更多菜单列表
+ * Description:
+ * Date: 2023/12/28
+ */
+import React, { Component } from "react";
+import { WeaLocaleProvider } from "ecCom";
+import { Menu } from "antd";
+import "./index.less";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ showDrop: false
+ };
+ }
+
+ render() {
+ const { showDrop } = this.state;
+ const { dropMenuDatas } = this.props;
+ const menu = dropMenuDatas ?
+ : "";
+ return (
+
+ {
+ !_.isEmpty(dropMenuDatas) &&
+
this.setState({ showDrop: true })}>
+
+
+ }
+
this.setState({ showDrop: false })}
+ style={{ display: showDrop ? "block" : "none" }}>
+
this.setState({ showDrop: false })}>
+
+
+
+ {menu}
+
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/components/moreBtnMenu/index.less b/pc4mobx/hrmSalary/components/moreBtnMenu/index.less
new file mode 100644
index 00000000..9954df06
--- /dev/null
+++ b/pc4mobx/hrmSalary/components/moreBtnMenu/index.less
@@ -0,0 +1,86 @@
+.more-btn-menu-wrapper {
+ position: relative;
+
+ .more-btn {
+ display: inline-block;
+ padding-left: 20px;
+ line-height: 40px;
+ vertical-align: middle;
+ cursor: pointer;
+
+ .more-btn-icon {
+ font-size: 16px;
+ color: #484848;
+ cursor: pointer;
+ }
+ }
+
+ .more-btn-menu {
+ max-width: 200px;
+ position: absolute;
+ right: -14px;
+ top: 45px;
+ border: 1px solid #dadada;
+ -webkit-box-shadow: 0 0 2px #dadada;
+ box-shadow: 0 0 2px #dadada;
+ z-index: 99;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ background: #FFF;
+
+ .more-btn {
+ display: block;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ height: 44px;
+ line-height: 35px;
+ position: absolute;
+ right: -1px;
+ top: -44px;
+ padding: 0 13px;
+ border: 1px solid #dadada;
+ border-bottom: 0;
+ -webkit-box-shadow: 0 -1px 2px -1px #dadada;
+ box-shadow: 0 -1px 2px -1px #dadada;
+ background-color: #fff;
+ }
+
+ .more-btn-menu-icon-background {
+ width: 36px;
+ height: 100%;
+ background-color: #f2f5f7;
+ border: 1px solid #dadada;
+ border-right: 0;
+ position: absolute;
+ top: -1px;
+ left: -1px;
+ z-index: 0;
+ -webkit-box-sizing: content-box;
+ box-sizing: content-box;
+ }
+
+ .ant-menu {
+ margin: 10px 0;
+ border: 0;
+ text-align: left;
+ min-width: 120px;
+
+ .ant-menu-item {
+ height: 30px;
+ line-height: 30px;
+ padding: 0 5px 0 0;
+ overflow: hidden;
+ white-space: nowrap;
+ -o-text-overflow: ellipsis;
+ text-overflow: ellipsis;
+
+ .menu-icon {
+ display: inline-block;
+ width: 36px;
+ margin-right: 6px;
+ text-align: center;
+ }
+ }
+ }
+ }
+}
From 7dee340ab8d190c9aaae985470c44f7270d7b42c 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, 24 Apr 2024 15:20:13 +0800
Subject: [PATCH 065/127] hotfix/2.12.1.2404.02
---
.../pages/ledgerPage/components/ledgerSalaryItemBaseInfo.js | 1 +
pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js | 1 +
2 files changed, 2 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemBaseInfo.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemBaseInfo.js
index eb827a0a..e2b191ae 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemBaseInfo.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemBaseInfo.js
@@ -55,6 +55,7 @@ class LedgerSalaryItemBaseInfo extends Component {
const options = _.map(empFieldListOptions, o => ({
...o, disabled: _.map(dataSource, g => g.fieldId).includes(o.key)
}));
+ if (_.isEmpty(dataSource) || _.isEmpty(options)) return null;
return (
}>
diff --git a/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js b/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js
index ba853f81..e1f85aca 100644
--- a/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js
+++ b/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js
@@ -290,6 +290,7 @@ class SalaryItemSettings extends Component {
render() {
const { onChangeSalaryItem, salaryBillItemNameSet } = this.props;
const { dataList, modalPayload, checkedValue } = this.state;
+ if (_.isEmpty(dataList)) return null;
return (
Date: Thu, 25 Apr 2024 16:23:31 +0800
Subject: [PATCH 066/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/apis/mySalaryBenefits.js | 3 +++
pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js | 7 ++++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/mySalaryBenefits.js b/pc4mobx/hrmSalary/apis/mySalaryBenefits.js
index 0cb56cfe..b79a6718 100644
--- a/pc4mobx/hrmSalary/apis/mySalaryBenefits.js
+++ b/pc4mobx/hrmSalary/apis/mySalaryBenefits.js
@@ -42,6 +42,9 @@ export const doSecondAuth = (params, headers) => {
return formHeaderPost("/api/encrypt/secondauthsetting/doSecondAuth", "POST", params, headers);
// return WeaTools.callApi("/api/encrypt/secondauthsetting/doSecondAuth", "POST", params);
};
+export const getPasswordForm = params => {
+ return WeaTools.callApi("/api/hrm/secondarypwd/getPasswordForm", "GET", params);
+};
export const checkPassword = params => {
return WeaTools.callApi("/api/hrm/secondarypwd/checkPassword", "POST", params);
};
diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js b/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js
index f857c6d6..6f86c0b2 100644
--- a/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js
+++ b/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js
@@ -10,7 +10,7 @@ import { WeaSwitch } from "comsMobx";
import { condition, loginCondition } from "./pwdCondtion";
import { Button, message } from "antd";
import { RSAEcrypt } from "../../util/RSAUtil";
-import { checkPassword, saveSecondaryPwd } from "../../apis/mySalaryBenefits";
+import { checkPassword, getPasswordForm, saveSecondaryPwd } from "../../apis/mySalaryBenefits";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@@ -72,7 +72,8 @@ class PassSetDialog extends Component {
});
return group;
};
- saveSecondaryPassword = () => {
+ saveSecondaryPassword = async () => {
+ const { openRSA } = getPasswordForm();
const { isPassLoginPassword } = this.state;
const { form } = this.props;
const { secondaryPwd1, secondaryPwd2, validatecode, password } = form.getFormParams();
@@ -92,7 +93,7 @@ class PassSetDialog extends Component {
}
}
const params = isPassLoginPassword ? { secondaryPwd1, secondaryPwd2 } : { password };
- RSAEcrypt("1", params).then(RSAParam => {
+ RSAEcrypt(openRSA, params).then(RSAParam => {
isPassLoginPassword ?
saveSecondaryPwd({ ...RSAParam, validatecode }).then(({ sign, message: msg }) => {
if (sign === "1") {
From 8751c14002bd7646bb0e460b78083a9977bc338e 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 Apr 2024 16:39:58 +0800
Subject: [PATCH 067/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js b/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js
index 6f86c0b2..5e72cc72 100644
--- a/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js
+++ b/pc4mobx/hrmSalary/pages/mobilePayroll/passSetDialog.js
@@ -73,7 +73,7 @@ class PassSetDialog extends Component {
return group;
};
saveSecondaryPassword = async () => {
- const { openRSA } = getPasswordForm();
+ const { openRSA } = await getPasswordForm();
const { isPassLoginPassword } = this.state;
const { form } = this.props;
const { secondaryPwd1, secondaryPwd2, validatecode, password } = form.getFormParams();
From f1670a038033dffca2cbd1876f7f149fff00db06 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, 26 Apr 2024 14:57:06 +0800
Subject: [PATCH 068/127] =?UTF-8?q?hotfix/2.12.1.2404.02=20=E6=A1=A3?=
=?UTF-8?q?=E6=A1=88tab=E6=80=BB=E6=95=B0=E6=98=BE=E7=A4=BA=E7=9A=84?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/salaryFileList/index.js | 6 ++---
.../pages/payrollFiles/salaryFiles.js | 24 ++++++++++++-------
.../components/welfareTableList/index.js | 6 ++---
.../welfareArchive/index.js | 24 ++++++++++++-------
4 files changed, 36 insertions(+), 24 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
index 90c6938c..efe2605b 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
@@ -45,7 +45,7 @@ class Index extends Component {
}
componentDidMount() {
- this.getSalaryFileList(this.props);
+ this.getSalaryFileList(this.props, true);
window.addEventListener("message", this.handleReceive, false);
window.addEventListener("resize", this.handleResize, false);
}
@@ -152,7 +152,7 @@ class Index extends Component {
const childFrameObj = document.getElementById("atdTable");
childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
};
- getSalaryFileList = (props) => {
+ getSalaryFileList = (props, init = false) => {
const { pageInfo } = this.state;
const {
payrollFilesStore: { salaryFileQueryForm, queryList }, selectedKey, onChangeTopTabCount
@@ -166,7 +166,7 @@ class Index extends Component {
this.setState({
pageInfo: { ...pageInfo, current, pageSize, total }, dataSource
}, () => {
- onChangeTopTabCount(selectedKey, total);
+ onChangeTopTabCount(selectedKey, total, init);
});
}
}).catch(() => this.setState({ loading: false }));
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
index 59fed35e..344a3284 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/salaryFiles.js
@@ -85,15 +85,21 @@ class SalaryFiles extends Component {
break;
}
};
- queryInsuranceTabTotal = (active, total) => {
- API.queryTabTotal().then(({ status, data }) => {
- if (status) {
- const key = _.find(tabList, o => o.viewcondition === active).groupid;
- this.setState({
- topTabCount: { ...this.state.topTabCount, ...data, [key]: total }
- });
- }
- });
+ queryInsuranceTabTotal = (active, total, init) => {
+ const key = _.find(tabList, o => o.viewcondition === active).groupid;
+ if (init) {
+ API.queryTabTotal().then(({ status, data }) => {
+ if (status) {
+ this.setState({
+ topTabCount: { ...this.state.topTabCount, ...data, [key]: total }
+ });
+ }
+ });
+ } else {
+ this.setState({
+ topTabCount: { ...this.state.topTabCount, [key]: total }
+ });
+ }
};
handleReqBtnsCLick = (type, importType) => {
const { state, handleSalaryOpts } = this.salaryFileListRef.wrappedInstance || {};
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js
index 6d5e4468..a9029a86 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareTableList/index.js
@@ -68,7 +68,7 @@ class Index extends Component {
handleReceive = async ({ data }) => {
const { type, payload: { id, params } = {} } = data;
if (type === "init") {
- this.getWelfareList(this.props);
+ this.getWelfareList(this.props, true);
} else if (type === "turn") {
const { record: { baseInfo, employeeId, paymentOrganization } = {}, interfaceParams = {} } = params;
const { runStatuses, showOperateBtn } = this.props;
@@ -154,7 +154,7 @@ class Index extends Component {
getPaymentForm = async (props) => {
return API.getPaymentForm({ ...props });
};
- getWelfareList = (props) => {
+ getWelfareList = (props, init = false) => {
const { pageInfo } = this.state;
const { archivesStore: { welfareForm }, runStatuses, onChangeTopTabCount, showOperateBtn } = props;
const params = { ...pageInfo, ...welfareForm.getFormParams() };
@@ -182,7 +182,7 @@ class Index extends Component {
})
}, () => {
const { pageInfo, selectedRowKeys, columns, dataSource } = this.state;
- onChangeTopTabCount(runStatuses, total);
+ onChangeTopTabCount(runStatuses, total, init);
this.postMessageToChild({
dataSource, pageInfo, selectedRowKeys, runStatuses,
columns, showOperateBtn
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
index 76d00398..4da87e27 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/index.js
@@ -46,15 +46,21 @@ class Index extends Component {
this.setState({ showExtEmpsWitch: extEmpsWitch === "1" });
}
- queryInsuranceTabTotal = (active, total) => {
- API.queryInsuranceTabTotal().then(({ status, data }) => {
- if (status) {
- const key = _.find(tabList, o => o.viewcondition === active).groupid;
- this.setState({
- topTabCount: { ...this.state.topTabCount, ...data, [key]: total }
- });
- }
- });
+ queryInsuranceTabTotal = (active, total, init) => {
+ const key = _.find(tabList, o => o.viewcondition === active).groupid;
+ if (init) {
+ API.queryInsuranceTabTotal().then(({ status, data }) => {
+ if (status) {
+ this.setState({
+ topTabCount: { ...this.state.topTabCount, ...data, [key]: total }
+ });
+ }
+ });
+ } else {
+ this.setState({
+ topTabCount: { ...this.state.topTabCount, [key]: total }
+ });
+ }
};
handleOpenAdvanceSearch = () => this.setState({ showSearchAd: true });
handleAdvanceSearch = () => this.setState({ isQuery: !this.state.isQuery });
From 2fb3c8994741ef275b18a73be4e35c4f98ea6f3c 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, 26 Apr 2024 16:53:51 +0800
Subject: [PATCH 069/127] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97?=
=?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/calculate.js | 9 ++
.../doCalc/components/salaryEditCalc/index.js | 6 +-
.../components/salaryEditCalc/index.less | 27 ++++++
.../salaryEditCalc/salaryCalcLayout.js | 86 +++++++++++++++++++
4 files changed, 125 insertions(+), 3 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index 0abda464..f2bd582a 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -266,4 +266,13 @@ export const deleteExportTemplate = (params) => {
export const getExportTemplateForm = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/getExportTemplateForm", params);
};
+//薪资核算-薪资项目改变否
+export const getCompareSobConfig = params => {
+ return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/compareSobConfig", "GET", params);
+};
+//薪资核算-更新薪资账套
+export const updateSobConfig = params => {
+ return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/updateSobConfig", "GET", params);
+};
+
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
index e3ed75a1..2b4a149d 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
@@ -6,12 +6,12 @@
*/
import React, { Component } from "react";
import { WeaHelpfulTip, WeaLocaleProvider } from "ecCom";
-import { Button } from "antd";
import { getColumnDesc, getSalarySobCycle } from "../../../../../apis/calculate";
import { sysConfCodeRule } from "../../../../../apis/ruleconfig";
import EditCalcAdvanceSearchPannel from "./editCalcAdvanceSearchPannel";
import EditCalcTable from "./editCalcTable";
import SalaryMonthTip from "../salaryMonthTip";
+import SalaryCalcLayout from "./salaryCalcLayout";
import cs from "classnames";
import "./index.less";
@@ -57,7 +57,7 @@ class Index extends Component {
const { salarySobCycle, showSearchAd, formulaTd, columnDesc, showTotalCell } = this.state;
const { routeParams: { salaryAcctRecordId } } = this.props;
const formulaObj = _.get(columnDesc, [formulaTd]) || {};
- return (
+ return (
@@ -92,7 +92,7 @@ class Index extends Component {
{...this.props} showTotalCell={showTotalCell}
onShowFormulaTd={this.handleShowFormulaTa}/>
- );
+ );
}
}
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
index 77f3e425..19d48e65 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
@@ -207,3 +207,30 @@
}
}
}
+
+.infoConfirmDialog {
+ .confirm-content {
+ width: 100%;
+ height: 100%;
+ padding: 16px;
+ overflow: auto;
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+
+ .contract {
+ text-align: center;
+ flex-grow: 1;
+ flex-shrink: 1;
+ }
+
+ .confirm-container {
+ flex-grow: 0;
+ flex-shrink: 0;
+ margin-top: 8px;
+ width: 100%;
+
+ }
+ }
+}
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
new file mode 100644
index 00000000..1e7c24a1
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
@@ -0,0 +1,86 @@
+/*
+ * Author: 黎永顺
+ * name: 薪资核算-layout
+ * Description:
+ * Date: 2024/4/26
+ */
+import React, { Component } from "react";
+import { WeaCheckbox, WeaDialog, WeaLocaleProvider } from "ecCom";
+import { Button, message } from "antd";
+import * as API from "../../../../../apis/calculate";
+import "./index.less";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class SalaryCalcLayout extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ fieldInformationConfirm: { visible: false, data: {} }, userConfirmed: "0"
+ };
+ }
+
+ componentDidMount() {
+ this.getCompareSobConfig();
+ }
+
+ getCompareSobConfig = () => {
+ const { fieldInformationConfirm } = this.state;
+ const { routeParams: { salaryAcctRecordId: id } } = this.props;
+ API.getCompareSobConfig({ id }).then(({ status, data }) => {
+ if (status) {
+ this.setState({
+ fieldInformationConfirm: { ...fieldInformationConfirm, visible: true }
+ });
+ }
+ });
+ };
+ onOk = () => {
+ const { fieldInformationConfirm } = this.state;
+ const { routeParams: { salaryAcctRecordId: id } } = this.props;
+ API.updateSobConfig({ id }).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(30700, "操作成功!"));
+ this.setState({
+ fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
+ });
+ } else {
+ message.error(errormsg);
+ }
+ });
+ };
+
+ render() {
+ const { fieldInformationConfirm, userConfirmed } = this.state;
+ const buttons = [
+
{getLabel(111, "是,按最新账套设置全量核算")},
+
this.setState({
+ fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
+ })}>{getLabel(111, "否,忽略该提示")}
+ ];
+ return (
+
+ {this.props.children}
+
+ this.setState({
+ fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
+ })}>
+
+
+ {getLabel("111", "本次核算所属薪资账套发生变更,是否需要按最新的账套设置进行核算?按照最新的账套进行核算,将覆盖当前核算数据(不清空手动输入/导入的数据),且不可恢复,请谨慎操作。")}
+
+
+ this.setState({ userConfirmed: v })}/>
+
+
+
+
+ );
+ }
+}
+
+export default SalaryCalcLayout;
From ae427c033ac34f9f946c117d3e51fbea5cc76d50 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, 26 Apr 2024 17:37:22 +0800
Subject: [PATCH 070/127] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97?=
=?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/salaryEditCalc/salaryCalcLayout.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
index 1e7c24a1..73d0c771 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
@@ -30,7 +30,7 @@ class SalaryCalcLayout extends Component {
API.getCompareSobConfig({ id }).then(({ status, data }) => {
if (status) {
this.setState({
- fieldInformationConfirm: { ...fieldInformationConfirm, visible: true }
+ fieldInformationConfirm: { ...fieldInformationConfirm, visible: data }
});
}
});
From c43e69af5dc2834e2ec1ce0078cdf5df24c25543 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sun, 28 Apr 2024 09:07:40 +0800
Subject: [PATCH 071/127] =?UTF-8?q?hotfix/2.12.1.2404.02=20=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E9=80=8F=E8=A7=86=20=E8=A1=A8=E6=A0=BC=E5=8F=98=E5=BD=A2?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/reportView/components/povitpivotChartModal.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js b/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
index 9f9bddf7..53fd5d26 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
@@ -77,7 +77,7 @@ class PovitpivotChartModal extends Component {
const childFrameObj = document.getElementById("commonTable");
const { dataSource, showSum = false, pageInfo, columns } = payload;
childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({
- dataSource, columns, showSum, pageInfo
+ dataSource, showSum, pageInfo, columns: _.map(columns, o => ({ ...o, width: o.oldWidth }))
}), "*");
};
getDataPerspective = (payload) => {
From 64bfb456182b373459f8accd98ef982964564eff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sun, 28 Apr 2024 13:48:20 +0800
Subject: [PATCH 072/127] =?UTF-8?q?hotfix/2.12.1.2404.02=20=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E8=A1=A8=E6=A0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/pages/reportView/components/reportContent.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js b/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js
index 37700a22..a7808410 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js
@@ -98,11 +98,11 @@ class ReportContent extends Component {
countResult,
columns: _.map(columns, it => ({
...it,
- dataIndex: it.column, width: 150,
+ dataIndex: it.column, width: it.width ? it.width + "px" : 150,
title: it.text, align: "center",
children: !_.isNil(it.children) ? _.map(it.children, child => ({
...child,
- dataIndex: child.column, width: 150,
+ dataIndex: child.column, width: child.width ? child.width + "px" : 150,
title: child.text, align: "center"
})) : []
})),
From 718d1929bb58019add1c37e9cead198478a3741d 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, 29 Apr 2024 11:27:49 +0800
Subject: [PATCH 073/127] hotfix/2.12.1.2404.02
---
.../pages/calculate/components/calculateDialog/condition.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/calculate/components/calculateDialog/condition.js b/pc4mobx/hrmSalary/pages/calculate/components/calculateDialog/condition.js
index 3274d070..be20527a 100644
--- a/pc4mobx/hrmSalary/pages/calculate/components/calculateDialog/condition.js
+++ b/pc4mobx/hrmSalary/pages/calculate/components/calculateDialog/condition.js
@@ -22,6 +22,9 @@ export const calculateConditions = [
lanId: 519146,
labelcol: 6,
options: [],
+ otherParams: {
+ showSearch: true, optionFilterProp: "children"
+ },
rules: "required|string",
viewAttr: 3
},
From 29b5f9eb50e7ce88cb42918b652dd21d06c5e8ad 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, 29 Apr 2024 17:55:37 +0800
Subject: [PATCH 074/127] hotfix/2.12.1.2404.02
---
.../pages/reportView/components/povitpivotChartModal.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js b/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
index 53fd5d26..6a80e8fb 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/povitpivotChartModal.js
@@ -77,7 +77,7 @@ class PovitpivotChartModal extends Component {
const childFrameObj = document.getElementById("commonTable");
const { dataSource, showSum = false, pageInfo, columns } = payload;
childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({
- dataSource, showSum, pageInfo, columns: _.map(columns, o => ({ ...o, width: o.oldWidth }))
+ dataSource, showSum, pageInfo, columns: _.map(columns, o => ({ ...o, width: o.oldWidth, ellipsis: true }))
}), "*");
};
getDataPerspective = (payload) => {
From d8bad175140d901db490896ca29908f7dac1fe08 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, 6 May 2024 09:48:04 +0800
Subject: [PATCH 075/127] hotfix/2.12.1.2404.02
---
.../pages/dataAcquisition/cumDeduct/index.js | 32 +++++++++++--------
.../pages/dataAcquisition/index.less | 4 +++
.../hrmSalary/pages/dataAcquisition/layout.js | 16 ----------
3 files changed, 22 insertions(+), 30 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
index 7fca9256..6c7721ab 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
@@ -83,17 +83,18 @@ class Index extends Component {
* Date: 2023/2/17
*/
autoAddAll = () => {
- const { declareMonth } = this.state;
+ const { declareMonth, taxAgentId } = this.state;
this.setState({ addAllLoading: true });
- autoAddAll({ yearMonth: declareMonth }).then(({ status, data, errormsg }) => {
- this.setState({ addAllLoading: false });
- if (status) {
- message.success(data || "操作成功");
- this.tableRef.getTableDate();
- } else {
- message.error(errormsg || "操作失败");
- }
- }).catch(() => this.setState({ addAllLoading: false }));
+ autoAddAll({ yearMonth: declareMonth, taxAgentIds: taxAgentId ? taxAgentId.split(",") : [] })
+ .then(({ status, data, errormsg }) => {
+ this.setState({ addAllLoading: false });
+ if (status) {
+ message.success(data || "操作成功");
+ this.tableRef.getTableDate();
+ } else {
+ message.error(errormsg || "操作失败");
+ }
+ }).catch(() => this.setState({ addAllLoading: false }));
};
/*
* Author: 黎永顺
@@ -363,7 +364,7 @@ class Index extends Component {
value: taxAgentId,
onChange: this.screenChange,
options: [{ key: "", showname: "全部" }, ...taxAgentOption],
- key: "taxAgentId"
+ key: "taxAgentId", multiple: true
})
}
];
@@ -500,7 +501,7 @@ class Index extends Component {
declareMonth, taxAgentId, slidePayload, saveLoading, exportPayloadUrl, advanceCondition,
importPayload, exportPayloadType, targetid
} = this.state;
- const tablePayload = { declareMonth: [declareMonth], taxAgentId };
+ const tablePayload = { declareMonth: [declareMonth], taxAgentIds: taxAgentId ? taxAgentId.split(",") : [] };
return (
{
;
};
export const DataCollectionSelect = (props) => {
- const { value, label, onChange, options, key, labelCol = 10, wrapperCol = 14, viewAttr = 2 } = props;
+ const {
+ value, label, onChange, options, key, labelCol = 10,
+ wrapperCol = 14, viewAttr = 2, multiple = false
+ } = props;
return
onChange({ key, value: val })} options={options}
- viewAttr={viewAttr}/>
+ viewAttr={viewAttr} multiple={multiple}/>
;
};
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/index.less b/pc4mobx/hrmSalary/pages/dataAcquisition/index.less
index a580739f..f5272aed 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/index.less
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/index.less
@@ -81,6 +81,10 @@
.wea-helpful-tip {
padding-left: 10px;
}
+
+ .wea-form-item-wrapper {
+ display: inline-block !important;
+ }
}
.screenSituationWrapper {
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js b/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
index 0c42281c..9337f5f9 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/layout.js
@@ -118,22 +118,6 @@ class Layout extends Component {
importOpts={importOpts} importResult={importResult} templateLink={templateLink}
previewUrl={previewUrl} onImportFile={onImportFile}
/>
- {/* onCancel(true)}*/}
- {/* slideDataSource={slideDataSource}*/}
- {/* previewImport={onPreviewImport}*/}
- {/* importFile={onImportFile}*/}
- {/* templateLink={templateLink}*/}
- {/* renderFormComponent={() => importFormComponent}*/}
- {/* visiable={importVisiable}*/}
- {/* onCancel={onCancel}*/}
- {/*/>*/}
{/* 新增-编辑-详情弹框 */}
Date: Mon, 6 May 2024 10:21:55 +0800
Subject: [PATCH 076/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
index 6c7721ab..9f1e481f 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
@@ -363,7 +363,7 @@ class Index extends Component {
label: "个税扣缴义务人",
value: taxAgentId,
onChange: this.screenChange,
- options: [{ key: "", showname: "全部" }, ...taxAgentOption],
+ options: taxAgentOption,
key: "taxAgentId", multiple: true
})
}
From 020af95921f44afb705121ef514516d786f1bf57 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, 6 May 2024 16:58:42 +0800
Subject: [PATCH 077/127] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97?=
=?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/calculate/doCalc/components/salaryEditCalc/index.js | 2 +-
.../doCalc/components/salaryEditCalc/salaryCalcLayout.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
index 2b4a149d..1f803fed 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
@@ -57,7 +57,7 @@ class Index extends Component {
const { salarySobCycle, showSearchAd, formulaTd, columnDesc, showTotalCell } = this.state;
const { routeParams: { salaryAcctRecordId } } = this.props;
const formulaObj = _.get(columnDesc, [formulaTd]) || {};
- return (
+ return ( this.onAdSearch(false)}>
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
index 73d0c771..141e6510 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
@@ -43,7 +43,7 @@ class SalaryCalcLayout extends Component {
message.success(getLabel(30700, "操作成功!"));
this.setState({
fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
- });
+ }, () => this.props.onConfirm());
} else {
message.error(errormsg);
}
From 3b90b1def4e7ae323c0d85015448fd7268c1660e 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, 7 May 2024 10:48:52 +0800
Subject: [PATCH 078/127] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97?=
=?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/salaryEditCalc/salaryCalcLayout.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
index 141e6510..d30a722f 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
@@ -54,7 +54,7 @@ class SalaryCalcLayout extends Component {
const { fieldInformationConfirm, userConfirmed } = this.state;
const buttons = [
{getLabel(111, "是,按最新账套设置全量核算")},
+ disabled={userConfirmed === "0"}>{getLabel(111, "是,更新账套设置")},
this.setState({
fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
})}>{getLabel(111, "否,忽略该提示")}
@@ -70,7 +70,7 @@ class SalaryCalcLayout extends Component {
})}>
- {getLabel("111", "本次核算所属薪资账套发生变更,是否需要按最新的账套设置进行核算?按照最新的账套进行核算,将覆盖当前核算数据(不清空手动输入/导入的数据),且不可恢复,请谨慎操作。")}
+ {getLabel("111", "账套发生变更,是否需要更新账套设置?更新后核算将按照最新的账套进行核算,请谨慎操作。")}
Date: Tue, 7 May 2024 14:09:08 +0800
Subject: [PATCH 079/127] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97?=
=?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/salaryEditCalc/index.js | 6 +----
.../components/salaryEditCalc/index.less | 9 +++++++
.../salaryEditCalc/salaryCalcLayout.js | 27 ++++++++++++-------
.../hrmSalary/pages/calculate/doCalc/index.js | 26 +++++++-----------
4 files changed, 38 insertions(+), 30 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
index 1f803fed..54081da1 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.js
@@ -26,10 +26,6 @@ class Index extends Component {
};
}
- componentDidMount() {
- const promise = this.init();
- }
-
openAdvanceSearch = () => this.setState({ showSearchAd: !this.state.showSearchAd });
onAdSearch = (bool = true) => {
this.calcTableRef.wrappedInstance.queryCalcResultList();
@@ -57,7 +53,7 @@ class Index extends Component {
const { salarySobCycle, showSearchAd, formulaTd, columnDesc, showTotalCell } = this.state;
const { routeParams: { salaryAcctRecordId } } = this.props;
const formulaObj = _.get(columnDesc, [formulaTd]) || {};
- return ( this.onAdSearch(false)}>
+ return ( this.onAdSearch(false)}>
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
index 19d48e65..3d23810b 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
@@ -234,3 +234,12 @@
}
}
}
+
+.loadingLayout {
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ border-radius: 4px;
+ padding: 30px 50px;
+ margin: 20px 0;
+}
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
index d30a722f..0ece4702 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
@@ -6,7 +6,7 @@
*/
import React, { Component } from "react";
import { WeaCheckbox, WeaDialog, WeaLocaleProvider } from "ecCom";
-import { Button, message } from "antd";
+import { Button, message, Spin } from "antd";
import * as API from "../../../../../apis/calculate";
import "./index.less";
@@ -16,7 +16,7 @@ class SalaryCalcLayout extends Component {
constructor(props) {
super(props);
this.state = {
- fieldInformationConfirm: { visible: false, data: {} }, userConfirmed: "0"
+ fieldInformationConfirm: { visible: false, data: {} }, userConfirmed: "0", show: false
};
}
@@ -28,12 +28,14 @@ class SalaryCalcLayout extends Component {
const { fieldInformationConfirm } = this.state;
const { routeParams: { salaryAcctRecordId: id } } = this.props;
API.getCompareSobConfig({ id }).then(({ status, data }) => {
- if (status) {
+ if (status && data) {
this.setState({
fieldInformationConfirm: { ...fieldInformationConfirm, visible: data }
});
+ } else {
+ this.setState({ show: true }, () => this.props.init());
}
- });
+ }).catch(() => this.setState({ show: true }, () => this.props.init()));
};
onOk = () => {
const { fieldInformationConfirm } = this.state;
@@ -42,8 +44,12 @@ class SalaryCalcLayout extends Component {
if (status) {
message.success(getLabel(30700, "操作成功!"));
this.setState({
+ show: true,
fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
- }, () => this.props.onConfirm());
+ }, () => {
+ this.props.init();
+ this.props.onConfirm();
+ });
} else {
message.error(errormsg);
}
@@ -51,23 +57,26 @@ class SalaryCalcLayout extends Component {
};
render() {
- const { fieldInformationConfirm, userConfirmed } = this.state;
+ const { fieldInformationConfirm, userConfirmed, show } = this.state;
const buttons = [
{getLabel(111, "是,更新账套设置")},
this.setState({
+ show: true,
fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
- })}>{getLabel(111, "否,忽略该提示")}
+ }, () => this.props.init())}>{getLabel(111, "否,忽略该提示")}
];
return (
- {this.props.children}
+ {
+ show ? this.props.children :
+ }
this.setState({
fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
- })}>
+ }, () => this.props.init())}>
{getLabel("111", "账套发生变更,是否需要更新账套设置?更新后核算将按照最新的账套进行核算,请谨慎操作。")}
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js
index d8a8d78e..0d1c87fc 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/index.js
@@ -216,23 +216,17 @@ class Index extends Component {
/>
}
{/* 薪资核算-自定义导出*/}
- {
- this.setState({
- customExpDialog: { ...customExpDialog, visible: false }
- });
- }}
- />
+ {
+ this.setState({
+ customExpDialog: { ...customExpDialog, visible: false }
+ });
+ }}/>
{/* 薪资核算-导入*/}
- {
- this.setState({
- salaryImpDialog: { ...salaryImpDialog, visible: false }
- }, () => isFresh && this.calc.onAdSearch(false));
- }}
- />
+ {
+ this.setState({
+ salaryImpDialog: { ...salaryImpDialog, visible: false }
+ }, () => isFresh && this.calc.onAdSearch(false));
+ }}/>
From 7cf0cc33576dc69da6801487bac2ab36cc86a522 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, 7 May 2024 14:13:12 +0800
Subject: [PATCH 080/127] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97?=
=?UTF-8?q?=E6=98=AF=E5=90=A6=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/salaryEditCalc/salaryCalcLayout.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
index 0ece4702..c95f07b0 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/salaryCalcLayout.js
@@ -75,6 +75,7 @@ class SalaryCalcLayout extends Component {
title={getLabel(131329, "信息确认")} visible={fieldInformationConfirm.visible} initLoadCss hasScroll
style={{ width: 380 }} className="infoConfirmDialog" buttons={buttons} onCancel={() =>
this.setState({
+ show: true,
fieldInformationConfirm: { ...fieldInformationConfirm, visible: false }
}, () => this.props.init())}>
From aaf733fdd2c7cb4ff26ed72b0f29b8df7bc57191 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, 10 May 2024 16:33:02 +0800
Subject: [PATCH 081/127] =?UTF-8?q?hotfix/2.12.1.2404.02=20=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E5=90=88=E8=AE=A1?=
=?UTF-8?q?=E8=A1=8C=E5=B1=95=E7=A4=BA=E5=88=97=E8=A1=A8=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/components/captchaModal/index.js | 1 -
.../components/salaryDetails.js | 14 ++++++++------
.../mySalaryMobile/components/payrollList/index.js | 5 +++--
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/pc4mobx/hrmSalary/components/captchaModal/index.js b/pc4mobx/hrmSalary/components/captchaModal/index.js
index 35661772..a7f00b9b 100644
--- a/pc4mobx/hrmSalary/components/captchaModal/index.js
+++ b/pc4mobx/hrmSalary/components/captchaModal/index.js
@@ -36,7 +36,6 @@ class Index extends Component {
handleSendCaptcha = () => {
sendMobileCode({ id: this.props.id }).then(({ status, data }) => {
if (status) {
- console.log(data);
this.timeRef = setInterval(() => {
const { time } = this.state;
this.setState({ time: time - 1 }, () => {
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index 7ff80bb3..280a0f46 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -26,7 +26,7 @@ class SalaryDetails extends Component {
this.state = {
loading: false, dataSource: [], columns: [], selectedRowKeys: [],
pageInfo: { current: 1, pageSize: 10, total: 0 }, payload: {},
- countResult: {}, showTotalCell: false
+ showTotalCell: false
};
}
@@ -82,14 +82,15 @@ class SalaryDetails extends Component {
};
this.setState({ loading: true });
API.getSalaryList(payload).then(async ({ status, data }) => {
- const [{ data: sumData }, { data: confCode }] = await Promise.all([API.getSalaryListSum(payload), sysConfCodeRule({ code: "OPEN_ACCT_RESULT_SUM" })]);
+ // API.getSalaryListSum(payload),
+ const [{ data: confCode }] = await Promise.all([sysConfCodeRule({ code: "OPEN_ACCT_RESULT_SUM" })]);
this.setState({ loading: false });
if (status) {
const { dataKey, pageInfo: pageparams } = data;
const { list: dataSource, pageNum: current, total, pageSize } = pageparams;
this.setState({
dataSource, pageInfo: { ...pageInfo, current, total, pageSize }, payload,
- countResult: sumData.sumRow, showTotalCell: confCode === "1"
+ showTotalCell: confCode === "1"
}, () => tableStore.getDatas(dataKey.datas));
}
}).catch(() => this.setState({ loading: false }));
@@ -105,12 +106,13 @@ class SalaryDetails extends Component {
};
getColumns = () => {
const { attendanceStore: { tableStore } } = this.props;
- const { dataSource, pageInfo, selectedRowKeys, countResult, showTotalCell } = this.state;
+ const { dataSource, pageInfo, selectedRowKeys, showTotalCell, payload } = this.state;
const columns = _.filter(toJS(tableStore.columns), (item) => item.display === "true" && item.dataIndex !== "acctTimes");
+ const sumRowlistUrl = showTotalCell ? "/api/bs/hrmsalary/report/statistics/employee/salaryListSum" : "";
if (!_.isEmpty(columns)) {
this.postMessageToChild({
- dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true, tableScrollHeight: 154,
- sumRow: countResult,
+ dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true, tableScrollHeight: 154, payload,
+ sumRowlistUrl,
columns: _.map(columns, (it, idx) => ({
...it,
width: (it.dataIndex === "taxAgent" || it.dataIndex === "salarySob") ? 176 : it.oldWidth,
diff --git a/pc4mobx/hrmSalary/pages/mySalaryMobile/components/payrollList/index.js b/pc4mobx/hrmSalary/pages/mySalaryMobile/components/payrollList/index.js
index 8968b469..69bac121 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryMobile/components/payrollList/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryMobile/components/payrollList/index.js
@@ -27,8 +27,9 @@ class Index extends Component {
{getLabel(111, "发放时间")}
{moment(it.sendTime).format("YYYY-MM")}
-
+
{`${getLabel(33564, "查看")}>`}
;
From 342dacae9cf81050c79cc12bdc33432edda4ead3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sat, 11 May 2024 10:41:55 +0800
Subject: [PATCH 082/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/custom-components/index.js | 0
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 pc4mobx/hrmSalary/custom-components/index.js
diff --git a/pc4mobx/hrmSalary/custom-components/index.js b/pc4mobx/hrmSalary/custom-components/index.js
new file mode 100644
index 00000000..e69de29b
From 166dfa6979b2c65b172187f328de7536dbad659f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sat, 11 May 2024 11:09:13 +0800
Subject: [PATCH 083/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/apis/custom-apis/index.js | 0
pc4mobx/hrmSalary/pages/custom-pages/index.js | 0
pc4mobx/hrmSalary/stores/custom-stores/index.js | 0
3 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 pc4mobx/hrmSalary/apis/custom-apis/index.js
create mode 100644 pc4mobx/hrmSalary/pages/custom-pages/index.js
create mode 100644 pc4mobx/hrmSalary/stores/custom-stores/index.js
diff --git a/pc4mobx/hrmSalary/apis/custom-apis/index.js b/pc4mobx/hrmSalary/apis/custom-apis/index.js
new file mode 100644
index 00000000..e69de29b
diff --git a/pc4mobx/hrmSalary/pages/custom-pages/index.js b/pc4mobx/hrmSalary/pages/custom-pages/index.js
new file mode 100644
index 00000000..e69de29b
diff --git a/pc4mobx/hrmSalary/stores/custom-stores/index.js b/pc4mobx/hrmSalary/stores/custom-stores/index.js
new file mode 100644
index 00000000..e69de29b
From 78142d32fe6719ac1dbd6adffc2dd6e75d69e9c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sat, 11 May 2024 11:33:09 +0800
Subject: [PATCH 084/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/stores/custom-stores/index.js | 2 ++
pc4mobx/hrmSalary/stores/index.js | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/stores/custom-stores/index.js b/pc4mobx/hrmSalary/stores/custom-stores/index.js
index e69de29b..7be35b6b 100644
--- a/pc4mobx/hrmSalary/stores/custom-stores/index.js
+++ b/pc4mobx/hrmSalary/stores/custom-stores/index.js
@@ -0,0 +1,2 @@
+module.exports = {
+};
diff --git a/pc4mobx/hrmSalary/stores/index.js b/pc4mobx/hrmSalary/stores/index.js
index c9590ab3..56eee32a 100644
--- a/pc4mobx/hrmSalary/stores/index.js
+++ b/pc4mobx/hrmSalary/stores/index.js
@@ -19,6 +19,7 @@ import { StandingBookStore } from "./StandingBook";
import { PayrollFilesStore } from "./payrollFiles";
import { SpecialAddStore } from "./specialAdd";
import { ExternalPersonManageStore } from "./externalPersonManage";
+import CustomModule from "./custom-stores";
module.exports = {
baseFormStore: new BaseFormStore(),
@@ -41,5 +42,6 @@ module.exports = {
standingBookStore: new StandingBookStore(),
payrollFilesStore: new PayrollFilesStore(),
specialAddStore: new SpecialAddStore(),
- externalPersonManageStore: new ExternalPersonManageStore()
+ externalPersonManageStore: new ExternalPersonManageStore(),
+ ...CustomModule
};
From 8f582ad3dd74cb2402e6d20463dbef544eba70d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sat, 11 May 2024 15:06:47 +0800
Subject: [PATCH 085/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/apis/payroll.js | 4 ++++
.../pages/payroll/payrollGrant/index.js | 20 ++++++++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/payroll.js b/pc4mobx/hrmSalary/apis/payroll.js
index 01048186..b78fac43 100644
--- a/pc4mobx/hrmSalary/apis/payroll.js
+++ b/pc4mobx/hrmSalary/apis/payroll.js
@@ -240,3 +240,7 @@ export const salaryBillBaseSetPreviewWaterMark = (params) => {
export const getSmsSalaryItemSet = (params) => {
return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/template/getSmsSalaryItemSet", "GET", params);
};
+// 工资单导出PDF-检查
+export const genPdfBeforeExport = (params) => {
+ return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/genPdfBeforeExport", "GET", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index 4e44a75f..52bb065c 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -8,7 +8,7 @@ import { getQueryString } from "../../../util/url";
import { getSearchs, renderLoading } from "../../../util";
import CustomPaginationTable from "../../../components/customPaginationTable";
import PayrollPartTable from "./payrollPartTable";
-import { getPayrollIssuanceProgressBar } from "../../../apis/payroll";
+import { genPdfBeforeExport, getPayrollIssuanceProgressBar } from "../../../apis/payroll";
import ProgressModal from "../../../components/progressModal";
const getLabel = WeaLocaleProvider.getLabel;
@@ -328,7 +328,14 @@ export default class PayrollGrant extends React.Component {
{
- window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
+ genPdfBeforeExport({ id: record.id, salarySendId: getQueryString("id") })
+ .then(({ status, errormsg }) => {
+ if (status) {
+ window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
+ } else {
+ message.error(errormsg);
+ }
+ });
}}>
{getLabel(111, "导出PDF")}
@@ -343,7 +350,14 @@ export default class PayrollGrant extends React.Component {
{
- window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
+ genPdfBeforeExport({ id: record.id, salarySendId: getQueryString("id") })
+ .then(({ status, errormsg }) => {
+ if (status) {
+ window.open(`${window.ecologyContentPath || ""}/api/bs/hrmsalary/salaryBill/exportPdf?id=${record.id}&salarySendId=${getQueryString("id")}`, "_blank");
+ } else {
+ message.error(errormsg);
+ }
+ });
}}>
{getLabel(111, "导出PDF")}
From a04be74c9c430b253c3c6b328a4daf32231cb150 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, 13 May 2024 17:06:41 +0800
Subject: [PATCH 086/127] hotfix/2.12.1.2404.02
---
pc4mobx/hrmSalary/pages/payrollFiles/config/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
index 46bce19e..25b815a0 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
@@ -484,6 +484,6 @@ const HelpfulDiv = () => {
{getLabel(544746, "c.返聘人员使用调薪功能调整薪资档案值或使用调整个税扣缴;")}
{getLabel(545755, "2.调薪:档案中已存在的人员批量调整薪资项目值(包括返聘人员的情况);")}
-
{getLabel(545756, "3.调整个税扣缴义务人:档案中已存在的人员批量调整个税扣缴义务人(包括返聘人员的情况);")}
+ {/*
{getLabel(545756, "3.调整个税扣缴义务人:档案中已存在的人员批量调整个税扣缴义务人(包括返聘人员的情况);")}*/}
;
};
From 888df02e07592e863a9fe804fb4cdc2a00114a7c 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, 16 May 2024 10:03:05 +0800
Subject: [PATCH 087/127] hotfix/2.12.1.2405.01
---
pc4mobx/hrmSalary/index.js | 34 ++++++----------------------------
1 file changed, 6 insertions(+), 28 deletions(-)
diff --git a/pc4mobx/hrmSalary/index.js b/pc4mobx/hrmSalary/index.js
index 1aaf8045..aff0d014 100644
--- a/pc4mobx/hrmSalary/index.js
+++ b/pc4mobx/hrmSalary/index.js
@@ -114,41 +114,23 @@ const DataAcquisition = (props) => props.children;
// supplementaryCalc 补算
const Routes = (
-
+
-
+
-
-
+
+
-
+
@@ -170,11 +152,7 @@ const Routes = (
-
+
From 8f8f6c5ed1b8751827d7de81ba4cddfdbbf23266 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, 17 May 2024 10:51:56 +0800
Subject: [PATCH 088/127] =?UTF-8?q?feature/2.12.1.2403.02-=E7=A4=BE?=
=?UTF-8?q?=E4=BF=9D=E6=A1=A3=E6=A1=88=E4=BF=9D=E5=AD=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../welfareEditArchiveSlide/index.js | 53 ++++++++++++-------
.../welfareArchive/config.js | 4 +-
2 files changed, 35 insertions(+), 22 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js
index 304724fb..e2342e93 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/components/welfareEditArchiveSlide/index.js
@@ -6,7 +6,7 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaLocaleProvider, WeaSlideModal, WeaTools } from "ecCom";
+import { WeaDialog, WeaLocaleProvider, WeaSlideModal, WeaTools } from "ecCom";
import * as API from "../../../../../apis/welfareArchive";
import { getTaxAgentSelectList } from "../../../../../apis/taxAgent";
import { sysinfo } from "../../../../../apis/ruleconfig";
@@ -23,7 +23,7 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- loading: false, conditions: [], formData: {}
+ loading: false, conditions: [], formData: {}, errorDialog: { visible: false, errorMsg: "" }
};
}
@@ -207,14 +207,8 @@ class Index extends Component {
message.success(getLabel(30700, "操作成功!"));
this.props.onClose(true);
} else {
- Modal.confirm({
- title: getLabel(131329, "信息确认"),
- content:
-
{socialErrorMsg + fundErrorMsg + otherErrorMsg}
-
{getLabel(111, "是否自动将方案的上下限调整为设置值?")}
-
,
- onOk: () => this.save(true),
- onCancel: () => this.props.onClose()
+ !changeData && this.setState({
+ errorDialog: { visible: true, errorMsg: socialErrorMsg + fundErrorMsg + otherErrorMsg }
});
}
};
@@ -257,18 +251,19 @@ class Index extends Component {
};
handleExtraChange = (key, value) => this.setState({ formData: { ...this.state.formData, [key]: value } });
handleSameChange = (baseItems, value) => {
+ if (!value) return;
let newFormDatas = {}, hasCompromise = false;
baseItems.forEach((formLabel) => {
- const { min, max } = formLabel;
+ // const { min, max } = formLabel;
newFormDatas[getKey(formLabel)] = toDecimal_n(value, 2) || "";
- if (min !== "0.000" && value !== "" && Number(value) < Number(min)) {
- hasCompromise = true;
- newFormDatas[getKey(formLabel)] = toDecimal_n(Number(min), 2);
- }
- if (max !== "0.000" && value !== "" && Number(value) > Number(max)) {
- hasCompromise = true;
- newFormDatas[getKey(formLabel)] = toDecimal_n(Number(max), 2);
- }
+ // if (min !== "0.000" && value !== "" && Number(value) < Number(min)) {
+ // hasCompromise = true;
+ // newFormDatas[getKey(formLabel)] = toDecimal_n(Number(min), 2);
+ // }
+ // if (max !== "0.000" && value !== "" && Number(value) > Number(max)) {
+ // hasCompromise = true;
+ // newFormDatas[getKey(formLabel)] = toDecimal_n(Number(max), 2);
+ // }
});
if (hasCompromise) {
message.warning(getLabel("111", "超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充。"));
@@ -311,7 +306,7 @@ class Index extends Component {
render() {
const { archivesStore: { welfareProfileForm }, showOperateBtn } = this.props;
- const { conditions, formData } = this.state;
+ const { conditions, formData, errorDialog } = this.state;
return (
{
+ this.setState({ errorDialog: { ...errorDialog, visible: false } }, () => {
+ const promise = this.save(true);
+ message.success(getLabel(30700, "操作成功!"));
+ this.props.onClose(true);
+ });
+ }}>{getLabel(111, "确认")}
+ ]}
+ onCancel={() => this.setState({ errorDialog: { ...errorDialog, visible: false } })}
+ bottomLeft={getLabel(111, "点击【确认】自动将不满足条件的基数值设置为对应的上限或下限值")}
+ >
+ }
/>
);
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
index 2c0a760d..78fb3505 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfareArchive/config.js
@@ -815,8 +815,8 @@ const BenefitBaseComponent = (props) => {
com:
onChange(getKey(child), v)}
viewAttr={(runStatuses === "4,5" || !showOperateBtn) ? 1 : 2}
/>
From fd6fb3bd9dfd1957130062f9ac8a2311e0137407 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, 21 May 2024 15:11:52 +0800
Subject: [PATCH 089/127] hotfix/2.14.2.2405.02
---
.../pages/calculate/calcOc/components/salaryCalcOcImport.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/calcOc/components/salaryCalcOcImport.js b/pc4mobx/hrmSalary/pages/calculate/calcOc/components/salaryCalcOcImport.js
index 11a784ca..95de0805 100644
--- a/pc4mobx/hrmSalary/pages/calculate/calcOc/components/salaryCalcOcImport.js
+++ b/pc4mobx/hrmSalary/pages/calculate/calcOc/components/salaryCalcOcImport.js
@@ -16,8 +16,7 @@ class SalaryCalcOcImport extends Component {
super(props);
this.state = {
importDialog: {
- visible: false, title: "", nextloading: false, importResult: {}, imageId: "",
- link: "/api/bs/hrmsalary/salaryacct/comparisonresult/importtemplate/export?salaryAcctRecordId=",
+ visible: false, title: "", nextloading: false, importResult: {}, imageId: "", link: "",
previewUrl: "/api/bs/hrmsalary/salaryacct/comparisonresult/preview",
extraPreview: { salaryAcctRecordId: "" }
}
@@ -30,7 +29,7 @@ class SalaryCalcOcImport extends Component {
this.setState({
importDialog: {
...this.state.importDialog,
- link: `${importDialog.link}${nextProps.salaryAcctRecordId}`,
+ link: `/api/bs/hrmsalary/salaryacct/comparisonresult/importtemplate/export?salaryAcctRecordId=${nextProps.salaryAcctRecordId}`,
visible: nextProps.visible, importResult: {},
title: nextProps.title, imageId: "",
extraPreview: { salaryAcctRecordId: nextProps.salaryAcctRecordId }
From 4eabe190353876fd57106d13a5510fc5e5167cec 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, 21 May 2024 15:58:28 +0800
Subject: [PATCH 090/127] hotfix/2.14.2.2405.02
---
pc4mobx/hrmSalary/pages/salaryItem/columns.js | 7 +++++++
pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/columns.js b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
index d03e1dfc..281fa6ec 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/columns.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
@@ -128,6 +128,13 @@ export const salaryItemFields = [
viewAttr: 2,
tip: ""
},
+ {
+ key: "defaultValue",
+ label: "默认值",
+ type: "INPUT",
+ viewAttr: 2,
+ tip: ""
+ },
{
key: "formulaContent",
label: "公式",
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index 564c2ef8..c510a622 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -84,6 +84,12 @@ class SalaryItemForm extends Component {
...item,
viewAttr: (useInEmployeeSalary.toString() === "0" && ((isLedger && record.canEdit) || (editable && record.canEdit) || isAdd)) ? 2 : 1
};
+ case "defaultValue":
+ return {
+ ...item,
+ display: valueType && valueType.toString() === "1",
+ viewAttr: (isLedger && record.canEdit) || (editable && record.canEdit) || isAdd ? 2 : 1
+ };
case "formulaContent":
return {
...item,
From fb64d5e344def7bd6a114e66f1235393d64cf82c 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, 21 May 2024 17:33:47 +0800
Subject: [PATCH 091/127] hotfix/2.14.2.2405.02
---
pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js | 5 +++++
pc4mobx/hrmSalary/stores/salaryItem.js | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index c510a622..47d48a73 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -87,6 +87,7 @@ class SalaryItemForm extends Component {
case "defaultValue":
return {
...item,
+ type: dataType === "number" ? "INPUTNUMBER" : "INPUT",
display: valueType && valueType.toString() === "1",
viewAttr: (isLedger && record.canEdit) || (editable && record.canEdit) || isAdd ? 2 : 1
};
@@ -117,6 +118,10 @@ class SalaryItemForm extends Component {
return { ...item, display: v === "1", viewAttr: 3 };
} else if (key === "dataType" && (item.key === "roundingMode" || item.key === "pattern")) {
return { ...item, display: v === "number" };
+ } else if (key === "dataType" && (item.key === "defaultValue")) {
+ return { ...item, type: v === "number" ? "INPUTNUMBER" : "INPUT" };
+ } else if (key === "valueType" && item.key === "defaultValue") {
+ return { ...item, display: v === "1" };
} else if (key === "valueType" && (item.key === "originSqlContent" || item.key === "originFormulaContent")) {
return {
...item,
diff --git a/pc4mobx/hrmSalary/stores/salaryItem.js b/pc4mobx/hrmSalary/stores/salaryItem.js
index 54a84562..cc3a0214 100644
--- a/pc4mobx/hrmSalary/stores/salaryItem.js
+++ b/pc4mobx/hrmSalary/stores/salaryItem.js
@@ -34,7 +34,8 @@ export class SalaryItemStore {
dataType: "number",
description: "",
sharedType: "0",
- taxAgentIds: ""
+ taxAgentIds: "",
+ defaultValue: ""
};
@observable tableDataSource = []; // 主列表
@@ -75,7 +76,8 @@ export class SalaryItemStore {
dataType: "number",
description: "",
sharedType: "0",
- taxAgentIds: ""
+ taxAgentIds: "",
+ defaultValue: ""
};
@action
From b7aeae0aeb5aef3b34d3a3c0d10aa178f1d47791 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, 23 May 2024 11:01:06 +0800
Subject: [PATCH 092/127] hotfix/2.14.2.2405.02
---
pc4mobx/hrmSalary/pages/salaryItem/columns.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/columns.js b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
index 281fa6ec..e34b5431 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/columns.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
@@ -128,13 +128,13 @@ export const salaryItemFields = [
viewAttr: 2,
tip: ""
},
- {
- key: "defaultValue",
- label: "默认值",
- type: "INPUT",
- viewAttr: 2,
- tip: ""
- },
+ // {
+ // key: "defaultValue",
+ // label: "默认值",
+ // type: "INPUT",
+ // viewAttr: 2,
+ // tip: ""
+ // },
{
key: "formulaContent",
label: "公式",
From 655dd6afb45419a4c4e62b419eea125dd6e99e8d 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, 23 May 2024 15:42:14 +0800
Subject: [PATCH 093/127] hotfix/2.14.2.2405.02
---
pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index d4681ac2..121e334a 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -42,8 +42,8 @@ class Index extends Component {
keyword: "",
year: moment().format("YYYY"),
dateRange: [
- moment(new Date()).subtract(1, "year").startOf("year").format("YYYY-MM"),
- moment(new Date()).endOf("year").format("YYYY-MM")
+ moment(new Date()).subtract(6, "months").format("YYYY-MM"),
+ moment(new Date()).format("YYYY-MM")
],
showSearchAd: false,
isQuery: false,
From 9577462831585f6cdb563269058cb3d356935d16 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, 24 May 2024 09:57:35 +0800
Subject: [PATCH 094/127] hotfix/2.14.2.2405.02
---
.../components/salaryDetails.js | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index 280a0f46..84882ff0 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -26,7 +26,7 @@ class SalaryDetails extends Component {
this.state = {
loading: false, dataSource: [], columns: [], selectedRowKeys: [],
pageInfo: { current: 1, pageSize: 10, total: 0 }, payload: {},
- showTotalCell: false
+ showTotalCell: false, updateSum: true
};
}
@@ -54,10 +54,13 @@ class SalaryDetails extends Component {
} else if (type === "turn") {
if (id === "PAGEINFO") {
const { pageNum: current, size: pageSize } = params;
- this.setState({ pageInfo: { ...pageInfo, current, pageSize } }, () => this.getSalaryList(this.props));
+ this.setState({
+ pageInfo: { ...pageInfo, current, pageSize },
+ updateSum: true
+ }, () => this.getSalaryList(this.props));
} else if (id === "CHECKBOX") {
const { selectedRowKeys: checkBox } = params;
- this.setState({ selectedRowKeys: checkBox });
+ this.setState({ selectedRowKeys: checkBox, updateSum: false });
}
}
};
@@ -106,13 +109,13 @@ class SalaryDetails extends Component {
};
getColumns = () => {
const { attendanceStore: { tableStore } } = this.props;
- const { dataSource, pageInfo, selectedRowKeys, showTotalCell, payload } = this.state;
+ const { dataSource, pageInfo, selectedRowKeys, showTotalCell, payload, updateSum } = this.state;
const columns = _.filter(toJS(tableStore.columns), (item) => item.display === "true" && item.dataIndex !== "acctTimes");
const sumRowlistUrl = showTotalCell ? "/api/bs/hrmsalary/report/statistics/employee/salaryListSum" : "";
if (!_.isEmpty(columns)) {
this.postMessageToChild({
- dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true, tableScrollHeight: 154, payload,
- sumRowlistUrl,
+ dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true, tableScrollHeight: 154,
+ sumRowlistUrl, payload: { ...payload, updateSum },
columns: _.map(columns, (it, idx) => ({
...it,
width: (it.dataIndex === "taxAgent" || it.dataIndex === "salarySob") ? 176 : it.oldWidth,
From bd811da89440c32a27fb1219707be48a8a67cc29 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, 28 May 2024 11:42:26 +0800
Subject: [PATCH 095/127] =?UTF-8?q?hotfix/2.14.2.2405.02=20=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E6=9F=A5=E7=9C=8B=E6=8A=A5=E9=94=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/mobilePayroll/index.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
index d53d8fc7..2fa560c3 100644
--- a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
+++ b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
@@ -41,7 +41,8 @@ export default class MobilePayroll extends React.Component {
async componentWillMount() {
const type = getQueryString("type");
this.id = getQueryString("id");
- const { mySalaryStore: { init } } = this.props;
+ const { mySalaryStore: { init, setMySalaryBill } } = this.props;
+ setMySalaryBill({});
if (type !== "phone") {
const { data, status } = await payrollCheckType();
if (status && data === "PWD") {
From 3418bfe4aa50fa253dc5a1fed2d9de64319fdb53 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, 28 May 2024 16:25:25 +0800
Subject: [PATCH 096/127] =?UTF-8?q?hotfix/2.14.2.2405.02=20=E5=85=AC?=
=?UTF-8?q?=E5=BC=8F=E7=BC=96=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/style/index.less | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/pc4mobx/hrmSalary/style/index.less b/pc4mobx/hrmSalary/style/index.less
index 0d181610..4ce6ef7a 100644
--- a/pc4mobx/hrmSalary/style/index.less
+++ b/pc4mobx/hrmSalary/style/index.less
@@ -71,3 +71,15 @@
}
}
}
+
+//公式编辑框样式
+.excel-codeBox {
+ .cm-variable {
+ }
+
+ .cm-string-2 {
+ color: inherit !important;
+ }
+
+}
+
From 411ba9744bd38a43c1c0cc238fd04edd30dbb0bd 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, 28 May 2024 16:42:21 +0800
Subject: [PATCH 097/127] hotfix/2.14.2.2405.02
---
.../analysisOfSalaryStatistics/components/salaryDetails.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index 84882ff0..66538450 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -105,7 +105,7 @@ class SalaryDetails extends Component {
return;
}
WeaLoadingGlobal.start();
- const promise = API.exportSalaryList({ ...payload, ids: selectedRowKeys });
+ const promise = API.exportSalaryList({ ...payload, ids: key === "SELECTED" ? selectedRowKeys : [] });
};
getColumns = () => {
const { attendanceStore: { tableStore } } = this.props;
From c0079fe4b4213a50a46669c6fca4074eea612ba5 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, 29 May 2024 10:32:17 +0800
Subject: [PATCH 098/127] =?UTF-8?q?feature/2.14.3.2406.01-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E6=B7=BB=E5=8A=A0=E9=94=81=E5=AE=9A?=
=?UTF-8?q?=E4=BA=BA=E5=91=98=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/calculate.js | 4 ++
.../salaryEditCalc/editCalcTable.js | 64 +++++++++++++++++--
2 files changed, 61 insertions(+), 7 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index f2bd582a..85805d5c 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -228,6 +228,10 @@ export const getColumnDesc = (params) => {
export const updateLockStatus = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/updateLockStatus", params);
};
+// 更新薪资核算结果的锁定状态
+export const updateLockEmpStatus = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/lockEmp", params);
+};
// 导入薪资核算添加表头字段缓存
export const cacheImportField = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/cacheImportField", params);
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
index d5df0036..85e5bd0b 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
@@ -8,7 +8,7 @@ import React, { Component } from "react";
import { WeaLocaleProvider, WeaTools } from "ecCom";
import { message, Modal, Spin } from "antd";
import { inject, observer } from "mobx-react";
-import { acctResultList, updateLockStatus } from "../../../../../apis/calculate";
+import { acctResultList, updateLockEmpStatus, updateLockStatus } from "../../../../../apis/calculate";
import ProgressModal from "../../../../../components/progressModal";
import BatchUpdateSalaryItemValDialog from "./batchUpdateSalaryItemValDialog";
import EditSalaryCalcSlide from "./editSalaryCalcSlide";
@@ -57,12 +57,15 @@ class EditCalcTable extends Component {
this.props.onShowFormulaTd(dataIndex);
break;
case "LOCKING":
- const { salaryItemId, lockType: lockStatus } = params;
- if (lockStatus === "BATCHUPDATE") {
+ const { salaryItemId, lockType } = params;
+ if (lockType === "BATCHUPDATE") {
this.batchUpdateSalaryItemVal(params);
return;
}
- this.updateLockStatus({ lockStatus, salaryItemId });
+ this.updateLockStatus({ lockStatus: lockType, salaryItemId });
+ break;
+ case "LOCKEMP":
+ this.updateEmpLockStatus({ ...params });
break;
case "EDIT":
const { id: salaryCalcId } = params;
@@ -131,6 +134,52 @@ class EditCalcTable extends Component {
}
});
};
+ updateEmpLockStatus = (payload) => {
+ const { lockStatus } = payload;
+ Modal.confirm({
+ title: getLabel(131329, "信息确认"),
+ content:
+
+ {lockStatus === "LOCK" ? getLabel(543554, "确定要锁定人员项目值吗?") : getLabel(543556, "确定要解锁人员项目值吗?")}
+
+
+ {lockStatus === "LOCK" ? getLabel(543555, "确定后,则项目输入值锁定,项目公式失效;点击核算将按锁定的输入值重新核算!") :
+ getLabel(543557, "确定后,则项目公式生效,页面仍显示手动修改的项目值;点击核算将按公式重新核算,不再显示解锁标识!")}
+
+
,
+ onOk: () => {
+ this.setState({
+ progressVisible: true
+ }, () => {
+ this.timerLock = setInterval(() => {
+ if (this.state.progress !== 100) {
+ this.setState({
+ progress: this.state.progress + 1
+ });
+ } else {
+ clearInterval(this.timerLock);
+ this.setState({
+ progressVisible: false,
+ progress: 0
+ });
+ }
+ }, 500);
+ });
+ const { routeParams: { salaryAcctRecordId } } = this.props;
+ updateLockEmpStatus({ ...payload, salaryAcctRecordId }).then(({ status, errormsg }) => {
+ if (status) {
+ clearInterval(this.timerLock);
+ this.setState({
+ progressVisible: false,
+ progress: 0
+ }, () => this.queryCalcResultList());
+ } else {
+ message.error(errormsg);
+ }
+ });
+ }
+ });
+ };
batchUpdateSalaryItemVal = (payload) => {
Modal.confirm({
title: getLabel(131329, "信息确认"),
@@ -180,7 +229,8 @@ class EditCalcTable extends Component {
"共": getLabel(18609, "共"), "条": getLabel(18256, "条"),
"总计": getLabel(523, "总计"), "批量解锁": getLabel(111, "批量解锁"),
"批量锁定": getLabel(111, "批量锁定"), "批量更新": getLabel(111, "批量更新"),
- "查看拓扑图": getLabel(111, "查看拓扑图")
+ "查看拓扑图": getLabel(111, "查看拓扑图"), "锁定": getLabel(111, "锁定"),
+ "解锁": getLabel(111, "解锁")
};
this.setState({ originPayloadData: { ...payload, i18n } });
const childFrameObj = document.getElementById("atdTable");
@@ -232,8 +282,8 @@ class EditCalcTable extends Component {
Date: Wed, 29 May 2024 10:32:41 +0800
Subject: [PATCH 099/127] =?UTF-8?q?feature/2.14.3.2406.01-=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A0=B8=E7=AE=97=E6=B7=BB=E5=8A=A0=E9=94=81=E5=AE=9A?=
=?UTF-8?q?=E4=BA=BA=E5=91=98=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/salaryEditCalc/editCalcTable.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
index 85e5bd0b..1c6bb065 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
@@ -282,8 +282,8 @@ class EditCalcTable extends Component {
Date: Thu, 30 May 2024 14:15:55 +0800
Subject: [PATCH 100/127] hotfix/2.14.2.2405.02
---
.../attendance/components/attendanceDataViewSlide.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
index 4e2735aa..634d36fe 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js
@@ -40,7 +40,8 @@ class AttendanceDataViewSlide extends Component {
const { columns, list: dataSource, pageNum: current, pageSize, total } = data.pageInfo;
this.setState({
pageInfo: { ...pageInfo, current, pageSize, total }, dataSource,
- columns: _.map(columns, o => ({ ...o, width: 150, fixed: o.dataIndex === "username" ? "left" : null }))
+ // o.dataIndex === "username" ? "left" :
+ columns: _.map(columns, o => ({ ...o, width: 150, fixed: null }))
});
}
}).catch(() => this.setState({ loading: { ...loading, query: false } }));
From 1a2bf2bc6e97ee1bafdad47f7bdd418b0f0d1ed1 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, 5 Jun 2024 09:10:04 +0800
Subject: [PATCH 101/127] 0release/2.14.3.2406.01
---
pc4mobx/hrmSalary/components/mobileTemplate/index.js | 2 +-
pc4mobx/hrmSalary/components/pcTemplate/content.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/components/mobileTemplate/index.js b/pc4mobx/hrmSalary/components/mobileTemplate/index.js
index 18de0574..ca9c8b63 100644
--- a/pc4mobx/hrmSalary/components/mobileTemplate/index.js
+++ b/pc4mobx/hrmSalary/components/mobileTemplate/index.js
@@ -14,7 +14,7 @@ const getLabel = WeaLocaleProvider.getLabel;
class Index extends Component {
render() {
const { theme, background, tip, tipPosi, itemTypeList, title } = this.props;
- const { onlyOneGrup, showData } = dealTemplate(itemTypeList, "mobile");
+ const { onlyOneGrup, showData } = dealTemplate(_.filter(itemTypeList, o => !!o), "mobile");
return (
{/*{title || getLabel(111, "薪酬预览")}
*/}
diff --git a/pc4mobx/hrmSalary/components/pcTemplate/content.js b/pc4mobx/hrmSalary/components/pcTemplate/content.js
index 310999d6..6bc3c60e 100644
--- a/pc4mobx/hrmSalary/components/pcTemplate/content.js
+++ b/pc4mobx/hrmSalary/components/pcTemplate/content.js
@@ -7,7 +7,7 @@ const getLabel = WeaLocaleProvider.getLabel;
class Content extends Component {
render() {
const { theme, background, tip, tipPosi, itemTypeList, sendTime = new Date() } = this.props;
- const { onlyOneGrup, showData } = dealTemplate(itemTypeList, "pc");
+ const { onlyOneGrup, showData } = dealTemplate(_.filter(itemTypeList, o => !!o), "pc");
return (
From 15c81c8156124f0aca05a0cba33f2763b7f1681a 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, 6 Jun 2024 17:25:31 +0800
Subject: [PATCH 102/127] release/2.14.3.2406.01
---
.../doCalc/components/salaryEditCalc/editCalcTable.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
index 1c6bb065..9ac53398 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
@@ -140,11 +140,11 @@ class EditCalcTable extends Component {
title: getLabel(131329, "信息确认"),
content:
- {lockStatus === "LOCK" ? getLabel(543554, "确定要锁定人员项目值吗?") : getLabel(543556, "确定要解锁人员项目值吗?")}
+ {lockStatus === "LOCK" ? getLabel(111, "确定要锁定该人员核算数据吗?") : getLabel(111, "确定要解锁该人员核算数据吗?")}
- {lockStatus === "LOCK" ? getLabel(543555, "确定后,则项目输入值锁定,项目公式失效;点击核算将按锁定的输入值重新核算!") :
- getLabel(543557, "确定后,则项目公式生效,页面仍显示手动修改的项目值;点击核算将按公式重新核算,不再显示解锁标识!")}
+ {lockStatus === "LOCK" ? getLabel(111, "确定后,核算数据锁定,项目公式失效;点击核算将跳过该人员已核算的项目!") :
+ getLabel(111, "确定后,则项目公式生效,页面仍显示手动修改的项目值;点击核算将按公式重新核算,不再显示解锁标识!")}
,
onOk: () => {
From 76db5080669cdd030766f0486d8f7d1d6758753c 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, 11 Jun 2024 15:27:22 +0800
Subject: [PATCH 103/127] =?UTF-8?q?=E4=BA=A7=E5=93=81=E4=BC=98=E5=8C=96=20?=
=?UTF-8?q?-=20=E7=A4=BE=E4=BF=9D=E7=A6=8F=E5=88=A9=E5=8F=B0=E8=B4=A6?=
=?UTF-8?q?=E5=B0=8F=E6=95=B0=E4=BD=8D=E6=95=B0=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/inputPaymentAmount.js | 6 +-
.../components/regEditDetial.js | 117 +++++++++---------
2 files changed, 63 insertions(+), 60 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
index 44eddfe0..62a32e2b 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
@@ -20,7 +20,8 @@ class InputPaymentAmount extends Component {
return (
this.handleChangeBaseItem(record, val, type, "per")}
+ precision={parseFloat(record.validNum || 2)}
+ onChange={(val) => this.handleChangeBaseItem(record, val, type, "per")}
/>
);
}
@@ -31,7 +32,8 @@ class InputPaymentAmount extends Component {
return (
this.handleChangeBaseItem(record, val, type, "com")}
+ precision={parseFloat(record.validNum || 2)}
+ onChange={(val) => this.handleChangeBaseItem(record, val, type, "com")}
/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
index ef41880a..7805ceea 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
@@ -24,70 +24,19 @@ class RegEditDetial extends Component {
key: "social",
label: "社保",
dataSource: [],
- columns: _.map(regColumns, item => {
- if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
- return {
- ...item,
- render: (text, record) => {
- return (
- this.handleChange("social", item.dataIndex, v, record)}
- />
- );
- }
- };
- }
- return { ...item };
- })
+ columns: []
},
{
key: "fund",
label: "公积金",
dataSource: [],
- columns: _.map(regColumns, item => {
- if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
- return {
- ...item,
- render: (text, record) => {
- return (
- this.handleChange("fund", item.dataIndex, v, record)}
- />
- );
- }
- };
- }
- return { ...item };
- })
+ columns: []
},
{
key: "other",
label: "企业年金及其他福利",
dataSource: [],
- columns: _.map(regColumns, item => {
- if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
- return {
- ...item,
- render: (text, record) => {
- return (
- this.handleChange("other", item.dataIndex, v, record)}
- />
- );
- }
- };
- }
- return { ...item };
- })
+ columns: []
}
]
};
@@ -215,10 +164,62 @@ class RegEditDetial extends Component {
const fund = this.combinedData(accumulationFund, result);
const other = this.combinedData(otherBenefits, result);
this.setState({
- listMap: [{ ...socialData, dataSource: social }, { ...foundData, dataSource: fund }, {
- ...otherData,
- dataSource: other
- }]
+ listMap: [
+ { ...socialData, dataSource: social, columns: _.map(regColumns, item => {
+ if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
+ return {
+ ...item,
+ render: (text, record) => {
+ return (
+ this.handleChange("social", item.dataIndex, v, record)}
+ />
+ );
+ }
+ };
+ }
+ return { ...item };
+ }) },
+ { ...foundData, dataSource: fund, columns: _.map(regColumns, item => {
+ if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
+ return {
+ ...item,
+ render: (text, record) => {
+ return (
+ this.handleChange("fund", item.dataIndex, v, record)}
+ />
+ );
+ }
+ };
+ }
+ return { ...item };
+ }) },
+ { ...otherData, dataSource: other, columns: _.map(regColumns, item => {
+ if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
+ return {
+ ...item,
+ render: (text, record) => {
+ return (
+ this.handleChange("other", item.dataIndex, v, record)}
+ />
+ );
+ }
+ };
+ }
+ return { ...item };
+ }) }
+ ]
});
}
});
From 1ddcab4f3846d0f8a35e0a1904a6e22291a1c033 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, 12 Jun 2024 17:38:34 +0800
Subject: [PATCH 104/127] hotfix/2.14.2.2406.02
---
.../components/inputPaymentAmount.js | 4 +--
.../components/regEditDetial.js | 34 +++++++++++++------
.../components/supplementarySlide.js | 4 ++-
3 files changed, 28 insertions(+), 14 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
index 62a32e2b..d9a91166 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
@@ -20,7 +20,7 @@ class InputPaymentAmount extends Component {
return (
this.handleChangeBaseItem(record, val, type, "per")}
/>
);
@@ -32,7 +32,7 @@ class InputPaymentAmount extends Component {
return (
this.handleChangeBaseItem(record, val, type, "com")}
/>
);
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
index 7805ceea..383747aa 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
@@ -165,7 +165,8 @@ class RegEditDetial extends Component {
const other = this.combinedData(otherBenefits, result);
this.setState({
listMap: [
- { ...socialData, dataSource: social, columns: _.map(regColumns, item => {
+ {
+ ...socialData, dataSource: social, columns: _.map(regColumns, item => {
if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
return {
...item,
@@ -173,7 +174,7 @@ class RegEditDetial extends Component {
return (
this.handleChange("social", item.dataIndex, v, record)}
/>
@@ -182,8 +183,10 @@ class RegEditDetial extends Component {
};
}
return { ...item };
- }) },
- { ...foundData, dataSource: fund, columns: _.map(regColumns, item => {
+ })
+ },
+ {
+ ...foundData, dataSource: fund, columns: _.map(regColumns, item => {
if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
return {
...item,
@@ -191,7 +194,7 @@ class RegEditDetial extends Component {
return (
this.handleChange("fund", item.dataIndex, v, record)}
/>
@@ -200,8 +203,10 @@ class RegEditDetial extends Component {
};
}
return { ...item };
- }) },
- { ...otherData, dataSource: other, columns: _.map(regColumns, item => {
+ })
+ },
+ {
+ ...otherData, dataSource: other, columns: _.map(regColumns, item => {
if (item.dataIndex === "personalPaymentAmount" || item.dataIndex === "companyPaymentAmount") {
return {
...item,
@@ -209,7 +214,7 @@ class RegEditDetial extends Component {
return (
this.handleChange("other", item.dataIndex, v, record)}
/>
@@ -218,7 +223,8 @@ class RegEditDetial extends Component {
};
}
return { ...item };
- }) }
+ })
+ }
]
});
}
@@ -231,9 +237,15 @@ class RegEditDetial extends Component {
let obj = { benefits: item };
_.forEach(data, it => {
if (item === it.insuranceName && it.paymentScopeSign === "per") {
- obj = _.assign(obj, { ...it, personalPaymentAmount: it.insuranceValue });
+ obj = _.assign(obj, {
+ ...it, personalPaymentAmount: it.insuranceValue,
+ personalPaymentAmountValidNum: it.validNum
+ });
} else if (item === it.insuranceName && it.paymentScopeSign === "com") {
- obj = _.assign(obj, { ...it, companyPaymentAmount: it.insuranceValue });
+ obj = _.assign(obj, {
+ ...it, companyPaymentAmount: it.insuranceValue,
+ companyPaymentAmountValidNum: it.validNum
+ });
}
});
return obj;
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js
index 8881cc39..7ed7e26d 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js
@@ -444,7 +444,9 @@ export const convertData = (dataSource) => {
[perKey]: "",
[comKey]: "",
perDisabled: !_.includes(_.map(itemList, o => o.paymentScopeSign), "per"),
- comDisabled: !_.includes(_.map(itemList, o => o.paymentScopeSign), "com")
+ perValidNum: !_.isEmpty(_.filter(itemList, i => i.paymentScopeSign === "per")) ? _.filter(itemList, i => i.paymentScopeSign === "per")[0].validNum : 2,
+ comDisabled: !_.includes(_.map(itemList, o => o.paymentScopeSign), "com"),
+ comValidNum: !_.isEmpty(_.filter(itemList, i => i.paymentScopeSign === "com")) ? _.filter(itemList, i => i.paymentScopeSign === "com")[0].validNum : 2,
});
});
return endList.push(data);
From c80a1c73fea70f7e294381cd62bc85d78f41e1e3 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, 12 Jun 2024 18:56:02 +0800
Subject: [PATCH 105/127] hotfix/2.14.2.2406.02
---
.../components/addCompensationPersonnelDialog.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js
index 34b7edb4..33ee9267 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js
@@ -101,7 +101,8 @@ class AddCompensationPersonnelDialog extends Component {
type: "custom",
key: "custom",
render: (text, record, index, onEdit) => (
- onEdit({
record: { ...record, [`${record.insuranceId}_per`]: v },
index, key: "per", value: v
@@ -122,7 +123,8 @@ class AddCompensationPersonnelDialog extends Component {
type: "custom",
key: "custom",
render: (text, record, index, onEdit) => (
- onEdit({
record: { ...record, [`${record.insuranceId}_com`]: v },
index, key: "com", value: v
@@ -166,10 +168,10 @@ class AddCompensationPersonnelDialog extends Component {
let perJson = {}, comJson = {};
_.forEach(list, o => {
if (!_.isNil(o.per)) {
- perJson = _.assign(perJson, { [o.insuranceId]: toDecimal_n(o.per, 2) });
+ perJson = _.assign(perJson, { [o.insuranceId]: toDecimal_n(o.per, o.perValidNum || 2) });
}
if (!_.isNil(o.com)) {
- comJson = _.assign(comJson, { [o.insuranceId]: toDecimal_n(o.com, 2) });
+ comJson = _.assign(comJson, { [o.insuranceId]: toDecimal_n(o.com, o.comValidNum ||2) });
}
});
return { [`${type}PerJson`]: JSON.stringify(perJson), [`${type}ComJson`]: JSON.stringify(comJson) };
From 24f9d7e57fe74adb28b639a2e2c174c85e1de7c9 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, 13 Jun 2024 09:06:22 +0800
Subject: [PATCH 106/127] hotfix/2.14.2.2406.02
---
.../standingBookDetail/components/regEditDetial.js | 14 ++++++++------
.../components/supplementarySlide.js | 4 ++--
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
index 383747aa..b1271972 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/regEditDetial.js
@@ -62,27 +62,28 @@ class RegEditDetial extends Component {
otherComJson: {}
};
_.forEach(socialData.dataSource, item => {
+ console.log(item)
if (item.personalPaymentAmount) {
- payload["socialPerJson"][item["insuranceId"]] = toDecimal_n(item.personalPaymentAmount, 2);
+ payload["socialPerJson"][item["insuranceId"]] = toDecimal_n(item.personalPaymentAmount, item.personalPaymentAmountValidNum || 2);
}
if (item.companyPaymentAmount) {
- payload["socialComJson"][item["insuranceId"]] = toDecimal_n(item.companyPaymentAmount, 2);
+ payload["socialComJson"][item["insuranceId"]] = toDecimal_n(item.companyPaymentAmount, item.companyPaymentAmountValidNum || 2);
}
});
_.forEach(foundData.dataSource, item => {
if (item.personalPaymentAmount) {
- payload["fundPerJson"][item["insuranceId"]] = toDecimal_n(item.personalPaymentAmount, 2);
+ payload["fundPerJson"][item["insuranceId"]] = toDecimal_n(item.personalPaymentAmount, item.personalPaymentAmountValidNum || 2);
}
if (item.companyPaymentAmount) {
- payload["fundComJson"][item["insuranceId"]] = toDecimal_n(item.companyPaymentAmount, 2);
+ payload["fundComJson"][item["insuranceId"]] = toDecimal_n(item.companyPaymentAmount, item.companyPaymentAmountValidNum || 2);
}
});
_.forEach(otherData.dataSource, item => {
if (item.personalPaymentAmount) {
- payload["otherPerJson"][item["insuranceId"]] = toDecimal_n(item.personalPaymentAmount, 2);
+ payload["otherPerJson"][item["insuranceId"]] = toDecimal_n(item.personalPaymentAmount, item.personalPaymentAmountValidNum || 2);
}
if (item.companyPaymentAmount) {
- payload["otherComJson"][item["insuranceId"]] = toDecimal_n(item.companyPaymentAmount, 2);
+ payload["otherComJson"][item["insuranceId"]] = toDecimal_n(item.companyPaymentAmount, item.companyPaymentAmountValidNum || 2);
}
});
_.forEach(Object.keys(payload), item => {
@@ -163,6 +164,7 @@ class RegEditDetial extends Component {
const social = this.combinedData(socialSecurity, result);
const fund = this.combinedData(accumulationFund, result);
const other = this.combinedData(otherBenefits, result);
+ console.log(social)
this.setState({
listMap: [
{
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js
index 7ed7e26d..3719461f 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js
@@ -92,10 +92,10 @@ class SupplementarySlide extends Component {
const key = child.insuranceId, valuePer = child[`${child.insuranceId}_per`],
valueCom = child[`${child.insuranceId}_com`];
if (!child.perDisabled) {
- _.assign(payload[`${item}PerString`], { [key]: toDecimal_n(valuePer, 2) || "0" });
+ _.assign(payload[`${item}PerString`], { [key]: toDecimal_n(valuePer, parseFloat(child.perValidNum || 2)) || "0" });
}
if (!child.comDisabled) {
- _.assign(payload[`${item}ComString`], { [key]: toDecimal_n(valueCom, 2) || "0" });
+ _.assign(payload[`${item}ComString`], { [key]: toDecimal_n(valueCom, parseFloat(child.comValidNum || 2)) || "0" });
}
});
});
From f4cbacd5917f3011c270dd520ebbdcd6b2536470 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, 14 Jun 2024 16:33:26 +0800
Subject: [PATCH 107/127] hotfix/2.14.2.2406.02
---
.../components/salaryDetails.js | 4 ++--
pc4mobx/hrmSalary/pages/salaryItem/options.js | 10 ++++++++++
.../components/welfarePlanEditSlide/planSetTable.js | 4 +++-
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index 66538450..9d8d2816 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -37,7 +37,7 @@ class SalaryDetails extends Component {
componentWillReceiveProps(nextProps, nextContext) {
if (nextProps.isQuery !== this.props.isQuery) this.setState({
- pageInfo: { ...this.state.pageInfo, current: 1 }
+ pageInfo: { ...this.state.pageInfo, current: 1 }, updateSum: true
}, () => this.getSalaryList(nextProps));
}
@@ -56,7 +56,7 @@ class SalaryDetails extends Component {
const { pageNum: current, size: pageSize } = params;
this.setState({
pageInfo: { ...pageInfo, current, pageSize },
- updateSum: true
+ updateSum: false
}, () => this.getSalaryList(this.props));
} else if (id === "CHECKBOX") {
const { selectedRowKeys: checkBox } = params;
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/options.js b/pc4mobx/hrmSalary/pages/salaryItem/options.js
index 7dbd51b4..58e64e3e 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/options.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/options.js
@@ -71,6 +71,16 @@ export const patternOptions = [
key: "8",
showname: "8",
selected: false
+ },
+ {
+ key: "9",
+ showname: "9",
+ selected: false
+ },
+ {
+ key: "10",
+ showname: "10",
+ selected: false
}
];
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/planSetTable.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/planSetTable.js
index 9447e487..10751d50 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/planSetTable.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/planSetTable.js
@@ -246,7 +246,9 @@ class PlanSetTable extends Component {
{ key: "5", showname: "5" },
{ key: "6", showname: "6" },
{ key: "7", showname: "7" },
- { key: "8", showname: "8" }
+ { key: "8", showname: "8" },
+ { key: "9", showname: "9" },
+ { key: "10", showname: "10" }
]} viewAttr={showOperateBtn ? 2 : 1}
onChange={validNum => onEdit({
record: { ...record, validNum },
From add6a70abd2da601f77535adefcac3dcdbc3e300 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, 17 Jun 2024 16:17:16 +0800
Subject: [PATCH 108/127] hotfix/2.14.2.2406.02
---
.../custom-title/weaReqTitle/index.js | 17 ++
.../custom-title/weaTopTitle/index.js | 15 ++
.../importDialog/components/impStep2.js | 10 +-
.../pages/ledgerPage/components/index.less | 14 +-
.../ledgerPage/components/ledgerSlide.js | 221 +++++++-----------
pc4mobx/hrmSalary/pages/ledgerPage/index.less | 10 -
6 files changed, 139 insertions(+), 148 deletions(-)
create mode 100644 pc4mobx/hrmSalary/components/custom-title/weaReqTitle/index.js
create mode 100644 pc4mobx/hrmSalary/components/custom-title/weaTopTitle/index.js
diff --git a/pc4mobx/hrmSalary/components/custom-title/weaReqTitle/index.js b/pc4mobx/hrmSalary/components/custom-title/weaReqTitle/index.js
new file mode 100644
index 00000000..69766076
--- /dev/null
+++ b/pc4mobx/hrmSalary/components/custom-title/weaReqTitle/index.js
@@ -0,0 +1,17 @@
+import React, { Component } from "react";
+import { WeaLocaleProvider, WeaReqTop } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ render() {
+ return (
+ } iconBgcolor="#F14A2D"
+ showDropIcon={false} tabDatas={this.props.tabDatas} {...this.props}
+ />
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/components/custom-title/weaTopTitle/index.js b/pc4mobx/hrmSalary/components/custom-title/weaTopTitle/index.js
new file mode 100644
index 00000000..d265c8eb
--- /dev/null
+++ b/pc4mobx/hrmSalary/components/custom-title/weaTopTitle/index.js
@@ -0,0 +1,15 @@
+import React, { Component } from "react";
+import { WeaLocaleProvider, WeaTop } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ render() {
+ return (
+ }
+ iconBgcolor="#F14A2D" {...this.props}/>
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/components/importDialog/components/impStep2.js b/pc4mobx/hrmSalary/components/importDialog/components/impStep2.js
index 91f3e690..0afc13f4 100644
--- a/pc4mobx/hrmSalary/components/importDialog/components/impStep2.js
+++ b/pc4mobx/hrmSalary/components/importDialog/components/impStep2.js
@@ -5,9 +5,11 @@
* Date: 2023/9/5
*/
import React, { Component } from "react";
-import { WeaTable } from "ecCom";
+import { WeaLocaleProvider, WeaTable } from "ecCom";
import { postFetch } from "../../../util/request";
+const { getLabel } = WeaLocaleProvider;
+
class ImpStep2 extends Component {
constructor(props) {
super(props);
@@ -41,9 +43,15 @@ class ImpStep2 extends Component {
render() {
const { dataSource, columns, loading } = this.state;
const { scrollHeight } = this.props;
+ const pagination = {
+ showTotal: total => `${getLabel(111, "共")} ${total} ${getLabel(111, "条")}`,
+ total: dataSource.length,
+ showSizeChanger: true
+ };
return (
);
}
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/index.less b/pc4mobx/hrmSalary/pages/ledgerPage/components/index.less
index 27a9ee0a..ba7c1af7 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/index.less
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/index.less
@@ -9,7 +9,19 @@
}
}
-.ledgerSlideContent {
+.ledgerSlideLayout {
+ .wea-new-top {
+ .ant-col-10 {
+ padding-right: 45px !important;
+ }
+ }
+
+ .wea-new-top-req-wapper .wea-new-top-req-title > div:last-child {
+ right: 45px !important;
+ }
+
+ .ledgerSlideContent {
+ }
}
.copyWrapper {
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSlide.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSlide.js
index 5692c526..d7229b5d 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSlide.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSlide.js
@@ -6,25 +6,20 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaSlideModal, WeaSteps } from "ecCom";
+import { WeaLocaleProvider, WeaSlideModal, WeaSteps } from "ecCom";
import { Button, message, Modal } from "antd";
-import SlideModalTitle from "../../../components/slideModalTitle";
import LedgerBaseSetting from "./ledgerBaseSetting";
import LedgerAssociatedPersonnel from "./ledgerAssociatedPersonnel";
import LedgerSalaryAdjustmentRules from "./ledgerSalaryAdjustmentRules";
import LedgerBackCalculatedSalaryItem from "./ledgerBackCalculatedSalaryItem";
import LedgerSalaryItem from "./ledgerSalaryItem";
+import WeaTopTitle from "../../../components/custom-title/weaTopTitle";
+import WeaReqTitle from "../../../components/custom-title/weaReqTitle";
import { saveAdjustmentRule, saveLedgerBasic, saveLedgerItem } from "../../../apis/ledger";
import "./index.less";
+const { getLabel } = WeaLocaleProvider;
const Step = WeaSteps.Step;
-const tabs = [
- { key: 0, title: "基础设置" },
- { key: 1, title: "关联人员" },
- { key: 2, title: "薪资项目" },
- { key: 3, title: "回算薪资项目" },
- { key: 4, title: "调薪计薪规则" }
-];
@inject("taxAgentStore", "ledgerStore")
@observer
@@ -32,12 +27,8 @@ class LedgerSlide extends Component {
constructor(props) {
super(props);
this.state = {
- current: 0,
- loading: false,
- baseSettingInfo: {},
- adjustRules: [],
- empFields: [], itemGroups: [],
- saveSalarySobId: ""
+ current: 0, loading: false, baseSettingInfo: {}, adjustRules: [],
+ empFields: [], itemGroups: [], saveSalarySobId: ""
};
}
@@ -142,128 +133,96 @@ class LedgerSlide extends Component {
}
}).catch(() => this.setState({ loading: false }));
};
- handleChangeSlideTab = (current) => {
- this.setState({ current: Number(current) });
- };
- handleClose = () => {
- this.setState({ current: 0 }, () => this.props.onCancel());
- };
+ handleClose = () => this.setState({ current: 0, baseSettingInfo: {} }, () => this.props.onCancel());
/*
* Author: 黎永顺
* Description: 基础信息字段切换
* Params:
* Date: 2022/12/9
*/
- handleChangeSaveParams = (baseSettingInfo) => {
- this.setState({ baseSettingInfo });
- };
+ handleChangeSaveParams = (baseSettingInfo) => this.setState({ baseSettingInfo });
/*
* Author: 黎永顺
* Description: 薪资项目保存数据
* Params:
* Date: 2022/12/14
*/
- handleSaveSalaryItemParams = (empFields, itemGroups) => {
- this.setState({ empFields, itemGroups });
- };
- renderChildren = () => {
- const { current, saveSalarySobId } = this.state;
- let CurrentDom = null;
- switch (current) {
- case 0:
- CurrentDom = ;
- break;
- case 1:
- CurrentDom = ;
- break;
- case 2:
- CurrentDom = ;
- break;
- case 3:
- CurrentDom = ;
- break;
- case 4:
- CurrentDom =
- this.setState({ adjustRules })}/>;
- break;
- default:
- CurrentDom = null;
- break;
- }
- return CurrentDom;
- };
- renderCustomOperate = () => {
- const { taxAgentStore: { showOperateBtn }, editId } = this.props;
- const { current, loading } = this.state;
- let CurrentDom = [];
- //管理员操作权限
- if (showOperateBtn) {
- switch (current) {
- case 0:
- CurrentDom = [
- {editId ? "保存" : "保存并进入下一步"}
- ];
- break;
- case 1:
- CurrentDom = !editId ? [
- 完成,跳过所有步骤,
- this.setState({ current: current + 1 })}>下一步
- ] : [];
- break;
- case 2:
- CurrentDom = !editId ?
- [
- 完成,跳过所有步骤,
- this.setState({ current: current - 1 })}>上一步,
- {
- this.setState({ current: current + 1 }, () => {
- this.saveLedgerItem();
- });
- }}
- >保存并进入下一步
- ] : [
- 保存
- ];
- break;
- case 3:
- CurrentDom = !editId ?
- [
- 完成,跳过所有步骤,
- this.setState({ current: current - 1 })}>上一步,
- this.setState({ current: current + 1 })}>下一步
- ] : [];
- break;
- case 4:
- CurrentDom = !editId ?
- [
- this.setState({ current: current - 1 })}>上一步,
- 完成
- ] : [
- 保存
- ];
- break;
- default:
- break;
- }
- }
- return CurrentDom;
- };
+ handleSaveSalaryItemParams = (empFields, itemGroups) => this.setState({ empFields, itemGroups });
render() {
- const { title, visible, editId, taxAgentStore: { showOperateBtn } } = this.props;
- const { current } = this.state;
+ const { visible, editId, taxAgentStore: { showOperateBtn } } = this.props;
+ const { current, saveSalarySobId, loading } = this.state;
+ let tabs = [
+ {
+ key: 0, title: getLabel(82751, "基础设置"),
+ createBtns: [
+ {getLabel(111, "保存并进入下一步")}
+ ],
+ editBtns: [
+ {getLabel(111, "保存")}
+ ],
+ children: this.setState({ taxableItems: val })}
+ />
+ },
+ {
+ key: 1, title: getLabel(543467, "关联人员"),
+ createBtns: [
+ {getLabel(111, "完成,跳过所有步骤")},
+ this.setState({ current: current + 1 })}>{getLabel(111, "下一步")}
+ ],
+ editBtns: [],
+ children:
+ },
+ {
+ key: 2, title: getLabel(542362, "薪资项目"),
+ createBtns: [
+ {getLabel(111, "完成,跳过所有步骤")},
+ this.setState({ current: current - 1 })}>{getLabel(111, "上一步")},
+ {
+ this.setState({ current: current + 1 }, () => this.saveLedgerItem());
+ }}>{getLabel(111, "保存并进入下一步")}
+ ],
+ editBtns: [
+ {getLabel(111, "保存")}
+ ],
+ children:
+ },
+ {
+ key: 3, title: getLabel(543468, "回算薪资项目"),
+ createBtns: [
+ {getLabel(111, "完成,跳过所有步骤")},
+ this.setState({ current: current - 1 })}>{getLabel(111, "上一步")},
+ this.setState({ current: current + 1 })}>{getLabel(111, "下一步")}
+ ],
+ editBtns: [],
+ children:
+ },
+ {
+ key: 4, title: getLabel(543469, "调薪计薪规则"),
+ createBtns: [
+ this.setState({ current: current - 1 })}>{getLabel(111, "上一步")},
+ {getLabel(111, "完成")}
+ ],
+ editBtns: [
+ {getLabel(111, "保存")}
+ ],
+ children: this.setState({ adjustRules })}/>
+ }
+ ];
return (
{
- }}
- selectedTab={current}
- customOperate={this.renderCustomOperate()}
- subItemChange={this.handleChangeSlideTab}
- />
+ !editId ? current === o.key).createBtns}/> :
+ current === o.key).editBtns : []}
+ tabDatas={tabs} selectedKey={String(current)}
+ onChange={cur => this.setState({ current: parseInt(cur) })}/>
}
content={
@@ -297,9 +248,7 @@ class LedgerSlide extends Component {
}
}
- {
- this.renderChildren()
- }
+ {_.find(tabs, o => current === o.key).children}
}
onClose={this.handleClose}
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/index.less b/pc4mobx/hrmSalary/pages/ledgerPage/index.less
index 2fc10db7..182042bf 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/index.less
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/index.less
@@ -1,13 +1,3 @@
-.ledgerOuter {
- .wea-new-top {
- .ant-col-10 {
- & > span:nth-child(2) {
- margin-top: -6px;
- }
- }
- }
-}
-
.ledgerWrapper {
height: 100%;
From e0b6dc4585dc87b362536921296c11c169c8f60f 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, 17 Jun 2024 16:47:08 +0800
Subject: [PATCH 109/127] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E5=8F=91=E6=94=BE=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/payroll/payrollGrant/index.js | 45 +++++++------------
pc4mobx/hrmSalary/stores/payroll.js | 4 +-
2 files changed, 18 insertions(+), 31 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index 52bb065c..95141435 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -538,7 +538,8 @@ export default class PayrollGrant extends React.Component {
grantListCondition,
setGrantListShowSearchAd,
salaryGrantPageInfo,
- getInfoList
+ getInfoList,
+ loading
} = payrollStore;
const { selectedRowKeys, selectedKey, currentId, payrollPartModalParams } = this.state;
const rowSelection = {
@@ -569,35 +570,19 @@ export default class PayrollGrant extends React.Component {
];
return (
-
} // 左侧图标
- iconBgcolor="#F14A2D" // 左侧图标背景色
- showDropIcon={true} // 是否显示下拉按钮
- buttons={this.getSearchsAdQuick()}
- />
-
+
} iconBgcolor="#F14A2D"
+ showDropIcon={true} buttons={this.getSearchsAdQuick()}/>
- this.setState({ selectedKey: v }, () => {
- getInfoList({
- salarySendId: currentId,
- isGranted: v !== "0"
- });
- })
- }
- searchType={["base", "advanced"]} // base:基础搜索框 advanced:显示高级搜索按钮
- searchsBasePlaceHolder="请输入姓名"
- showSearchAd={grantListShowSearchAd} // 是否展开高级搜索面板
- setShowSearchAd={bool => setGrantListShowSearchAd(bool)} //高级搜索面板受控
- searchsAd={getSearchs(grantListConditionForm, toJS(grantListCondition), 2)} // 高级搜索内部数据
- buttonsAd={adBtn} // 高级搜索内部按钮
- onSearch={() => this.handleSearch()} // 点搜索按钮时的回调
- onSearchChange={v => grantListConditionForm.updateFields({ username: v })} // 在搜索框中输入的文字改变时的回调: 这里需要同步高级搜索和外部搜索框的值
- searchsBaseValue={grantListConditionForm.getFormParams().username} // 外部input搜索值受控: 这里和高级搜索的requestname同步
+ datas={topTab} keyParam="viewcondition" selectedKey={selectedKey} searchType={["base", "advanced"]}
+ onChange={v => this.setState({ selectedKey: v }, () => {
+ getInfoList({ salarySendId: currentId, isGranted: v !== "0" });
+ })}
+ searchsBasePlaceHolder="请输入姓名" showSearchAd={grantListShowSearchAd} buttonsAd={adBtn}
+ setShowSearchAd={bool => setGrantListShowSearchAd(bool)}
+ searchsAd={getSearchs(grantListConditionForm, toJS(grantListCondition), 2)}
+ onSearch={() => this.handleSearch()}
+ onSearchChange={v => grantListConditionForm.updateFields({ username: v })}
+ searchsBaseValue={grantListConditionForm.getFormParams().username}
/>
@@ -626,7 +611,7 @@ export default class PayrollGrant extends React.Component {
{
- !_.isEmpty(this.getColumns()) ?
+ !loading ?
{
+ this.loading = false;
if (res.status) {
this.salaryGrantTableStore = res.data.columns;
this.salaryGrantDataSource = res.data.list;
@@ -470,7 +472,7 @@ export class payrollStore {
} else {
message.error(res.errormsg || "获取失败");
}
- });
+ }).catch(() => this.loading = false);
};
// 工资单-工资单发放详情列表
From 4ebb3a422e76f188064188b651ee47679af3409f 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, 17 Jun 2024 17:20:01 +0800
Subject: [PATCH 110/127] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E5=8F=91=E6=94=BE=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/payroll/payrollGrant/index.js | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index 95141435..16043fcd 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -323,6 +323,9 @@ export default class PayrollGrant extends React.Component {
onClick={() => this.handleWithdraw({ ids: [record.id] })}>
撤回
+
+ 预览
+
{
salarySendDetailBaseInfo.showPdfBtn &&
this.handleGrant({ ids: [record.id] })}>
- 发放
-
+
+ this.handleGrant({ ids: [record.id] })}>
+ 发放
+
+
+ 预览
+
+
);
}
}
From 40fe79c0e52ddfd12ccd3e70def450e6205d327c 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, 17 Jun 2024 17:24:21 +0800
Subject: [PATCH 111/127] hotfix/2.14.2.2406.02
---
pc4mobx/hrmSalary/pages/salaryItem/columns.js | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/columns.js b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
index e34b5431..281fa6ec 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/columns.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
@@ -128,13 +128,13 @@ export const salaryItemFields = [
viewAttr: 2,
tip: ""
},
- // {
- // key: "defaultValue",
- // label: "默认值",
- // type: "INPUT",
- // viewAttr: 2,
- // tip: ""
- // },
+ {
+ key: "defaultValue",
+ label: "默认值",
+ type: "INPUT",
+ viewAttr: 2,
+ tip: ""
+ },
{
key: "formulaContent",
label: "公式",
From 2e775eb20578b36ae74b8edea503901c8173bd81 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, 18 Jun 2024 09:07:43 +0800
Subject: [PATCH 112/127] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E5=8F=91=E6=94=BE=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/payroll.js | 4 ++
.../payrollGrant/components/index.less | 6 ++
.../components/payrollPreviewDialog.js | 62 +++++++++++++++++++
.../pages/payroll/payrollGrant/index.js | 32 ++++++++--
4 files changed, 100 insertions(+), 4 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/index.less
create mode 100644 pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/payrollPreviewDialog.js
diff --git a/pc4mobx/hrmSalary/apis/payroll.js b/pc4mobx/hrmSalary/apis/payroll.js
index b78fac43..8ca9fab7 100644
--- a/pc4mobx/hrmSalary/apis/payroll.js
+++ b/pc4mobx/hrmSalary/apis/payroll.js
@@ -244,3 +244,7 @@ export const getSmsSalaryItemSet = (params) => {
export const genPdfBeforeExport = (params) => {
return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/genPdfBeforeExport", "GET", params);
};
+//工资单预览
+export const salaryBillPreview = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryBill/preview", params);
+};
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/index.less b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/index.less
new file mode 100644
index 00000000..6c2c71f7
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/index.less
@@ -0,0 +1,6 @@
+.payPreBox {
+ .pay-preview-layout {
+ width: 100%;
+ height: 100%;
+ }
+}
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/payrollPreviewDialog.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/payrollPreviewDialog.js
new file mode 100644
index 00000000..763a45a6
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/components/payrollPreviewDialog.js
@@ -0,0 +1,62 @@
+/*
+ *
+ * 工资单预览
+ * @Author: 黎永顺
+ * @Date: 2024/6/17
+ * @Wechat:
+ * @Email: 971387674@qq.com
+ * @description:
+*/
+import React, { Component } from "react";
+import { WeaDialog, WeaLocaleProvider } from "ecCom";
+import { salaryBillPreview } from "../../../../apis/payroll";
+import Content from "../../../../components/pcTemplate/content";
+import "./index.less";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class PayrollPreviewDialog extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ salaryBillData: { salaryTemplate: {}, salaryGroups: [], employeeInformation: {} }
+ };
+ this.preRef = null;
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ const { salaryInfoId, recipient } = nextProps;
+ salaryBillPreview({ salaryInfoId, recipient }).then(({ status, data }) => {
+ if (status) {
+ this.setState({ salaryBillData: data });
+ }
+ });
+ }
+ }
+
+
+ render() {
+ const {
+ salaryTemplate, salaryGroups, employeeInformation, sendTime
+ } = this.state.salaryBillData;
+ const salaryProps = {
+ theme: salaryTemplate.theme, tip: salaryTemplate.textContent, sendTime,
+ background: salaryTemplate.background, tipPosi: salaryTemplate.textContentPosition || "",
+ itemTypeList: [employeeInformation, ...salaryGroups]
+ };
+ return (
+ this.preRef = dom} scalable hasScroll className="payPreBox" initLoadCss
+ style={{
+ width: 998, height: window.innerHeight - 40, minHeight: 200, minWidth: 380, maxHeight: "90%",
+ maxWidth: "90%", overflow: "hidden", transform: "translate(0px, 0px)"
+ }}
+ >
+ {!_.isEmpty(salaryGroups) && }
+
+ );
+ }
+}
+
+export default PayrollPreviewDialog;
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index 16043fcd..acc6bfd1 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -10,6 +10,7 @@ import CustomPaginationTable from "../../../components/customPaginationTable";
import PayrollPartTable from "./payrollPartTable";
import { genPdfBeforeExport, getPayrollIssuanceProgressBar } from "../../../apis/payroll";
import ProgressModal from "../../../components/progressModal";
+import PayrollPreviewDialog from "./components/payrollPreviewDialog";
const getLabel = WeaLocaleProvider.getLabel;
const { ButtonSelect } = WeaDropdown;
@@ -31,6 +32,10 @@ export default class PayrollGrant extends React.Component {
title: "工资单发放",
grantType: "",
salarySendId: ""
+ },
+ payrollPreviewDialog: {
+ visible: false, title: getLabel(111, "工资单预览"),
+ salaryInfoId: "", recipient: ""
}
};
this.pageInfo = { current: 1, pageSize: 10 };
@@ -303,7 +308,7 @@ export default class PayrollGrant extends React.Component {
};
getColumns = () => {
- const { selectedKey, showFeedbackColumn } = this.state;
+ const { selectedKey, showFeedbackColumn, payrollPreviewDialog } = this.state;
const { payrollStore } = this.props;
const { salaryGrantTableStore: columns, salarySendDetailBaseInfo } = payrollStore;
return _.map([
@@ -323,7 +328,13 @@ export default class PayrollGrant extends React.Component {
onClick={() => this.handleWithdraw({ ids: [record.id] })}>
撤回
-
+ this.setState({
+ payrollPreviewDialog: {
+ ...payrollPreviewDialog,
+ visible: true, salaryInfoId: record.id, recipient: record.employeeId
+ }
+ })}>
预览
{
@@ -376,7 +387,12 @@ export default class PayrollGrant extends React.Component {
onClick={() => this.handleGrant({ ids: [record.id] })}>
发放
-
+ this.setState({
+ payrollPreviewDialog: {
+ ...payrollPreviewDialog,
+ visible: true, salaryInfoId: record.id, recipient: record.employeeId
+ }
+ })}>
预览
@@ -549,7 +565,7 @@ export default class PayrollGrant extends React.Component {
getInfoList,
loading
} = payrollStore;
- const { selectedRowKeys, selectedKey, currentId, payrollPartModalParams } = this.state;
+ const { selectedRowKeys, selectedKey, currentId, payrollPartModalParams, payrollPreviewDialog } = this.state;
const rowSelection = {
selectedRowKeys,
onChange: this.onSelectChange
@@ -659,6 +675,14 @@ export default class PayrollGrant extends React.Component {
progress={this.state.progress}
/>
}
+ {/*工资单预览*/}
+ this.setState({
+ payrollPreviewDialog: {
+ ...payrollPreviewDialog,
+ visible: false
+ }
+ })}/>
);
}
From 7221d910cabab1114e3cc5308a71d9f3f6213fab 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, 18 Jun 2024 10:44:48 +0800
Subject: [PATCH 113/127] =?UTF-8?q?hotfix/2.14.2.240=E9=BB=98=E8=AE=A4?=
=?UTF-8?q?=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ledgerPage/components/ledgerSalaryItemTable.js | 6 +++---
pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
index b7121112..fa7675d7 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
@@ -109,7 +109,7 @@ class LedgerSalaryItemTable extends Component {
formulaContent: formulaContent ? formulaContent : data.formulaContent,
originFormulaContent: originFormulaContent ? originFormulaContent : data.originFormulaContent,
originSqlContent: originSqlContent ? originSqlContent : data.originSqlContent,
- formulaId: formulaId ? formulaId : data.formulaId
+ formulaId: formulaId ? formulaId : data.formulaId,
},
record,
userStatusList: _.map(userStatusList, it => ({ key: it.value.toString(), showname: it.defaultLabel }))
@@ -151,11 +151,11 @@ class LedgerSalaryItemTable extends Component {
});
const { salaryItemId } = record;
const {
- hideDefault, roundingMode, pattern, valueType,
+ hideDefault, roundingMode, pattern, valueType, defaultValue,
originFormulaContent, originSqlContent, formulaId
} = request;
this.handleChangeSalaryItem({
- itemHide: hideDefault.toString(),
+ itemHide: hideDefault.toString(), defaultValue,
roundingMode, pattern, valueType,
formulaContent: valueType.toString() === "2" ? originFormulaContent : originSqlContent,
formulaId: ((valueType.toString() === "3" && (!originSqlContent || originSqlContent === " ")) || (valueType.toString() === "2" && (!originFormulaContent || originFormulaContent === " ")) || valueType.toString() === "1") ? "" : formulaId,
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index 47d48a73..19913c32 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -133,11 +133,11 @@ class SalaryItemForm extends Component {
return { ...item };
})
}, () => {
- // if (key === "valueType" && !this.props.isLedger) {
- // onChangeFieldsItem({ formulaContent: "", formulaId: 0, valueType: v });
- // } else {
- onChangeFieldsItem({ [key]: (key === "useDefault" || key === "useInEmployeeSalary" || key === "hideDefault") ? Number(v) : v });
- // }
+ if (key === "dataType") {
+ onChangeFieldsItem({ [key]: v, defaultValue: "" });
+ } else {
+ onChangeFieldsItem({ [key]: (key === "useDefault" || key === "useInEmployeeSalary" || key === "hideDefault") ? Number(v) : v });
+ }
});
};
From 1c67adbd25fb5c86b1b8d1e02f4c807b37c729f2 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, 18 Jun 2024 15:30:46 +0800
Subject: [PATCH 114/127] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5?=
=?UTF-8?q?=E8=B5=84=E5=8D=95=E5=8F=91=E6=94=BE=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index acc6bfd1..8cde7da5 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -335,7 +335,7 @@ export default class PayrollGrant extends React.Component {
visible: true, salaryInfoId: record.id, recipient: record.employeeId
}
})}>
- 预览
+ {getLabel(111, "查看")}
{
salarySendDetailBaseInfo.showPdfBtn &&
@@ -393,7 +393,7 @@ export default class PayrollGrant extends React.Component {
visible: true, salaryInfoId: record.id, recipient: record.employeeId
}
})}>
- 预览
+ {getLabel(111, "查看")}
);
From 10c7903892e76b49cbc005604cb19108499cc02f 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, 18 Jun 2024 17:48:08 +0800
Subject: [PATCH 115/127] hotfix/2.14.2.2406.02
---
.../pages/ledgerPage/components/ledgerSalaryItemTable.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
index fa7675d7..def95fcd 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
@@ -88,7 +88,7 @@ class LedgerSalaryItemTable extends Component {
handleEditSalaryItem = async (record) => {
const { salarySobId, dataSource } = this.props, { salaryItemId, id } = record;
const {
- itemHide: hideDefault,
+ itemHide: hideDefault, defaultValue,
valueType, name, description,
roundingMode, formulaId, dataType, useInEmployeeSalary,
pattern, canEdit, formulaContent, originFormulaContent, originSqlContent
@@ -109,7 +109,7 @@ class LedgerSalaryItemTable extends Component {
formulaContent: formulaContent ? formulaContent : data.formulaContent,
originFormulaContent: originFormulaContent ? originFormulaContent : data.originFormulaContent,
originSqlContent: originSqlContent ? originSqlContent : data.originSqlContent,
- formulaId: formulaId ? formulaId : data.formulaId,
+ formulaId: formulaId ? formulaId : data.formulaId
},
record,
userStatusList: _.map(userStatusList, it => ({ key: it.value.toString(), showname: it.defaultLabel }))
@@ -123,7 +123,7 @@ class LedgerSalaryItemTable extends Component {
...this.state.salaryItemPayload,
visible: true,
request: {
- canEdit, dataType, description,
+ canEdit, dataType, description, defaultValue,
formulaContent, formulaId, name,
hideDefault: _.isNil(hideDefault) ? "0" : hideDefault,
valueType, roundingMode, pattern,
From 823788e53164cfc806867ac04e6113c54315edcf 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, 19 Jun 2024 11:24:59 +0800
Subject: [PATCH 116/127] hotfix/2.14.2.2406.02
---
pc4mobx/hrmSalary/pages/salaryItem/columns.js | 1 +
pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/columns.js b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
index 281fa6ec..b2cae4bd 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/columns.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
@@ -133,6 +133,7 @@ export const salaryItemFields = [
label: "默认值",
type: "INPUT",
viewAttr: 2,
+ precision: 2,
tip: ""
},
{
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index 19913c32..98a869e3 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -122,6 +122,8 @@ class SalaryItemForm extends Component {
return { ...item, type: v === "number" ? "INPUTNUMBER" : "INPUT" };
} else if (key === "valueType" && item.key === "defaultValue") {
return { ...item, display: v === "1" };
+ } else if (key === "pattern" && item.key === "defaultValue") {
+ return { ...item, precision: parseInt(v) };
} else if (key === "valueType" && (item.key === "originSqlContent" || item.key === "originFormulaContent")) {
return {
...item,
@@ -148,7 +150,7 @@ class SalaryItemForm extends Component {
{
_.map(salaryItemFieldsList, item => {
- const { key, label, type, viewAttr, tip, options, display = true, multiple = false } = item;
+ const { key, label, type, viewAttr, tip, options, display = true, multiple = false, precision = 0 } = item;
const value = !_.isNil(request[key]) ? request[key].toString() : "";
return
{
@@ -181,7 +183,7 @@ class SalaryItemForm extends Component {
(type === "INPUTNUMBER" && display) ?
- this.handleChangeSalaryFiledItems(key, v)}/>
{key === "width" && display &&
From c39515d7f9835d1b641b6c10de7e37273cec69f4 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, 19 Jun 2024 11:43:08 +0800
Subject: [PATCH 117/127] hotfix/2.14.2.2406.02
---
.../pages/ledgerPage/components/ledgerSalaryItemEditSlide.js | 4 +++-
pc4mobx/hrmSalary/pages/salaryItem/index.js | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js
index d476edbd..288f6303 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js
@@ -8,6 +8,7 @@ import React, { Component } from "react";
import { WeaLocaleProvider, WeaSlideModal } from "ecCom";
import SlideModalTitle from "../../../components/slideModalTitle";
import SalaryItemForm from "../../salaryItem/salaryItemForm";
+import { toDecimal_n } from "../../../util";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@@ -21,7 +22,8 @@ class LedgerSalaryItemEditSlide extends Component {
handleChange = (params) => {
const request = { ...this.props.request, ...params };
const key = Object.keys(params)[0];
- this.props.onUpdateRequest(request, key);
+ const { defaultValue, pattern, ...extra } = request;
+ this.props.onUpdateRequest({ ...extra, pattern, defaultValue: toDecimal_n(defaultValue, parseInt(pattern)) }, key);
};
handleShowFormal = (salaryItemName) => this.props.onEditFormnul(salaryItemName);
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index 4be1e225..d96ae163 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -2,7 +2,7 @@ import React from "react";
import { inject, observer } from "mobx-react";
import { Button, Dropdown, Menu, message, Modal, Switch } from "antd";
import { WeaInputSearch, WeaLocaleProvider, WeaNewScroll, WeaSlideModal, WeaTop } from "ecCom";
-import { renderLoading } from "../../util";
+import { renderLoading, toDecimal_n } from "../../util";
import CustomTab from "../../components/customTab";
import SystemSalaryItemModal from "./systemSalaryItemModal";
import { columns } from "./columns";
@@ -358,7 +358,8 @@ export default class SalaryItem extends React.Component {
const handleSaveSlideChange = (value) => {
const { salaryItemStore: { setRequest } } = this.props;
- setRequest(value);
+ const { defaultValue, pattern, ...extra } = value;
+ setRequest({ ...extra, pattern, defaultValue: toDecimal_n(defaultValue, parseInt(pattern)) });
};
const rowSelection = {
selectedRowKeys,
From 6f29f9c56a8746988f6b4073847e0324490250d9 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, 20 Jun 2024 09:15:07 +0800
Subject: [PATCH 118/127] hotfix/2.14.2.2406.02
---
pc4mobx/hrmSalary/pages/reportView/components/condition.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/condition.js b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
index f0c3b8e6..23980906 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/condition.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
@@ -484,6 +484,10 @@ export const mapBarOptions = (params) => ({
];
}
},
+ textStyle: {
+ textShadowColor: "transparent",
+ color: "#fff"
+ },
rich: {
a: {
fontWeight: "bold",
From 93c39cad413967707f74fa499dc8c8dc45215bca 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, 20 Jun 2024 11:17:30 +0800
Subject: [PATCH 119/127] hotfix/2.14.2.2406.02
---
.../components/ledgerSalaryItemEditSlide.js | 4 +---
.../components/ledgerSalaryItemTable.js | 3 ++-
pc4mobx/hrmSalary/pages/salaryItem/index.js | 21 ++++++++++---------
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js
index 288f6303..d476edbd 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemEditSlide.js
@@ -8,7 +8,6 @@ import React, { Component } from "react";
import { WeaLocaleProvider, WeaSlideModal } from "ecCom";
import SlideModalTitle from "../../../components/slideModalTitle";
import SalaryItemForm from "../../salaryItem/salaryItemForm";
-import { toDecimal_n } from "../../../util";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@@ -22,8 +21,7 @@ class LedgerSalaryItemEditSlide extends Component {
handleChange = (params) => {
const request = { ...this.props.request, ...params };
const key = Object.keys(params)[0];
- const { defaultValue, pattern, ...extra } = request;
- this.props.onUpdateRequest({ ...extra, pattern, defaultValue: toDecimal_n(defaultValue, parseInt(pattern)) }, key);
+ this.props.onUpdateRequest(request, key);
};
handleShowFormal = (salaryItemName) => this.props.onEditFormnul(salaryItemName);
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
index def95fcd..16db4771 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
@@ -10,6 +10,7 @@ import LedgerSalaryItemEditSlide from "./ledgerSalaryItemEditSlide";
import { getSalaryItemForm } from "../../../apis/ledger";
import { commonEnumList } from "../../../apis/ruleconfig";
import FormalFormModal from "../../salaryItem/formalFormModal";
+import { toDecimal_n } from "../../../util";
const getLabel = WeaLocaleProvider.getLabel;
@@ -155,7 +156,7 @@ class LedgerSalaryItemTable extends Component {
originFormulaContent, originSqlContent, formulaId
} = request;
this.handleChangeSalaryItem({
- itemHide: hideDefault.toString(), defaultValue,
+ itemHide: hideDefault.toString(), defaultValue: toDecimal_n(defaultValue, parseInt(pattern)),
roundingMode, pattern, valueType,
formulaContent: valueType.toString() === "2" ? originFormulaContent : originSqlContent,
formulaId: ((valueType.toString() === "3" && (!originSqlContent || originSqlContent === " ")) || (valueType.toString() === "2" && (!originFormulaContent || originFormulaContent === " ")) || valueType.toString() === "1") ? "" : formulaId,
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index d96ae163..7f55028d 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -314,16 +314,18 @@ export default class SalaryItem extends React.Component {
});
return;
}
- saveItem(payload, continueFlag).then(() => {
- getTableDatas({ ...this.state.searchParams }).then(res => {
- this.setState({
- searchParams: {
- ...this.state.searchParams,
- total: res.total
- }
+ const { pattern, defaultValue, ...extra } = payload;
+ saveItem({ ...extra, pattern, defaultValue: toDecimal_n(defaultValue, parseInt(pattern)) }, continueFlag)
+ .then(() => {
+ getTableDatas({ ...this.state.searchParams }).then(res => {
+ this.setState({
+ searchParams: {
+ ...this.state.searchParams,
+ total: res.total
+ }
+ });
});
});
- });
};
const renderCustomOperate = () => {
@@ -358,8 +360,7 @@ export default class SalaryItem extends React.Component {
const handleSaveSlideChange = (value) => {
const { salaryItemStore: { setRequest } } = this.props;
- const { defaultValue, pattern, ...extra } = value;
- setRequest({ ...extra, pattern, defaultValue: toDecimal_n(defaultValue, parseInt(pattern)) });
+ setRequest(value);
};
const rowSelection = {
selectedRowKeys,
From 4d56e8284f9097db844a424774f23016edc011f9 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, 20 Jun 2024 14:06:16 +0800
Subject: [PATCH 120/127] hotfix/2.14.2.2406.02
---
pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index 98a869e3..8c87cfb9 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -183,9 +183,10 @@ class SalaryItemForm extends Component {
(type === "INPUTNUMBER" && display) ?
- this.handleChangeSalaryFiledItems(key, v)}/>
+ this.handleChangeSalaryFiledItems(key, v)}/>
{key === "width" && display &&
px}
From 3ba154484202f8054735913d2f55cbbe16cee147 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, 20 Jun 2024 17:18:12 +0800
Subject: [PATCH 121/127] hotfix/2.14.2.2406.02
---
pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index 8c87cfb9..12d0c7bf 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -51,7 +51,7 @@ class SalaryItemForm extends Component {
return {
...item,
label: getLabel(item.lanId, item.label),
- display: ((!isLedger && key === "width") || key === "sortedIndex")
+ display: !isLedger
};
case "useInEmployeeSalary":
return {
From 6bb79ab685cb36e2945e01f65834af9e7149a24c 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, 20 Jun 2024 17:25:55 +0800
Subject: [PATCH 122/127] hotfix/2.14.2.2406.02
---
.../pages/ledgerPage/components/ledgerSalaryItemTable.js | 5 +++--
pc4mobx/hrmSalary/pages/salaryItem/index.js | 7 +++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
index 16db4771..838f44a0 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
@@ -153,10 +153,11 @@ class LedgerSalaryItemTable extends Component {
const { salaryItemId } = record;
const {
hideDefault, roundingMode, pattern, valueType, defaultValue,
- originFormulaContent, originSqlContent, formulaId
+ originFormulaContent, originSqlContent, formulaId, dataType
} = request;
this.handleChangeSalaryItem({
- itemHide: hideDefault.toString(), defaultValue: toDecimal_n(defaultValue, parseInt(pattern)),
+ itemHide: hideDefault.toString(),
+ defaultValue: dataType === "number" ? toDecimal_n(defaultValue, parseInt(pattern)) : defaultValue,
roundingMode, pattern, valueType,
formulaContent: valueType.toString() === "2" ? originFormulaContent : originSqlContent,
formulaId: ((valueType.toString() === "3" && (!originSqlContent || originSqlContent === " ")) || (valueType.toString() === "2" && (!originFormulaContent || originFormulaContent === " ")) || valueType.toString() === "1") ? "" : formulaId,
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index 7f55028d..09875add 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -314,8 +314,11 @@ export default class SalaryItem extends React.Component {
});
return;
}
- const { pattern, defaultValue, ...extra } = payload;
- saveItem({ ...extra, pattern, defaultValue: toDecimal_n(defaultValue, parseInt(pattern)) }, continueFlag)
+ const { pattern, defaultValue, dataType, ...extra } = payload;
+ saveItem({
+ ...extra, pattern, dataType,
+ defaultValue: dataType === "number" ? toDecimal_n(defaultValue, parseInt(pattern)) : defaultValue
+ }, continueFlag)
.then(() => {
getTableDatas({ ...this.state.searchParams }).then(res => {
this.setState({
From a4e072e3eee34eb1234997aeaddd87968b5e8a45 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, 21 Jun 2024 10:05:47 +0800
Subject: [PATCH 123/127] hotfix/2.14.2.2406.02
---
.../pages/reportView/components/condition.js | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/condition.js b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
index 23980906..d6668459 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/condition.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
@@ -403,8 +403,8 @@ export const mapBarOptions = (params) => ({
},
grid: {
top: "10%",
- right: "0%",
- left: "5%",
+ right: "2%",
+ left: "2%",
bottom: "10%",
containLabel: true
},
@@ -457,8 +457,9 @@ export const mapBarOptions = (params) => ({
series: _.map(params.data, (item, index) => {
return {
name: item.name,
- barWidth: "32",
- barGap: "0%",
+ barMaxWidth: 30,
+ barMinWidth: 10,
+ barGap: 0,
data: _.map(item.data, (it) => it.replace(/,/g, "")),
type: "bar",
itemStyle: {
@@ -505,8 +506,9 @@ export const mapBarOptions = (params) => ({
}),
dataZoom: [
{
- type: "inside"
-
+ type: "inside",
+ start: params.xAxis.length <= 7 ? 0 : 25,
+ end: params.xAxis.length <= 7 ? 100 : 75,
},
{
type: "slider",
From da6a8266f6c428f7ec9ce417765a3e8202b871a6 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, 26 Jun 2024 10:02:45 +0800
Subject: [PATCH 124/127] hotfix/2.14.2.2406.02
---
.../analysisOfSalaryStatistics/components/salaryDetails.js | 6 +++++-
pc4mobx/hrmSalary/pages/payrollFiles/config/index.js | 3 ++-
pc4mobx/hrmSalary/stores/payrollFiles.js | 3 ++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index 9d8d2816..3f01a8bf 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -99,13 +99,17 @@ class SalaryDetails extends Component {
}).catch(() => this.setState({ loading: false }));
};
handleExportSalaryList = (key) => {
+ const { attendanceStore: { tableStore } } = this.props;
let { selectedRowKeys, payload } = this.state;
if (key === "SELECTED" && selectedRowKeys.length === 0) {
message.warning(getLabel(543345, "请选择需要导出的数据!"));
return;
}
WeaLoadingGlobal.start();
- const promise = API.exportSalaryList({ ...payload, ids: key === "SELECTED" ? selectedRowKeys : [] });
+ const promise = API.exportSalaryList({
+ ...payload, ids: key === "SELECTED" ? selectedRowKeys : [],
+ columns: _.map(_.filter(toJS(tableStore.columns), (item) => item.display === "true" && item.dataIndex !== "acctTimes"), o => o.dataIndex)
+ });
};
getColumns = () => {
const { attendanceStore: { tableStore } } = this.props;
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
index 25b815a0..e1ee1288 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
@@ -324,10 +324,11 @@ export const salaryFileSearchConditions = [
},
{
conditionType: "SELECT",
- domkey: ["taxAgentId"],
+ domkey: ["taxAgentIds"],
fieldcol: 16,
label: getLabel(537996, "个税扣缴义务人"),
labelcol: 8,
+ multiple: true,
options: [],
viewAttr: 2
},
diff --git a/pc4mobx/hrmSalary/stores/payrollFiles.js b/pc4mobx/hrmSalary/stores/payrollFiles.js
index c9095936..d70e0113 100644
--- a/pc4mobx/hrmSalary/stores/payrollFiles.js
+++ b/pc4mobx/hrmSalary/stores/payrollFiles.js
@@ -24,11 +24,12 @@ export class PayrollFilesStore {
@action("薪资档案-列表查询")
queryList = (payload = {}, searchItemsValue = {}, url = "") => {
return new Promise((resolve, reject) => {
- const { departmentIds, positionIds, subcompanyIds, statuses, ...extra } = searchItemsValue;
+ const { departmentIds, positionIds, subcompanyIds, statuses, taxAgentIds, ...extra } = searchItemsValue;
API.queryList({
departmentIds: departmentIds ? departmentIds.split(",") : [],
positionIds: positionIds ? positionIds.split(",") : [],
subcompanyIds: subcompanyIds ? subcompanyIds.split(",") : [],
+ taxAgentIds: taxAgentIds ? taxAgentIds.split(",") : [],
statuses: statuses ? statuses.split(",") : [],
...payload, ...extra, url
}).then(res => {
From 3ee2ece60d015cb4dc01b6ac5d8d93edf84bbabe 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, 26 Jun 2024 10:07:45 +0800
Subject: [PATCH 125/127] hotfix/2.14.2.2406.02
---
.../components/salaryFileAdvanceSearchPannel/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js
index d7b43cd5..3f164873 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js
@@ -41,7 +41,7 @@ class salaryFileAdvanceSearchPannel extends Component {
...child,
options: _.map(userStatusList, o => ({ key: String(o.value), showname: o.defaultLabel }))
};
- } else if (getKey(child) === "taxAgentId") {
+ } else if (getKey(child) === "taxAgentIds") {
return {
...child,
options: _.map(taxAgentList, o => ({ key: o.id, showname: o.content }))
From 230aea8d622981f10a5b044d252afee387234d05 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, 28 Jun 2024 16:57:05 +0800
Subject: [PATCH 126/127] hotfix/2.14.2.2406.02
---
pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index 12d0c7bf..4a1ed275 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -88,7 +88,7 @@ class SalaryItemForm extends Component {
return {
...item,
type: dataType === "number" ? "INPUTNUMBER" : "INPUT",
- display: valueType && valueType.toString() === "1",
+ display: valueType && valueType.toString() === "1" && useInEmployeeSalary == 0,
viewAttr: (isLedger && record.canEdit) || (editable && record.canEdit) || isAdd ? 2 : 1
};
case "formulaContent":
From 5a2ecefa6f32014bf567cf9c9fc840d8a8a58322 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, 2 Jul 2024 15:05:17 +0800
Subject: [PATCH 127/127] hotfix/2.14.2.2406.02
---
pc4mobx/hrmSalary/pages/ruleConfig/form.js | 10 +++++--
.../hrmSalary/pages/ruleConfig/ruleConfig.js | 27 ++++++++++++-------
2 files changed, 25 insertions(+), 12 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/form.js b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
index c1308ec4..9b17f248 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/form.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
@@ -1,7 +1,9 @@
import React from "react";
-import { WeaFormItem, WeaSearchGroup } from "ecCom";
+import { WeaFormItem, WeaSearchGroup, WeaTools } from "ecCom";
import { WeaSwitch } from "comsMobx";
+const getKey = WeaTools.getKey;
+
export const renderRuleForm = (form, condition, onChange) => {
const { isFormInit } = form;
const formParams = form.getFormParams();
@@ -15,7 +17,11 @@ export const renderRuleForm = (form, condition, onChange) => {
label={`${fields.label}`} labelCol={{ span: `${fields.labelcol}` }}
wrapperCol={{ span: `${fields.fieldcol}` }} error={form.getError(fields)}
tipPosition="bottom">
-
+ getKey(fields) !== "salaryAcctFixedColumns" && onChange(v)}
+ onBlur={(v) => getKey(fields) === "salaryAcctFixedColumns" && onChange({ salaryAcctFixedColumns: { value: v } })}
+ />
),
colSpan: 1,
hide: fields.hide
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
index efda13dd..3f24a0d6 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -25,6 +25,7 @@ class RuleConfig extends Component {
super(props);
this.state = { conditions: [], sysinfo: {}, progressVisible: false, progress: 50 };
this.timer = null;
+ this.handleDebounce = null;
}
componentDidMount() {
@@ -116,16 +117,22 @@ class RuleConfig extends Component {
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]);
+ if (!this.handleDebounce) {
+ this.handleDebounce = _.debounce(() => {
+ 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]);
+ this.handleDebounce = null;
+ }, 500);
+ }
+ this.handleDebounce();
break;
default:
break;