-
onEditLedger(record)}>{showOperateBtn ? "编辑" : "查看"}
+
onEditLedger(record)}>{showOperateBtn ? getLabel(111, "编辑") : getLabel(111, "查看")}
{
showOperateBtn &&
this.handleMenuClick(e, record)}>
- 复制
- 删除
+ {getLabel(111, "复制")}
+ {getLabel(111, "删除")}
} title="">
@@ -109,10 +112,10 @@ class LedgerTable extends Component {
deleteLedger = (payload) => {
deleteLedger(payload).then(({ status, errormsg }) => {
if (status) {
- message.success("删除成功");
+ message.success(getLabel(111, "删除成功"));
this.getLedgerList();
} else {
- message.error(errormsg || "删除失败");
+ message.error(errormsg || getLabel(111, "删除失败"));
}
});
};
@@ -125,10 +128,10 @@ class LedgerTable extends Component {
changeLedgerStatus = (payload) => {
changeLedgerStatus(payload).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功");
+ message.success(getLabel(111, "操作成功"));
this.getLedgerList();
} else {
- message.error(errormsg || "操作成功");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -149,8 +152,8 @@ class LedgerTable extends Component {
break;
case "delete":
Modal.confirm({
- title: "信息确认",
- content: "确认要删除吗?",
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "确认要删除吗?"),
onOk: () => {
this.deleteLedger([id]);
}
@@ -165,7 +168,7 @@ class LedgerTable extends Component {
const { dataSource, columns, pageInfo, loading, copyLedgerModal } = this.state;
const pagination = {
...pageInfo,
- showTotal: total => `共 ${total} 条`,
+ showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
showQuickJumper: true,
showSizeChanger: true,
pageSizeOptions: ["10", "20", "50", "100"],
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/config.js b/pc4mobx/hrmSalary/pages/ledgerPage/config.js
index 1a9f3717..8df50c9d 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/config.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/config.js
@@ -1,3 +1,6 @@
+import { WeaLocaleProvider } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
export const copyConditions = [
{
items: [
@@ -7,7 +10,7 @@ export const copyConditions = [
domkey: ["name"],
fieldcol: 14,
rules: "required|string",
- label: "账套名称",
+ label: getLabel(111, "账套名称"),
labelcol: 6,
value: "",
viewAttr: 3
@@ -18,7 +21,7 @@ export const copyConditions = [
domkey: ["taxAgentId"],
fieldcol: 14,
rules: "required|string",
- label: "个税扣缴义务人",
+ label: getLabel(111, "个税扣缴义务人"),
labelcol: 6,
value: "",
viewAttr: 3
@@ -36,7 +39,7 @@ export const categoryConditions = [
domkey: ["name"],
fieldcol: 14,
rules: "required|string",
- label: "名称",
+ label: getLabel(111, "名称"),
labelcol: 6,
value: "",
viewAttr: 3
@@ -48,18 +51,18 @@ export const categoryConditions = [
export const baseSettingFormItem = [
{
key: "name",
- label: "账套名称",
+ label: getLabel(111, "账套名称"),
type: "INPUT"
},
{
key: "taxAgentId",
- label: "个税扣缴义务人",
+ label: getLabel(111, "个税扣缴义务人"),
type: "SELECT",
options: []
},
{
key: "taxableItems",
- label: "薪资类型",
+ label: getLabel(111, "薪资类型"),
type: "SELECT",
options: [
// {
@@ -76,7 +79,7 @@ export const baseSettingFormItem = [
},
{
key: "salaryCycleStrObj",
- label: "薪资周期",
+ label: getLabel(111, "薪资周期"),
type: "CUSTOM",
children: [
{
@@ -86,22 +89,22 @@ export const baseSettingFormItem = [
{
key: "1",
selected: false,
- showname: "上上月"
+ showname: getLabel(111, "上上月")
},
{
key: "2",
selected: false,
- showname: "上月"
+ showname: getLabel(111, "上月")
},
{
key: "3",
selected: true,
- showname: "本月"
+ showname: getLabel(111, "本月")
},
{
key: "4",
selected: false,
- showname: "下月"
+ showname: getLabel(111, "下月")
}
]
},
@@ -112,157 +115,157 @@ export const baseSettingFormItem = [
{
key: "1",
selected: true,
- showname: "1号"
+ showname: getLabel(111, "1号")
},
{
key: "2",
selected: false,
- showname: "2号"
+ showname: getLabel(111, "2号")
},
{
key: "3",
selected: false,
- showname: "3号"
+ showname: getLabel(111, "3号")
},
{
key: "4",
selected: false,
- showname: "4号"
+ showname: getLabel(111, "4号")
},
{
key: "5",
selected: false,
- showname: "5号"
+ showname: getLabel(111, "5号")
},
{
key: "6",
selected: false,
- showname: "6号"
+ showname: getLabel(111, "6号")
},
{
key: "7",
selected: false,
- showname: "7号"
+ showname: getLabel(111, "7号")
},
{
key: "8",
selected: false,
- showname: "8号"
+ showname: getLabel(111, "8号")
},
{
key: "9",
selected: false,
- showname: "9号"
+ showname: getLabel(111, "9号")
},
{
key: "10",
selected: false,
- showname: "10号"
+ showname: getLabel(111, "10号")
},
{
key: "11",
selected: false,
- showname: "11号"
+ showname: getLabel(111, "11号")
},
{
key: "12",
selected: false,
- showname: "12号"
+ showname: getLabel(111, "12号")
},
{
key: "13",
selected: false,
- showname: "13号"
+ showname: getLabel(111, "13号")
},
{
key: "14",
selected: false,
- showname: "14号"
+ showname: getLabel(111, "14号")
},
{
key: "15",
selected: false,
- showname: "15号"
+ showname: getLabel(111, "15号")
},
{
key: "16",
selected: false,
- showname: "16号"
+ showname: getLabel(111, "16号")
},
{
key: "17",
selected: false,
- showname: "17号"
+ showname: getLabel(111, "17号")
},
{
key: "18",
selected: false,
- showname: "18号"
+ showname: getLabel(111, "18号")
},
{
key: "19",
selected: false,
- showname: "19号"
+ showname: getLabel(111, "19号")
},
{
key: "20",
selected: false,
- showname: "20号"
+ showname: getLabel(111, "20号")
},
{
key: "21",
selected: false,
- showname: "21号"
+ showname: getLabel(111, "21号")
},
{
key: "22",
selected: false,
- showname: "22号"
+ showname: getLabel(111, "22号")
},
{
key: "23",
selected: false,
- showname: "23号"
+ showname: getLabel(111, "23号")
},
{
key: "24",
selected: false,
- showname: "24号"
+ showname: getLabel(111, "24号")
},
{
key: "25",
selected: false,
- showname: "25号"
+ showname: getLabel(111, "25号")
},
{
key: "26",
selected: false,
- showname: "26号"
+ showname: getLabel(111, "26号")
},
{
key: "27",
selected: false,
- showname: "27号"
+ showname: getLabel(111, "27号")
},
{
key: "28",
selected: false,
- showname: "28号"
+ showname: getLabel(111, "28号")
},
{
key: "29",
selected: false,
- showname: "29号"
+ showname: getLabel(111, "29号")
},
{
key: "30",
selected: false,
- showname: "30号"
+ showname: getLabel(111, "30号")
},
{
key: "31",
selected: false,
- showname: "31号"
+ showname: getLabel(111, "31号")
}
]
}
@@ -270,34 +273,34 @@ export const baseSettingFormItem = [
},
{
key: "taxCycleType",
- label: "税款所属期",
+ label: getLabel(111, "税款所属期"),
type: "SELECT",
options: [
{
key: "1",
selected: false,
- showname: "上上月"
+ showname: getLabel(111, "上上月"),
},
{
key: "2",
selected: false,
- showname: "上月"
+ showname: getLabel(111, "上月"),
},
{
key: "3",
selected: true,
- showname: "本月"
+ showname: getLabel(111, "本月")
},
{
key: "4",
selected: false,
- showname: "下月"
+ showname: getLabel(111, "下月")
}
]
},
{
key: "attendCycleStrObj",
- label: "考勤周期",
+ label: getLabel(111, "考勤周期"),
type: "CUSTOM",
children: [
{
@@ -307,22 +310,22 @@ export const baseSettingFormItem = [
{
key: "1",
selected: false,
- showname: "上上月"
+ showname: getLabel(111, "上上月")
},
{
key: "2",
selected: false,
- showname: "上月"
+ showname: getLabel(111, "上月")
},
{
key: "3",
selected: true,
- showname: "本月"
+ showname: getLabel(111, "本月")
},
{
key: "4",
selected: false,
- showname: "下月"
+ showname: getLabel(111, "下月")
}
]
},
@@ -333,157 +336,157 @@ export const baseSettingFormItem = [
{
key: "1",
selected: true,
- showname: "1号"
+ showname: getLabel(111, "1号")
},
{
key: "2",
selected: false,
- showname: "2号"
+ showname: getLabel(111, "2号")
},
{
key: "3",
selected: false,
- showname: "3号"
+ showname: getLabel(111, "3号")
},
{
key: "4",
selected: false,
- showname: "4号"
+ showname: getLabel(111, "4号")
},
{
key: "5",
selected: false,
- showname: "5号"
+ showname: getLabel(111, "5号")
},
{
key: "6",
selected: false,
- showname: "6号"
+ showname: getLabel(111, "6号")
},
{
key: "7",
selected: false,
- showname: "7号"
+ showname: getLabel(111, "7号")
},
{
key: "8",
selected: false,
- showname: "8号"
+ showname: getLabel(111, "8号")
},
{
key: "9",
selected: false,
- showname: "9号"
+ showname: getLabel(111, "9号")
},
{
key: "10",
selected: false,
- showname: "10号"
+ showname: getLabel(111, "10号")
},
{
key: "11",
selected: false,
- showname: "11号"
+ showname: getLabel(111, "11号")
},
{
key: "12",
selected: false,
- showname: "12号"
+ showname: getLabel(111, "12号")
},
{
key: "13",
selected: false,
- showname: "13号"
+ showname: getLabel(111, "13号")
},
{
key: "14",
selected: false,
- showname: "14号"
+ showname: getLabel(111, "14号")
},
{
key: "15",
selected: false,
- showname: "15号"
+ showname: getLabel(111, "15号")
},
{
key: "16",
selected: false,
- showname: "16号"
+ showname: getLabel(111, "16号")
},
{
key: "17",
selected: false,
- showname: "17号"
+ showname: getLabel(111, "17号")
},
{
key: "18",
selected: false,
- showname: "18号"
+ showname: getLabel(111, "18号")
},
{
key: "19",
selected: false,
- showname: "19号"
+ showname: getLabel(111, "19号")
},
{
key: "20",
selected: false,
- showname: "20号"
+ showname: getLabel(111, "20号")
},
{
key: "21",
selected: false,
- showname: "21号"
+ showname: getLabel(111, "21号")
},
{
key: "22",
selected: false,
- showname: "22号"
+ showname: getLabel(111, "22号")
},
{
key: "23",
selected: false,
- showname: "23号"
+ showname: getLabel(111, "23号")
},
{
key: "24",
selected: false,
- showname: "24号"
+ showname: getLabel(111, "24号")
},
{
key: "25",
selected: false,
- showname: "25号"
+ showname: getLabel(111, "25号")
},
{
key: "26",
selected: false,
- showname: "26号"
+ showname: getLabel(111, "26号")
},
{
key: "27",
selected: false,
- showname: "27号"
+ showname: getLabel(111, "27号")
},
{
key: "28",
selected: false,
- showname: "28号"
+ showname: getLabel(111, "28号")
},
{
key: "29",
selected: false,
- showname: "29号"
+ showname: getLabel(111, "29号")
},
{
key: "30",
selected: false,
- showname: "30号"
+ showname: getLabel(111, "30号")
},
{
key: "31",
selected: false,
- showname: "31号"
+ showname: getLabel(111, "31号")
}
]
}
@@ -491,39 +494,39 @@ export const baseSettingFormItem = [
},
{
key: "socialSecurityCycleType",
- label: "福利台账月份",
+ label: getLabel(111, "福利台账月份"),
type: "SELECT",
options: [
{
key: "1",
selected: false,
- showname: "上上月"
+ showname: getLabel(111, "上上月")
},
{
key: "2",
selected: false,
- showname: "上月"
+ showname: getLabel(111, "上月")
},
{
key: "3",
selected: true,
- showname: "本月"
+ showname: getLabel(111, "本月")
},
{
key: "4",
selected: false,
- showname: "下月"
+ showname: getLabel(111, "下月")
}
]
},
{
key: "namescpoe",
- label: "核算人员范围",
+ label: getLabel(111, "核算人员范围"),
type: "CHECKBOX"
},
{
key: "description",
- label: "备注",
+ label: getLabel(111, "备注"),
type: "TEXTAREA"
}
];
@@ -531,213 +534,213 @@ export const monthDays = [
{
key: "1",
selected: true,
- showname: "1号"
+ showname: getLabel(111, "1号")
},
{
key: "2",
selected: false,
- showname: "2号"
+ showname: getLabel(111, "2号")
},
{
key: "3",
selected: false,
- showname: "3号"
+ showname: getLabel(111, "3号")
},
{
key: "4",
selected: false,
- showname: "4号"
+ showname: getLabel(111, "4号")
},
{
key: "5",
selected: false,
- showname: "5号"
+ showname: getLabel(111, "5号")
},
{
key: "6",
selected: false,
- showname: "6号"
+ showname: getLabel(111, "6号")
},
{
key: "7",
selected: false,
- showname: "7号"
+ showname: getLabel(111, "7号")
},
{
key: "8",
selected: false,
- showname: "8号"
+ showname: getLabel(111, "8号")
},
{
key: "9",
selected: false,
- showname: "9号"
+ showname: getLabel(111, "9号")
},
{
key: "10",
selected: false,
- showname: "10号"
+ showname: getLabel(111, "10号")
},
{
key: "11",
selected: false,
- showname: "11号"
+ showname: getLabel(111, "11号")
},
{
key: "12",
selected: false,
- showname: "12号"
+ showname: getLabel(111, "12号")
},
{
key: "13",
selected: false,
- showname: "13号"
+ showname: getLabel(111, "13号")
},
{
key: "14",
selected: false,
- showname: "14号"
+ showname: getLabel(111, "14号")
},
{
key: "15",
selected: false,
- showname: "15号"
+ showname: getLabel(111, "15号")
},
{
key: "16",
selected: false,
- showname: "16号"
+ showname: getLabel(111, "16号")
},
{
key: "17",
selected: false,
- showname: "17号"
+ showname: getLabel(111, "17号")
},
{
key: "18",
selected: false,
- showname: "18号"
+ showname: getLabel(111, "18号")
},
{
key: "19",
selected: false,
- showname: "19号"
+ showname: getLabel(111, "19号")
},
{
key: "20",
selected: false,
- showname: "20号"
+ showname: getLabel(111, "20号")
},
{
key: "21",
selected: false,
- showname: "21号"
+ showname: getLabel(111, "21号")
},
{
key: "22",
selected: false,
- showname: "22号"
+ showname: getLabel(111, "22号")
},
{
key: "23",
selected: false,
- showname: "23号"
+ showname: getLabel(111, "23号")
},
{
key: "24",
selected: false,
- showname: "24号"
+ showname: getLabel(111, "24号")
},
{
key: "25",
selected: false,
- showname: "25号"
+ showname: getLabel(111, "25号")
},
{
key: "26",
selected: false,
- showname: "26号"
+ showname: getLabel(111, "26号")
},
{
key: "27",
selected: false,
- showname: "27号"
+ showname: getLabel(111, "27号")
},
{
key: "28",
selected: false,
- showname: "28号"
+ showname: getLabel(111, "28号")
},
{
key: "29",
selected: false,
- showname: "29号"
+ showname: getLabel(111, "29号")
},
{
key: "30",
selected: false,
- showname: "30号"
+ showname: getLabel(111, "30号")
},
{
key: "31",
selected: false,
- showname: "31号"
+ showname: getLabel(111, "31号")
}
];
export const fieldType = [
{
key: "STRING",
selected: false,
- showname: "字符"
+ showname: getLabel(111, "字符")
},
{
key: "NUMBER",
selected: false,
- showname: "数值"
+ showname: getLabel(111, "数值")
}
];
export const valueTaking = [
{
key: "INPUT",
selected: false,
- showname: "输入"
+ showname: getLabel(111, "输入")
},
{
key: "FORMULA",
selected: false,
- showname: "公式"
+ showname: getLabel(111, "公式")
}
];
export const roundingRules = [
{
key: "RAW_DATA",
selected: false,
- showname: "原始数据"
+ showname: getLabel(111, "原始数据")
},
{
key: "ROUNDING",
selected: false,
- showname: "四舍五入"
+ showname: getLabel(111, "四舍五入")
},
{
key: "ROUND_UP",
selected: false,
- showname: "向上舍入"
+ showname: getLabel(111, "向上舍入")
},
{
key: "ROUND_DOWN",
selected: false,
- showname: "向下舍入"
+ showname: getLabel(111, "向下舍入")
},
{
key: "CEILING",
selected: false,
- showname: "见分进角"
+ showname: getLabel(111, "见分进角")
},
{
key: "UP_EVEN",
selected: false,
- showname: "向上求偶"
+ showname: getLabel(111, "向上求偶")
}
];
export const keepDecimalPlaces = [
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/index.js b/pc4mobx/hrmSalary/pages/ledgerPage/index.js
index 65486005..3ad2c0eb 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/index.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/index.js
@@ -6,11 +6,13 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaInputSearch, WeaTop } from "ecCom";
+import { WeaInputSearch, WeaLocaleProvider, WeaTop } from "ecCom";
import { Button } from "antd";
import LedgerTable from "./components/ledgerTable";
import LedgerSlide from "./components/ledgerSlide";
+const getLabel = WeaLocaleProvider.getLabel;
+
@inject("taxAgentStore")
@observer
class Index extends Component {
@@ -21,7 +23,7 @@ class Index extends Component {
doSearch: false,
slideparams: {
visible: false,
- title: "新建账套",
+ title: getLabel(111, "新建账套"),
editId: ""
}
};
@@ -36,7 +38,7 @@ class Index extends Component {
handleEditLedger = (record) => {
const { slideparams } = this.state;
const { id } = record;
- this.setState({ slideparams: { ...slideparams, visible: true, title: "编辑账套", editId: id } });
+ this.setState({ slideparams: { ...slideparams, visible: true, title: getLabel(111, "编辑账套"), editId: id } });
};
handleResetLedger = () => {
const { slideparams } = this.state;
@@ -44,7 +46,7 @@ class Index extends Component {
slideparams: {
...slideparams,
visible: false,
- title: "新建账套",
+ title: getLabel(111, "新建账套"),
editId: ""
}
});
@@ -58,16 +60,16 @@ class Index extends Component {
,
+ >{getLabel(111, "新建")},
this.setState({ searchVal })}
onSearch={() => this.setState({ doSearch: !doSearch })}
/>
];
return (
}
iconBgcolor="#F14A2D"
showDropIcon={false}
diff --git a/pc4mobx/hrmSalary/pages/mySalary/index.js b/pc4mobx/hrmSalary/pages/mySalary/index.js
index 6902836e..fdd9cb05 100644
--- a/pc4mobx/hrmSalary/pages/mySalary/index.js
+++ b/pc4mobx/hrmSalary/pages/mySalary/index.js
@@ -1,7 +1,7 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { DatePicker } from "antd";
-import { WeaNewScroll, WeaTop } from "ecCom";
+import { WeaLocaleProvider, WeaNewScroll, WeaTop } from "ecCom";
import { renderNoright } from "../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中
import CustomTab from "../../components/customTab";
import moment from "moment";
@@ -10,6 +10,7 @@ import Authority from "./authority";
import CustomPaginationTable from "../../components/customPaginationTable";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
const { RangePicker } = DatePicker;
@inject("mySalaryStore")
@@ -57,13 +58,13 @@ export default class MySalary extends React.Component {
}
});
columns.push({
- title: "操作",
+ title: getLabel(30585, "操作"),
dataIndex: "operate",
render: (text, record) => {
return (
{
this.handleView(record);
- }}>查看
+ }}>{getLabel(33564, "查看")}
);
}
});
@@ -118,17 +119,17 @@ export default class MySalary extends React.Component {
const topTab = [
{
- title: "工资单",
+ title: getLabel(503, "工资单"),
viewcondition: "0"
},
{
- title: "调薪记录",
+ title: getLabel(111, "调薪记录"),
viewcondition: "2"
}
];
const renderSearchOperationItem = () => {
if (this.state.selectedKey === "0") {
- return (薪资所属月:
+ return (
{getLabel(111, "薪资所属月:")}
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={false} // 是否显示下拉按钮
diff --git a/pc4mobx/hrmSalary/pages/mySalary/payrollModal.js b/pc4mobx/hrmSalary/pages/mySalary/payrollModal.js
index bd82b91d..f65f24a2 100644
--- a/pc4mobx/hrmSalary/pages/mySalary/payrollModal.js
+++ b/pc4mobx/hrmSalary/pages/mySalary/payrollModal.js
@@ -1,9 +1,10 @@
import React from "react";
-import { WeaDialog } from "ecCom";
+import { WeaDialog, WeaLocaleProvider } from "ecCom";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
import ComputerTemplate from "../payroll/templatePreview/computerTemplate";
import "../payroll/templatePreview/index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("mySalaryStore")
@observer
@@ -19,7 +20,7 @@ export default class PayrollModal extends React.Component {
const salaryGroups = mySalaryBill.salaryGroups && toJS(mySalaryBill.salaryGroups);
return (
{
this.props.onCancel();
}}
diff --git a/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js b/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js
index 79752acc..a16f54eb 100644
--- a/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js
+++ b/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js
@@ -1,10 +1,12 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { message, Tag } from "antd";
+import { WeaLocaleProvider } from "ecCom";
import moment from "moment";
import CustomPaginationTable from "../../components/customPaginationTable";
import "../calculate/index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("payrollStore", "taxAgentStore")
@observer
export default class SalarySendList extends React.Component {
@@ -40,7 +42,7 @@ export default class SalarySendList extends React.Component {
let templateRecord = {};
templateRecord.id = record.templateId;
if (!record.templateId) {
- message.warning("请设置默认模板");
+ message.warning(getLabel(111, "请设置默认模板"));
return;
}
this.props.onEditTemplate && this.props.onEditTemplate(templateRecord);
@@ -77,9 +79,9 @@ export default class SalarySendList extends React.Component {
{
record.salaryAcctType === 1 &&
- 补发
+ {getLabel(111, "补发")}
}
- {`第${record.acctTimes}次`}
+ {`${getLabel(111, "第")}${record.acctTimes}${getLabel(111, "次")}`}
;
};
@@ -89,7 +91,7 @@ export default class SalarySendList extends React.Component {
?
(result = result.concat([
{
- title: "操作",
+ title: getLabel(111, "操作"),
key: "operate",
render: (text, record) => {
const { sendNum, sendTotal, salaryAcctType, haveBackCalc } = record;
@@ -98,15 +100,15 @@ export default class SalarySendList extends React.Component {
return (
this.handleGrant(record)}
- style={{ marginRight: 10 }}>发放
+ style={{ marginRight: 10 }}>{getLabel(111, "发放")}
{
!showGrant &&
this.handleShowDetail(record)}
- style={{ marginRight: 10 }}>查看详情
+ style={{ marginRight: 10 }}>{getLabel(111, "查看详情")}
}
{
sendNum !== sendTotal && !showGrant &&
- this.handleUpdateTemplate(record)}>更新模板
+ this.handleUpdateTemplate(record)}>{getLabel(111, "更新模板")}
}
);
@@ -116,7 +118,7 @@ export default class SalarySendList extends React.Component {
:
(result = result.concat([
{
- title: "操作",
+ title: getLabel(111, "操作"),
key: "operate",
render: (text, record) => {
const { salaryAcctType } = record;
@@ -124,7 +126,7 @@ export default class SalarySendList extends React.Component {
{
salaryAcctType === 0 &&
- this.handleShowDetail(record)}>查看详情
+ this.handleShowDetail(record)}>{getLabel(111, "查看详情")}
}
);
diff --git a/pc4mobx/hrmSalary/pages/payroll/components/backgroundUpload.js b/pc4mobx/hrmSalary/pages/payroll/components/backgroundUpload.js
index da0bcf43..992dbc2b 100644
--- a/pc4mobx/hrmSalary/pages/payroll/components/backgroundUpload.js
+++ b/pc4mobx/hrmSalary/pages/payroll/components/backgroundUpload.js
@@ -1,7 +1,9 @@
import React from "react";
import { Icon, message, Modal, Upload } from "antd";
+import { WeaLocaleProvider } from "ecCom";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
function getBase64(img, callback) {
const reader = new FileReader();
reader.addEventListener("load", () => callback(reader.result));
@@ -11,11 +13,11 @@ function getBase64(img, callback) {
function beforeUpload(file) {
const isJPG = file.type === "image/jpeg" || file.type === "image/png";
if (!isJPG) {
- message.error("只允许上传jpg、png类型的图片!");
+ message.error(getLabel(111, "只允许上传jpg、png类型的图片!"));
}
const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) {
- message.error("图片大小限制2MB!");
+ message.error(getLabel(111, "图片大小限制2MB!"));
}
return isJPG && isLt2M;
}
diff --git a/pc4mobx/hrmSalary/pages/payroll/copyModal.js b/pc4mobx/hrmSalary/pages/payroll/copyModal.js
index c8347b51..1ed29020 100644
--- a/pc4mobx/hrmSalary/pages/payroll/copyModal.js
+++ b/pc4mobx/hrmSalary/pages/payroll/copyModal.js
@@ -1,8 +1,9 @@
import React from "react";
import { notNull } from "../../util/validate";
import { Button, Col, Row } from "antd";
-import { WeaDialog, WeaError, WeaInput } from "ecCom";
+import { WeaDialog, WeaError, WeaInput, WeaLocaleProvider } from "ecCom";
+const getLabel = WeaLocaleProvider.getLabel;
export default class CopyModal extends React.Component {
constructor(props) {
super(props);
@@ -28,7 +29,7 @@ export default class CopyModal extends React.Component {
return (
{
this.props.onCancel();
@@ -36,16 +37,16 @@ export default class CopyModal extends React.Component {
buttons={[
+ }}>{getLabel(111, "保存")}
]}>
-
- 工资单名称
+
+ {getLabel(111, "工资单名称")}
+ error={getLabel(111, "请填写工资单名称")}>
{
deletePayroll([record.id]);
}
@@ -187,8 +187,8 @@ export default class Payroll extends React.Component {
if (selectedTab === 0) {
if (!this.validateStep1()) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
});
return;
}
@@ -196,8 +196,8 @@ export default class Payroll extends React.Component {
const { salaryTemplateShowSet } = payrollStore;
if (!salaryTemplateShowSet.theme) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
});
return;
}
@@ -250,11 +250,11 @@ export default class Payroll extends React.Component {
}
const topTab = [
{
- title: "工资单发放",
+ title: getLabel(111, "工资单发放"),
viewcondition: "0"
},
{
- title: "工资单模板设置",
+ title: getLabel(111, "工资单模板设置"),
viewcondition: "1"
}
];
@@ -263,7 +263,7 @@ export default class Payroll extends React.Component {
return
@@ -275,7 +275,7 @@ export default class Payroll extends React.Component {
format="YYYY-MM"
onChange={(val) => this.handleRangePickerChange("startDate", val)}
/>
-
至
+
{getLabel(111, "至")}
{
@@ -294,7 +294,7 @@ export default class Payroll extends React.Component {
showOperateBtn &&
+ }}>{getLabel(111, "新建")}
}
{
showOperateBtn &&
@@ -304,28 +304,28 @@ export default class Payroll extends React.Component {
onClick={() => {
const selectedRowKeys = toJS(templateStore.selectedRowKeys);
if (!selectedRowKeys.length) {
- message.info("未选中任何数据!");
+ message.info(getLabel(111, "未选中任何数据"));
return;
}
Modal.confirm({
- title: "信息确认",
- content: `确定要将所选的工资单模板(共${selectedRowKeys.length}条数据)删除吗?`,
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "确定要将所选的工资单模板")}(${getLabel(111, "共")}${selectedRowKeys.length}${getLabel(111, "条数据")})${getLabel(111, "删除吗")}?`,
onOk: () => {
deletePayroll(selectedRowKeys);
}
});
}}
- >批量删除工资单模板
+ >{getLabel(111, "批量删除工资单模板")}
}
{
this.state.initSelected && {
this.handleTemplateSelectChange(value);
}}/>
}
- {
this.setState({ templateSearchValue: value });
}} onSearch={(value) => {
@@ -335,17 +335,17 @@ export default class Payroll extends React.Component {
);
}
};
- const steps = ["基础设置", "正常核算工资单模板", "补发工资单模版"];
+ const steps = [getLabel(111, "基础设置"), getLabel(111, "正常核算工资单模板"), getLabel(111, "补发工资单模版")];
const nextStep = () => {
if (!this.validateStep1()) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
});
return;
}
if (templateBaseData.replenishName === templateBaseData.name) {
- message.error("工资单模板名称和补发工资单模板名称不可相同");
+ message.error(getLabel(111, "工资单模板名称和补发工资单模板名称不可相同"));
return;
}
this.setState({
@@ -362,7 +362,7 @@ export default class Payroll extends React.Component {
return (
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={false} // 是否显示下拉按钮
@@ -422,24 +422,24 @@ export default class Payroll extends React.Component {
currentStep === 0 ? [
+ }}>{getLabel(111, "下一步")}
] : currentStep === 1 ? [
,
-
,
+ }}>{getLabel(111, "上一步")},
+
,
+ }}>{getLabel(111, "预览")}
] : currentStep === 2 ? [
,
-
+ }}>{getLabel(111, "上一步")},
+
] :
[]
}
- title="新建工资单模板"
+ title={getLabel(111, "新建工资单模板")}
content={
{
@@ -468,11 +468,11 @@ export default class Payroll extends React.Component {
measure="%"
title={
{
this.handleUpdateSave();
- }}>保存
+ }}>{getLabel(111, "保存")}
] : selectedTab === 1 ? [
,
-
+ }}>{getLabel(111, "保存")},
+
] : [
+ }}>{getLabel(111, "保存")}
]
}
subItemChange={(selectedTab) => {
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
index 03ff17c6..60e7f2ff 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js
@@ -1,6 +1,6 @@
import React from "react";
import { inject, observer } from "mobx-react";
-import { WeaHelpfulTip, WeaTab } from "ecCom";
+import { WeaHelpfulTip, WeaLocaleProvider, WeaTab } from "ecCom";
import { Button, Spin } from "antd";
import { getQueryString } from "../../../util/url";
import { removePropertyCondition } from "../../../util/response";
@@ -8,6 +8,7 @@ import { getSearchs } from "../../../util";
import { getPayrollDetailList, getPayrollDetailSa, getPayrollInfo } from "../../../apis/payroll";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("payrollStore")
@observer
export default class PayrollDetail extends React.Component {
@@ -128,15 +129,15 @@ export default class PayrollDetail extends React.Component {
const { setDetailListShowSearchAd, detailListShowSearchAd, detailListConditionForm } = payrollStore;
const { salaryMonth, template, sendNum, sendTotal } = salarySendDetailBaseInfo;
const adBtn = [
- ,
- ,
-
+ ,
+ ,
+
];
return (
导出全部]}
+ searchType={["base", "advanced"]} searchsBasePlaceHolder={getLabel(111, "请输入姓名")}
+ buttons={[]}
showSearchAd={detailListShowSearchAd} setShowSearchAd={bool => setDetailListShowSearchAd(bool)}
searchsAd={getSearchs(detailListConditionForm, condition, 2)}
buttonsAd={adBtn} onSearch={this.handleSearch}
@@ -145,18 +146,18 @@ export default class PayrollDetail extends React.Component {
/>
- 薪资所属月:{salaryMonth}
+ {getLabel(111, "薪资所属月")}:{salaryMonth}
}
placement="topLeft"
/>
- 工资单模板:{template}
+ {getLabel(111, "工资单模板")}:{template}
- 已发放:{sendNum}/{sendTotal}
+ {getLabel(111, "已发放")}:{sendNum}/{sendTotal}
@@ -181,13 +182,13 @@ export const PayrollTips = (props) => {
const { fromDate, endDate } = salaryCycle;
const { fromDate: aFromDate, endDate: aEndDate } = attendCycle;
return
-
薪资周期
-
{fromDate}至{endDate}
-
税款所属期
+
{getLabel(111, "薪资周期")}
+
{fromDate}{getLabel(111, "至")}{endDate}
+
{getLabel(111, "税款所属期")}
{taxCycle}
-
考勤取值周期
-
{aFromDate}至{aEndDate}
-
福利台账月份
-
{`引用的${socialSecurityCycle}福利台账数据`}
+
{getLabel(111, "考勤取值周期")}
+
{aFromDate}{getLabel(111, "至")}{aEndDate}
+
{getLabel(111, "福利台账月份")}
+
{`${getLabel(111, "引用")}${socialSecurityCycle}${getLabel(111, "的福利台账数据")}`}
;
};
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index 71327ee1..5ca7c853 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -1,7 +1,7 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
-import { WeaDropdown, WeaHelpfulTip, WeaTab, WeaTop } from "ecCom";
+import { WeaDropdown, WeaHelpfulTip, WeaLocaleProvider, WeaTab, WeaTop } from "ecCom";
import { Button, Dropdown, Menu, message } from "antd";
import "./index.less";
import { getQueryString } from "../../../util/url";
@@ -10,7 +10,7 @@ import CustomPaginationTable from "../../../components/customPaginationTable";
import PayrollPartTable from "./payrollPartTable";
const { ButtonSelect } = WeaDropdown;
-
+const getLabel = WeaLocaleProvider.getLabel;
@inject("payrollStore")
@observer
export default class PayrollGrant extends React.Component {
@@ -22,7 +22,7 @@ export default class PayrollGrant extends React.Component {
selectedKey: "0",
payrollPartModalParams: {
visible: false,
- title: "工资单发放",
+ title: getLabel(111, "工资单发放"),
grantType: "",
salarySendId: ""
}
@@ -98,7 +98,7 @@ export default class PayrollGrant extends React.Component {
break;
case "SELECT":
if (selectedRowKeys.length === 0) {
- message.warning("未选择发放条目");
+ message.warning(getLabel(111, "未选择发放条目"));
return;
}
this.fetchGrantPayRoll({
@@ -134,7 +134,7 @@ export default class PayrollGrant extends React.Component {
break;
case "recallSelected":
if (selectedRowKeys.length === 0) {
- message.warning("未选择撤回条目");
+ message.warning(getLabel(111, "未选择撤回条目"));
return;
}
this.fetchWithdrawPayroll({
@@ -147,7 +147,7 @@ export default class PayrollGrant extends React.Component {
payrollPartModalParams: {
...payrollPartModalParams,
visible: true,
- title: "工资单撤回",
+ title: getLabel(111, "工资单撤回"),
salarySendId: currentId,
grantType: "withdraw"
}
@@ -221,17 +221,17 @@ export default class PayrollGrant extends React.Component {
return [
...toJS(columns),
{
- title: "操作",
+ title: getLabel(111, "操作"),
key: "",
dataIndex: "",
display: true,
render: (text, record) => {
- if (record.sendStatus === "已发放" && !notShowGrantOrWithdraw) {
+ if (record.sendStatus === getLabel(111, "已发放") && !notShowGrantOrWithdraw) {
return (
this.handleWithdraw({ ids: [record.id] })}>
- 撤回
+ {getLabel(111, "撤回")}
);
} else if (!notShowGrantOrWithdraw) {
@@ -239,7 +239,7 @@ export default class PayrollGrant extends React.Component {
this.handleGrant({ ids: [record.id] })}>
- 发放
+ {getLabel(111, "发放")}
);
}
@@ -267,24 +267,24 @@ export default class PayrollGrant extends React.Component {
};
const menu = (
);
let btnDom = [
- 更多
+ {getLabel(111, "更多")}
];
if (selectedKey === "0" && !notShowGrantOrWithdraw) {
btnDom = [
this.sendPayroll(key)}
/>,
@@ -294,11 +294,11 @@ export default class PayrollGrant extends React.Component {
btnDom = [
this.withdrawalPayroll(key)}
/>,
@@ -320,7 +320,7 @@ export default class PayrollGrant extends React.Component {
const { selectedRowKeys, currentId, selectedKey } = this.state;
const { payrollStore: { exportPayroll } } = this.props;
if (selectedRowKeys.length === 0) {
- message.warning("未选择条目");
+ message.warning(getLabel(111, "未选择条目"));
return;
}
exportPayroll({
@@ -374,7 +374,7 @@ export default class PayrollGrant extends React.Component {
payrollPartModalParams: {
...payrollPartModalParams,
visible: false,
- title: "工资单发放",
+ title: getLabel(111, "工资单发放"),
grantType: "",
salarySendId: ""
}
@@ -401,29 +401,29 @@ export default class PayrollGrant extends React.Component {
const adBtn = [
// 高级搜索内部按钮
,
,
];
const topTab = [
{
- title: "未发送",
+ title: getLabel(111, "未发送"),
viewcondition: "0"
},
{
- title: "已发送",
+ title: getLabel(111, "已发送"),
viewcondition: "1"
}
];
return (
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={true} // 是否显示下拉按钮
@@ -443,7 +443,7 @@ export default class PayrollGrant extends React.Component {
})
}
searchType={["base", "advanced"]} // base:基础搜索框 advanced:显示高级搜索按钮
- searchsBasePlaceHolder="请输入姓名"
+ searchsBasePlaceHolder={getLabel(111, "请输入姓名")}
showSearchAd={grantListShowSearchAd} // 是否展开高级搜索面板
setShowSearchAd={bool => setGrantListShowSearchAd(bool)} //高级搜索面板受控
searchsAd={getSearchs(grantListConditionForm, toJS(grantListCondition), 2)} // 高级搜索内部数据
@@ -455,7 +455,7 @@ export default class PayrollGrant extends React.Component {
- 薪资所属月:{salarySendDetailBaseInfo.salaryMonth}
+ {getLabel(111, "薪资所属月")}:{salarySendDetailBaseInfo.salaryMonth}
- 工资单模板:{salarySendDetailBaseInfo.template}
+ {getLabel(111, "工资单模板")}:{salarySendDetailBaseInfo.template}
- 已发放:{salarySendDetailBaseInfo.sendNum}/
{salarySendDetailBaseInfo.sendTotal}
@@ -515,20 +515,20 @@ export const TitleHelp = (props) => {
const { salaryCycle = {}, attendCycle = {} } = salarySobCycle;
return
-
薪资周期
-
{salaryCycle.fromDate}至{salaryCycle.endDate}
+
{getLabel(111, "薪资周期")}
+
{salaryCycle.fromDate}{getLabel(111, "至")}{salaryCycle.endDate}
-
税款所属期
+
{getLabel(111, "税款所属期")}
{salarySobCycle.taxCycle}
-
考勤取值周期
-
{attendCycle.fromDate}至{attendCycle.endDate}
+
{getLabel(111, "考勤取值周期")}
+
{attendCycle.fromDate}{getLabel(111, "至")}{attendCycle.endDate}
-
福利台账月份
-
{`引用${salarySobCycle.socialSecurityCycle}的福利台账数据`}
+
{getLabel(111, "福利台账月份")}
+
{`${getLabel(111, "引用")}${salarySobCycle.socialSecurityCycle}${getLabel(111, "的福利台账数据")}`}
;
};
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartModal.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartModal.js
index 766fc73f..81a2a595 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartModal.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/payrollPartModal.js
@@ -6,12 +6,14 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaBrowser, WeaDialog, WeaFormItem, WeaSearchGroup, WeaSelect } from "ecCom";
+import { WeaBrowser, WeaDialog, WeaFormItem, WeaLocaleProvider, WeaSearchGroup, WeaSelect } from "ecCom";
import { Button, message, Modal } from "antd";
import { commonEnumList } from "../../../apis/ruleconfig";
import { sendRangeSave } from "../../../apis/payroll";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
@inject("taxAgentStore")
@observer
class PayrollPartModal extends Component {
@@ -24,7 +26,7 @@ class PayrollPartModal extends Component {
{
viewAttr: 3,
key: "include",
- label: "对象",
+ label: getLabel(111, "对象"),
targetType: "1",
targetTypeIds: "",
targetTypeIdsNames: ""
@@ -32,7 +34,7 @@ class PayrollPartModal extends Component {
{
viewAttr: 2,
key: "exclude",
- label: "对象中排除",
+ label: getLabel(111, "对象中排除"),
targetType: "1",
targetTypeIds: "",
targetTypeIdsNames: ""
@@ -79,8 +81,8 @@ class PayrollPartModal extends Component {
_.isEmpty(_.find(personalAddItem, item => item.viewAttr === 3).targetTypeIds)
) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
});
return;
}
@@ -116,11 +118,11 @@ class PayrollPartModal extends Component {
sendRangeSave(payload).then(({ status, errormsg }) => {
this.setState({ loading: false });
if (status) {
- message.success("保存成功");
+ message.success(getLabel(111, "保存成功"));
this.handleReset();
onCancel();
} else {
- message.error(errormsg || "保存失败");
+ message.error(errormsg || getLabel(111, "保存失败"));
}
}).catch(() => this.setState({ loading: false }));
};
@@ -170,16 +172,16 @@ class PayrollPartModal extends Component {
} else {
switch (targetType) {
case "1":
- browserType = { ...browserType, type: 17, title: "人员选择" };
+ browserType = { ...browserType, type: 17, title: getLabel(111, "人员选择") };
break;
case "2":
- browserType = { ...browserType, type: 57, title: "部门选择" };
+ browserType = { ...browserType, type: 57, title: getLabel(111, "部门选择") };
break;
case "3":
- browserType = { ...browserType, type: 164, title: "分部选择" };
+ browserType = { ...browserType, type: 164, title: getLabel(111, "分部选择") };
break;
case "4":
- browserType = { ...browserType, type: 278, title: "岗位选择" };
+ browserType = { ...browserType, type: 278, title: getLabel(111, "岗位选择") };
break;
default:
break;
@@ -213,7 +215,7 @@ class PayrollPartModal extends Component {
{
viewAttr: 3,
key: "include",
- label: "对象",
+ label: getLabel(111, "对象"),
targetType: "1",
targetTypeIds: "",
targetTypeIdsNames: ""
@@ -221,7 +223,7 @@ class PayrollPartModal extends Component {
{
viewAttr: 2,
key: "exclude",
- label: "对象中排除",
+ label: getLabel(111, "对象中排除"),
targetType: "1",
targetTypeIds: "",
targetTypeIdsNames: ""
@@ -234,14 +236,14 @@ class PayrollPartModal extends Component {
const { onCancel, visible } = this.props;
const { targetTypeList, personalAddItem, loading } = this.state;
const buttons = [
- ,
-
+ ,
+
];
return (
{
sendRangeDelete(selectedRowKeys).then(({ status, errormsg }) => {
if (status) {
- message.success("刪除成功");
+ message.success(getLabel(111, "刪除成功"));
this.setState({ selectedRowKeys: [] }, () => {
this.sendRangeList({
grantType, salarySendId,
@@ -84,7 +85,7 @@ class PayrollPartTable extends Component {
});
});
} else {
- message.error(errormsg || "刪除失败");
+ message.error(errormsg || getLabel(111, "刪除失败"));
}
});
},
@@ -96,12 +97,12 @@ class PayrollPartTable extends Component {
const { grantType, salarySendId, onWithdraw, onGrant } = this.props;
const { selectedRowKeys } = this.state;
if (_.isEmpty(selectedRowKeys)) {
- message.warning("您没有需要处理的对象!");
+ message.warning(getLabel(111, "您没有需要处理的对象!"));
return;
}
Modal.confirm({
- title: "信息确认",
- content: `您共选择${selectedRowKeys.length}个对象,确定要${grantType === "grant" ? "发放" : "撤回"}吗?`,
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "您共选择")}${selectedRowKeys.length}${getLabel(111, "个对象")},${getLabel(111, "确定要")}${grantType === "grant" ? getLabel(111, "发放") : getLabel(111, "撤回")}?`,
onCancel: () => {
},
onOk: () => {
@@ -119,7 +120,7 @@ class PayrollPartTable extends Component {
const { onCancel, visible, grantType, salarySendId, title } = this.props;
const pagination = {
...pageInfo,
- showTotal: total => `共 ${total} 条`,
+ showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
showQuickJumper: true,
pageSizeOptions: ["10", "20", "50", "100"],
onChange: current => {
@@ -157,7 +158,7 @@ class PayrollPartTable extends Component {
searchValue={searchValue}
onChange={(searchValue) => this.setState({ searchValue })}
onSearch={() => this.sendRangeList({ grantType, salarySendId })}
- placeholder="请输入方案名称"
+ placeholder={getLabel(111, "请输入方案名称")}
/>
+
@@ -90,7 +91,7 @@ export default class BaseInformForm extends React.Component {
}
@@ -101,7 +102,7 @@ export default class BaseInformForm extends React.Component {
/>
@@ -112,12 +113,12 @@ export default class BaseInformForm extends React.Component {
/>
@@ -140,7 +141,7 @@ export default class BaseInformForm extends React.Component {
}
diff --git a/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemModal.js b/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemModal.js
index 1eea09a3..a15392b2 100644
--- a/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemModal.js
+++ b/pc4mobx/hrmSalary/pages/payroll/stepForm/salaryItemModal.js
@@ -5,15 +5,17 @@
* Date: 2023/2/2
*/
import React, { Component } from "react";
-import { WeaDialog } from "ecCom";
+import { WeaDialog, WeaLocaleProvider } from "ecCom";
import { Button } from "antd";
+const getLabel = WeaLocaleProvider.getLabel;
+
class SalaryItemModal extends Component {
render() {
const { visible, title, onCancel, onConfirm } = this.props;
const buttons = [
- ,
-
+ ,
+
];
return (
{
Modal.confirm({
- title: "信息确认",
- content: "确认删除",
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "确认删除吗?"),
onOk: () => {
let resultSalaryItemSet = [...this.state.dataList];
resultSalaryItemSet.map((sourceGroup, index) => {
@@ -103,7 +104,7 @@ class SalaryItemSettings extends Component {
});
};
handleOpenModal = (record, title, isItem) => {
- if (title === "分类名称编辑") {
+ if (title === getLabel(111, "分类名称编辑")) {
const { modalPayload } = this.state;
this.setState({
modalPayload: {
@@ -226,11 +227,11 @@ class SalaryItemSettings extends Component {
{item.groupName}
- this.handleOpenModal(item, "分类名称编辑")}/>
+ this.handleOpenModal(item, getLabel(111, "分类名称编辑"))}/>
this.handleDeleteClick(item)}/>
- this.handleOpenModal(item, "请选择薪资项目", true)}/>
+ this.handleOpenModal(item, getLabel(111, "请选择薪资项目"), true)}/>
{
@@ -255,7 +256,7 @@ class SalaryItemSettings extends Component {
}}
className="wea-sortable-salary-item"
/> :
-
暂无数据
+
{getLabel(111, "暂无数据")}
}
;
@@ -265,8 +266,8 @@ class SalaryItemSettings extends Component {
{
- modalPayload.title === "分类名称编辑" ?
-
+ modalPayload.title === getLabel(111, "分类名称编辑") ?
+
:
-
+
@@ -67,17 +67,17 @@ export default class ShowSettingForm extends React.Component {
this.handleChange({ theme: value });
}}/>
- 插入变量:
+ {getLabel(111, "插入变量")}:
{
this.handleThemeNameCllck("${companyName}");
- }} className="themeFormalStr" style={{ marginRight: "10px" }}>公司名称
+ }} className="themeFormalStr" style={{ marginRight: "10px" }}>{getLabel(111, "公司名称")}
{
this.handleThemeNameCllck("${salaryMonth}");
- }} className="themeFormalStr">薪资所属月
+ }} className="themeFormalStr">{getLabel(111, "薪资所属月")}
@@ -86,7 +86,7 @@ export default class ShowSettingForm extends React.Component {
}}/>
@@ -95,19 +95,19 @@ export default class ShowSettingForm extends React.Component {
}}/>
{
this.handleChange({ textContentPosition: e.target.value });
}}>
- 薪资项目前
- 薪资项目后
+ {getLabel(111, "薪资项目前")}
+ {getLabel(111, "薪资项目后")}
@@ -116,7 +116,7 @@ export default class ShowSettingForm extends React.Component {
}}/>
@@ -130,9 +130,9 @@ export default class ShowSettingForm extends React.Component {
- 薪资项目设置
+ {getLabel(111, "薪资项目设置")}
this.salaryItemSettingsRef.handleOpenModal(toJS(templateBaseData).salarySob, "添加分类")}/>
+ onClick={() => this.salaryItemSettingsRef.handleOpenModal(toJS(templateBaseData).salarySob, getLabel(111, "添加分类"))}/>
}
items={[]} needTigger showGroup
diff --git a/pc4mobx/hrmSalary/pages/payroll/stepForm/tmplateSettingForm.js b/pc4mobx/hrmSalary/pages/payroll/stepForm/tmplateSettingForm.js
index ad0fabfe..dc7006eb 100644
--- a/pc4mobx/hrmSalary/pages/payroll/stepForm/tmplateSettingForm.js
+++ b/pc4mobx/hrmSalary/pages/payroll/stepForm/tmplateSettingForm.js
@@ -1,11 +1,11 @@
import React from "react";
-import { WeaButtonIcon, WeaSearchGroup } from "ecCom";
+import { WeaButtonIcon, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
import "./index.less";
import SalaryItemSettings from "./salaryItemSettings";
-
+const getLabel = WeaLocaleProvider.getLabel;
@inject("payrollStore")
@observer
export default class TemplateSettingForm extends React.Component {
@@ -22,9 +22,9 @@ export default class TemplateSettingForm extends React.Component {
- 薪资项目设置
+ {getLabel(111, "薪资项目设置")}
this.salaryItemSettingsRef.handleOpenModal(toJS(templateBaseData).salarySob, "添加分类")}/>
+ onClick={() => this.salaryItemSettingsRef.handleOpenModal(toJS(templateBaseData).salarySob, getLabel(111, "添加分类"))}/>
}
items={[]} needTigger showGroup>
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/allWithoutPay.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/allWithoutPay.js
index c9d85ff8..ab212764 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/allWithoutPay.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/allWithoutPay.js
@@ -1,41 +1,44 @@
import React, { Component } from "react";
+import { WeaLocaleProvider } from "ecCom";
import * as API from "../../../apis/payrollFiles";
import { Menu, message, Modal } from "antd";
import "../index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
class AllWithoutPay extends Component {
handleClick = ({ key }) => {
const { selectedRowKeys = [], refreshList } = this.props;
if (key === "batchWithoutpay") {
if (selectedRowKeys.length === 0) {
- message.warning("未选择条目");
+ message.warning(getLabel(111, "未选择条目"));
return;
}
API.gotoStop(selectedRowKeys).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
refreshList();
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
- }else{
+ } else {
const { pageInfo } = this.props;
if (pageInfo.total === 0) {
- message.warning("您没有需要处理的待停薪人员!");
+ message.warning(getLabel(111, "您没有需要处理的待停薪人员!"));
return;
}
Modal.warning({
- title: "信息确认",
- content: `确定要将所有待停薪人员(共${pageInfo.total}条数据)设为停薪人员吗?`,
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "确定要将所有待停薪人员")}(${getLabel(111, "共")}${pageInfo.total}${getLabel(111, "条数据")})${getLabel(111, "设为停薪人员吗")}?`,
onOk: () => {
API.allGotoStop({}).then(({ status, data, errormsg }) => {
if (status) {
- const { msg }= data;
- message.info(msg || "操作成功!");
+ const { msg } = data;
+ message.info(msg || getLabel(111, "操作成功"));
refreshList();
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
}
@@ -46,8 +49,8 @@ class AllWithoutPay extends Component {
render() {
return (
);
}
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/batchSuspendsPay.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/batchSuspendsPay.js
index 6e524fba..3edd91d5 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/batchSuspendsPay.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/batchSuspendsPay.js
@@ -1,21 +1,24 @@
import React, { Component } from "react";
import { Menu, message } from "antd";
+import { WeaLocaleProvider } from "ecCom";
import * as API from "../../../apis/payrollFiles";
import "../index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
class BatchSuspendpay extends Component {
handleClick = ({ key }) => {
const { selectedRowKeys, refreshList } = this.props;
if (selectedRowKeys.length === 0) {
- message.warning("未选择条目");
+ message.warning(getLabel(111, "未选择条目"));
return;
}
API.cancelStop(selectedRowKeys).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
refreshList();
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -23,7 +26,7 @@ class BatchSuspendpay extends Component {
render() {
return (
);
}
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/exportMenu.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/exportMenu.js
index 4845c1b4..bf5dc80b 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/exportMenu.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/exportMenu.js
@@ -1,7 +1,10 @@
import React, { Component } from "react";
import { Menu, message } from "antd";
+import { WeaLocaleProvider } from "ecCom";
import "../index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
class ExportMenu extends Component {
componentDidMount() {
}
@@ -37,7 +40,7 @@ class ExportMenu extends Component {
handleExportSelect = () => {
const { selectedRowKeys } = this.props;
if (selectedRowKeys.length === 0) {
- message.warning("未选择条目");
+ message.warning(getLabel(111, "未选择条目"));
return;
}
const url = `${window.location.origin}/api/bs/hrmsalary/salaryArchive/exportList?ids=${selectedRowKeys.join(",")}`;
@@ -47,8 +50,8 @@ class ExportMenu extends Component {
render() {
return (
);
}
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/importMenu.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/importMenu.js
index 74dd4b0e..bd23c3d9 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/importMenu.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/importMenu.js
@@ -1,9 +1,12 @@
import React, { Component } from "react";
+import { WeaLocaleProvider } from "ecCom";
import ImportModal from "../../../components/importModal";
import * as API from "../../../apis/payrollFiles";
import { Menu, Modal } from "antd";
import "../index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
class ImportMenu extends Component {
constructor(props) {
super(props);
@@ -26,7 +29,7 @@ class ImportMenu extends Component {
params.listType = "FIXED";
} else {
params.listType = this.state.importParams.importType;
- params.importType = '';
+ params.importType = "";
}
API.salaryArchivePreview(params).then(({ status, data }) => {
if (status) {
@@ -54,8 +57,8 @@ class ImportMenu extends Component {
const { key } = e;
if (key === "init") {
Modal.confirm({
- title: "信息确认",
- content: `若导入表格中的人员已存在在薪资档案中,初始化导入会将档案中该人员的数据清除再导入,点击确定继续导入`,
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, `若导入表格中的人员已存在在薪资档案中,初始化导入会将档案中该人员的数据清除再导入,点击确定继续导入`),
onOk: () => {
this.setState({
importParams: {
@@ -96,7 +99,7 @@ class ImportMenu extends Component {
params.importType = this.state.importParams.importType;
params.listType = "FIXED";
} else {
- params.importType = '';
+ params.importType = "";
params.listType = this.state.importParams.importType;
}
API.importSalaryArchive(params).then(({ status, data }) => {
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/index.js
index 49b2c419..6a28cbc9 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/index.js
@@ -14,6 +14,7 @@ import {
WeaFormItem,
WeaHelpfulTip,
WeaInput,
+ WeaLocaleProvider,
WeaPopoverHrm,
WeaSearchGroup,
WeaSelect,
@@ -32,6 +33,7 @@ import SalaryFileViewSlide from "../salaryFile/saralyFileViewSlide";
import ChangeSalaryModal from "../salaryFile/changeSalaryModal";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
const WeaTableComx = WeaTableNew.WeaTable;
@inject("payrollFilesStore", "taxAgentStore", "salaryFileStore")
@@ -267,21 +269,21 @@ class Index extends Component {
allGotoFixed = () => {
const { pageInfo } = this.state;
if (pageInfo.total === 0) {
- message.warning("您没有需要处理的待定薪人员!");
+ message.warning(getLabel(111, "您没有需要处理的待定薪人员!"));
return;
}
Modal.warning({
- title: "信息确认",
- content: `确定要将所有待定薪人员(共${pageInfo.total}条数据)设为发薪人员吗?`,
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "确定要将所有待定薪人员")}(${getLabel(111, "共")}${pageInfo.total}${getLabel(111, "条数据")})${getLabel(111, "设为发薪人员吗")}?`,
onOk: () => {
API.allGotoFixed({}).then(({ status, data, errormsg }) => {
if (status) {
const { msg } = data;
- message.info(msg || "操作成功!");
+ message.info(msg || getLabel(111, "操作成功"));
this.queryTabTotal();
this.query();
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
}
@@ -303,11 +305,11 @@ class Index extends Component {
cancelStop = (id) => {
API.cancelStop([id]).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
this.queryTabTotal();
this.query();
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -315,7 +317,7 @@ class Index extends Component {
deletePendingTodo = (params) => {
API.deletePendingTodo(params).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
this.setState({
selectedRowKeys: []
}, () => {
@@ -323,7 +325,7 @@ class Index extends Component {
this.query();
});
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -331,7 +333,7 @@ class Index extends Component {
deleteSuspendTodo = (params) => {
API.deleteSuspendTodo(params).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
this.setState({
selectedRowKeys: []
}, () => {
@@ -339,14 +341,14 @@ class Index extends Component {
this.queryTabTotal();
});
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
handleClick = ({ key }) => {
const { selectedRowKeys } = this.state;
if (selectedRowKeys.length === 0) {
- message.warning("请选择表格数据");
+ message.warning(getLabel(111, "请选择表格数据"));
return;
}
if (key === "batchDelete") {
@@ -355,7 +357,7 @@ class Index extends Component {
API.gotoFixed(selectedRowKeys).then(({ status, data, errormsg }) => {
if (status) {
if (data.type === "success") {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
this.setState({
selectedRowKeys: []
}, () => {
@@ -366,7 +368,7 @@ class Index extends Component {
message.info(data.msg);
}
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
}
@@ -378,24 +380,24 @@ class Index extends Component {
return [
,
+ }}>{getLabel(111, "导入")},
}>
-
,
- ,
+ ,
- 批量设为发薪员工
- 批量删除待办
+ {getLabel(111, "批量设为发薪员工")}
+ {getLabel(111, "批量删除待办")}
}
>
-
@@ -416,14 +418,14 @@ class Index extends Component {
this.setState({ selectedRowKeys: [] });
}}/>
}>
-
,
}>
-
@@ -442,7 +444,7 @@ class Index extends Component {
}}
/>
}>
-
@@ -450,17 +452,17 @@ class Index extends Component {
,
+ }}>{getLabel(111, "批量删除待办")},
,
+ }}>{getLabel(111, "导入")},
}>
-
@@ -478,14 +480,14 @@ class Index extends Component {
}}
/>
}>
-
,
}>
-
@@ -526,20 +528,20 @@ class Index extends Component {
//设为定薪员工
API.gotoFixed([id]).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
this.query();
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
} else if (key === "stopSalary") {
//停薪
API.gotoStop([id]).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
this.query();
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
} else if (key === "deletePendingTodo") {
@@ -560,14 +562,14 @@ class Index extends Component {
arrList.push();
+ }}>{getLabel(111, "发起调薪")});
}
if (showOperateBtn && selectedKey === "fixed") {
arrList.push();
+ }}>{getLabel(111, "调薪")});
}
- selectedKey !== "stop" && arrList.push();
+ selectedKey !== "stop" && arrList.push();
return arrList;
};
//切换tab
@@ -597,8 +599,8 @@ class Index extends Component {
const { salaryFileStore: { adjustSalaryItems, detailForm } } = this.props;
if ((selectedKey === "pending" && _.isEmpty(paysetParams.payStartDate)) || (selectedKey === "suspend" && _.isEmpty(paysetParams.payEndDate))) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
});
return;
}
@@ -613,10 +615,10 @@ class Index extends Component {
};
API.savePaySet(payload).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功!");
+ message.success(getLabel(111, "操作成功"));
this.query();
} else {
- message.error(errormsg || "保存失败!");
+ message.error(errormsg || getLabel(111, "保存失败"));
}
});
};
@@ -624,9 +626,9 @@ class Index extends Component {
handleSetpay = (params) => {
const { type, date } = params;
const { paysetParams } = this.state;
- if (type === "起始发薪日期") {
+ if (type === getLabel(111, "起始发薪日期")) {
this.setState({ paysetParams: { ...paysetParams, payStartDate: date } });
- } else if (type === "最后发薪日期") {
+ } else if (type === getLabel(111, "最后发薪日期")) {
this.setState({ paysetParams: { ...paysetParams, payEndDate: date } });
}
};
@@ -662,16 +664,16 @@ class Index extends Component {
const { payrollFilesStore: { tableStore } } = this.props;
const renderSearch = () => {
const searchItems = [
- { com: this.Input("姓名", "username") },
- { com: this.Browser("分部", "subcompanyIds") },
- { com: this.Browser("部门", "departmentIds") },
- { com: this.Browser("岗位", "positionIds") },
- { com: this.Select("人员状态", "userstatus") },
- // { com: this.Select("档案状态", "archiveStatus") },
- { com: this.Select("个税扣缴义务人", "taxAgentId") },
- { com: this.Input("工号", "workcode") }
+ { com: this.Input(getLabel(111, "姓名"), "username") },
+ { com: this.Browser(getLabel(111, "分部"), "subcompanyIds") },
+ { com: this.Browser(getLabel(111, "部门"), "departmentIds") },
+ { com: this.Browser(getLabel(111, "岗位"), "positionIds") },
+ { com: this.Select(getLabel(111, "人员状态"), "userstatus") },
+ // { com: this.Select(getLabel(111, "档案状态"), "archiveStatus") },
+ { com: this.Select(getLabel(111, "个税扣缴义务人"), "taxAgentId") },
+ { com: this.Input(getLabel(111, "工号"), "workcode") }
];
- return ;
+ return ;
};
const adBtn = [
// 高级搜索内部按钮
@@ -684,7 +686,7 @@ class Index extends Component {
pageSize: 10
}
}, () => this.query());
- }}> 搜索 ,
+ }}> {getLabel(111, "搜索")} ,
,
-
+ })}> {getLabel(111, "重置")} ,
+
];
const rightMenu = [
{
key: "BTN_COLUMN",
icon: ,
- content: "显示列定制",
+ content: getLabel(111, "显示列定制"),
onClick: () => {
tableStore.setColSetVisible(true);
tableStore.tableColSet(true);
@@ -711,7 +713,7 @@ class Index extends Component {
return (
}
+ title={getLabel(111, "薪资档案")} icon={
}
iconBgcolor="#F14A2D" showDropIcon={true}
dropMenuDatas={rightMenu}
>
@@ -741,7 +743,7 @@ class Index extends Component {
this.query();
});
}} // 点搜索按钮时的回调this.handleSearch()
- searchsBasePlaceHolder={"请输入姓名"}
+ searchsBasePlaceHolder={getLabel(111, "请输入姓名")}
onSearchChange={(v) => this.setState({
searchItemsValue: {
...this.state.searchItemsValue,
@@ -790,7 +792,7 @@ class Index extends Component {
direction="right"
title={
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/index.js b/pc4mobx/hrmSalary/pages/ruleConfig/index.js
index 3d3ac81f..53894d3a 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/index.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/index.js
@@ -5,13 +5,15 @@
* Date: 2022-09-19 18:15:32
*/
import React, { Component } from "react";
-import { WeaFormItem, WeaNewScroll, WeaSearchGroup, WeaSelect, WeaTop } from "ecCom";
+import { WeaFormItem, WeaLocaleProvider, WeaNewScroll, WeaSearchGroup, WeaSelect, WeaTop } from "ecCom";
import { CheckBox } from "../appConfig";
import { Button, message, Modal } from "antd";
import * as API from "../../apis/ruleconfig";
import "./index.less";
import ProgressModal from "../../components/progressModal";
+const getLabel = WeaLocaleProvider.getLabel;
+
class Index extends Component {
constructor(props) {
super(props);
@@ -52,7 +54,7 @@ class Index extends Component {
items: [
{
com: Select({
- label: "排序字段",
+ label: getLabel(111, "排序字段"),
onChange: this.handleChane,
value: sysOrderRule.data.orderRule,
options: orderOptions
@@ -60,7 +62,7 @@ class Index extends Component {
},
{
com: Select({
- label: "正序/倒序",
+ label: getLabel(111, "正序/倒序"),
onChange: this.handleChane,
value: sysOrderRule.data.ascOrDesc,
options: ascOptions
@@ -70,7 +72,7 @@ class Index extends Component {
importItems: [
{
com: Select({
- label: "人员字段",
+ label: getLabel(111, "人员字段"),
onChange: this.handleChane,
value: sysConfCodeRule.data,
options: employeeOptions
@@ -80,18 +82,18 @@ class Index extends Component {
enctryItems: queryAppsetting.data.showEncryptOperationButton === "true" ? [
{
com: CheckBox({
- label: "加密设置",
+ label: getLabel(111, "加密设置"),
value: queryAppsetting.data.isOpenEncrypt,
- onChange: (data) => this.handleChane({ type: "加密设置", selected: data })
+ onChange: (data) => this.handleChane({ type: getLabel(111, "加密设置"), selected: data })
})
}
] : [],
declareItems: [
{
com: CheckBox({
- label: "个税申报",
+ label: getLabel(111, "个税申报"),
value: queryAppsetting.data.isOpenTaxDeclaration,
- onChange: (data) => this.handleChane({ type: "个税申报", selected: data })
+ onChange: (data) => this.handleChane({ type: getLabel(111, "个税申报"), selected: data })
})
}
],
@@ -138,8 +140,8 @@ class Index extends Component {
if (type === "ORDER") {
if (_.isEmpty(saveParams.orderRule) || _.isEmpty(saveParams.ascOrDesc)) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
});
return;
}
@@ -147,17 +149,17 @@ class Index extends Component {
API.updateOrderRule(_.pick(saveParams, ["orderRule", "ascOrDesc"])).then(({ status, errormsg }) => {
this.setState({ loading: { ...this.state.loading, order: false } });
if (status) {
- message.success("保存成功!");
+ message.success(getLabel(111, "保存成功"));
let sysSetting = this.getSysSetting();
} else {
- message.error(errormsg || "保存失败!");
+ message.error(errormsg || getLabel(111, "保存失败"));
}
});
} else if (type === "EMPLOYEE") {
if (_.isEmpty(saveParams.rule)) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "必要信息不完整,红色*为必填项!")
});
return;
}
@@ -165,16 +167,16 @@ class Index extends Component {
API.saveMatchEmployeeModeRule(_.pick(saveParams, ["rule"])).then(({ status, errormsg }) => {
this.setState({ loading: { ...this.state.loading, employee: false } });
if (status) {
- message.success("保存成功!");
+ message.success(getLabel(111, "保存成功"));
let sysSetting = this.getSysSetting();
} else {
- message.error(errormsg || "保存失败!");
+ message.error(errormsg || getLabel(111, "保存失败"));
}
});
} else if (type === "ENCRYTION") {
Modal.confirm({
- title: "信息确认",
- content: "开启/关闭加密前请做好数据库备份!!!逆向解密会花费几分钟时间,请耐心等待!!!",
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "开启/关闭加密前请做好数据库备份!!!逆向解密会花费几分钟时间,请耐心等待!!!"),
onOk: () => {
this.setState({ loading: { ...this.state.loading, encry: true } });
API.saveEncryptSetting({ isOpenEncrypt: saveParams.enctry }).then(({ data, status, errormsg }) => {
@@ -182,7 +184,7 @@ class Index extends Component {
if (status) {
const { isSuccess, progressId, msg } = data;
if (!isSuccess) {
- message.error(errormsg || msg || "保存失败!");
+ message.error(errormsg || msg || getLabel(111, "保存失败"));
return;
}
this.setState({
@@ -205,7 +207,7 @@ class Index extends Component {
progressVisible: false
});
});
- message.success("保存成功");
+ message.success(getLabel(111, "保存成功"));
} else if (progress_statue === "in_progress" && this.timer) {
if (this.state.progress >= 90) {
this.setState({
@@ -227,7 +229,7 @@ class Index extends Component {
progressVisible: false
});
});
- message.error(errormsg || "保存失败!");
+ message.error(errormsg || getLabel(111, "保存失败"));
}
});
}, 1000);
@@ -243,10 +245,10 @@ class Index extends Component {
API.operateTaxDeclarationFunction(_.pick(saveParams, ["operateTaxDeclaration"])).then(({ status, errormsg }) => {
this.setState({ loading: { ...this.state.loading, declare: false } });
if (status) {
- message.success("保存成功!");
+ message.success(getLabel(111, "保存成功"));
let sysSetting = this.getSysSetting();
} else {
- message.error(errormsg || "保存失败!");
+ message.error(errormsg || getLabel(111, "保存失败"));
}
});
}
@@ -254,23 +256,23 @@ class Index extends Component {
handleChane = (data) => {
const { type, selected } = data;
- if (type === "排序字段") {
+ if (type === getLabel(111, "排序字段")) {
this.setState({
saveParams: { ...this.state.saveParams, orderRule: selected }
});
- } else if (type === "正序/倒序") {
+ } else if (type === getLabel(111, "正序/倒序")) {
this.setState({
saveParams: { ...this.state.saveParams, ascOrDesc: selected }
});
- } else if (type === "人员字段") {
+ } else if (type === getLabel(111, "人员字段")) {
this.setState({
saveParams: { ...this.state.saveParams, rule: selected }
});
- } else if (type === "加密设置") {
+ } else if (type === getLabel(111, "加密设置")) {
this.setState({
saveParams: { ...this.state.saveParams, enctry: selected }
});
- } else if (type === "个税申报") {
+ } else if (type === getLabel(111, "个税申报")) {
this.setState({
saveParams: { ...this.state.saveParams, operateTaxDeclaration: selected }
});
@@ -282,7 +284,7 @@ class Index extends Component {
return (
规则配置}
+ title={{getLabel(111, "规则配置")}}
icon={}
iconBgcolor="#F14A2D"
buttons={[]}
@@ -291,16 +293,17 @@ class Index extends Component {
- 排序规则
-
+ {getLabel(111, "排序规则")}
+
} showGroup center items={items}/>
- 人员校验规则
+ {getLabel(111, "人员校验规则")}
+ loading={loading.employee}>{getLabel(111, "保存")}
} showGroup center items={importItems}/>
{
@@ -308,24 +311,24 @@ class Index extends Component {
- 加密规则
+ {getLabel(111, "加密规则")}
+ loading={loading.encry}>{getLabel(111, "保存")}
} showGroup center items={enctryItems}/>
}
- 报税规则
+ {getLabel(111, "报税规则")}
+ loading={loading.declare}>{getLabel(111, "保存")}
} showGroup center items={declareItems}/>
{
this.state.progressVisible &&
{
this.setState({ progressVisible: false, progress: 0 });
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js
index 6a3260fe..bd319178 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js
+++ b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js
@@ -1,10 +1,11 @@
import React from "react";
import { Button, Col, message, Row } from "antd";
-import { WeaDatePicker, WeaDialog, WeaInput, WeaSelect, WeaTable } from "ecCom";
+import { WeaDatePicker, WeaDialog, WeaInput, WeaLocaleProvider, WeaSelect, WeaTable } from "ecCom";
import { inject, observer } from "mobx-react";
import moment from "moment";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("salaryFileStore")
@observer
export default class ChangeSalaryModal extends React.Component {
@@ -165,11 +166,14 @@ export default class ChangeSalaryModal extends React.Component {
// 保存
handleSave() {
- const { salaryFileStore: { saveSalaryItem, editSingleSalaryItem, fetchSingleSalaryItemList, getArchiveForm }, recordId } = this.props;
+ const {
+ salaryFileStore: { saveSalaryItem, editSingleSalaryItem, fetchSingleSalaryItemList, getArchiveForm },
+ recordId
+ } = this.props;
let saveRequest = { ...this.state.request };
const { salaryArchiveItems, canOperator } = this.state;
if (salaryArchiveItems.length === 0) {
- message.warning("请添加调薪明细");
+ message.warning(getLabel(111, "请添加调薪明细"));
return;
}
saveRequest.salaryArchiveItems = salaryArchiveItems.map(item => {
@@ -202,7 +206,7 @@ export default class ChangeSalaryModal extends React.Component {
const { selectedRowKeys, salaryArchiveItems } = this.state;
let result = [...salaryArchiveItems];
if (selectedRowKeys.length === 0) {
- message.warning("未选择条目");
+ message.warning(getLabel(111, "未选择条目"));
}
this.setState({
@@ -221,7 +225,7 @@ export default class ChangeSalaryModal extends React.Component {
};
return (
{
this.handleSave();
- }}>保存]}
+ }}>{getLabel(111, "保存")}]}
>
- 生效日期
+ {getLabel(111, "生效日期")}
- 调整原因
+ {getLabel(111, "调整原因")}
- 说明
+ {getLabel(111, "说明")}
-
调薪明细
+
{getLabel(111, "调薪明细")}
{
!recordId &&
@@ -295,14 +299,14 @@ export default class ChangeSalaryModal extends React.Component {
onClick={() => {
this.handleRemoveClick();
}}
- >
+ >
+ >
}
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
+
+ );
+ }
+}
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/columns.js b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
index 573795b4..a756d851 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/columns.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
@@ -1,64 +1,67 @@
+import { WeaLocaleProvider } from "ecCom";
import { dataTypeOptions, patternOptions, roundingModeOptions } from "./options";
+const getLabel = WeaLocaleProvider.getLabel;
+
export const columns = [
{
- title: "名称",
+ title: getLabel(111, "名称"),
dataIndex: "title",
key: "title"
},
{
- title: "属性",
+ title: getLabel(111, "属性"),
dataIndex: "title",
key: "title"
},
{
- title: "类型",
+ title: getLabel(111, "类型"),
dataIndex: "title",
key: "title"
},
{
- title: "薪资档案引用",
+ title: getLabel(111, "薪资档案引用"),
dataIndex: "refere",
key: "refere"
},
{
- title: "默认使用",
+ title: getLabel(111, "默认使用"),
dataIndex: "refere",
key: "refere"
},
{
- title: "进位规则",
+ title: getLabel(111, "进位规则"),
dataIndex: "title",
key: "title"
},
{
- title: "保留小数位",
+ title: getLabel(111, "保留小数位"),
dataIndex: "title",
key: "title"
},
{
- title: "取值方式",
+ title: getLabel(111, "取值方式"),
dataIndex: "title",
key: "title"
},
{
- title: "备注",
+ title: getLabel(111, "备注"),
dataIndex: "title",
key: "title"
},
{
- title: "操作",
+ title: getLabel(111, "操作"),
dataIndex: "cz",
key: "cz"
}
];
export const salaryItemFields = [
{
- key: 'name',
- label: '名称',
- type: 'INPUT',
+ key: "name",
+ label: getLabel(111, "名称"),
+ type: "INPUT",
viewAttr: 3,
- tip: ''
+ tip: ""
},
// {
// key: 'useInEmployeeSalary',
@@ -68,84 +71,84 @@ export const salaryItemFields = [
// tip: '提示:开启后,该薪资项目不可删除或设为无效,取值方式会默认置为输入'
// },
{
- key: 'useDefault',
- label: '默认使用',
- type: 'SWITCH',
+ key: "useDefault",
+ label: getLabel(111, "默认使用"),
+ type: "SWITCH",
viewAttr: 2,
- tip: '提示:开启后,每个薪资方案都有该薪资项目,可在具体薪资方案中删除'
+ tip: getLabel(111, "提示:开启后,每个薪资方案都有该薪资项目,可在具体薪资方案中删除")
},
{
- key: 'sharedType',
- label: '可见性',
- type: 'SELECT',
+ key: "sharedType",
+ label: getLabel(111, "可见性"),
+ type: "SELECT",
viewAttr: 2,
- tip: ''
+ tip: ""
},
{
- key: 'taxAgentIds',
- label: '可见性范围',
- type: 'SELECT',
+ key: "taxAgentIds",
+ label: getLabel(111, "可见性范围"),
+ type: "SELECT",
viewAttr: 3,
- tip: ''
+ tip: ""
},
{
- key: 'dataType',
- label: '字段类型',
- type: 'SELECT',
+ key: "dataType",
+ label: getLabel(111, "字段类型"),
+ type: "SELECT",
viewAttr: 3,
options: dataTypeOptions,
- tip: ''
+ tip: ""
},
{
- key: 'roundingMode',
- label: '舍入规则',
- type: 'SELECT',
+ key: "roundingMode",
+ label: getLabel(111, "舍入规则"),
+ type: "SELECT",
viewAttr: 2,
options: roundingModeOptions,
- tip: ''
+ tip: ""
},
{
- key: 'pattern',
- label: '保留小数位',
- type: 'SELECT',
+ key: "pattern",
+ label: getLabel(111, "保留小数位"),
+ type: "SELECT",
viewAttr: 2,
options: patternOptions,
- tip: ''
+ tip: ""
},
{
- key: 'valueType',
- label: '取值方式',
- type: 'RADIO',
+ key: "valueType",
+ label: getLabel(111, "取值方式"),
+ type: "RADIO",
viewAttr: 2,
- tip: ''
+ tip: ""
},
{
- key: 'formulaContent',
- label: '公式',
- type: 'INPUT',
+ key: "formulaContent",
+ label: getLabel(111, "公式"),
+ type: "INPUT",
viewAttr: 2,
- tip: ''
+ tip: ""
},
{
key: "sortedIndex",
- label: "显示顺序",
+ label: getLabel(111, "显示顺序"),
type: "INPUTNUMBER",
viewAttr: 2,
tip: ""
},
{
- key: 'description',
- label: '备注',
- type: 'TEXTAREA',
+ key: "description",
+ label: getLabel(111, "备注"),
+ type: "TEXTAREA",
viewAttr: 2,
- tip: ''
- },
+ tip: ""
+ }
+];
+export const valTakeOptions = [
+ { key: "1", showname: getLabel(111, "输入") },
+ { key: "2", showname: getLabel(111, "公式") },
+ { key: "3", showname: "SQL" }
];
-export const valTakeOptions=[
- {key: "1", showname: '输入'},
- {key: "2", showname: '公式'},
- {key: "3", showname: 'SQL'},
-]
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js
index a7044fd0..9c810045 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js
@@ -1,12 +1,13 @@
import React from "react";
import { Button, Col, message, Modal, Row } from "antd";
-import { WeaCheckbox, WeaDialog, WeaFormItem, WeaHelpfulTip, WeaInput, WeaSelect } from "ecCom";
+import { WeaCheckbox, WeaDialog, WeaFormItem, WeaHelpfulTip, WeaInput, WeaSelect, WeaLocaleProvider } from "ecCom";
import { inject, observer } from "mobx-react";
import { testFormual } from "../../apis/item";
import TestModal from "./testModal";
import ExcelEditor from "../../components/excelEditor";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("salaryItemStore")
@observer
export default class FormalFormModal extends React.Component {
@@ -205,8 +206,8 @@ export default class FormalFormModal extends React.Component {
});
this.parameters = result;
let params = {
- name: "公式1",
- description: "备注",
+ name: getLabel(111, "公式1"),
+ description: getLabel(111, "备注"),
module: "salary",
useFor: "salaryitem",
returnType: this.props.dataType || this.state.returnType,
@@ -270,7 +271,7 @@ export default class FormalFormModal extends React.Component {
if (!record && !value) {
this.parameters = _.map(this.parameters, item => ({ ...item, content: null }));
this.setState({
- showTestVal: "显示结果"
+ showTestVal: getLabel(111, "显示结果")
});
} else {
this.parameters = _.map(this.parameters, item => {
@@ -315,7 +316,7 @@ export default class FormalFormModal extends React.Component {
};
testFormual(params).then(({ status, data, errormsg }) => {
if (status) {
- message.success("测试结果已更新");
+ message.success(getLabel(111, "测试结果已更新"));
this.setState({
showTestVal: data
});
@@ -339,16 +340,16 @@ export default class FormalFormModal extends React.Component {
const { searchGroup, searchFields } = salaryItemStore;
const { value, formula, formulaDatasourceList, extendParam, testVisible, showTestVal, groupParams } = this.state;
const title =
-
{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? "函数" : "SQL"}公式`}
+
{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? getLabel(111, "函数") : "SQL"}${getLabel(111, "公式")}`}
{
!_.isEmpty(value) &&
+ }}>{getLabel(111, "测试")}
}
{/*公式测试*/}
保存
+
]}
onCancel={() => {
this.props.onCancel();
@@ -372,7 +373,7 @@ export default class FormalFormModal extends React.Component {
@@ -383,7 +384,7 @@ export default class FormalFormModal extends React.Component {
@@ -393,8 +394,8 @@ export default class FormalFormModal extends React.Component {
onChange={(datasourceId) => {
if (datasourceId) {
Modal.confirm({
- title: "信息确认",
- content: "外部数据源指第三方数据库,连接第三方数据库会影响核算效率。",
+ title: getLabel(111, "信息确认"),
+ content: getLabel(111, "外部数据源指第三方数据库,连接第三方数据库会影响核算效率。"),
onOk: () => {
this.setState({ extendParam: { ...extendParam, datasource: { datasourceId } } });
},
@@ -409,14 +410,14 @@ export default class FormalFormModal extends React.Component {
/>
@@ -430,7 +431,7 @@ export default class FormalFormModal extends React.Component {
/>
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index a3e9c096..45ec2a42 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -1,7 +1,7 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { Button, Dropdown, Menu, message, Modal, Switch } from "antd";
-import { WeaInputSearch, WeaNewScroll, WeaSlideModal, WeaTop } from "ecCom";
+import { WeaInputSearch, WeaLocaleProvider, WeaNewScroll, WeaSlideModal, WeaTop } from "ecCom";
import { renderLoading } from "../../util";
import CustomTab from "../../components/customTab";
import SystemSalaryItemModal from "./systemSalaryItemModal";
@@ -11,6 +11,7 @@ import CustomSalaryItemSlide from "./customSalaryItemSlide";
import CustomPaginationTable from "../../components/customPaginationTable";
import "../socialSecurityBenefits/programme/index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("salaryItemStore", "taxAgentStore", "salaryFileStore")
@observer
export default class SalaryItem extends React.Component {
@@ -36,8 +37,8 @@ export default class SalaryItem extends React.Component {
} else if (item.dataIndex == "cz") {
item.render = () => {
return ();
};
@@ -80,8 +81,8 @@ export default class SalaryItem extends React.Component {
handleDeleteItem(record) {
const { salaryItemStore: { deleteItemRequest, getTableDatas } } = this.props;
Modal.confirm({
- title: "信息确认",
- content: "确认删除该条数据吗?",
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "确认删除该条数据吗")}?`,
onOk: () => {
deleteItemRequest([record.id]).then(() => {
getTableDatas({ ...this.state.searchParams }).then(res => {
@@ -123,12 +124,12 @@ export default class SalaryItem extends React.Component {
});
columns.push({
key: "operate",
- title: "操作",
+ title: getLabel(111, "操作"),
render: (text, record) => {
return (
{
this.onEditItem(record, true);
- }}>{(showSalaryItemBtn || showOperateBtn) ? "编辑" : "查看"}
+ }}>{(showSalaryItemBtn || showOperateBtn) ? getLabel(111, "编辑") : getLabel(111, "查看")}
);
}
});
@@ -143,7 +144,7 @@ export default class SalaryItem extends React.Component {
{
this.handleDeleteItem(record);
- }}>删除
+ }}>{getLabel(111, "删除")}
}>
- 系统薪资项
- 自定义薪资项
+ {getLabel(111, "系统薪资项")}
+ {getLabel(111, "自定义薪资项")}
);
@@ -246,7 +247,8 @@ export default class SalaryItem extends React.Component {
return (
{
(showOperateBtn || showSalaryItemBtn) &&
-
新增
+
{getLabel(111, "新增")}
}
{
(showOperateBtn || showSalaryItemBtn) &&
@@ -255,12 +257,12 @@ export default class SalaryItem extends React.Component {
style={{ marginRight: "10px" }}
onClick={() => {
if (!selectedRowKeys.length) {
- message.info("未选中任何数据!");
+ message.info(getLabel(111, "未选中任何数据"));
return;
}
Modal.confirm({
- title: "信息确认",
- content: `确定要将所选的薪资项(共${selectedRowKeys.length}条数据)删除吗?`,
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "确定要将所选的薪资项")}(${getLabel(111, "共")}${selectedRowKeys.length})${getLabel(111, "条数据")}${getLabel(111, "删除吗")}?`,
onOk: () => {
deleteItemRequest(selectedRowKeys).then(() => {
getTableDatas({ ...this.state.searchParams }).then(res => {
@@ -275,9 +277,9 @@ export default class SalaryItem extends React.Component {
});
}
});
- }}>批量删除薪资项
+ }}>{getLabel(111, "批量删除薪资项")}
}
-
{
+ {
this.setState({ searchValue: value });
}} onSearch={(value) => {
this.handleSearch(value);
@@ -292,8 +294,8 @@ export default class SalaryItem extends React.Component {
const { name, sharedType, taxAgentIds } = request;
if (!name || (sharedType === "1" && !taxAgentIds)) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "必要信息不完整,红色*为必填项")}!`
});
return;
}
@@ -315,16 +317,16 @@ export default class SalaryItem extends React.Component {
arrList = [
,
+ }}>{getLabel(111, "保存")},
+ }}>{getLabel(111, "保存并继续创建")}
];
} else if (this.state.editable) {
arrList = [
+ }}>{getLabel(111, "保存")}
];
}
return arrList;
@@ -344,7 +346,7 @@ export default class SalaryItem extends React.Component {
return (
}
iconBgcolor="#F14A2D"
showDropIcon={false}
@@ -399,7 +401,7 @@ export default class SalaryItem extends React.Component {
direction={"right"}
title={
{
handleAdd();
}}
- >添加
+ >{getLabel(111, "添加")}
]}
>
{
this.handleSearchChange(value);
}}
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/testModal.js b/pc4mobx/hrmSalary/pages/salaryItem/testModal.js
index d728a379..a05e199b 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/testModal.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/testModal.js
@@ -1,9 +1,10 @@
import React from "react";
import { Button } from "antd";
-import { WeaDialog, WeaInput, WeaSearchGroup, WeaTable, WeaTextarea } from "ecCom";
+import { WeaDialog, WeaInput, WeaSearchGroup, WeaTable, WeaTextarea, WeaLocaleProvider } from "ecCom";
import { inject, observer } from "mobx-react";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("ledgerStore")
@observer
export default class TestModal extends React.Component {
@@ -11,7 +12,7 @@ export default class TestModal extends React.Component {
super(props);
this.state = {
testValue: [],
- showResults: "显示结果"
+ showResults: getLabel(111, "显示结果")
};
}
@@ -39,10 +40,10 @@ export default class TestModal extends React.Component {
}) : [];
const columns = [
{
- dataIndex: "paramsName", title: "参数名"
+ dataIndex: "paramsName", title: getLabel(111, "参数名")
},
{
- dataIndex: "content", title: "测试值",
+ dataIndex: "content", title: getLabel(111, "测试值"),
render: (text, record) => {
return (
执行
+
]}>
- {this.renderInputItem()}
-
+ {this.renderInputItem()}
+
@@ -88,8 +89,8 @@ export default class TestModal extends React.Component {
const TestTip = () => {
return
-
涉及到选择具体数据进行运算时,请先检查对应数据源中是否有数据项;
-
涉及到日期控件时,请先选择日期控件的格式,保持和控件本身设置的格式一致,否则可能会导致预期与实际执行结果不一致;
-
涉及到日期控件判断与预期不符合时,请先检查日期控件的格式是否与等号右边的格式保持一致;
+
{getLabel(111, "涉及到选择具体数据进行运算时,请先检查对应数据源中是否有数据项;")}
+
{getLabel(111, "涉及到日期控件时,请先选择日期控件的格式,保持和控件本身设置的格式一致,否则可能会导致预期与实际执行结果不一致;")}
+
{getLabel(111, "涉及到日期控件判断与预期不符合时,请先检查日期控件的格式是否与等号右边的格式保持一致;")}
;
};
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js
index ea9c5464..9ee8a7db 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js
@@ -2,7 +2,7 @@ import React from "react";
import { inject, observer } from "mobx-react";
import { message } from "antd";
import { toJS } from "mobx";
-import { WeaSearchGroup } from "ecCom";
+import { WeaSearchGroup, WeaLocaleProvider } from "ecCom";
import {
ConsistentWelfare,
SocialDatePicker,
@@ -13,6 +13,7 @@ import {
} from "./socialSecurityForm";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("archivesStore")
@observer
export default class AccumulationFundForm extends React.Component {
@@ -78,7 +79,7 @@ export default class AccumulationFundForm extends React.Component {
const { min, max, domkey } = it;
const minNum = !_.isNil(min) ? Number(min) : 0, maxNum = !_.isNil(max) ? Number(max) : 0;
if ((val < minNum || val > maxNum) && !_.isNil(min) && !_.isNil(max) && (!!maxNum || !!minNum)) {
- message.warning("超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充。");
+ message.warning(`${getLabel(111, "超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充")}。`);
paymentData = {
...paymentData,
[domkey[0]]: (val < minNum && !!minNum) ? minNum : (val > maxNum && !!maxNum) ? maxNum : val
@@ -120,7 +121,7 @@ export default class AccumulationFundForm extends React.Component {
{
com: SocialDatePicker({
key: "fundStartTime",
- label: "公积金起始缴纳月",
+ label: getLabel(111, "公积金起始缴纳月"),
viewAttr: fundSchemeId ? 3 : 2,
value: fundStartTime,
disabledDate: (current) => {
@@ -132,7 +133,7 @@ export default class AccumulationFundForm extends React.Component {
{
com: SocialEditInput({
key: "fundAccount",
- label: "公积金账号",
+ label: getLabel(111, "公积金账号"),
value: fundAccount,
onChange: this.handleFormChange
})
@@ -140,7 +141,7 @@ export default class AccumulationFundForm extends React.Component {
{
com: SocialDatePicker({
key: "fundEndTime",
- label: "公积金最后缴纳月",
+ label: getLabel(111, "公积金最后缴纳月"),
value: fundEndTime,
disabledDate: (current) => {
return current && fundStartTime && current.getTime() < new Date(fundStartTime).getTime();
@@ -151,7 +152,7 @@ export default class AccumulationFundForm extends React.Component {
{
com: SocialEditInput({
key: "supplementFundAccount",
- label: "补充公积金账号",
+ label: getLabel(111, "补充公积金账号"),
value: supplementFundAccount,
onChange: this.handleFormChange
})
@@ -160,7 +161,7 @@ export default class AccumulationFundForm extends React.Component {
return (
}
items={foundItems} col={2} showGroup needTigger={false}/>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/baseForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/baseForm.js
index 5c658b41..bc621822 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/baseForm.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/baseForm.js
@@ -1,8 +1,9 @@
import React from "react";
-import { WeaFormItem, WeaInput, WeaSearchGroup } from "ecCom";
+import { WeaFormItem, WeaInput, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
import { inject, observer } from "mobx-react";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("archivesStore")
@observer
export default class BaseForm extends React.Component {
@@ -16,20 +17,20 @@ export default class BaseForm extends React.Component {
const { username, department, position, telephone, hiredate, dimissionDate } = baseFormData;
const { paymentOrganizationName } = record;
const baseItems = [
- { com: Input("姓名", username) },
- { com: Input("部门", department) },
- { com: Input("岗位", position) },
- { com: Input("手机号", telephone) },
- { com: Input("入职日期", hiredate) },
- { com: Input("合同到期日期", dimissionDate) }
+ { com: Input(getLabel(111, "姓名"), username) },
+ { com: Input(getLabel(111, "部门"), department) },
+ { com: Input(getLabel(111, "岗位"), position) },
+ { com: Input(getLabel(111, "手机号"), telephone) },
+ { com: Input(getLabel(111, "入职日期"), hiredate) },
+ { com: Input(getLabel(111, "合同到期日期"), dimissionDate) }
];
const taxagentItems = [
- { com: Input("个税扣缴义务人", paymentOrganizationName) }
+ { com: Input(getLabel(111, "个税扣缴义务人"), paymentOrganizationName) }
];
return (
-
-
+
+
);
}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js
index de89e096..e48b4ed8 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/config/index.js
@@ -1,30 +1,33 @@
+import { WeaFormItem, WeaInput, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
export const tabCondition = [
{
color: "#000000",
groupid: "stayAdd",
showcount: true,
- title: "待增员",
+ title: getLabel(111, "待增员"),
viewcondition: "pending"
},
{
color: "#000000",
groupid: "paying",
showcount: true,
- title: "在缴员工",
+ title: getLabel(111, "在缴员工"),
viewcondition: "fixed"
},
{
color: "#000000",
groupid: "stayDel",
showcount: true,
- title: "待减员",
+ title: getLabel(111, "待减员"),
viewcondition: "suspend"
},
{
color: "#000000",
groupid: "stopPay",
showcount: true,
- title: "停缴员工",
+ title: getLabel(111, "停缴员工"),
viewcondition: "stop"
}
];
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
index 3a8ad7ab..67fa1cd9 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
@@ -2,7 +2,7 @@ import React from "react";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
import { Button, Dropdown, Menu, message, Modal, Popover } from "antd";
-import { WeaHelpfulTip, WeaNewScroll, WeaSlideModal, WeaTab, WeaTop } from "ecCom";
+import { WeaHelpfulTip, WeaLocaleProvider, WeaNewScroll, WeaSlideModal, WeaTab, WeaTop } from "ecCom";
import { getSearchs, renderLoading } from "../../../util";
import BaseForm from "./baseForm";
import SlideModalTitle from "../../../components/slideModalTitle";
@@ -16,6 +16,7 @@ import TipLabel from "../../../components/TipLabel";
import UnifiedTable from "../../../components/UnifiedTable";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("archivesStore", "taxAgentStore")
@observer
export default class Archives extends React.Component {
@@ -117,13 +118,13 @@ export default class Archives extends React.Component {
});
return tmpV.length > 0 ? [
...tmpV, {
- title: "操作",
+ title: getLabel(30585, "操作"),
dataIndex: "operate",
render: (text, record) => {
return (
this.handleEdit(record)}>{(showOperateBtn && selectedKey !== "stop") ? "编辑" : "查看"}
+ onClick={() => this.handleEdit(record)}>{(showOperateBtn && selectedKey !== "stop") ? getLabel(111, "编辑") : getLabel(111, "查看")}
{
showOperateBtn && selectedKey === "pending" &&
this.deleteTodoList({ runStatus: "4", ids: [record.baseInfo] })
});
}
}}>
- 增员
- 删除待办
+ {getLabel(111, "增员")}
+ {getLabel(111, "删除待办")}
} title="">
@@ -154,16 +155,16 @@ export default class Archives extends React.Component {
content={
} title="">
@@ -176,7 +177,7 @@ export default class Archives extends React.Component {
content={
} title="">
@@ -198,8 +199,8 @@ export default class Archives extends React.Component {
const { socialSchemeId, socialStartTime } = data;
if (socialSchemeId && !socialStartTime) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "必要信息不完整,红色*为必填项")}!`
});
return;
}
@@ -211,8 +212,8 @@ export default class Archives extends React.Component {
const { fundSchemeId, fundStartTime } = data;
if (fundSchemeId && !fundStartTime) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "必要信息不完整,红色*为必填项")}!`
});
return;
}
@@ -224,8 +225,8 @@ export default class Archives extends React.Component {
const { otherSchemeId, otherStartTime } = data;
if (otherSchemeId && !otherStartTime) {
Modal.warning({
- title: "信息确认",
- content: "必要信息不完整,红色*为必填项!"
+ title: getLabel(111, "信息确认"),
+ content: `${getLabel(111, "必要信息不完整,红色*为必填项")}!`
});
return;
}
@@ -338,13 +339,13 @@ export default class Archives extends React.Component {
if (status) {
const { msg, type } = data;
if (type === "fail") {
- message.error(msg || "操作失败");
+ message.error(msg || getLabel(111, "操作失败"));
} else if (type === "success") {
- message.success(msg || "操作成功!");
+ message.success(msg || getLabel(111, "操作成功"));
this.query();
}
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
} else if (selectedKey === "suspend") {
@@ -353,13 +354,13 @@ export default class Archives extends React.Component {
if (status) {
const { msg, type } = data;
if (type === "fail") {
- message.error(msg || "操作失败");
+ message.error(msg || getLabel(111, "操作失败"));
} else if (type === "success") {
- message.success(msg || "操作成功!");
+ message.success(msg || getLabel(111, "操作成功"));
this.query();
}
} else {
- message.error(errormsg || "操作失败!");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
}
@@ -367,7 +368,7 @@ export default class Archives extends React.Component {
handleMenuItemClick = ({ key }) => {
const { selectedRowKeys, selectedKey } = this.state;
if (selectedRowKeys.length === 0) {
- message.warning("未选择任何条目", 1);
+ message.warning(getLabel(111, "未选择任何条目"), 1);
return;
}
switch (selectedKey) {
@@ -399,14 +400,14 @@ export default class Archives extends React.Component {
if (status) {
const { msg, type } = data;
if (type === "fail") {
- message.error(msg || "操作失败");
+ message.error(msg || getLabel(111, "操作失败"));
} else if (type === "success") {
- message.success(msg || "操作成功");
+ message.success(msg || getLabel(111, "操作成功"));
this.query();
this.onSelectChange([]);
}
} else {
- message.error(errormsg || "操作失败");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -416,14 +417,14 @@ export default class Archives extends React.Component {
if (status) {
const { msg, type } = data;
if (type === "fail") {
- message.error(msg || "操作失败");
+ message.error(msg || getLabel(111, "操作失败"));
} else if (type === "success") {
- message.success(msg || "操作成功");
+ message.success(msg || getLabel(111, "操作成功"));
this.query();
this.onSelectChange([]);
}
} else {
- message.error(errormsg || "操作失败");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -432,11 +433,11 @@ export default class Archives extends React.Component {
cancelStopPayment = (payload) => {
API.cancelStopPayment(payload).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功");
+ message.success(getLabel(111, "操作成功"));
this.query();
this.onSelectChange([]);
} else {
- message.error(errormsg || "操作失败");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -444,11 +445,11 @@ export default class Archives extends React.Component {
deleteTodoList = (payload) => {
API.updateRunStatus(payload).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功");
+ message.success(getLabel(111, "操作成功"));
this.query();
this.onSelectChange([]);
} else {
- message.error(errormsg || "操作失败");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -456,11 +457,11 @@ export default class Archives extends React.Component {
cancelStayDel = (payload) => {
API.cancelStayDel(payload).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功");
+ message.success(getLabel(111, "操作成功"));
this.query();
this.onSelectChange([]);
} else {
- message.error(errormsg || "操作失败");
+ message.error(errormsg || getLabel(111, "操作失败"));
}
});
};
@@ -537,9 +538,9 @@ export default class Archives extends React.Component {
}, () => {
this.query();
});
- }}>搜索,
-
,
-
+ }}>{getLabel(111, "搜索")},
+
,
+
];
// 导出全部
@@ -567,7 +568,7 @@ export default class Archives extends React.Component {
const handleMenuClick = () => {
const { selectedRowKeys } = this.state;
if (selectedRowKeys.length == 0) {
- message.warning("未选择任何条目", 1);
+ message.warning(getLabel(111, "未选择任何条目"), 1);
return;
}
let ids = selectedRowKeys.join(",");
@@ -592,13 +593,13 @@ export default class Archives extends React.Component {
const btns = selectedKey === "fixed" ? [
,
+ }}>{getLabel(111, "导入")},
- 导出选中
+ {getLabel(111, "导出选中")}
} type="ghost">
- 导出全部
+ {getLabel(111, "导出全部")}
] : selectedKey === "pending" ? [
- 批量增员
- 批量删除待办
+ {getLabel(111, "批量增员")}
+ {getLabel(111, "批量删除待办")}
} type="ghost"
>
- 全量增员
+ {getLabel(111, "全量增员")}
,
,
+ }}>{getLabel(111, "导入")},
- 导出选中
+ {getLabel(111, "导出选中")}
} type="ghost">
- 导出全部
+ {getLabel(111, "导出全部")}
] : selectedKey === "suspend" ? [
- 批量减员
- 批量删除待办
+ {getLabel(111, "批量减员")}
+ {getLabel(111, "批量删除待办")}
}
type="primary"
>
- 全量减员
+ {getLabel(111, "全量减员")}
,
- 导出选中
+ {getLabel(111, "导出选中")}
} type="ghost">
- 导出全部
+ {getLabel(111, "导出全部")}
] : [
}
placement="topLeft"
/>,
- ,
+ ,
- 导出选中
+ {getLabel(111, "导出选中")}
} type="ghost">
- 导出全部
+ {getLabel(111, "导出全部")}
];
@@ -673,7 +674,7 @@ export default class Archives extends React.Component {
current: pageInfo.current,
pageSize: pageInfo.pageSize,
total: pageInfo.total,
- showTotal: total => `共 ${total} 条`,
+ showTotal: total => `${getLabel(111, "共")} ${total} ${getLabel(111, "条")}`,
showQuickJumper: true,
showSizeChanger: true,
pageSizeOptions: ["10", "20", "50", "100"],
@@ -696,7 +697,7 @@ export default class Archives extends React.Component {
return (
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={false} // 是否显示下拉按钮
@@ -714,7 +715,7 @@ export default class Archives extends React.Component {
setShowSearchAd={bool => setShowSearchAd(bool)} //高级搜索面板受控
searchsAd={getSearchs(form, toJS(condition), 2)} // 高级搜索内部数据
buttonsAd={adBtn} // 高级搜索内部按钮
- searchsBasePlaceHolder={"请输入姓名"}
+ searchsBasePlaceHolder={getLabel(111, "请输入姓名")}
onSearch={() => {
this.setState({
pageInfo: {
@@ -761,17 +762,17 @@ export default class Archives extends React.Component {
direction="right"
title={
this.handleEditSlideSave()}>保存] : []
+ [] : []
}
subItemChange={selectedTab => this.setState({ selectedTab })}
/>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js
index fed359de..36728bb3 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js
@@ -1,7 +1,7 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { message } from "antd";
-import { WeaSearchGroup } from "ecCom";
+import { WeaSearchGroup, WeaLocaleProvider } from "ecCom";
import { toJS } from "mobx";
import {
ConsistentWelfare,
@@ -12,6 +12,7 @@ import {
} from "./socialSecurityForm";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("archivesStore")
@observer
export default class OtherForm extends React.Component {
@@ -77,7 +78,7 @@ export default class OtherForm extends React.Component {
const { min, max, domkey } = it;
const minNum = !_.isNil(min) ? Number(min) : 0, maxNum = !_.isNil(max) ? Number(max) : 0;
if ((val < minNum || val > maxNum) && !_.isNil(min) && !_.isNil(max) && (!!maxNum || !!minNum)) {
- message.warning("超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充。");
+ message.warning(`${getLabel(111, "超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充")}。`);
paymentData = {
...paymentData,
[domkey[0]]: (val < minNum && !!minNum) ? minNum : (val > maxNum && !!maxNum) ? maxNum : val
@@ -116,7 +117,7 @@ export default class OtherForm extends React.Component {
{
com: SocialDatePicker({
key: "otherStartTime",
- label: "其他福利起始缴纳月",
+ label: getLabel(111, "其他福利起始缴纳月"),
viewAttr: otherSchemeId ? 3 : 2,
value: otherStartTime,
disabledDate: (current) => {
@@ -128,7 +129,7 @@ export default class OtherForm extends React.Component {
{
com: SocialDatePicker({
key: "otherEndTime",
- label: "其他福利最后缴纳月",
+ label: getLabel(111, "其他福利最后缴纳月"),
value: otherEndTime,
disabledDate: (current) => {
return current && otherStartTime && current.getTime() < new Date(otherStartTime).getTime();
@@ -140,7 +141,7 @@ export default class OtherForm extends React.Component {
return (
}
items={otherItems} col={2} showGroup needTigger={false}/>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js
index 0bae1877..bd04d967 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js
@@ -1,10 +1,11 @@
import React from "react";
-import { WeaCheckbox, WeaDatePicker, WeaFormItem, WeaInput, WeaInputNumber, WeaSearchGroup, WeaSelect } from "ecCom";
+import { WeaCheckbox, WeaDatePicker, WeaFormItem, WeaInput, WeaInputNumber, WeaSearchGroup, WeaSelect, WeaLocaleProvider } from "ecCom";
import { message } from "antd";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("archivesStore")
@observer
export default class SocialSecurityForm extends React.Component {
@@ -76,7 +77,7 @@ export default class SocialSecurityForm extends React.Component {
const { min, max, domkey } = it;
const minNum = !_.isNil(min) ? Number(min) : 0, maxNum = !_.isNil(max) ? Number(max) : 0;
if ((val < minNum || val > maxNum) && !_.isNil(min) && !_.isNil(max) && (!!maxNum || !!minNum)) {
- message.warning("超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充。");
+ message.warning(`${getLabel(111, "超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充")}。`);
paymentData = {
...paymentData,
[domkey[0]]: (val < minNum && !!minNum) ? minNum : (val > maxNum && !!maxNum) ? maxNum : val
@@ -118,7 +119,7 @@ export default class SocialSecurityForm extends React.Component {
{
com: SocialDatePicker({
key: "socialStartTime",
- label: "社保起始缴纳月",
+ label: getLabel(111, "社保起始缴纳月"),
viewAttr: socialSchemeId ? 3 : 2,
value: socialStartTime,
disabledDate: (current) => {
@@ -130,7 +131,7 @@ export default class SocialSecurityForm extends React.Component {
{
com: SocialEditInput({
key: "schemeAccount",
- label: "社保账号",
+ label: getLabel(111, "社保账号"),
value: schemeAccount,
onChange: this.handleFormChange
})
@@ -138,7 +139,7 @@ export default class SocialSecurityForm extends React.Component {
{
com: SocialDatePicker({
key: "socialEndTime",
- label: "社保最后缴纳月",
+ label: getLabel(111, "社保最后缴纳月"),
value: socialEndTime,
disabledDate: (current) => {
return current && socialStartTime && current.getTime() < new Date(socialStartTime).getTime();
@@ -150,7 +151,7 @@ export default class SocialSecurityForm extends React.Component {
return (
}
items={socialItems} col={2} showGroup needTigger={false}/>
@@ -182,7 +183,7 @@ export default class SocialSecurityForm extends React.Component {
export const ConsistentWelfare = (props) => {
const { onChange, onBlurChange, value } = props;
return
-
各项福利基数一致:
+
{`${getLabel(111, "各项福利基数一致")}:`}
{
};
export const SocialTitle = (props) => {
const { value, onChange, keyname: key } = props;
- return onChange({ key, value: val })}/>;
+ return onChange({ key, value: val })}/>;
};
export const SocialSelect = (props) => {
const { key, value, onChange, options, label, labelColSpan = 12, wrapperColSpan = 12 } = props;
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/columns.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/columns.js
index 5acd68bf..f7424f10 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/columns.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/columns.js
@@ -1,171 +1,92 @@
+import { WeaLocaleProvider } from "ecCom";
+
+const getLabel = WeaLocaleProvider.getLabel;
// 社保
export const socialSecurityColumns = [{
- title: "方案名称",
+ title: getLabel(111, "方案名称"),
dataIndex: "title",
key: "title"
}, {
- title: "缴纳类型",
+ title: getLabel(111, "缴纳类型"),
dataIndex: "username",
key: "username"
}, {
- title: "缴纳范围",
+ title: getLabel(111, "缴纳范围"),
dataIndex: "projectName",
key: "projectName"
}, {
- title: "备注",
+ title: getLabel(111, "备注"),
dataIndex: "customer",
key: "customer"
}, {
- title: "操作",
+ title: getLabel(111, "操作"),
dataIndex: "customer",
key: "customer"
}];
-
-// 公积金
-export const accumulationFundColumns = [{
- title: "方案名称",
- dataIndex: "title",
- key: "title"
-}, {
- title: "缴纳类型",
- dataIndex: "username",
- key: "username"
-}, {
- title: "缴纳范围",
- dataIndex: "projectName",
- key: "projectName"
-}, {
- title: "备注",
- dataIndex: "customer",
- key: "customer"
-}, {
- title: "操作",
- dataIndex: "customer",
- key: "customer"
-}];
-
-// 企业年金及其他福利
-export const otherBenefitsColumns = [
- {
- 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 CustomBenefitsColumns = [
- {
- 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 insertUpdateColumns = [
{
- title: "类型名称",
+ title: getLabel(111, "类型名称"),
dataIndex: "insuranceName",
key: "insuranceName",
width: 120,
- fixed: 'left'
+ fixed: "left"
},
{
- title: "是否缴费",
+ title: getLabel(111, "是否缴费"),
dataIndex: "isPayment",
key: "isPayment",
width: 100
},
{
- title: "缴纳对象",
+ title: getLabel(111, "缴纳对象"),
dataIndex: "paymentScope",
key: "paymentScope",
width: 100
},
{
- title: "缴纳周期",
+ title: getLabel(111, "缴纳周期"),
dataIndex: "paymentCycle",
key: "paymentCycle",
width: 200
},
{
- title: "核算方式",
+ title: getLabel(111, "核算方式"),
dataIndex: "accountType",
key: "accountType",
width: 200
},
{
- title: "基数下限",
+ title: getLabel(111, "基数下限"),
dataIndex: "lowerLimit",
key: "lowerLimit",
width: 100
},
{
- title: "基数上限",
+ title: getLabel(111, "基数上限"),
dataIndex: "upperLimit",
key: "upperLimit",
width: 100
},
{
- title: "缴纳比例%",
+ title: getLabel(111, "缴纳比例%"),
dataIndex: "paymentProportion",
key: "paymentProportion",
width: 100
},
{
- title: "固定费用",
+ title: getLabel(111, "固定费用"),
dataIndex: "fixedCost",
key: "fixedCost",
width: 100
},
{
- title: "有效小数位",
+ title: getLabel(111, "有效小数位"),
dataIndex: "validNum",
key: "validNum",
width: 100
},
{
- title: "进位规则",
+ title: getLabel(111, "进位规则"),
dataIndex: "rententionRule",
key: "rententionRule",
width: 100
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js
index 65ebf88d..8aea4d61 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js
@@ -1,7 +1,8 @@
import React from "react";
-import { WeaDialog, WeaError, WeaFormItem, WeaInput } from "ecCom";
+import { WeaDialog, WeaError, WeaFormItem, WeaInput, WeaLocaleProvider } from "ecCom";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
export default class CopySchemaModal extends React.Component {
constructor(props) {
super(props);
@@ -13,7 +14,7 @@ export default class CopySchemaModal extends React.Component {
render() {
return (
@@ -29,7 +30,7 @@ export default class CopySchemaModal extends React.Component {
tipPosition="bottom"
ref="weaError"
style={{ width: "90%" }}
- error={`${this.props.title}名称不能为空`}>
+ error={`${this.props.title}${getLabel(111, "名称不能为空")}`}>
{
return (
);
@@ -86,16 +88,16 @@ class CustomBenefitsTable extends Component {
};
handleCustomBenefitsSwitch = ({ id }, isUse) => {
Modal.confirm({
- title: "信息确认",
- content: `确认要${isUse ? "启用" : "停用"}吗`,
+ title: getLabel(514612, "确认信息"),
+ content: `${getLabel(33703, "确认")}${isUse ? getLabel(31676, "启用") : getLabel(26471, "停用")}${getLabel(514612, "确认信息")}`,
onOk: () => {
const payload = { id, isUse };
updateCustomCategoryStatus(payload).then(({ status, errormsg }) => {
if (status) {
- message.success("操作成功");
+ message.success(getLabel(30700, "操作成功"));
this.getCustomCategoryList();
} else {
- message.error(errormsg || "操作失败");
+ message.error(errormsg || getLabel(30651, "操作失败"));
}
});
}
@@ -106,7 +108,7 @@ class CustomBenefitsTable extends Component {
const { dataSource, pageInfo, loading } = this.state;
const pagination = {
...pageInfo,
- showTotal: total => `共 ${total} 条`,
+ showTotal: total => `${getLabel(83698, "共")} ${total} ${getLabel(18256, "条")}`,
showQuickJumper: true,
showSizeChanger: true,
pageSizeOptions: ["10", "20", "50", "100"],
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js
index b5a775e4..e9cdd340 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js
@@ -1,10 +1,11 @@
import React from "react";
-import { WeaDialog } from "ecCom";
+import { WeaDialog, WeaLocaleProvider } from "ecCom";
import { Button } from "antd";
import { inject, observer } from "mobx-react";
import CustomForm from "../../../components/customForm";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
@inject("programmeStore")
@observer
export default class CustomNewModal extends React.Component {
@@ -33,11 +34,11 @@ export default class CustomNewModal extends React.Component {
className="customFLOuter"
visible={this.props.visible}
onCancel={() => this.props.onCancel()}
- title={this.props.edit ? "编辑自定义福利" : "新建自定义福利"}
+ title={this.props.edit ? getLabel(111, "编辑自定义福利") : getLabel(111, "新建自定义福利")}
style={{ height: "auto!important" }}
buttons={[
- ,
-
+ ,
+
]}
>
{
@@ -253,7 +254,7 @@ export default class DefaultSlideForm extends React.Component {
};
} else if (item.dataIndex === "paymentCycle") {
item.title =
- 缴纳周期
+ {getLabel(111, "缴纳周期")}
设置
+ })}>{getLabel(68, "设置")}
}
);
@@ -315,15 +316,15 @@ export default class DefaultSlideForm extends React.Component {
item.render = (text, record) => {
if (record.paymentCycle === "0") {
return (
- 基数*比例+固定费用
+ {getLabel(111, "基数*比例+固定费用")}
);
} else {
return (
{
@@ -342,8 +343,8 @@ export default class DefaultSlideForm extends React.Component {
{
this.onEdit(record);
}}>
- 编辑
+ {getLabel(93, "编辑")}
);
default:
@@ -85,7 +86,7 @@ export default class Programme extends React.Component {
});
newColumns.push({
- title: "操作",
+ title: getLabel(30585, "操作"),
dataIndex: "operate",
render: (text, record) => {
return (
@@ -94,7 +95,7 @@ export default class Programme extends React.Component {
onClick={() => {
this.onEdit(record);
}}>
- {showOperateBtn ? "编辑" : "查看"}
+ {showOperateBtn ? getLabel(93, "编辑") : getLabel(33564, "查看")}
);
}
@@ -112,7 +113,7 @@ export default class Programme extends React.Component {
onClick={() => {
this.onCopy(record);
}}>
- 复制
+ {getLabel(77, "复制")}
{/*暂时隐藏*/}
@@ -121,7 +122,7 @@ export default class Programme extends React.Component {
onClick={() => {
this.onDelete(record);
}}>
- 删除
+ {getLabel(91, "删除")}
@@ -139,19 +140,6 @@ export default class Programme extends React.Component {
return newColumns;
};
- handleCategoryStatusChange(record, value) {
- const { programmeStore: { updateCustomCategoryStatus } } = this.props;
- Modal.confirm({
- title: "信息确认",
- content: `确认要${value ? "启用" : "停用"}吗`,
- onOk: () => {
- updateCustomCategoryStatus(record.id, value);
- },
- onCancel: () => {
- }
- });
- }
-
onEdit(record) {
let id = record.id;
const { programmeStore } = this.props;
@@ -175,8 +163,8 @@ export default class Programme extends React.Component {
onDelete = (record) => {
const { programmeStore: { deleteScheme, deleteLoading, selectedKey } } = this.props;
Modal.confirm({
- title: "确认信息",
- content: "确认删除本条数据吗?",
+ title: getLabel(514612, "确认信息"),
+ content: getLabel(518815, "确认删除本条数据吗?"),
confirmLoading: deleteLoading,
onOk: () => {
deleteScheme({ ids: [record.id], welfareTypeEnum: selectedKey });
@@ -192,7 +180,7 @@ export default class Programme extends React.Component {
taxAgentStore: { showOperateBtn }
} = this.props;
if (!showOperateBtn) {
- message.warning("请设置编辑权限!");
+ message.warning(getLabel(111, "请设置编辑权限!"));
return;
}
getCustomForm();
@@ -237,38 +225,38 @@ export default class Programme extends React.Component {
const topTab = [
{
- title: "社保",
+ title: getLabel(111, "社保"),
viewcondition: "SOCIAL_SECURITY"
},
{
- title: "公积金",
+ title: getLabel(111, "公积金"),
viewcondition: "ACCUMULATION_FUND"
},
{
- title: "企业年金及其他福利",
+ title: getLabel(111, "企业年金及其他福利"),
viewcondition: "OTHER"
},
{
- title: "自定义福利",
+ title: getLabel(111, "自定义福利"),
viewcondition: "custom"
}
];
const options = [
{
- showname: "全部",
+ showname: getLabel(126831, "全部"),
key: ""
},
{
- showname: "社保",
+ showname: getLabel(111, "社保"),
key: "SOCIAL_SECURITY"
},
{
- showname: "公积金",
+ showname: getLabel(111, "公积金"),
key: "ACCUMULATION_FUND"
},
{
- showname: "企业年金及其他福利",
+ showname: getLabel(111, "企业年金及其他福利"),
key: "OTHER"
}
];
@@ -365,7 +353,7 @@ export default class Programme extends React.Component {
return (
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={false} // 是否显示下拉按钮
@@ -386,7 +374,7 @@ export default class Programme extends React.Component {
handleNewClick();
}
}}>
- 新建
+ {getLabel(365, "新建")}
}
{selectedKey == "custom" &&
@@ -467,8 +455,8 @@ export default class Programme extends React.Component {
it.viewcondition === selectedKey).title}方案` :
- `新增${_.find(topTab, it => it.viewcondition === selectedKey).title}方案`
+ `${getLabel(103, "修改")}${_.find(topTab, it => it.viewcondition === selectedKey).title}${getLabel(103, "方案")}` :
+ `${getLabel(1421, "新增")}${_.find(topTab, it => it.viewcondition === selectedKey).title}${getLabel(103, "方案")}`
}
editable={true}
showOperateBtn={showOperateBtn}
@@ -506,7 +494,7 @@ export default class Programme extends React.Component {
onClick={() => {
handleCopyModalSave();
}}>
- 保存
+ {getLabel(86, "保存")}
]
}
/>}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/paymentPeriodModal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/paymentPeriodModal.js
index 6621acd5..698173de 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/paymentPeriodModal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/paymentPeriodModal.js
@@ -5,10 +5,11 @@
* Date: 2023/2/1
*/
import React, { Component } from "react";
-import { WeaDialog } from "ecCom";
+import { WeaDialog, WeaLocaleProvider } from "ecCom";
import { Button, Checkbox } from "antd";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
const CheckboxGroup = Checkbox.Group;
class PaymentPeriodModal extends Component {
@@ -60,27 +61,28 @@ class PaymentPeriodModal extends Component {
const { onCancel, visible } = this.props;
const { monthList, allSelect } = this.state;
const buttons = [
- ,
-
+ ,
+
];
const options = [
- { label: "一月", value: "1" },
- { label: "二月", value: "2" },
- { label: "三月", value: "3" },
- { label: "四月", value: "4" },
- { label: "五月", value: "5" },
- { label: "六月", value: "6" },
- { label: "七月", value: "7" },
- { label: "八月", value: "8" },
- { label: "九月", value: "9" },
- { label: "十月", value: "10" },
- { label: "十一月", value: "11" },
- { label: "十二月", value: "12" }
+ { label: getLabel(111, "一月"), value: "1" },
+ { label: getLabel(111, "二月"), value: "2" },
+ { label: getLabel(111, "三月"), value: "3" },
+ { label: getLabel(111, "四月"), value: "4" },
+ { label: getLabel(111, "五月"), value: "5" },
+ { label: getLabel(111, "六月"), value: "6" },
+ { label: getLabel(111, "七月"), value: "7" },
+ { label: getLabel(111, "八月"), value: "8" },
+ { label: getLabel(111, "九月"), value: "9" },
+ { label: getLabel(111, "十月"), value: "10" },
+ { label: getLabel(111, "十一月"), value: "11" },
+ { label: getLabel(111, "十二月"), value: "12" }
];
return (
- 全选
+ {getLabel(111, "全选")}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js
index f91d442d..14357a97 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js
@@ -5,17 +5,19 @@
* LastEditTime: 2022-04-21 20:08:59
*/
import React, { Component } from "react";
-import { Button, Table, Dropdown, Menu, Tooltip, Icon } from "antd";
-import { WeaSlideModal, WeaTable } from "ecCom";
+import { Button, Dropdown, Icon, Menu, Tooltip } from "antd";
+import { WeaLocaleProvider, WeaSlideModal, WeaTable } from "ecCom";
import "./index.less";
+const getLabel = WeaLocaleProvider.getLabel;
export default class AbnormalDrawer extends Component {
constructor(props) {
super(props);
this.state = {
- selectedRowKeys: [],
+ selectedRowKeys: []
};
}
+
onSelectChange = (selectedRowKeys) => {
this.setState({ selectedRowKeys });
};
@@ -25,7 +27,7 @@ export default class AbnormalDrawer extends Component {
const { loading } = this.props;
const rowSelection = {
selectedRowKeys,
- onChange: this.onSelectChange,
+ onChange: this.onSelectChange
};
return (
-
+ title={`${getLabel(111, "提示")}: ${getLabel(111, "核算范围内人员福利项目在福利方案中开启缴纳但核算数值为0的进行异常统计")};${getLabel(111, "点击忽略")},${getLabel(111, "视为该数据主观判断为非异常数据")},${getLabel(111, "导出档案只导出异常数据")},${getLabel(111, "点击核算也不再重新核算")}。`}
+ >
+
-
-
+
+
- 忽略全部
- 取消全部忽略
+ {getLabel(111, "忽略全部")}
+ {getLabel(111, "取消全部忽略")}
}>
-
+
{/* table */}
@@ -62,10 +65,10 @@ export default class AbnormalDrawer extends Component {
loading={loading}
pagination={{
onChange: (value) => {
-this.props.onPageChange(value)
-},
+ this.props.onPageChange(value);
+ },
total: this.props.total,
- showTotal: (total) => `共 ${total} 条`,
+ showTotal: total => `${getLabel(111, "共")} ${total} ${getLabel(111, "条")}`
}}
rowSelection={rowSelection}
scroll={{ x: 1200 }}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/accountDialog.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/accountDialog.js
index 6daf854d..f7409b49 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/accountDialog.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/accountDialog.js
@@ -6,12 +6,14 @@
*/
import React, { Component } from "react";
import { Button, Form, Input } from "antd";
-import { WeaDatePicker, WeaDialog, WeaSelect } from "ecCom";
+import { WeaDatePicker, WeaDialog, WeaLocaleProvider, WeaSelect } from "ecCom";
import "./index.less";
const createForm = Form.create;
const FormItem = Form.Item;
+const getLabel = WeaLocaleProvider.getLabel;
+
class Accountdialog extends Component {
constructor(props) {
super(props);
@@ -46,36 +48,36 @@ class Accountdialog extends Component {
type="primary"
onClick={this.handleSubmit}
loading={this.props.loading}>
- 保存并进入核算
+ {getLabel(111, "保存并进入核算")}
]}>