diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/constant.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/constant.js
index 6b2634c3..ce9c8b67 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/constant.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/constant.js
@@ -1,50 +1,53 @@
+import { WeaLocaleProvider } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
export const unArchiveTabs = [
{
title: "正常缴纳",
- viewcondition: "NORMAL",
+ viewcondition: "NORMAL"
},
{
title: "异动清单",
- viewcondition: "LIST",
+ viewcondition: "LIST"
},
{
title: "补缴",
- viewcondition: "PAY",
+ viewcondition: "PAY"
},
{
title: "总览",
- viewcondition: "OVERVIEW",
- },
+ viewcondition: "OVERVIEW"
+ }
];
export const archiveTabs = [
{
title: "正常缴纳",
- viewcondition: "NORMAL",
+ viewcondition: "NORMAL"
},
{
title: "补缴",
- viewcondition: "PAY",
+ viewcondition: "PAY"
},
{
title: "总览",
- viewcondition: "OVERVIEW",
- },
+ viewcondition: "OVERVIEW"
+ }
];
export const regColumns = [
{
- title: '福利项',
- dataIndex: 'benefits',
- key: 'benefits',
+ title: getLabel(111, "福利项"),
+ dataIndex: "benefits",
+ key: "benefits"
},
{
- title: '个人缴纳金额',
- dataIndex: 'personalPaymentAmount',
- key: 'personalPaymentAmount',
+ title: getLabel(111, "个人缴纳金额"),
+ dataIndex: "personalPaymentAmount",
+ key: "personalPaymentAmount"
},
{
- title: '单位缴纳金额',
- dataIndex: 'companyPaymentAmount',
- key: 'companyPaymentAmount',
- },
+ title: getLabel(111, "单位缴纳金额"),
+ dataIndex: "companyPaymentAmount",
+ key: "companyPaymentAmount"
+ }
];
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/condition.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/condition.js
index c4512342..9708262d 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/condition.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/condition.js
@@ -1,3 +1,6 @@
+import { WeaLocaleProvider } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
export const conditions = [
{
items: [
@@ -6,12 +9,12 @@ export const conditions = [
conditionType: "INPUT",
domkey: ["userName"],
fieldcol: 14,
- label: "姓名",
+ label: getLabel(111, "姓名"),
labelcol: 6,
value: "",
- viewAttr: 2,
+ viewAttr: 2
}
],
- defaultshow: true,
- },
+ defaultshow: true
+ }
];
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/index.js
index f6d366d1..4050ff5b 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookOfflineComparison/index.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
-import { WeaCheckbox, WeaTab, WeaTable } from "ecCom";
+import { WeaCheckbox, WeaTab, WeaTable, WeaLocaleProvider } from "ecCom";
import { Button } from "antd";
import { inject, observer } from "mobx-react";
import * as API from "../../../apis/offlineCompare";
@@ -10,6 +10,7 @@ import CompareDetailImportModal from "../../calculateDetail/compareDetailImportM
import { conditions } from "./condition";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("standingBookStore")
@observer
class StandingBookOfflineComparison extends Component {
@@ -62,10 +63,10 @@ class StandingBookOfflineComparison extends Component {
const { acctResultValue, excelResultValue } = record[it.dataIndex] || {};
if (Object.prototype.toString.call(text) === "[object Object]") {
return
- 系统值:{acctResultValue}
- 线下值:{excelResultValue}
+ {getLabel(111, "系统值")}:{acctResultValue}
+ {getLabel(111, "线下值")}:{excelResultValue}
- 差值:{calculateCompares(acctResultValue, excelResultValue)}
+ {getLabel(111, "差值")}:{calculateCompares(acctResultValue, excelResultValue)}
;
}
@@ -93,17 +94,17 @@ class StandingBookOfflineComparison extends Component {
return renderLoading();
}
const buttons = [
-
,
-
+
,
+
];
const adBtn = [
,
-
,
-
+ }}>{getLabel(111, "搜索")},
+
,
+
];
return (
@@ -112,7 +113,7 @@ class StandingBookOfflineComparison extends Component {
buttons={buttons}
buttonsAd={adBtn}
searchType={["base", "advanced"]}
- searchsBasePlaceHolder="请输入姓名"
+ searchsBasePlaceHolder={getLabel(111, "请输入姓名")}
showSearchAd={showSearchAd}
setShowSearchAd={showSearchAd => this.setState({ showSearchAd })}
searchsAd={getSearchs(form, conditions, 2)}
@@ -131,7 +132,7 @@ class StandingBookOfflineComparison extends Component {
this.setState({ onlyDiffEmployee }, () => {
this.comparisonwelfareList();
})
- } content="只显示有差异的人员"/>
+ } content={getLabel(111, "只显示有差异的人员")}/>
}
/>
`共 ${total} 条`,
+ showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
showSizeChanger: true,
pageSizeOptions: ["10", "20", "50", "100"],
onShowSizeChange: (current, pageSize) => {