From 80307c7b9177da68c2c86d9b06fcc543284bfb71 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Mon, 14 Apr 2025 16:38:41 +0800
Subject: [PATCH 1/5] release/2.19.1.2501.01
---
.../calculate/doCalc/components/salaryEditCalc/index.less | 4 ++++
pc4mobx/hrmSalary/pages/payrollFiles/config/index.js | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
index 4e3fb3b4..ff3ef53f 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
@@ -150,6 +150,10 @@
.esf-base-info-form, .wea-title, .wea-content {
padding: 0;
+
+ .ant-row {
+ height: 100%;
+ }
}
.esf-form-content {
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
index ce378ee6..7802aee6 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
@@ -407,7 +407,7 @@ export const salaryFilesConditions = [
domkey: ["position"],
fieldcol: 14,
label: "岗位",
- lanId: 6086,
+ lanId: 111,
labelcol: 10,
value: "",
viewAttr: 1
From 38572729fd6e9f96728249e7df4bfec264bb0a38 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Tue, 15 Apr 2025 15:16:29 +0800
Subject: [PATCH 2/5] =?UTF-8?q?release/3.0.1.2504.01-=E5=90=88=E5=B9=B6?=
=?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=BA=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../doCalc/components/salaryEditCalc/editSalaryCalcSlide.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editSalaryCalcSlide.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editSalaryCalcSlide.js
index 5deeaecd..239ccb9e 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editSalaryCalcSlide.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editSalaryCalcSlide.js
@@ -99,7 +99,8 @@ class EditSalaryCalcSlide extends Component {
return;
}
const payload = {
- salaryAcctEmpId, employeeInfos: baseInfo,
+ salaryAcctEmpId,
+ employeeInfos: _.map(baseInfo, o => ({ ...o, fieldValue: o.fieldValue.id || o.fieldValue })),
items: [
..._.reduce(itemsByGroup, (pre, cur) => {
return [
From 6dfb4e6650bfa004b2af6a68e5526227db2056c0 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Tue, 15 Apr 2025 16:13:15 +0800
Subject: [PATCH 3/5] release/2.19.1.2501.01
---
pc4mobx/hrmSalary/components/FormInfo/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/components/FormInfo/index.js b/pc4mobx/hrmSalary/components/FormInfo/index.js
index d6940489..d0d87963 100644
--- a/pc4mobx/hrmSalary/components/FormInfo/index.js
+++ b/pc4mobx/hrmSalary/components/FormInfo/index.js
@@ -67,7 +67,7 @@ export default class FormInfo extends Component {
}
}
coms != null && formItems.push({
- com: ({coms}),
+ com: ({coms}), hide: field.hide,
col
});
From 51d9c5888834d190f3856d6182473a0b6d786246 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Tue, 15 Apr 2025 16:27:19 +0800
Subject: [PATCH 4/5] release/2.19.1.2501.01
---
pc4mobx/hrmSalary/apis/payroll.js | 18 +++++++++++++-----
pc4mobx/hrmSalary/pages/mobilePayroll/index.js | 18 ++++++++++--------
2 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/payroll.js b/pc4mobx/hrmSalary/apis/payroll.js
index 48fcecb2..c322c94f 100644
--- a/pc4mobx/hrmSalary/apis/payroll.js
+++ b/pc4mobx/hrmSalary/apis/payroll.js
@@ -210,18 +210,26 @@ export const payrollCheckType = params => {
return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/payrollCheckType", "GET", params);
};
//工资单-反馈验证
-export const feedBackSalaryBill = params => {
+export const feedBackSalaryBill = async params => {
const { header, ...payload } = params;
- return fetch(`/api/bs/hrmsalary/salaryBill/feedBackSalaryBill?${convertToUrlString(payload)}`, {
+ const res = await fetch(`/api/bs/hrmsalary/salaryBill/feedBackSalaryBill?${convertToUrlString(payload)}`, {
method: "GET",
mode: "cors",
headers: { "Content-Type": "application/json", ...header }
- }).then(res => res.json());
+ });
+ return await res.json();
// return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/feedBackSalaryBill", "GET", params);
};
//工资单-确认
-export const confirmSalaryBill = params => {
- return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/confirmSalaryBill", "GET", params);
+export const confirmSalaryBill = async params => {
+ const { header, ...payload } = params;
+ const res = await fetch(`/api/bs/hrmsalary/salaryBill/confirmSalaryBill?${convertToUrlString(payload)}`, {
+ method: "GET",
+ mode: "cors",
+ headers: { "Content-Type": "application/json", ...header }
+ });
+ return await res.json();
+ // return WeaTools.callApi("/api/bs/hrmsalary/salaryBill/confirmSalaryBill", "GET", params);
};
// 工资单基础设置-获取设置列表
diff --git a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
index 1b598371..69d84928 100644
--- a/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
+++ b/pc4mobx/hrmSalary/pages/mobilePayroll/index.js
@@ -144,14 +144,16 @@ export default class MobilePayroll extends React.Component {
return params;
};
confirmSalaryBill = () => {
- confirmSalaryBill({ salaryInfoId: getQueryString("id") }).then(({ status, errormsg }) => {
- if (status) {
- message.success(getLabel(30700, "操作成功"));
- this.getMySalaryBill(getQueryString("id"));
- } else {
- message.error(errormsg || getLabel(30651, "操作失败"));
- }
- });
+ const { salaryBillToken } = this.state;
+ confirmSalaryBill({ salaryInfoId: getQueryString("id"), header: salaryBillToken })
+ .then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(30700, "操作成功"));
+ this.getMySalaryBill(getQueryString("id"));
+ } else {
+ message.error(errormsg || getLabel(30651, "操作失败"));
+ }
+ });
};
handleGoFeedback = () => {
Modal.confirm({
From 854a49b01803eb871b223064f1d520114859bc56 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Wed, 16 Apr 2025 15:51:28 +0800
Subject: [PATCH 5/5] release/2.19.1.2501.01
---
.../payroll/payrollGrant/payrollPartTable.js | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartTable.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartTable.js
index 552a7122..df034794 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartTable.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartTable.js
@@ -32,10 +32,10 @@ class PayrollPartTable extends Component {
}
componentWillReceiveProps(nextProps, nextContext) {
- if (nextProps.visible !== this.props.visible) {
- nextProps.visible && this.sendRangeList(nextProps);
- this.setState({ selectedRowKeys: [] });
- }
+ if (nextProps.visible !== this.props.visible && nextProps.visible) this.sendRangeList(nextProps);
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) this.setState({
+ selectedRowKeys: [], pageInfo: { current: 1, pageSize: 10, total: 0 }
+ });
}
sendRangeList = (props) => {
@@ -52,9 +52,9 @@ class PayrollPartTable extends Component {
sendRangeList(payload).then(({ status, data }) => {
this.setState({ loading: { ...loading, query: false } });
if (status) {
- const { pageNum: current, pageSize, total, columns, list: dataSource } = data;
+ const { pageNum: current, total, columns, list: dataSource } = data;
this.setState({
- pageInfo: { ...pageInfo, current, pageSize, total },
+ pageInfo: { ...pageInfo, current, total },
dataSource: _.map(dataSource, it => ({
...it,
includeObj: _.map(it.includeObj, child => child.targetName || child.targetTypeName).join(","),
@@ -125,8 +125,7 @@ class PayrollPartTable extends Component {
onChange: current => {
this.setState({
pageInfo: { ...pageInfo, current }
- }, () => {
- });
+ }, () => this.sendRangeList({ grantType, salarySendId }));
}
};
const rowSelection = {