- {getSearchs(planSearchForm, searchConditons, 2, false)}
+ {getSearchs(planSearchForm, _.map(searchConditons, item => ({
+ ...item, title: getLabel(item.lanId, item.title),
+ items: _.map(item.items, o => {
+ if (getKey(o) === "paymentTypeEnum") {
+ return {
+ ...o, label: getLabel(o.lanId, o.label),
+ options: _.map(o.options, k => ({ ...k, showname: getLabel(k.lanId, k.showname) }))
+ };
+ }
+ return {
+ ...o, label: getLabel(o.lanId, o.label)
+ };
+ })
+ })), 2, false)}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js
index 59af2d46..79685e74 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanCopyDialog/index.js
@@ -54,7 +54,7 @@ class Index extends Component {
const { programmeStore: { planCopyForm }, conditions } = this.props;
return (
{getLabel(537558, "保存")}
]}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js
index a70da52f..d97654e6 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanEditSlide/index.js
@@ -48,15 +48,22 @@ class Index extends Component {
this.setState({
planDatas: schemeDetailList,
conditions: _.map(planConditons, item => ({
- ...item, items: _.map(item.items, o => {
+ ...item, title: getLabel(item.lanId, item.title),
+ items: _.map(item.items, o => {
if (getKey(o) === "taxAgentIds") {
return {
...o, hide: schemeBatch["sharedType"] === "0" || _.isNil(schemeBatch["sharedType"]),
viewAttr: (schemeBatch["sharedType"] === "1" && showOperateBtn) ? 3 : showOperateBtn ? o.viewAttr : 1,
- options: _.map(result, k => ({ key: k.id, showname: k.content }))
+ options: _.map(result, k => ({ key: k.id, showname: k.content })),
+ label: getLabel(o.lanId, o.label)
+ };
+ } else if (getKey(o) === "paymentType" || getKey(o) === "sharedType") {
+ return {
+ ...o, label: getLabel(o.lanId, o.label),
+ options: _.map(o.options, k => ({ ...k, showname: getLabel(k.lanId, k.showname) }))
};
}
- return { ...o, viewAttr: showOperateBtn ? o.viewAttr : 1 };
+ return { ...o, viewAttr: showOperateBtn ? o.viewAttr : 1, label: getLabel(o.lanId, o.label) };
})
}))
}, () => {
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js
index 8b661ed0..1035015a 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/components/welfarePlanList/index.js
@@ -178,12 +178,18 @@ class Index extends Component {
this.setState({
copyDialog: {
visible: true, copyId: id, copyName: `${schemeName}-${getLabel(77, "复制")}`,
- title: `${getLabel(77, "复制")}-${_.find(tabWelfarePlanList, o => o.key === selectedKey).title}`,
+ title: `${getLabel(77, "复制")}-${
+ getLabel(_.find(tabWelfarePlanList, o => o.key === selectedKey).lanId, _.find(tabWelfarePlanList, o => o.key === selectedKey).title)
+ }`,
conditions: welfarePlanCopyConditions[selectedKey]
}
}, () => {
const { copyDialog: { conditions, copyName } } = this.state;
- planCopyForm.initFormFields(conditions);
+ planCopyForm.initFormFields(_.map(conditions, item => ({
+ ...item, items: _.map(item.items, o => {
+ return { ...o, label: getLabel(o.lanId, o.label) };
+ })
+ })));
planCopyForm.updateFields({ [`${selectedKey}_schemeName`]: { value: copyName } });
});
break;
@@ -311,7 +317,9 @@ class Index extends Component {
{
selectedKey === "CUSTOM" &&
-
+
+ getLabel(o.lanId, o.title))}/>
+
}
{/*复制方案*/}
onSalaryOpts("SEARCH", v)}
value={customQuery}
options={[
- { key: "", showname: getLabel(111, "全部"), selected: true },
+ { key: "", showname: getLabel(332, "全部"), selected: true },
{ key: "SOCIAL_SECURITY", showname: getLabel(538967, "社保") },
{ key: "ACCUMULATION_FUND", showname: getLabel(538969, "公积金") },
{ key: "OTHER", showname: getLabel(542717, "企业年金及其他福利") }
@@ -63,6 +66,7 @@ export const searchConditons = [
fieldcol: 16,
isQuickSearch: true,
label: getLabel(33162, "方案名称"),
+ lanId: 33162,
labelcol: 8,
value: "",
viewAttr: 2
@@ -74,16 +78,18 @@ export const searchConditons = [
fieldcol: 16,
isQuickSearch: true,
label: getLabel(543163, "缴纳类型"),
+ lanId: 543163,
labelcol: 8,
value: "",
options: [
- { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇") },
- { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村") }
+ { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇"), lanId: 19702 },
+ { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村"), lanId: 19703 }
],
viewAttr: 2
}
],
title: getLabel(82743, "基础信息"),
+ lanId: 82743,
defaultshow: true
}
];
@@ -96,6 +102,7 @@ export const welfarePlanCopyConditions = {
domkey: ["SOCIAL_SECURITY_schemeName"],
fieldcol: 16,
label: getLabel(111, "社保名称"),
+ lanId: 111,
labelcol: 8,
value: "",
rules: "required|string",
@@ -115,6 +122,7 @@ export const welfarePlanCopyConditions = {
domkey: ["ACCUMULATION_FUND_schemeName"],
fieldcol: 16,
label: getLabel(111, "公积金名称"),
+ lanId: 111,
labelcol: 8,
value: "",
rules: "required|string",
@@ -134,6 +142,7 @@ export const welfarePlanCopyConditions = {
domkey: ["OTHER_schemeName"],
fieldcol: 16,
label: getLabel(111, "企业年金及其他福利名称"),
+ lanId: 111,
labelcol: 8,
value: "",
rules: "required|string",
@@ -154,10 +163,11 @@ export const planConditons = [
domkey: ["paymentType"],
fieldcol: 14,
label: getLabel(543163, "缴纳类型"),
+ lanId: 543163,
labelcol: 6,
options: [
- { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇") },
- { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村") }
+ { key: "SCHEME_TOWN", showname: getLabel(19702, "城镇"), lanId: 19702 },
+ { key: "SCHEME_VILLAGE", showname: getLabel(19703, "农村"), lanId: 19703 }
],
value: "SCHEME_TOWN",
rules: "required|string",
@@ -168,6 +178,7 @@ export const planConditons = [
domkey: ["schemeName"],
fieldcol: 14,
label: getLabel(33162, "方案名称"),
+ lanId: 33162,
labelcol: 6,
value: "",
rules: "required|string",
@@ -178,10 +189,11 @@ export const planConditons = [
domkey: ["sharedType"],
fieldcol: 14,
label: getLabel(543164, "可见性"),
+ lanId: 543164,
labelcol: 6,
options: [
- { key: "0", showname: getLabel(111, "公共") },
- { key: "1", showname: getLabel(111, "私有") }
+ { key: "0", showname: getLabel(111, "公共"), lanId: 111 },
+ { key: "1", showname: getLabel(111, "私有"), lanId: 111 }
],
value: "0",
rules: "required|string",
@@ -192,6 +204,7 @@ export const planConditons = [
domkey: ["taxAgentIds"],
fieldcol: 14,
label: getLabel(543165, "可见性范围"),
+ lanId: 543165,
labelcol: 6,
multiple: true,
options: [],
@@ -204,12 +217,14 @@ export const planConditons = [
domkey: ["remarks"],
fieldcol: 14,
label: getLabel(536726, "备注"),
+ lanId: 536726,
labelcol: 6,
value: "",
viewAttr: 2
}
],
title: getLabel(82743, "基础信息"),
+ lanId: 82743,
defaultshow: true
}
];
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
index d1bd4b81..20d50c88 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.js
@@ -13,6 +13,7 @@ import WelfarePlanList from "./components/welfarePlanList";
import LogDialog from "../../../components/logViewModal";
import cs from "classnames";
import "./index.less";
+import { tabList } from "../welfareArchive/config";
const getLabel = WeaLocaleProvider.getLabel;
@@ -64,12 +65,13 @@ class Index extends Component {
render() {
const { taxAgentStore: { showOperateBtn } } = this.props;
const { logDialogVisible, filterConditions, selectedKey, showSearchAd, isQuery, customQuery } = this.state;
+ const tabs = _.map(tabWelfarePlanList, o => ({ ...o, title: getLabel(o.lanId, o.title) }));
return (
}
iconBgcolor="#F14A2D" showDropIcon dropMenuDatas={renderDropMenuDatas(selectedKey, showOperateBtn)}
- onDropMenuClick={this.onDropMenuClick} tabDatas={tabWelfarePlanList} selectedKey={selectedKey}
+ onDropMenuClick={this.onDropMenuClick} tabDatas={tabs} selectedKey={selectedKey}
onChange={selectedKey => this.setState({ selectedKey, showSearchAd: false, customQuery: "" })}
buttons={renderReqBtns(selectedKey, this.handleReqBtnsCLick, showOperateBtn, customQuery)}
>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less
index dc2ed68b..5a057203 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/welfarePlan/index.less
@@ -210,6 +210,7 @@
.wea-select .wdb {
word-break: break-all !important;
word-wrap: break-word !important;
+ white-space: nowrap !important;
}
.wea-select .wea-select-input {
From bd3aa05c29934279538222347a9ee2ac0f007e68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Sun, 7 Apr 2024 13:59:51 +0800
Subject: [PATCH 8/9] hotfix/2.12.1.2403.02
---
pc4mobx/hrmSalary/components/pcTemplate/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/components/pcTemplate/index.js b/pc4mobx/hrmSalary/components/pcTemplate/index.js
index ba6cd4a0..d0d0a123 100644
--- a/pc4mobx/hrmSalary/components/pcTemplate/index.js
+++ b/pc4mobx/hrmSalary/components/pcTemplate/index.js
@@ -24,7 +24,7 @@ export const dealTemplate = (itemTypeList, type) => {
const { items, groupName, groupId } = group;
if (items.length !== 0) {
items.forEach((item) => {
- item.salaryItemValue = !_.isNil(item.salaryItemValue) ? item.salaryItemValue : "100";
+ item.salaryItemValue = !_.isNil(item.salaryItemValue) ? item.salaryItemValue : "";
});
if (items.length % 2 && type === "pc") items.push({});
// 未分类不展示标题
From f8e78a97ac85db2bf9be273b478dc9d2eb76323e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Thu, 11 Apr 2024 15:15:26 +0800
Subject: [PATCH 9/9] =?UTF-8?q?hotfix/2.12.1.2403.02=20=E5=B7=A5=E8=B5=84?=
=?UTF-8?q?=E5=8D=95=E5=8F=91=E6=94=BE=E9=A1=B5=E9=9D=A2=E5=8E=BB=E6=8E=89?=
=?UTF-8?q?=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 = [