From a27beae87e6f56c1ad57a332d0ff7d067ef601ea 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 10:37:26 +0800
Subject: [PATCH 01/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../employeeDeclareDetailSchemaEditDialog.js | 140 ++++++++++++------
.../pages/employeedeclareDetail/constants.js | 33 ++++-
2 files changed, 123 insertions(+), 50 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
index a76fecfa..23550a82 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
@@ -5,14 +5,16 @@
* Date: 2023/8/14
*/
import React, { Component } from "react";
-import { WeaLocaleProvider, WeaSlideModal } from "ecCom";
-import { Button, Col, message, Modal, Row } from "antd";
+import { WeaLocaleProvider, WeaSlideModal, WeaTools } from "ecCom";
+import { Button, Col, message, Row } from "antd";
import { inject, observer } from "mobx-react";
import { declareConditions } from "../constants";
import { getSearchs } from "../../../util";
import { getQueryString } from "../../../util/url";
import { employeedeclareGetForm, getEmployeeSave } from "../../../apis/declare";
+import { commonEnumList } from "../../../apis/archive";
+const getKey = WeaTools.getKey;
const { getLabel } = WeaLocaleProvider;
@inject("employeeDeclareStore")
@@ -33,7 +35,8 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
if (nextProps.visible !== this.props.visible && !nextProps.visible) this.employeeChangeInfo = {};
}
- employeedeclareGetForm = (props) => {
+ employeedeclareGetForm = async (props) => {
+ const { data: cardTypeEnum } = await commonEnumList({ enumClass: `com.engine.salary.enums.employeedeclare.CardTypeEnum` });
employeedeclareGetForm(_.pick(props, ["id"])).then(({ status, data }) => {
if (status) {
this.setState({
@@ -41,7 +44,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
return {
...it,
items: _.map(it.items, child => {
- if (child.domkey[0] === "employmentStatus") {
+ if (getKey(child) === "employmentStatus") {
return {
...child,
value: _.take(props.employmentStatusList)[0].enum,
@@ -50,7 +53,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
showname: getLabel(it.labelId, it.defaultLabel)
}))
};
- } else if (child.domkey[0] === "employmentType") {
+ } else if (getKey(child) === "employmentType") {
return {
...child,
value: _.take(props.employmentTypeList)[0].enum,
@@ -59,7 +62,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
showname: getLabel(it.labelId, it.defaultLabel)
}))
};
- } else if (child.domkey[0] === "gender") {
+ } else if (getKey(child) === "gender") {
return {
...child,
value: "MALE",
@@ -68,7 +71,11 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
{ key: "FEMALE", showname: getLabel(111, "女") }
]
};
- } else if (child.domkey[0] === "employeeType") {
+ } else if (getKey(child) === "cardType") {
+ return {
+ ...child, options: _.map(cardTypeEnum, o => ({ key: o.enum, showname: o.defaultLabel }))
+ };
+ } else if (getKey(child) === "employeeType") {
return {
...child,
viewAttr: props.id ? 1 : 3,
@@ -77,7 +84,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
]
};
}
- if (child.conditionType === "SELECT" && child.domkey[0] !== "gender" && child.domkey[0] !== "employmentStatus" && child.domkey[0] !== "employmentType") {
+ if (child.conditionType === "SELECT" && getKey(child) !== "gender" && getKey(child) !== "employmentStatus" && getKey(child) !== "employmentType") {
return {
...child,
options: [
@@ -93,37 +100,37 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
employeeInfo: data.data
}, () => {
const { data: result, columns } = data;
- const { employeeDeclareStore: { declareForm } } = this.props;
+ const { employeeDeclareStore: { declareForm }, id } = props;
declareForm.initFormFields(this.state.eConditions);
- const filedKes = _.map(columns, it => it.dataIndex);
- _.map(filedKes, item => {
- if (item === "disability" || item === "lonelyOld" || item === "martyrDependents") {
- declareForm.updateFields({ [item]: result[item] || "OFF" });
- } else if (item === "deductExpenses") {
- declareForm.updateFields({ [item]: result[item] || "ON" });
- } else if (item === "gender") {
- declareForm.updateFields({ [item]: result[item] || "MALE" });
- } else if (item === "employmentStatus") {
- declareForm.updateFields({ [item]: result[item] || _.take(props.employmentStatusList)[0].enum });
- } else if (item === "employmentType") {
- declareForm.updateFields({ [item]: result[item] || _.take(props.employmentTypeList)[0].enum });
- } else if (item === "cardType") {
- declareForm.updateFields({ [item]: "居民身份证" });
- } else if (item === "employee") {
- const [employeeData] = result[item] || [];
- !_.isEmpty(employeeData) && declareForm.updateFields({
- employeeType: {
- value: [employeeData._entityType, [employeeData.id, employeeData.name, [{
- id: employeeData.id,
- lastname: employeeData.name
- }]]],
- valueSpan: ["employeeId"]
- }
- });
- } else {
- declareForm.updateFields({ [item]: result[item] || "" });
- }
- });
+ if (id) {
+ const filedKes = _.map(columns, it => it.dataIndex);
+ _.map(filedKes, item => {
+ if (item === "disability" || item === "lonelyOld" || item === "martyrDependents") {
+ declareForm.updateFields({ [item]: result[item] || "OFF" });
+ } else if (item === "deductExpenses") {
+ declareForm.updateFields({ [item]: result[item] || "ON" });
+ } else if (item === "gender") {
+ declareForm.updateFields({ [item]: result[item] || "MALE" });
+ } else if (item === "employmentStatus") {
+ declareForm.updateFields({ [item]: result[item] || _.take(props.employmentStatusList)[0].enum });
+ } else if (item === "employmentType") {
+ declareForm.updateFields({ [item]: result[item] || _.take(props.employmentTypeList)[0].enum });
+ } else if (item === "employee") {
+ const [employeeData] = result[item] || [];
+ !_.isEmpty(employeeData) && declareForm.updateFields({
+ employeeType: {
+ value: [employeeData._entityType, [employeeData.id, employeeData.name, [{
+ id: employeeData.id,
+ lastname: employeeData.name
+ }]]],
+ valueSpan: ["employeeId"]
+ }
+ });
+ } else {
+ declareForm.updateFields({ [item]: result[item] || "" });
+ }
+ });
+ }
});
}
});
@@ -146,7 +153,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
return {
...it,
items: _.map(it.items, child => {
- if (child.domkey[0] === "dismissDate") {
+ if (getKey(child) === "dismissDate") {
return {
...child,
viewAttr: value === "ABNORMAL" ? 3 : 2
@@ -176,7 +183,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
return {
...it,
items: _.map(it.items, child => {
- if (child.domkey[0] === "employmentDate") {
+ if (getKey(child) === "employmentDate") {
return {
...child,
viewAttr: value !== "OTHER" ? 3 : 2
@@ -200,6 +207,36 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
});
});
break;
+ case "cardType":
+ this.setState({
+ eConditions: _.map(eConditions, it => {
+ return {
+ ...it,
+ items: _.map(it.items, child => {
+ if (getKey(child) === "entryDate" || getKey(child) === "departureDate") {
+ return {
+ ...child,
+ viewAttr: value !== "RESIDENT_IDENTITY_CARDS" ? 3 : 2
+ };
+ }
+ return { ...child };
+ })
+ };
+ })
+ }, () => {
+ declareForm.initFormFields(this.state.eConditions);
+ const [employeeData] = this.state.employeeInfo["employee"] || this.employeeChangeInfo["employee"] || [];
+ !_.isEmpty(employeeData) && declareForm.updateFields({
+ employeeType: {
+ value: [employeeData._entityType, [employeeData.id, employeeData.name, [{
+ id: employeeData.id,
+ lastname: employeeData.name
+ }]]],
+ valueSpan: ["employeeId"]
+ }
+ });
+ });
+ break;
default:
break;
}
@@ -209,17 +246,28 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
const { employeeDeclareStore: { declareForm: form } } = this.props;
form.validateForm().then(f => {
if (f.isValid) {
- const { employmentType, employmentDate, employmentStatus, dismissDate, ...params } = form.getFormParams();
+ const {
+ employmentType, employmentDate, employmentStatus, dismissDate, cardType, entryDate, departureDate, ...params
+ } = form.getFormParams();
if ((employmentType !== "OTHER" && !employmentDate) || (employmentStatus === "ABNORMAL" && !dismissDate)) {
- Modal.warning({
- title: getLabel(131329, "信息确认"),
- content: getLabel(518702, "必要信息不完整,红色*为必填项!")
- });
+ form.showError("dismissDate", getLabel(111, "\"离职日期\"未填写"));
+ return;
+ }
+ if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !entryDate && !departureDate)) {
+ form.showError("entryDate", getLabel(111, "\"首次入境时间\"未填写"));
+ form.showError("departureDate", getLabel(111, "\"预计离境时间\"未填写"));
+ return;
+ }
+ if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !entryDate)) {
+ form.showError("entryDate", getLabel(111, "\"首次入境时间\"未填写"));
+ return;
+ }
+ if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !departureDate)) {
+ form.showError("departureDate", getLabel(111, "\"预计离境时间\"未填写"));
return;
}
const payload = {
...form.getFormParams(), id: this.props.id,
- cardType: "RESIDENT_IDENTITY_CARDS", //暂时写死身份证类型
taxAgentId: getQueryString("id"),
taxCycle: this.props.taxCycle
};
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
index e602f0e4..47d1df31 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
@@ -243,18 +243,21 @@ export const declareConditions = [
lanId: 111,
labelcol: 6,
value: "",
- viewAttr: 1
+ rules: "required|string",
+ viewAttr: 3
},
{
colSpan: 1,
- conditionType: "INPUT",
+ conditionType: "SELECT",
domkey: ["cardType"],
fieldcol: 12,
label: "证件类型",
lanId: 111,
labelcol: 6,
- value: "居民身份证",
- viewAttr: 1
+ value: "",
+ options:[],
+ rules: "required|string",
+ viewAttr: 3
},
{
colSpan: 1,
@@ -354,6 +357,28 @@ export const declareConditions = [
value: "",
viewAttr: 2
},
+ {
+ colSpan: 1,
+ conditionType: "DATEPICKER",
+ domkey: ["entryDate"],
+ fieldcol: 12,
+ label: "首次入境时间",
+ lanId: 111,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
+ },
+ {
+ colSpan: 1,
+ conditionType: "DATEPICKER",
+ domkey: ["departureDate"],
+ fieldcol: 12,
+ label: "预计离境时间",
+ lanId: 111,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
+ },
{
colSpan: 1,
conditionType: "SELECT",
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 02/93] =?UTF-8?q?feature/2.12.1.2403.02-=E7=A4=BE=E4=BF=9D?=
=?UTF-8?q?=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 &&
-
+
}
;
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 03/93] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC=E5=87=BA?=
=?UTF-8?q?=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, "导出")},
+ ,
+ ,
]}
bottomLeft={
Date: Thu, 28 Mar 2024 17:25:39 +0800
Subject: [PATCH 04/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../employeeDeclareDetailSchemaEditDialog.js | 25 ++++++++++---
.../pages/employeedeclareDetail/constants.js | 35 ++++++++++++++++++-
2 files changed, 54 insertions(+), 6 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
index 23550a82..e8ec44df 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
@@ -84,7 +84,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
]
};
}
- if (child.conditionType === "SELECT" && getKey(child) !== "gender" && getKey(child) !== "employmentStatus" && getKey(child) !== "employmentType") {
+ if (child.conditionType === "SELECT" && getKey(child) !== "gender" && getKey(child) !== "employmentStatus" && getKey(child) !== "employmentType" && getKey(child) !== "taxReasons") {
return {
...child,
options: [
@@ -213,7 +213,10 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
return {
...it,
items: _.map(it.items, child => {
- if (getKey(child) === "entryDate" || getKey(child) === "departureDate") {
+ if (
+ getKey(child) === "entryDate" || getKey(child) === "departureDate" ||
+ getKey(child) === "birthplace" || getKey(child) === "taxReasons"
+ ) {
return {
...child,
viewAttr: value !== "RESIDENT_IDENTITY_CARDS" ? 3 : 2
@@ -247,15 +250,18 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
form.validateForm().then(f => {
if (f.isValid) {
const {
- employmentType, employmentDate, employmentStatus, dismissDate, cardType, entryDate, departureDate, ...params
+ employmentType, employmentDate, employmentStatus, dismissDate, cardType, entryDate, departureDate,
+ birthplace, taxReasons, ...params
} = form.getFormParams();
if ((employmentType !== "OTHER" && !employmentDate) || (employmentStatus === "ABNORMAL" && !dismissDate)) {
form.showError("dismissDate", getLabel(111, "\"离职日期\"未填写"));
return;
}
- if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !entryDate && !departureDate)) {
+ if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !entryDate && !departureDate && !birthplace && !taxReasons)) {
form.showError("entryDate", getLabel(111, "\"首次入境时间\"未填写"));
form.showError("departureDate", getLabel(111, "\"预计离境时间\"未填写"));
+ form.showError("birthplace", getLabel(111, "\"出生地\"未填写"));
+ form.showError("taxReasons", getLabel(111, "\"涉税事由\"未填写"));
return;
}
if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !entryDate)) {
@@ -266,10 +272,19 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
form.showError("departureDate", getLabel(111, "\"预计离境时间\"未填写"));
return;
}
+ if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !birthplace)) {
+ form.showError("birthplace", getLabel(111, "\"出生地\"未填写"));
+ return;
+ }
+ if ((cardType !== "RESIDENT_IDENTITY_CARDS" && !taxReasons)) {
+ form.showError("taxReasons", getLabel(111, "\"涉税事由\"未填写"));
+ return;
+ }
const payload = {
...form.getFormParams(), id: this.props.id,
taxAgentId: getQueryString("id"),
- taxCycle: this.props.taxCycle
+ taxCycle: this.props.taxCycle,
+ taxReasons: taxReasons.split(",")
};
this.setState({ loading: true });
getEmployeeSave(payload).then(({ status, errormsg }) => {
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
index 47d1df31..00620b3d 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
@@ -1,3 +1,7 @@
+import React from "react";
+import { WeaLocaleProvider } from "ecCom";
+
+const { getLabel } = WeaLocaleProvider;
export const submitStatus = [
{
key: "ALL",
@@ -255,7 +259,7 @@ export const declareConditions = [
lanId: 111,
labelcol: 6,
value: "",
- options:[],
+ options: [],
rules: "required|string",
viewAttr: 3
},
@@ -284,6 +288,17 @@ export const declareConditions = [
rules: "required",
options: []
},
+ {
+ colSpan: 1,
+ conditionType: "INPUT",
+ domkey: ["birthplace"],
+ fieldcol: 12,
+ label: "出生地",
+ lanId: 111,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
+ },
{
colSpan: 1,
conditionType: "DATEPICKER",
@@ -379,6 +394,24 @@ export const declareConditions = [
value: "",
viewAttr: 2
},
+ {
+ colSpan: 1,
+ conditionType: "SELECT",
+ domkey: ["taxReasons"],
+ fieldcol: 12,
+ label: "涉税事由",
+ lanId: 111,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2,
+ options: [
+ { key: getLabel(111, "任职受雇"), showname: getLabel(111, "任职受雇") },
+ { key: getLabel(111, "提供临时劳务"), showname: getLabel(111, "提供临时劳务") },
+ { key: getLabel(111, "转让财产"), showname: getLabel(111, "转让财产") },
+ { key: getLabel(111, "从事投资和经营活动"), showname: getLabel(111, "从事投资和经营活动") },
+ { key: getLabel(111, "其他"), showname: getLabel(111, "其他") }
+ ]
+ },
{
colSpan: 1,
conditionType: "SELECT",
From a768470afb4135d8792a2ad7bb0e4bdefa522373 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:19:33 +0800
Subject: [PATCH 05/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=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={[
,
- ,
- ,
+ ,
+ ,
]}
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 8a7f3fcb7a77614cd982da57ba6545452607392c 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 14:37:49 +0800
Subject: [PATCH 06/93] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC=E5=87=BA?=
=?UTF-8?q?=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, "导出")},
,
);
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 07/93] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC=E5=87=BA?=
=?UTF-8?q?=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 08/93] =?UTF-8?q?feature/2.12.1.2403.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC=E5=87=BA?=
=?UTF-8?q?=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 ab6ae51b3dde863ace44e34b8d6ddf4506eb11d5 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:53:52 +0800
Subject: [PATCH 09/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81=20=E6=B6=89=E7=A8=8E=E4=BA=8B=E7=94=B1?=
=?UTF-8?q?=E6=94=B9=E6=88=90=E5=A4=9A=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
index 00620b3d..a9e370ab 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
@@ -403,6 +403,7 @@ export const declareConditions = [
lanId: 111,
labelcol: 6,
value: "",
+ multiple: true,
viewAttr: 2,
options: [
{ key: getLabel(111, "任职受雇"), showname: getLabel(111, "任职受雇") },
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 10/93] =?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: Mon, 1 Apr 2024 17:47:08 +0800
Subject: [PATCH 11/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?=E7=94=B3=E6=8A=A5=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=88=86=E7=B1=BB?=
=?UTF-8?q?=E6=94=B9=E9=80=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/declare.js | 8 +-
.../pages/declareDetail/components/leftTab.js | 64 ++++++++++++++
.../hrmSalary/pages/declareDetail/index.js | 87 +++++++++++--------
3 files changed, 119 insertions(+), 40 deletions(-)
create mode 100644 pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
diff --git a/pc4mobx/hrmSalary/apis/declare.js b/pc4mobx/hrmSalary/apis/declare.js
index 8c9a2a11..a780105b 100644
--- a/pc4mobx/hrmSalary/apis/declare.js
+++ b/pc4mobx/hrmSalary/apis/declare.js
@@ -16,9 +16,13 @@ export const saveDeclare = params => {
return postFetch("/api/bs/hrmsalary/taxdeclaration/save", params);
};
+//个税申报表-获取分类
+export const getTaxReports = params => {
+ return WeaTools.callApi("/api/bs/hrmsalary/taxdeclaration/getTaxReports", "get", params);
+};
//个税申报表-个税申报表相关信息
export const getDeclareInfo = params => {
- return WeaTools.callApi("/api/bs/hrmsalary/taxdeclaration/getTaxDeclarationInfo", "get", params);
+ return postFetch("/api/bs/hrmsalary/taxdeclaration/getTaxDeclarationInfo", params);
};
// 个税申报表详情列表
@@ -106,7 +110,7 @@ export const employeedeclareDeclare = (params) => {
//个税在线对接-获取个税申报记录下的个税申报表TAB
export const getTaxDeclarationTab = params => {
- return WeaTools.callApi("/api/bs/hrmsalary/taxdeclaration/getTaxDeclarationTab", "GET", params);
+ return postFetch("/api/bs/hrmsalary/taxdeclaration/getTaxDeclarationTab", params);
};
//个税在线对接-个税申报表是否已经生成
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js b/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
new file mode 100644
index 00000000..1370d4e1
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
@@ -0,0 +1,64 @@
+/*
+ * Author: 黎永顺
+ * name: 报表查看-左侧tab标题
+ * Description:
+ * Date: 2023/4/20
+ */
+import React, { Component } from "react";
+import { WeaLocaleProvider } from "ecCom";
+import { Menu } from "antd";
+import * as API from "../../../apis/declare";
+import { getQueryString } from "../../../util/url";
+
+const { getLabel } = WeaLocaleProvider;
+
+class LeftTab extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ reportName: "",
+ selectedKeys: "",
+ dataSource: []
+ };
+ }
+
+ componentDidMount() {
+ this.getTaxReports();
+ }
+
+ getTaxReports = () => {
+ const { onChangeTab } = this.props;
+ API.getTaxReports({ id: getQueryString("id") }).then(({ status, data: dataSource }) => {
+ if (status) this.setState({
+ dataSource, selectedKeys: !_.isEmpty(dataSource) ? _.head(dataSource).id + "" : ""
+ }, () => {
+ !_.isEmpty(this.state.dataSource) && onChangeTab(_.head(this.state.dataSource).reportType);
+ });
+ });
+ };
+
+ render() {
+ const { selectedKeys, dataSource } = this.state;
+ const { onChangeTab } = this.props;
+ return (
+
+
+
+ );
+ }
+}
+
+export default LeftTab;
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index 280bfc5b..505a2c16 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -5,7 +5,7 @@
* Date: 2023/8/18
*/
import React, { Component } from "react";
-import { WeaLocaleProvider, WeaTab } from "ecCom";
+import { WeaLeftRightLayout, WeaLocaleProvider, WeaTab } from "ecCom";
import { Button, message, Modal, Spin } from "antd";
import TaxDeclarationInfo from "./components/taxDeclarationInfo";
import { apiflowBillingConfigStatus } from "../../apis/intelligentCalculateSalarySettings";
@@ -32,6 +32,7 @@ import { convertToUrlString, getQueryString } from "../../util/url";
import IncomeTaxDeclarationPersonnelSlide from "./components/incomeTaxDeclarationPersonnelSlide";
import TaxDeclareDetailImportDialog from "./components/taxDeclareDetailImportDialog";
import TabEditDialog from "./components/tabEditDialog";
+import LeftTab from "./components/leftTab";
import { confirmDialog } from "./confirm";
import "./index.less";
@@ -60,7 +61,8 @@ class Index extends Component {
visible: false, title: getLabel(1421, "新增"), taxDeclarationId: "", id: ""
},
intelCalcSalaryStatus: false, //智能算薪 总开关是否开启
- declareInfo: {}, pageInfo: { current: 0, pageSize: 10, total: 0 }
+ declareInfo: {}, pageInfo: { current: 0, pageSize: 10, total: 0 },
+ reportType: ""
};
this.timer = null;
this.taxDeclareRef = null;
@@ -75,7 +77,8 @@ class Index extends Component {
}
init = async (isInit = true) => {
- const [tabsResult, infoResult, calcResult] = await Promise.all([this.getTaxDeclarationTab(), this.getDeclareInfo(), this.apiflowBillingConfigStatus()]);
+ const [tabsResult, infoResult, calcResult] = await Promise.all([
+ this.getTaxDeclarationTab(), this.getDeclareInfo(), this.apiflowBillingConfigStatus()]);
const { data: tabDataSource, status: tabStatus } = tabsResult;
const { data: infoDataSource, status: infoStatus } = infoResult;
const { data: calcSalaryStatus, status: calcStatus } = calcResult;
@@ -101,10 +104,12 @@ class Index extends Component {
this.getDetailList();
};
getTaxDeclarationTab = () => {
- return getTaxDeclarationTab({ id: getQueryString("id") });
+ const { reportType } = this.state;
+ return getTaxDeclarationTab({ id: getQueryString("id"), reportType });
};
getDeclareInfo = () => {
- return getDeclareInfo({ id: getQueryString("id") });
+ const { reportType } = this.state;
+ return getDeclareInfo({ id: getQueryString("id"), reportType });
};
apiflowBillingConfigStatus = () => {
return apiflowBillingConfigStatus();
@@ -413,41 +418,47 @@ class Index extends Component {
onClick={this.getEnterprisePayCertificate}>{getLabel(111, "开具企业完税证明")});
}
return (
-
-
this[fun]()}/>
-
- this.setState({ selectedKey: v }, () => this.getDetailList())}
- searchType={["base"]} searchsBasePlaceHolder={getLabel(26919, "请输入姓名")}
- onSearchChange={keyword => this.setState({ keyword })}
- onSearch={this.getDetailList}
- />
- {/*个税申报表-新增编辑框*/}
- this.handleTaxDescPerSlide({ visible: false, id: "", callback })}
- />
- {/*个税申报表导入*/}
- this.taxDeclareRef = dom}
- onSuccess={this.declare}
- />
- {/*个税申报表-新增tab弹框*/}
- this.setState({ editTabVisible: false }, () => isRefresh && this.init(false))}/>
-
-
+
);
}
}
From 9480bc7adf3636a43faf578c016985f31b7bde3f 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 Apr 2024 10:21:26 +0800
Subject: [PATCH 12/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?=E7=94=B3=E6=8A=A5=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=88=86=E7=B1=BB?=
=?UTF-8?q?=E6=94=B9=E9=80=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/declareDetail/components/leftTab.js | 8 +++++-
.../hrmSalary/pages/declareDetail/index.js | 25 ++++++++++---------
2 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js b/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
index 1370d4e1..55c936cf 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
@@ -40,6 +40,12 @@ class LeftTab extends Component {
render() {
const { selectedKeys, dataSource } = this.state;
const { onChangeTab } = this.props;
+ const reportTypeNameMap = {
+ 1: getLabel(111, "综合所得"),
+ 2: getLabel(111, "分类所得"),
+ 3: getLabel(111, "非居民所得"),
+ 4: getLabel(111, "限售股所得")
+ };
return (
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index 505a2c16..0ef69be9 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -105,11 +105,11 @@ class Index extends Component {
};
getTaxDeclarationTab = () => {
const { reportType } = this.state;
- return getTaxDeclarationTab({ id: getQueryString("id"), reportType });
+ return getTaxDeclarationTab({ taxDeclareRecordId: getQueryString("id"), reportType });
};
getDeclareInfo = () => {
const { reportType } = this.state;
- return getDeclareInfo({ id: getQueryString("id"), reportType });
+ return getDeclareInfo({ taxDeclareRecordId: getQueryString("id"), reportType });
};
apiflowBillingConfigStatus = () => {
return apiflowBillingConfigStatus();
@@ -188,7 +188,7 @@ class Index extends Component {
}
}).catch(() => this.setState({ loading: { ...loading, query: false } }));
};
- handleOperateDeclare = (type) => {
+ handleOperateDeclare = (type, params = {}) => {
const loadingTxt = {
refresh: getLabel(111, "刷新中..."), //刷新数据
declare: getLabel(111, "申报中..."), //在线申报
@@ -212,7 +212,7 @@ class Index extends Component {
cancelFeedback: getLabel(111, "作废反馈失败!")//作废反馈
};
this.setState({ loading: { ...this.state.loading, [type]: true } });
- APIFox[type]({ taxDeclareRecordId: getQueryString("id") })
+ APIFox[type]({ taxDeclareRecordId: getQueryString("id"), ...params })
.then(async ({ status, data, errormsg }) => {
if (status) {
message.destroy();
@@ -343,12 +343,13 @@ class Index extends Component {
render() {
const {
tabs, selectedKey, loading, declareInfo, intelCalcSalaryStatus, taxDecPersonSlide,
- editTabVisible
+ editTabVisible, reportType
} = this.state;
const [__, taxDeclarationId] = selectedKey.split("%%");
let btns = [
{getLabel(17416, "导出")},
-
confirmDialog("declare", () => this.handleOperateDeclare("declare"))}
+ confirmDialog("declare", () => this.handleOperateDeclare("declare", { reportType }))}
loading={loading.declare}>{getLabel(111, "在线申报")},
confirmDialog("refresh", () => this.handleOperateDeclare("refresh"))}
loading={loading.refresh}>{getLabel(111, "刷新数据")}
@@ -360,30 +361,30 @@ class Index extends Component {
//申报状态:申报中
declareInfo.declareStatus === "DECLARING" && (btns.splice(1, 2, this.handleOperateDeclare("feedback")}>{getLabel(111, "申报反馈")}));
+ onClick={() => this.handleOperateDeclare("feedback", { reportType })}>{getLabel(111, "申报反馈")}));
//申报状态:缴款中
declareInfo.declareStatus === "DECLARE_SUCCESS_PAYING" && (btns.splice(1, 2));
//申报状态:已缴款
declareInfo.declareStatus === "DECLARE_SUCCESS_PAID" && (btns.splice(1, 2,
confirmDialog("correct", () => this.handleOperateDeclare("correct"))}>{getLabel(111, "更正申报")}));
+ onClick={() => confirmDialog("correct", () => this.handleOperateDeclare("correct", { reportType }))}>{getLabel(111, "更正申报")}));
//申报状态:申报成功,无需缴款
declareInfo.declareStatus === "DECLARE_SUCCESS_NO_PAY" &&
(btns.splice(1, 2,
confirmDialog("correct", () => this.handleOperateDeclare("correct"))}>{getLabel(111, "更正申报")},
+ onClick={() => confirmDialog("correct", () => this.handleOperateDeclare("correct", { reportType }))}>{getLabel(111, "更正申报")},
confirmDialog("cancel", () => this.handleOperateDeclare("cancel"))}>{getLabel(111, "作废申报")}
+ onClick={() => confirmDialog("cancel", () => this.handleOperateDeclare("cancel", { reportType }))}>{getLabel(111, "作废申报")}
));
//申报状态:申报成功,未缴款
declareInfo.declareStatus === "DECLARE_SUCCESS_UNPAID" &&
(btns.splice(1, 2,
confirmDialog("correct", () => this.handleOperateDeclare("correct"))}>{getLabel(111, "更正申报")},
+ onClick={() => confirmDialog("correct", () => this.handleOperateDeclare("correct", { reportType }))}>{getLabel(111, "更正申报")},
confirmDialog("cancel", () => this.handleOperateDeclare("cancel"))}>{getLabel(111, "作废申报")},
+ onClick={() => confirmDialog("cancel", () => this.handleOperateDeclare("cancel", { reportType }))}>{getLabel(111, "作废申报")},
{getLabel(111, "刷新缴款状态")}
From 342aeed9537097959ec34320459fac01b5b0023c 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 Apr 2024 17:45:59 +0800
Subject: [PATCH 13/93] =?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 e0d41371515a88b16c65f49dbf986bf596ee9569 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, 3 Apr 2024 14:18:15 +0800
Subject: [PATCH 14/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?=E7=94=B3=E6=8A=A5=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=88=86=E7=B1=BB?=
=?UTF-8?q?=E6=94=B9=E9=80=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/declareDetail/index.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index 0ef69be9..7f08d997 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -269,7 +269,8 @@ class Index extends Component {
const { taxAgentId, taxCycle: taxYearMonth } = this.state.declareInfo;
const payload = {
taxDeclareRecordId: getQueryString("id"),
- taxAgentId, taxYearMonth: taxYearMonth + "-01"
+ taxAgentId, taxYearMonth: taxYearMonth + "-01",
+ reportType: this.state.reportType
};
this.setState({ loading: { ...this.state.loading, issuance: true } });
taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
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 15/93] 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 9befc1d863d5a813540a11caafe9446e2d793ebb 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 14:10:20 +0800
Subject: [PATCH 16/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/declareDetail/components/taxDeclarationInfo.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/components/taxDeclarationInfo.js b/pc4mobx/hrmSalary/pages/declareDetail/components/taxDeclarationInfo.js
index bfc15a46..ec5edc9c 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/components/taxDeclarationInfo.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/components/taxDeclarationInfo.js
@@ -46,11 +46,11 @@ class TaxDeclarationInfo extends Component {
const { declareInfo, onOperate } = this.props;
const { abnormalSize, declareFailSize } = declareInfo;
const infoItem = [
+ { key: "taxCycle", label: getLabel(542240, "税款所属期") },
{ key: "salaryMonth", label: getLabel(542604, "薪资所属月") },
{ key: "taxAgentName", label: getLabel(537996, "个税扣缴义务人") },
{ key: "declareTypeDesc", label: getLabel(111, "申报类型") },
{ key: "declareStatusDesc", label: getLabel(111, "申报状态") },
- { key: "taxCycle", label: getLabel(542240, "税款所属期") },
{ key: "taxPaidAmount", label: getLabel(111, "已缴金额") }
];
let dropMenuDatas = [];
From 4e5443005b1a17dd0b490d56cbb3977b8f45de08 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, 8 Apr 2024 14:38:39 +0800
Subject: [PATCH 17/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/declareDetail/index.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index 7f08d997..56e3bff9 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -300,9 +300,10 @@ class Index extends Component {
}, () => callback && this.getDetailList());
};
exportGetDeclareTaxResultFeedback = () => {
+ const { reportType } = this.state;
message.destroy();
message.loading(getLabel(111, "下载中..."), 0);
- exportGetDeclareTaxResultFeedback({ id: getQueryString("id") })
+ exportGetDeclareTaxResultFeedback({ id: getQueryString("id"), reportType })
.then(async () => {
message.destroy();
message.success(getLabel(111, "下载成功!"));
From 1a06b46faf024a1636204b579f29b380f0271242 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, 8 Apr 2024 18:17:03 +0800
Subject: [PATCH 18/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/pages/enterprisePayCertificationDetail/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js b/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js
index c6d0bd55..026f4cde 100644
--- a/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js
@@ -31,7 +31,7 @@ class Index extends Component {
const payload = {
taxDeclareRecordId: getQueryString("taxDeclareRecordId"),
taxAgentId: getQueryString("taxAgentId"),
- taxYearMonth: getQueryString("taxYearMonth") + "-01"
+ taxYearMonth: getQueryString("taxYearMonth")
};
this.setState({ loading: true });
taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
From ba0c516263f90f4f1c12b2841c00e58c34eaf071 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, 9 Apr 2024 10:00:27 +0800
Subject: [PATCH 19/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/pages/declareDetail/index.js | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index 56e3bff9..366ba404 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -272,15 +272,16 @@ class Index extends Component {
taxAgentId, taxYearMonth: taxYearMonth + "-01",
reportType: this.state.reportType
};
- this.setState({ loading: { ...this.state.loading, issuance: true } });
- taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
- this.setState({ loading: { ...this.state.loading, issuance: false } });
- if (status && !_.isEmpty(data.vouchers)) {
- window.open(`${window.ecologyContentPath || ""}/spa/hrmSalary/static/index.html#/main/hrmSalary/enterprisePayCertificationDetail?${convertToUrlString(payload)}`);
- } else {
- message.error(errormsg || "");
- }
- }).catch(() => this.setState({ loading: { ...this.state.loading, issuance: false } }));
+ window.open(`${window.ecologyContentPath || ""}/spa/hrmSalary/static/index.html#/main/hrmSalary/enterprisePayCertificationDetail?${convertToUrlString(payload)}`);
+ // this.setState({ loading: { ...this.state.loading, issuance: true } });
+ // taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
+ // this.setState({ loading: { ...this.state.loading, issuance: false } });
+ // if (status && !_.isEmpty(data.vouchers)) {
+ // window.open(`${window.ecologyContentPath || ""}/spa/hrmSalary/static/index.html#/main/hrmSalary/enterprisePayCertificationDetail?${convertToUrlString(payload)}`);
+ // } else {
+ // message.error(errormsg || "");
+ // }
+ // }).catch(() => this.setState({ loading: { ...this.state.loading, issuance: false } }));
};
export = () => {
const [incomeCategory, taxDeclarationId] = this.state.selectedKey.split("%%");
From e30032abb1f5388a6920984f23755d4e5507bb9e 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, 9 Apr 2024 10:59:29 +0800
Subject: [PATCH 20/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../hrmSalary/pages/enterprisePayCertificationDetail/index.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js b/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js
index 026f4cde..456497f2 100644
--- a/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/enterprisePayCertificationDetail/index.js
@@ -31,7 +31,8 @@ class Index extends Component {
const payload = {
taxDeclareRecordId: getQueryString("taxDeclareRecordId"),
taxAgentId: getQueryString("taxAgentId"),
- taxYearMonth: getQueryString("taxYearMonth")
+ taxYearMonth: getQueryString("taxYearMonth"),
+ reportType: getQueryString("reportType")
};
this.setState({ loading: true });
taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
From 803f3305eb4255f66d6692dfcc282a645de5aa0f 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, 10 Apr 2024 14:30:30 +0800
Subject: [PATCH 21/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/declareDetail/index.js | 3 ++-
.../components/employeeDeclareDetailSchemaEditDialog.js | 3 +--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index 366ba404..9eaa17fe 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -252,7 +252,8 @@ class Index extends Component {
const { taxAgentId, taxCycle: taxYearMonth } = this.state.declareInfo;
const payload = {
taxDeclareRecordId: getQueryString("id"),
- taxAgentId, taxYearMonth: taxYearMonth + "-01"
+ taxAgentId, taxYearMonth: taxYearMonth + "-01",
+ reportType: this.state.reportType
};
this.setState({ loading: { ...this.state.loading, refreshingPay: true } });
taxPaymentVoucherStatusSync(payload).then(({ status, errormsg }) => {
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
index e8ec44df..bb6f4b44 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
@@ -283,8 +283,7 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
const payload = {
...form.getFormParams(), id: this.props.id,
taxAgentId: getQueryString("id"),
- taxCycle: this.props.taxCycle,
- taxReasons: taxReasons.split(",")
+ taxCycle: this.props.taxCycle
};
this.setState({ loading: true });
getEmployeeSave(payload).then(({ status, errormsg }) => {
From 10af6ff5aea9b9d7359d88bd8896c955f83f4ac2 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, 10 Apr 2024 16:06:45 +0800
Subject: [PATCH 22/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/declareDetail/confirm.js | 4 ++--
pc4mobx/hrmSalary/pages/declareDetail/index.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/confirm.js b/pc4mobx/hrmSalary/pages/declareDetail/confirm.js
index a64db297..39c6c2d5 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/confirm.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/confirm.js
@@ -2,7 +2,7 @@ import { WeaLocaleProvider } from "ecCom";
import { Modal } from "antd";
const { getLabel } = WeaLocaleProvider;
-export const confirmDialog = (type, callback) => {
+export const confirmDialog = (type, callback, reportType) => {
let content = "";
switch (type) {
case "refresh":
@@ -15,7 +15,7 @@ export const confirmDialog = (type, callback) => {
content = getLabel(111, "申报作废,只有申报成功,无需缴款/申报成功,未缴款的状态才能作废,当作废成功时,企业状态会变成未申报;当作废失败时,企业状态还是原来的未缴款或无需缴款的状态。");
break;
case "declare":
- content = getLabel(111, "解除劳动合同一次性补偿金、全年一次性奖金所得,不能单独申报,需要同正常工资薪金一起申报;解除劳动合同一次性补偿金、稿酬所得,由于税务规则需要,解除劳动合同一次性补偿金、稿酬所得必须填写免税附表。是否确认申报?");
+ content = reportType === 1 ? getLabel(111, "解除劳动合同一次性补偿金、全年一次性奖金所得,不能单独申报,需要同正常工资薪金一起申报;解除劳动合同一次性补偿金、稿酬所得,由于税务规则需要,解除劳动合同一次性补偿金、稿酬所得必须填写免税附表。是否确认申报?") : getLabel(111, "确认申报?");
break;
default:
break;
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index 9eaa17fe..cc3d071d 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -353,7 +353,7 @@ class Index extends Component {
let btns = [
{getLabel(17416, "导出")},
confirmDialog("declare", () => this.handleOperateDeclare("declare", { reportType }))}
+ onClick={() => confirmDialog("declare", () => this.handleOperateDeclare("declare", { reportType }), reportType)}
loading={loading.declare}>{getLabel(111, "在线申报")},
confirmDialog("refresh", () => this.handleOperateDeclare("refresh"))}
loading={loading.refresh}>{getLabel(111, "刷新数据")}
From 4984d04d4346a81b37965a20b545bc2e2bfd8852 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 09:48:37 +0800
Subject: [PATCH 23/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/declareDetail/components/leftTab.js | 3 ++-
pc4mobx/hrmSalary/pages/declareDetail/index.js | 13 +++++++------
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js b/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
index 55c936cf..0703aa07 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/components/leftTab.js
@@ -27,12 +27,13 @@ class LeftTab extends Component {
}
getTaxReports = () => {
- const { onChangeTab } = this.props;
+ const { onChangeTab, onCollapse } = this.props;
API.getTaxReports({ id: getQueryString("id") }).then(({ status, data: dataSource }) => {
if (status) this.setState({
dataSource, selectedKeys: !_.isEmpty(dataSource) ? _.head(dataSource).id + "" : ""
}, () => {
!_.isEmpty(this.state.dataSource) && onChangeTab(_.head(this.state.dataSource).reportType);
+ onCollapse(!_.isEmpty(this.state.dataSource) && this.state.dataSource.length > 1);
});
});
};
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index cc3d071d..bb9e83bb 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -25,8 +25,7 @@ import {
taxdeclarationRefreshData,
taxdeclaratioUpdateCancel,
taxdeclaratioUpdateDeclare,
- taxPaymentVoucherStatusSync,
- taxPaymentWithheldVoucherGet
+ taxPaymentVoucherStatusSync
} from "../../apis/declare";
import { convertToUrlString, getQueryString } from "../../util/url";
import IncomeTaxDeclarationPersonnelSlide from "./components/incomeTaxDeclarationPersonnelSlide";
@@ -62,7 +61,7 @@ class Index extends Component {
},
intelCalcSalaryStatus: false, //智能算薪 总开关是否开启
declareInfo: {}, pageInfo: { current: 0, pageSize: 10, total: 0 },
- reportType: ""
+ reportType: "", showLeft: false
};
this.timer = null;
this.taxDeclareRef = null;
@@ -347,7 +346,7 @@ class Index extends Component {
render() {
const {
tabs, selectedKey, loading, declareInfo, intelCalcSalaryStatus, taxDecPersonSlide,
- editTabVisible, reportType
+ editTabVisible, reportType, showLeft
} = this.state;
const [__, taxDeclarationId] = selectedKey.split("%%");
let btns = [
@@ -424,10 +423,12 @@ class Index extends Component {
}
return (
this.setState({ reportType }, () => isInit && this.init())}/>}
- >
+ onChangeTab={(reportType, isInit = false) => this.setState({ reportType }, () => isInit && this.init())}
+ onCollapse={showLeft => this.setState({ showLeft })}/>}
+ onCollapse={showLeft => this.setState({ showLeft })}>
this[fun]()}/>
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 24/93] =?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 eb4517af0fdd7ba0e50252312cd63ad17aff1a78 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 17:43:06 +0800
Subject: [PATCH 25/93] =?UTF-8?q?feature/2.12.1.2403.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E5=A4=96=E7=B1=8D=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=8A=A5=E9=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/declareDetail/components/paymentBtn.js | 3 ++-
pc4mobx/hrmSalary/pages/declareDetail/index.js | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/components/paymentBtn.js b/pc4mobx/hrmSalary/pages/declareDetail/components/paymentBtn.js
index 986a05ae..4f6ad59f 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/components/paymentBtn.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/components/paymentBtn.js
@@ -262,7 +262,8 @@ class PaymentBtn extends Component {
const { taxAgentId, taxCycle: taxYearMonth } = this.props.declareInfo;
const payload = {
taxDeclareRecordId: getQueryString("id"),
- taxAgentId, taxYearMonth: taxYearMonth + "-01"
+ taxAgentId, taxYearMonth: taxYearMonth + "-01",
+ reportType: this.props.reportType
};
taxPaymentVoucherCancel(payload).then(({ status, errormsg }) => {
if (status) {
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.js b/pc4mobx/hrmSalary/pages/declareDetail/index.js
index bb9e83bb..cf369c11 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.js
@@ -413,7 +413,7 @@ class Index extends Component {
}
if (intelCalcSalaryStatus && (declareInfo.declareStatus === "DECLARE_SUCCESS_UNPAID")) {
btns.push(
-
,
+ ,
);
}
From b4fe6f52428fa62934b1e7b1a302ea9b8f98610c 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, 12 Apr 2024 17:23:42 +0800
Subject: [PATCH 26/93] =?UTF-8?q?custom/=E8=A5=BF=E5=AE=89=E7=A7=A6?=
=?UTF-8?q?=E5=8D=8E=E5=A4=A9=E7=87=83=E6=B0=94-=E7=A4=BE=E4=BF=9D-?=
=?UTF-8?q?=E6=A1=A3=E6=A1=88-=E6=A0=B8=E7=AE=97-=E8=B4=A6=E5=A5=97?=
=?UTF-8?q?=E6=9D=83=E9=99=90=E7=9A=84=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/bankVoucherDetail/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/bankVoucherDetail/index.js b/pc4mobx/hrmSalary/pages/bankVoucherDetail/index.js
index ff40a205..43916c7f 100644
--- a/pc4mobx/hrmSalary/pages/bankVoucherDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/bankVoucherDetail/index.js
@@ -31,7 +31,7 @@ class Index extends Component {
const payload = {
taxDeclareRecordId: getQueryString("taxDeclareRecordId"),
taxAgentId: getQueryString("taxAgentId"),
- taxYearMonth: getQueryString("taxYearMonth") + "-01",
+ taxYearMonth: getQueryString("taxYearMonth"),
checkFeedback: 0
};
this.setState({ loading: true });
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 27/93] =?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 28/93] 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 91c22f4df94532bd224b39d5d37792e4925677ea 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 19:10:56 +0800
Subject: [PATCH 29/93] =?UTF-8?q?feature/2.12.1.2404.02-=E4=B8=AA=E7=A8=8E?=
=?UTF-8?q?-=E6=B5=8B=E8=AF=95=E4=BA=BA=E5=91=98=E6=8A=A5=E9=80=81?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=88=97=E8=A1=A8=E4=BD=9C?=
=?UTF-8?q?=E5=BA=9F=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/apis/declare.js | 4 +++
.../pages/employeedeclareDetail/index.js | 29 +++++++++++++++++--
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/pc4mobx/hrmSalary/apis/declare.js b/pc4mobx/hrmSalary/apis/declare.js
index 8c9a2a11..da1099df 100644
--- a/pc4mobx/hrmSalary/apis/declare.js
+++ b/pc4mobx/hrmSalary/apis/declare.js
@@ -98,6 +98,10 @@ export const getEmployeeSave = (params) => {
export const employeeDelete = (params) => {
return postFetch("/api/bs/hrmsalary/employeedeclare/delete", params);
};
+//人员报送-作废
+export const employeeInvalid = (params) => {
+ return postFetch("/api/bs/hrmsalary/employeedeclare/invalid", params);
+};
//人员报送-全部报送
export const employeedeclareDeclare = (params) => {
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/index.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/index.js
index dc55b42f..ed7805cf 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/index.js
@@ -21,7 +21,7 @@ import {
employeedeclareList4Add,
employeedeclareList4Update,
employeedeclareRefresh,
- employeeDelete,
+ employeeDelete, employeeInvalid,
getDeclareFeedback
} from "../../apis/declare";
import { advanceConditions, submitStatus } from "./constants";
@@ -133,6 +133,8 @@ class Index extends Component {
});
} else if (id === "DELETE") {
this.handleDeleteDeclare([params.id]);
+ } else if (id === "VOID") {
+ this.handleVoidDeclare(params.id);
} else if (id === "ROWSELECT") {
const { selectedRowKeys } = params;
this.setState({ selectedRowKeys });
@@ -144,7 +146,7 @@ class Index extends Component {
"总计": getLabel(523, "总计"), "编辑": getLabel(501169, "编辑"),
"操作": getLabel(30585, "操作"), "删除": getLabel(535052, "删除"),
"共": getLabel(83698, "共"), "条": getLabel(18256, "条"),
- "加载中": getLabel(83698, "加载中")
+ "加载中": getLabel(83698, "加载中"), "作废": getLabel(111, "作废")
};
const childFrameObj = document.getElementById("atdTable");
childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
@@ -293,6 +295,29 @@ class Index extends Component {
this.setState({ loading: { ...this.state.loading, feedback: false } });
});
};
+ /*
+ * Author: 黎永顺
+ * Description:作废个税申报人员信息
+ * Params:
+ * Date: 2024/4/16
+ */
+ handleVoidDeclare = (id) => {
+ const { selectedRowKeys } = this.state;
+ Modal.confirm({
+ title: getLabel(131329, "信息确认"),
+ content: getLabel(111, "确认作废吗?"),
+ onOk: () => {
+ employeeInvalid({ id }).then(({ status, errormsg }) => {
+ if (status) {
+ message.success(getLabel(111, "作废成功!"));
+ this.queryEmployeeList();
+ } else {
+ message.error(errormsg || getLabel(111, "作废失败!"));
+ }
+ });
+ }
+ });
+ };
/*
* Author: 黎永顺
* Description: 删除个税申报人员信息
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 30/93] 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 31/93] =?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 32/93] 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 33/93] 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 34/93] 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 35/93] =?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 36/93] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97=E6=98=AF?=
=?UTF-8?q?=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 37/93] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97=E6=98=AF?=
=?UTF-8?q?=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 38/93] =?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 39/93] =?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 40/93] 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 41/93] 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 42/93] 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 43/93] 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 44/93] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97=E6=98=AF?=
=?UTF-8?q?=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 45/93] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97=E6=98=AF?=
=?UTF-8?q?=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 46/93] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97=E6=98=AF?=
=?UTF-8?q?=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 47/93] =?UTF-8?q?feature/2.12.1.2404.02-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E5=88=A4=E6=96=AD=E8=B4=A6=E5=A5=97=E6=98=AF?=
=?UTF-8?q?=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 48/93] =?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 49/93] 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 50/93] 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 51/93] 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 52/93] 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 53/93] 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 54/93] 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 55/93] =?UTF-8?q?feature/2.12.1.2403.02-=E7=A4=BE=E4=BF=9D?=
=?UTF-8?q?=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 56/93] 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 57/93] 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 58/93] 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 59/93] 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 60/93] 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 61/93] 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 62/93] =?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 63/93] =?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 64/93] 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 65/93] =?UTF-8?q?feature/2.14.3.2406.01-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E6=B7=BB=E5=8A=A0=E9=94=81=E5=AE=9A=E4=BA=BA?=
=?UTF-8?q?=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 66/93] =?UTF-8?q?feature/2.14.3.2406.01-=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=A0=B8=E7=AE=97=E6=B7=BB=E5=8A=A0=E9=94=81=E5=AE=9A=E4=BA=BA?=
=?UTF-8?q?=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: Wed, 29 May 2024 11:07:05 +0800
Subject: [PATCH 67/93] =?UTF-8?q?release/2.14.3.2406.01-=E4=B8=AA=E7=A8=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/employeeDeclareDetailSchemaEditDialog.js | 5 ++++-
.../hrmSalary/pages/employeedeclareDetail/constants.js | 8 ++++----
pc4mobx/hrmSalary/stores/employeeDeclare.js | 1 +
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
index bb6f4b44..df581337 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/components/employeeDeclareDetailSchemaEditDialog.js
@@ -32,7 +32,10 @@ class EmployeeDeclareDetailSchemaEditDialog extends Component {
componentWillReceiveProps(nextProps, nextContext) {
if (nextProps.visible !== this.props.visible && nextProps.visible) this.employeedeclareGetForm(nextProps);
- if (nextProps.visible !== this.props.visible && !nextProps.visible) this.employeeChangeInfo = {};
+ if (nextProps.visible !== this.props.visible && !nextProps.visible) {
+ this.props.employeeDeclareStore.initDeclareForm()
+ this.employeeChangeInfo = {};
+ }
}
employeedeclareGetForm = async (props) => {
diff --git a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
index a9e370ab..b9f64232 100644
--- a/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
+++ b/pc4mobx/hrmSalary/pages/employeedeclareDetail/constants.js
@@ -421,7 +421,7 @@ export const declareConditions = [
label: "是否残疾",
lanId: 111,
labelcol: 6,
- value: "",
+ value: "OFF",
viewAttr: 2,
detailtype: 3,
options: []
@@ -445,7 +445,7 @@ export const declareConditions = [
label: "是否孤老",
lanId: 111,
labelcol: 6,
- value: "",
+ value: "OFF",
viewAttr: 2,
detailtype: 3,
options: []
@@ -458,7 +458,7 @@ export const declareConditions = [
label: "是否是烈属",
lanId: 111,
labelcol: 6,
- value: "",
+ value: "OFF",
viewAttr: 2,
detailtype: 3,
options: []
@@ -482,7 +482,7 @@ export const declareConditions = [
label: "是否扣除减除费用",
lanId: 111,
labelcol: 6,
- value: "",
+ value: "ON",
viewAttr: 2,
detailtype: 3,
options: []
diff --git a/pc4mobx/hrmSalary/stores/employeeDeclare.js b/pc4mobx/hrmSalary/stores/employeeDeclare.js
index d4e9961e..bf969d11 100644
--- a/pc4mobx/hrmSalary/stores/employeeDeclare.js
+++ b/pc4mobx/hrmSalary/stores/employeeDeclare.js
@@ -6,6 +6,7 @@ const { TableStore } = WeaTableNew;
export class EmployeeDeclareStore {
@observable advanceForm = new WeaForm(); //人员信息报送详情页面,高级搜索form实例
@observable declareForm = new WeaForm(); //人员信息报送详情页面,新增编辑报送信息form实例
+ @action initDeclareForm = () => this.declareForm = new WeaForm();
@observable tableStore = new TableStore();
@action("...")
From 017a04a0c47331a822eaac61a17c4b8273dc04ba 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, 30 May 2024 14:15:55 +0800
Subject: [PATCH 68/93] 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 037ab5b12f282232d0e2946475f648b4120ea3ce 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, 3 Jun 2024 11:22:18 +0800
Subject: [PATCH 69/93] =?UTF-8?q?release/2.14.3.2406.01-=E4=B8=AA=E7=A8=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dataAcquisition/cumDeduct/columns.js | 11 +++++
.../salaryCumDeductChooseTaxPeriodDialog.js | 43 ++++++++++++-------
.../pages/dataAcquisition/cumDeduct/index.js | 5 ++-
.../hrmSalary/pages/declareDetail/index.less | 6 +++
4 files changed, 48 insertions(+), 17 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js
index 1c9d27d0..c2c2a844 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/columns.js
@@ -550,6 +550,17 @@ export const cumTaxPeriodCondition = [
value: "",
rules: "required",
viewAttr: 3
+ },{
+ colSpan: 1,
+ conditionType: "SELECT",
+ domkey: ["taxAgentIds"],
+ multiple: true,
+ fieldcol: 18,
+ label: "个税扣缴义务人",
+ lanId: 537996,
+ labelcol: 6,
+ value: "",
+ viewAttr: 2
}],
title: "",
defaultshow: true
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/salaryCumDeductChooseTaxPeriodDialog.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/salaryCumDeductChooseTaxPeriodDialog.js
index 7e0c76f4..5947b8da 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/salaryCumDeductChooseTaxPeriodDialog.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/components/salaryCumDeductChooseTaxPeriodDialog.js
@@ -6,7 +6,8 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaDialog, WeaLocaleProvider } from "ecCom";
+import { toJS } from "mobx";
+import { WeaDialog, WeaLocaleProvider, WeaTools } from "ecCom";
import { Button, message } from "antd";
import { getSearchs } from "../../../../util";
import { cumTaxPeriodCondition } from "../columns";
@@ -14,6 +15,7 @@ import { onlineRequest } from "../../../../apis/cumDeduct";
import { onlineActualAddUpAdvanceTax } from "../../../../apis/cumSituation";
const getLabel = WeaLocaleProvider.getLabel;
+const getKey = WeaTools.getKey;
const APIFox = {
online: onlineRequest,
advance: onlineActualAddUpAdvanceTax
@@ -25,13 +27,23 @@ class SalaryCumDeductChooseTaxPeriodDialog extends Component {
constructor(props) {
super(props);
this.state = {
- loading: false
+ loading: false, conditions: []
};
}
componentWillReceiveProps(nextProps, nextContext) {
const { cumDeductStore: { cumTaxPeriodForm, changeCumTaxPeriodForm } } = nextProps;
if (nextProps.visible !== this.props.visible && nextProps.visible) {
+ this.setState({
+ conditions: _.map(cumTaxPeriodCondition, item => ({
+ ...item, items: _.map(item.items, o => {
+ if (getKey(o) === "taxAgentIds") {
+ return { ...o, lable: getLabel(o.lanId, o.label), options: toJS(nextProps.taxAgentOption) };
+ }
+ return { ...o, lable: getLabel(o.lanId, o.label) };
+ })
+ }))
+ });
cumTaxPeriodForm.initFormFields(cumTaxPeriodCondition);
}
if (nextProps.visible !== this.props.visible && !nextProps.visible) {
@@ -43,18 +55,19 @@ class SalaryCumDeductChooseTaxPeriodDialog extends Component {
save = () => {
const { cumDeductStore: { cumTaxPeriodForm }, type } = this.props;
cumTaxPeriodForm.validateForm().then(f => {
- const { declareMonth } = cumTaxPeriodForm.getFormParams();
+ const { declareMonth, taxAgentIds } = cumTaxPeriodForm.getFormParams();
if (f.isValid) {
this.setState({ loading: true });
- APIFox[type]({ declareMonth: declareMonth + "-01" }).then(({ status, errormsg }) => {
- this.setState({ loading: false });
- if (status) {
- message.success(getLabel(111, "获取成功!"));
- this.props.onCancel();
- } else {
- message.error(errormsg);
- }
- }).catch(() => this.setState({ loading: false }));
+ APIFox[type]({ declareMonth: declareMonth + "-01", taxAgentIds: taxAgentIds ? taxAgentIds.split(",") : [] })
+ .then(({ status, errormsg }) => {
+ this.setState({ loading: false });
+ if (status) {
+ message.success(getLabel(111, "获取成功!"));
+ this.props.onCancel();
+ } else {
+ message.error(errormsg);
+ }
+ }).catch(() => this.setState({ loading: false }));
} else {
f.showErrors();
}
@@ -62,17 +75,17 @@ class SalaryCumDeductChooseTaxPeriodDialog extends Component {
};
render() {
- const { loading } = this.state;
+ const { loading, conditions } = this.state;
const { cumDeductStore: { cumTaxPeriodForm } } = this.props;
return (
{getLabel(33703, "确认")}]}
bottomLeft={getLabel(111, "点击保存后,稍后请点击【获取结果下载】下载获取结果。获取的数据将覆盖列表原本数据(有则覆盖无则新增)。")}
>
- {getSearchs(cumTaxPeriodForm, cumTaxPeriodCondition, 1, false)}
+ {getSearchs(cumTaxPeriodForm, conditions, 1, false)}
);
diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
index 980ee789..4e903cc6 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js
@@ -69,7 +69,7 @@ class Index extends Component {
exportPayloadType: false,
advanceCondition: null,
cumTaxPeriodDialog: {
- visible: false, title: "", type: ""
+ visible: false, title: "", type: "", taxAgentOption: []
},
feedbackLoading: false,
incomeTaxStatus: false,
@@ -401,6 +401,7 @@ class Index extends Component {
*/
getTopBtns = () => {
const { addAllLoading, cumTaxPeriodDialog, feedbackLoading, incomeTaxStatus } = this.state;
+ const { taxAgentStore: { taxAgentOption } } = this.props;
const commonBtns = [
导入,
this.handleAddData()}>新建,
@@ -421,7 +422,7 @@ class Index extends Component {
const incomeTaxBtns = [
this.setState({
cumTaxPeriodDialog: {
- ...cumTaxPeriodDialog,
+ ...cumTaxPeriodDialog, taxAgentOption,
visible: true, type: "online",
title: getLabel(542240, "税款所属期")
}
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.less b/pc4mobx/hrmSalary/pages/declareDetail/index.less
index 2beb379b..a28f8d0a 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.less
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.less
@@ -232,6 +232,12 @@
}
}
+.mulSelectDialog {
+ .wea-form-item .wea-form-item-wrapper {
+ display: block !important;
+ }
+}
+
.incomeTaxDecPerSlideWrapper {
.wea-slide-modal-content {
background: #f6f6f6;
From fa0a4859e9bb9a150afacc089820db58aa0bf2e9 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, 3 Jun 2024 11:38:47 +0800
Subject: [PATCH 70/93] =?UTF-8?q?release/2.14.3.2406.01-=E4=B8=AA=E7=A8=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/declareDetail/index.less | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/declareDetail/index.less b/pc4mobx/hrmSalary/pages/declareDetail/index.less
index a28f8d0a..77c118df 100644
--- a/pc4mobx/hrmSalary/pages/declareDetail/index.less
+++ b/pc4mobx/hrmSalary/pages/declareDetail/index.less
@@ -236,6 +236,10 @@
.wea-form-item .wea-form-item-wrapper {
display: block !important;
}
+
+ .wea-date-picker {
+ width: 100% !important;
+ }
}
.incomeTaxDecPerSlideWrapper {
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 71/93] 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 72/93] 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 73/93] =?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 74/93] 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 75/93] 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 76/93] 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 77/93] 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 78/93] 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 79/93] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=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 80/93] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=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 81/93] 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 82/93] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=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 83/93] =?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 84/93] =?UTF-8?q?feature/2.14.4.2406.02-=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=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 85/93] 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 86/93] 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 87/93] 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 88/93] 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 89/93] 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 90/93] 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 91/93] 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 92/93] 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 93/93] 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",