diff --git a/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js b/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js
index 49d82cd8..b08bc557 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js
+++ b/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js
@@ -1,10 +1,12 @@
import React from "react";
import { Menu, message, Modal, Popover } from "antd";
+import { WeaLocaleProvider } from "ecCom";
import { inject, observer } from "mobx-react";
import ChangeSalaryModal from "./changeSalaryModal";
import { deleteSalaryItem } from "../../apis/archive";
import UnifiedTable from "../../components/UnifiedTable";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("salaryFileStore")
@observer
export default class SalaryItemChangeList extends React.Component {
@@ -34,17 +36,17 @@ export default class SalaryItemChangeList extends React.Component {
};
deleteSalaryItem = (salaryArchiveItemId) => {
Modal.confirm({
- title: "信息确认",
- content: "是否删除该调整数据",
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "是否删除该调整数据"),
onOk: () => {
const { salaryFileStore: { fetchSingleSalaryItemList } } = this.props;
deleteSalaryItem({ salaryArchiveItemId }).then(({ status, errormsg }) => {
if (status) {
- message.success("删除成功");
+ message.success(getLabel(111, "删除成功"));
this.searchParams = { salaryArchiveId: this.props.id, current: 1 };
fetchSingleSalaryItemList(this.searchParams);
} else {
- message.error(errormsg || "删除失败");
+ message.error(errormsg || getLabel(111, "删除失败"));
}
});
},
@@ -62,15 +64,15 @@ export default class SalaryItemChangeList extends React.Component {
if (selectedKey === "fixed") {
columns = [...columns, {
dataIndex: "operate",
- title: "操作",
+ title: getLabel(111, "操作"),
render: (text, record) => {
return
-
this.handleEdit(record)}>编辑
+
this.handleEdit(record)}>{getLabel(111, "编辑")}
this.deleteSalaryItem(record.id)}>
- 删除
+ {getLabel(111, "删除")}
} title="">
@@ -114,7 +116,7 @@ export default class SalaryItemChangeList extends React.Component {
this.handlePageChange(value);
},
total: singleSalaryItemList.total,
- showTotal: (total) => `共 ${total} 条`,
+ showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
current: singleSalaryItemList.pageNum
}}
xWidth={this.getColumns().length * 100}
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js b/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js
index 3abb7f69..1ae1cf78 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js
+++ b/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js
@@ -1,5 +1,5 @@
import React from "react";
-import { WeaFormItem, WeaHelpfulTip, WeaInput, WeaInputNumber, WeaSearchGroup } from "ecCom";
+import { WeaFormItem, WeaHelpfulTip, WeaInput, WeaInputNumber, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
import { inject, observer } from "mobx-react";
import SelectedTab from "../../components/selectedTab";
import SalaryItemChangeList from "./salaryItemChangeList";
@@ -7,10 +7,11 @@ import TaxAgentChangeList from "./taxAgentChangeList";
import { PickDate } from "../appConfig";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
const selectedTabItems = [
{
key: "0",
- name: "薪资调整记录"
+ name: getLabel(111, "薪资调整记录")
}
];
const baseInfolist = [
@@ -18,15 +19,15 @@ const baseInfolist = [
id: 1,
items: [
{
- label: "姓名",
+ label: getLabel(111, "姓名"),
value: "username"
},
{
- label: "部门",
+ label: getLabel(111, "部门"),
value: "department"
},
{
- label: "岗位",
+ label: getLabel(111, "岗位"),
value: "position"
}
]
@@ -35,15 +36,15 @@ const baseInfolist = [
id: 2,
items: [
{
- label: "入职时间",
+ label: getLabel(111, "入职时间"),
value: "hiredate"
},
{
- label: "手机号",
+ label: getLabel(111, "手机号"),
value: "mobile"
},
{
- label: "个税扣缴义务人",
+ label: getLabel(111, "个税扣缴义务人"),
value: "taxAgent"
}
]
@@ -86,7 +87,7 @@ export default class SalaryFileViewSlide extends React.Component {
const items = [
{
com: PickDate({
- label: "起始发薪日期",
+ label: getLabel(111, "起始发薪日期"),
viewAttr: selectedKey === "pending" ? 3 : 1,
value: paysetParams.payStartDate,
onChange: handleSetpay
@@ -94,7 +95,7 @@ export default class SalaryFileViewSlide extends React.Component {
},
{
com: PickDate({
- label: "最后发薪日期",
+ label: getLabel(111, "最后发薪日期"),
viewAttr: (selectedKey === "pending" || selectedKey === "fixed") ? 2 : selectedKey === "stop" ? 1 : 3,
value: paysetParams.payEndDate,
onChange: handleSetpay
@@ -103,7 +104,7 @@ export default class SalaryFileViewSlide extends React.Component {
];
return (
-
+
{
@@ -125,15 +126,15 @@ export default class SalaryFileViewSlide extends React.Component {
-
+
- 薪资档案
+ {getLabel(111, "薪资档案")}
@@ -169,7 +170,7 @@ export default class SalaryFileViewSlide extends React.Component {
/>
}
- )) : 暂无数据
+ )) : {getLabel(111, "暂无数据")}
}
}
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js b/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js
index 0c900839..d769a08c 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js
+++ b/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js
@@ -1,81 +1,81 @@
-import React from 'react';
-import { Table } from 'antd'
-import { WeaTable } from 'ecCom'
-import { inject, observer } from 'mobx-react';
-import EditAgentModal from './editAgentModal'
+import React from "react";
+import { WeaLocaleProvider, WeaTable } from "ecCom";
+import { inject, observer } from "mobx-react";
+import EditAgentModal from "./editAgentModal";
-@inject('salaryFileStore')
+const getLabel = WeaLocaleProvider.getLabel;
+@inject("salaryFileStore")
@observer
export default class TaxAgentChangeList extends React.Component {
- constructor(props) {
- super(props)
- this.state = {
- recordId: '',
- editAgentVisible: false
+ constructor(props) {
+ super(props);
+ this.state = {
+ recordId: "",
+ editAgentVisible: false
+ };
+ this.searchParams = {};
+ }
+
+ componentWillMount() {
+ const { salaryFileStore: { fetchSingleTaxAgentList } } = this.props;
+ this.searchParams = { salaryArchiveId: this.props.id, current: 1 };
+ fetchSingleTaxAgentList(this.searchParams);
+ }
+
+ // 编辑回调
+ handleEdit(record) {
+ const { salaryFileStore: { setEditAgentVisible } } = this.props;
+ this.setState({
+ recordId: record.id,
+ editAgentVisible: true
+ });
+ }
+
+ // 获取Columns
+ getColumns() {
+ const { salaryFileStore: { singleTaxAgentList } } = this.props;
+ let columns = [];
+ if (singleTaxAgentList.columns) {
+ columns = [...singleTaxAgentList.columns];
+ }
+ return columns;
+ }
+
+ // 页面跳转
+ handlePageChange(value) {
+ this.searchParams.current = value;
+ const { salaryFileStore: { fetchSingleTaxAgentList } } = this.props;
+ fetchSingleTaxAgentList(this.searchParams);
+ }
+
+ render() {
+ const { salaryFileStore } = this.props;
+ const { singleTaxAgentList } = salaryFileStore;
+ return (
+
+
{
+ this.handlePageChange(value);
+ },
+ total: singleTaxAgentList.total,
+ showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
+ current: singleTaxAgentList.pageNum
+ }}
+ />
+ {
+ this.state.editAgentVisible && {
+ this.setState({ editAgentVisible: false });
+ }}
+ />
}
- this.searchParams = {}
- }
-
- componentWillMount() {
- const { salaryFileStore: { fetchSingleTaxAgentList }} = this.props;
- this.searchParams = {salaryArchiveId: this.props.id, current: 1}
- fetchSingleTaxAgentList(this.searchParams)
- }
-
- // 编辑回调
- handleEdit(record) {
- const { salaryFileStore: {setEditAgentVisible} } = this.props;
- this.setState({
- recordId: record.id,
- editAgentVisible: true
- })
- }
-
- // 获取Columns
- getColumns() {
- const { salaryFileStore: {singleTaxAgentList} } = this.props;
- let columns = []
- if(singleTaxAgentList.columns) {
- columns = [...singleTaxAgentList.columns]
- }
- return columns
- }
-
- // 页面跳转
- handlePageChange(value) {
- this.searchParams.current = value
- const { salaryFileStore: { fetchSingleTaxAgentList }} = this.props;
- fetchSingleTaxAgentList(this.searchParams)
- }
-
- render() {
- const { salaryFileStore } = this.props;
- const { singleTaxAgentList } = salaryFileStore
- return (
-
- {
-this.handlePageChange(value)
-},
- total: singleTaxAgentList.total,
- showTotal: (total) => `共 ${total} 条`,
- current: singleTaxAgentList.pageNum
- }}
- />
- {
- this.state.editAgentVisible && {
-this.setState({editAgentVisible: false})
-}}
- />
- }
-
- )
- }
-}
\ No newline at end of file
+
+ );
+ }
+}