diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
index 8f71d224..eac828ef 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
@@ -97,6 +97,7 @@
flex-direction: column;
justify-content: space-between;
margin-left: 10px;
+ overflow: hidden;
.reportName {
font-size: 14px;
diff --git a/pc4mobx/hrmSalary/pages/historicalPayroll/index.js b/pc4mobx/hrmSalary/pages/historicalPayroll/index.js
new file mode 100644
index 00000000..342a69a2
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/historicalPayroll/index.js
@@ -0,0 +1,43 @@
+/*
+ * Author: 黎永顺
+ * name:历史工资单
+ * Description:
+ * Date: 2024/1/25
+ */
+import React, { Component } from "react";
+import { WeaLocaleProvider, WeaTools } from "ecCom";
+import { MonthRangePicker } from "../reportView/components/statisticalMicroSettingsSlide";
+import Payroll from "../mySalaryBenefits/components/payrollTable";
+import moment from "moment";
+import "./index.less";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ dateRange: [
+ moment(new Date()).subtract(1, "year").startOf("year").format("YYYY-MM"),
+ moment(new Date()).endOf("year").format("YYYY-MM")
+ ]
+ };
+ }
+
+ render() {
+ const { dateRange } = this.state;
+ const employeeId = WeaTools.getUrlParams().hrmResourceID;
+ return (
+
+
+ {getLabel(542604, "薪资所属月")}
+ this.setState({ dateRange: v })}/>
+
+
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/historicalPayroll/index.less b/pc4mobx/hrmSalary/pages/historicalPayroll/index.less
new file mode 100644
index 00000000..459ccbaf
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/historicalPayroll/index.less
@@ -0,0 +1,23 @@
+.history-payroll-box {
+ width: 100%;
+ height: 100%;
+ background: #f6f6f6;
+ padding: 16px;
+
+ .topQuery {
+ width: 100%;
+ background: #fff;
+ padding: 16px;
+ margin-bottom: 16px;
+ display: flex;
+ align-items: center;
+
+ .title {
+ margin-right: 10px;
+ }
+ }
+
+ .wea-new-table {
+ background: #fff;
+ }
+}
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
index 9366f360..b7121112 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemTable.js
@@ -250,8 +250,9 @@ class LedgerSalaryItemTable extends Component {
render: (text, record) => {
const { salarySobId, salaryItemId } = record;
return {text};
+ // href={`/spa/hrmSalary/static/index.html#/main/hrmSalary/topologyView/${salarySobId}/${salaryItemId}`}
+ // target="_blank"
+ href="javascript:void(0);">{text};
}
},
{
diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
index 6ae229c8..98912d8a 100644
--- a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
+++ b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
@@ -159,9 +159,9 @@ export default class MobilePayroll extends React.Component {
if (status) {
const { mySalaryBillData } = this.state;
const { salaryTemplate } = mySalaryBillData;
- const { feedbackUrl } = salaryTemplate;
+ const { feedbackUrl, mobileFeedbackUrl } = salaryTemplate;
this.getMySalaryBill(getQueryString("id"));
- window.location.href = `${window.ecologyContentPath || ""}${feedbackUrl}`;
+ window.location.href = `${window.ecologyContentPath || ""}${getQueryString("type") === "phone" ? mobileFeedbackUrl : feedbackUrl}`;
// window.open(`${window.ecologyContentPath || ""}${feedbackUrl}`);
} else {
message.error(errorMsg);
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
index ed75ad76..d13cd2fe 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/SalaryAdjustmentRecords/index.js
@@ -8,9 +8,12 @@ import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { WeaLocaleProvider, WeaTable } from "ecCom";
import Authority from "../../../mySalary/authority";
-import { recordList } from "../../../../apis/mySalaryBenefits";
+import { mySalaryRecordList4Card, recordList } from "../../../../apis/mySalaryBenefits";
const getLabel = WeaLocaleProvider.getLabel;
+const API = {
+ recordList, mySalaryRecordList4Card
+};
@inject("mySalaryStore")
@observer
@@ -24,14 +27,18 @@ class Index extends Component {
}
componentDidMount() {
- const { mySalaryStore: { initRecordData } } = this.props;
- initRecordData(this.getRecordList);
+ const { mySalaryStore: { initRecordData, getRecordData }, type } = this.props;
+ !type ? initRecordData(this.getRecordList) : getRecordData({
+ status: "1", token: "",
+ callback: () => this.getRecordList()
+ });
}
getRecordList = () => {
const { pageInfo } = this.state;
+ const { employeeId, type = "recordList" } = this.props;
this.setState({ loading: true });
- recordList({ ...pageInfo }).then(({ status, data }) => {
+ API[type]({ ...pageInfo, employeeId }).then(({ status, data }) => {
this.setState({ loading: false });
if (status) {
const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
diff --git a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
index 33cb6873..4c882560 100644
--- a/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalaryBenefits/components/payrollTable/index.js
@@ -6,17 +6,20 @@
*/
import React, { Component } from "react";
import { WeaLocaleProvider, WeaTable } from "ecCom";
-import { mySalaryBillList } from "../../../../apis/mySalaryBenefits";
+import { mySalaryBillList, mySalaryBillList4Card } from "../../../../apis/mySalaryBenefits";
import moment from "moment";
const getLabel = WeaLocaleProvider.getLabel;
+const API = {
+ mySalaryBillList, mySalaryBillList4Card
+};
class Index extends Component {
constructor(props) {
super(props);
this.state = {
- juniorMapList: [], dataSource: [], columns: [], pageInfo: { current: 1, pageSize: 10, total: 0 },
- loading: false, employeeId: ""
+ dataSource: [], columns: [], pageInfo: { current: 1, pageSize: 10, total: 0 },
+ loading: false
};
}
@@ -30,9 +33,9 @@ class Index extends Component {
getMySalaryBillList = (props) => {
this.setState({ loading: true });
- const { pageInfo, employeeId } = this.state;
- const { salaryYearMonth } = props;
- mySalaryBillList({ salaryYearMonth, employeeId, ...pageInfo }).then(({ status, data }) => {
+ const { pageInfo } = this.state;
+ const { salaryYearMonth, employeeId, type = "mySalaryBillList" } = props;
+ API[type]({ salaryYearMonth, employeeId, ...pageInfo }).then(({ status, data }) => {
this.setState({ loading: false });
if (status) {
const { columns, datas: dataSource, pageInfo: { pageNum: current, pageSize, total } } = data;
@@ -55,7 +58,7 @@ class Index extends Component {
};
render() {
- const { juniorMapList, dataSource, loading, columns, pageInfo } = this.state;
+ const { dataSource, loading, columns, pageInfo } = this.state;
const pagination = {
...pageInfo,
showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
diff --git a/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js b/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js
index 53802244..ba853f81 100644
--- a/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js
+++ b/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemSettings.js
@@ -131,6 +131,7 @@ class SalaryItemSettings extends Component {
salarySobId: this.props.salarySobId,
existSalaryItemIds: _.map(record.items, it => it.id),
groupId: record.groupId,
+ groupName: record.groupName,
isReplenish: this.props.isReplenish
};
getAvailableSalaryItemSet(payload).then(({ status, data }) => {
diff --git a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
index 6cd7f5b6..f64ad003 100644
--- a/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
+++ b/pc4mobx/hrmSalary/pages/payroll/templateBaseSettings.js
@@ -35,7 +35,8 @@ class TemplateBaseSettings extends Component {
ackFeedbackSetting: {
ackStatus: "0",
autoAckDays: 7,
- feedBackUrl: ""
+ feedBackUrl: "",
+ mobileFeedbackUrl: ""
},
salaryBillViewingLimitSetting: {
limitMonth: 0
@@ -68,8 +69,8 @@ class TemplateBaseSettings extends Component {
};
salaryBillBaseSetSave = () => {
const { watermark, watermarkStatus, wmSetting, ackFeedbackSetting, salaryBillViewingLimitSetting } = this.state;
- const { feedBackUrl } = ackFeedbackSetting;
- if (!feedBackUrl) {
+ const { feedBackUrl, mobileFeedbackUrl } = ackFeedbackSetting;
+ if (!feedBackUrl || !mobileFeedbackUrl) {
Modal.warning({
title: getLabel(111, "信息确认"),
content: getLabel(111, "必要信息不完整,红色*为必填项!")
@@ -96,7 +97,7 @@ class TemplateBaseSettings extends Component {
render() {
const { watermarkStatus, watermark, watermarkSet, ackFeedbackSetting, salaryBillViewingLimitSetting } = this.state;
- const { ackStatus, autoAckDays, feedBackUrl } = ackFeedbackSetting;
+ const { ackStatus, autoAckDays, feedBackUrl, mobileFeedbackUrl } = ackFeedbackSetting;
const { limitMonth = 0 } = salaryBillViewingLimitSetting;
return (
@@ -158,7 +159,7 @@ class TemplateBaseSettings extends Component {
style={{ marginLeft: 10 }}
placement="top" width={200}/>
-
+
this.setState({
@@ -167,6 +168,15 @@ class TemplateBaseSettings extends Component {
}
})}/>
+
+ this.setState({
+ ackFeedbackSetting: {
+ ...ackFeedbackSetting, mobileFeedbackUrl
+ }
+ })}/>
+
}
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js
index c9a7d295..1a60b901 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileImportDialog/index.js
@@ -36,7 +36,7 @@ class Index extends Component {
importType: "", listType: importType
};
payload = {
- importType: "", listType: importType,
+ importType: "", listType: importType, hasData: false,
...salaryFileQueryForm.getFormParams()
};
} else {
@@ -44,7 +44,7 @@ class Index extends Component {
importType: importType, listType: "FIXED"
};
payload = {
- importType: importType, listType: "FIXED",
+ importType: importType, listType: "FIXED", hasData: false,
...salaryFileQueryForm.getFormParams()
};
}
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
index 9ad2cd34..bf3cfc17 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileList/index.js
@@ -100,12 +100,12 @@ class Index extends Component {
case "CHANGE-SALARY":
case "VIEW":
case "EDIT":
- const { taxAgentStore: { showOperateBtn } } = this.props;
+ const { taxAgentStore: { showOperateBtn }, selectedKey: runStatuses } = this.props;
const { record: { id: salaryArchiveId } } = params;
this.setState({
salaryFilesEditSlide: {
...this.state.salaryFilesEditSlide, visible: true, salaryArchiveId,
- runStatuses: this.props.selectedKey, showOperateBtn
+ runStatuses, showOperateBtn
}
});
break;
@@ -172,7 +172,7 @@ class Index extends Component {
const columns = _.map(_.filter(toJS(tableStore.columns), (item) => item.display === "true"), (it, idx) => ({
dataIndex: it.dataIndex, title: it.title, align: "left",
width: (it.dataIndex === "taxAgentName" || it.dataIndex === "operate") ? 185 : 150,
- fixed: it.dataIndex === "username" ? "left" : it.dataIndex === "operate" ? "right" : "",
+ fixed: it.dataIndex === "username" ? "left" : it.dataIndex === "operate" ? "right" : it.fixed ? it.fixed : false,
ellipsis: true
}));
if (!_.isEmpty(columns)) {
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js
index 1eb1a76d..1edd3e56 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js
@@ -112,7 +112,8 @@ class Index extends Component {
if (salaryForm.isValid) {
const { payStartDate, payEndDate, ...extraParams } = salaryForm.getFormParams();
const payload = {
- salaryArchiveId, status: _.toUpper(runStatuses),
+ //status-非系统人员保存与定薪人员一样
+ salaryArchiveId, status: _.toUpper(runStatuses === "ext" ? "fixed" : runStatuses),
payStartDate, payEndDate,
salaryArchiveItems: _.map(salaryArchiveItems, o => ({
salaryItemId: o.salaryItemId,
@@ -152,7 +153,7 @@ class Index extends Component {
}}>{getLabel(543310, "发起调薪")}
}
{
- runStatuses === "fixed" && showOperateBtn &&
+ (runStatuses === "fixed" || runStatuses === "ext") && showOperateBtn &&
]}
>
- {getSearchs(payrollCopyForm, copyConditions, 1, false)}
+ {getSearchs(payrollCopyForm, conditions, 1, false)}