产品-系统多语言
This commit is contained in:
parent
5545b59b3a
commit
e2ef01994a
|
|
@ -1,10 +1,11 @@
|
|||
import React from "react";
|
||||
import { Modal } from "antd";
|
||||
import { WeaProgress } from "ecCom";
|
||||
import { WeaProgress, WeaLocaleProvider } from "ecCom";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
export default class ProgressModal extends React.Component {
|
||||
render() {
|
||||
const { title = "正在核算请稍后" } = this.props;
|
||||
const { title = getLabel(111, "正在核算请稍后") } = this.props;
|
||||
return (
|
||||
<div>
|
||||
<Modal
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
import React, { Component } from "react";
|
||||
import { Button, Icon, message, Modal, Spin, Tooltip } from "antd";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { WeaInputSearch } from "ecCom";
|
||||
import { WeaInputSearch, WeaLocaleProvider } from "ecCom";
|
||||
import { calcPageNo } from "../../../../util";
|
||||
import { getQueryString } from "../../../../util/url";
|
||||
import ProgressModal from "../../../../components/progressModal";
|
||||
|
|
@ -24,6 +24,7 @@ import SupplementarySlide from "./supplementarySlide";
|
|||
import _ from "lodash";
|
||||
import "./index.less";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
@inject("standingBookStore")
|
||||
@observer
|
||||
export default class NormalIndex extends Component {
|
||||
|
|
@ -39,7 +40,7 @@ export default class NormalIndex extends Component {
|
|||
visible: false
|
||||
},
|
||||
adjustSlide: {
|
||||
title: "调差",
|
||||
title: getLabel(111, "调差"),
|
||||
visible: false
|
||||
},
|
||||
tableData: {
|
||||
|
|
@ -196,7 +197,7 @@ export default class NormalIndex extends Component {
|
|||
excludes: _.isEmpty(excludes) ? excludes.split(",") : []
|
||||
};
|
||||
siaccountCommonSave(payload).then(() => {
|
||||
message.success("添加成功");
|
||||
message.success(getLabel(111, "添加成功"));
|
||||
this.getNormalList({
|
||||
billMonth,
|
||||
paymentOrganization,
|
||||
|
|
@ -229,7 +230,7 @@ export default class NormalIndex extends Component {
|
|||
paymentOrganization
|
||||
};
|
||||
siaccountSupplementarySave(payload).then(() => {
|
||||
message.success("添加成功");
|
||||
message.success(getLabel(111, "添加成功"));
|
||||
this.getSupplementaryList({
|
||||
billMonth,
|
||||
current: this.state.current,
|
||||
|
|
@ -290,7 +291,7 @@ export default class NormalIndex extends Component {
|
|||
const { selectedRowKeys } = this.state;
|
||||
const { billMonth, selectedKey, paymentOrganization } = this.props;
|
||||
if (_.isEmpty(selectedRowKeys)) {
|
||||
message.warning("未勾选数据!");
|
||||
message.warning(getLabel(111, "未勾选数据"));
|
||||
} else {
|
||||
const includes = _.map(
|
||||
_.filter(list, it => selectedRowKeys.includes(it.id)),
|
||||
|
|
@ -301,8 +302,8 @@ export default class NormalIndex extends Component {
|
|||
item => item.id
|
||||
);
|
||||
Modal.confirm({
|
||||
title: "确认信息",
|
||||
content: "确认删除勾选的数据吗?",
|
||||
title: getLabel(111, "信息确认"),
|
||||
content: `${getLabel(111, "确认删除勾选的数据吗")}?`,
|
||||
onOk: () => {
|
||||
this.setState({
|
||||
progressVisible: true
|
||||
|
|
@ -318,7 +319,7 @@ export default class NormalIndex extends Component {
|
|||
progressVisible: false,
|
||||
progress: 0
|
||||
}, () => {
|
||||
message.success("删除成功");
|
||||
message.success(getLabel(111, "删除成功"));
|
||||
selectedKey === "1"
|
||||
? this.getNormalList({
|
||||
billMonth,
|
||||
|
|
@ -342,7 +343,7 @@ export default class NormalIndex extends Component {
|
|||
paymentOrganization
|
||||
}).then(() => {
|
||||
clearInterval(this.timerDelete);
|
||||
message.success("删除成功");
|
||||
message.success(getLabel(111, "删除成功"));
|
||||
this.setState({ selectedRowKeys: [], progressVisible: false, progress: 0 });
|
||||
selectedKey === "1"
|
||||
? this.getNormalList({
|
||||
|
|
@ -367,7 +368,7 @@ export default class NormalIndex extends Component {
|
|||
this.setState({
|
||||
addProps: {
|
||||
...this.state.addProps,
|
||||
title: "添加缴纳人员",
|
||||
title: getLabel(111, "添加缴纳人员"),
|
||||
visible: true
|
||||
}
|
||||
});
|
||||
|
|
@ -401,7 +402,7 @@ export default class NormalIndex extends Component {
|
|||
progressVisible: false,
|
||||
progress: 0
|
||||
}, () => {
|
||||
message.success("核算成功");
|
||||
message.success(getLabel(111, "核算成功"));
|
||||
selectedKey === "1"
|
||||
? this.getNormalList({
|
||||
billMonth,
|
||||
|
|
@ -484,8 +485,8 @@ export default class NormalIndex extends Component {
|
|||
<div className="topContent">
|
||||
<div className="month">
|
||||
<span>
|
||||
账单月份
|
||||
<Tooltip placement="topLeft" title="提示:正常缴纳,账单月份即社保福利缴纳月份">
|
||||
{getLabel(111, "账单月份")}
|
||||
<Tooltip placement="topLeft" title={`${getLabel(111, "提示")}:${getLabel(111, "正常缴纳")},${getLabel(111, "账单月份即社保福利缴纳月份")}`}>
|
||||
<Icon type="question-circle"/>
|
||||
</Tooltip>
|
||||
</span>
|
||||
|
|
@ -494,7 +495,7 @@ export default class NormalIndex extends Component {
|
|||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<span>备注:</span>
|
||||
<span>{getLabel(111, "备注")}:</span>
|
||||
<span>
|
||||
{remarks}
|
||||
</span>
|
||||
|
|
@ -504,14 +505,14 @@ export default class NormalIndex extends Component {
|
|||
<div className="tabOption">
|
||||
{this.props.type !== "detail" && this.props.selectedKey == "3"
|
||||
? <span style={{ display: "flex", alignItems: "center" }}>
|
||||
<Tooltip title="批量删除">
|
||||
<Tooltip title={getLabel(111, "批量删除")}>
|
||||
<i
|
||||
style={{ color: "#2db7f5", fontSize: 18 }}
|
||||
className="icon-coms-Batch-delete"
|
||||
onClick={this.handleBatchDelete}
|
||||
/>
|
||||
</Tooltip>
|
||||
<Tooltip title="添加该月正常缴纳人员">
|
||||
<Tooltip title={getLabel(111, "添加该月正常缴纳人员")}>
|
||||
<i className="icon-coms-Add-to" onClick={this.handleAdd} style={{ color: "#2db7f5", fontSize: 18 }}/>
|
||||
</Tooltip>
|
||||
</span>
|
||||
|
|
@ -539,7 +540,7 @@ export default class NormalIndex extends Component {
|
|||
<React.Fragment>
|
||||
<Button type="primary" onClick={() => {
|
||||
this.handleCommonAccountClick();
|
||||
}}>核算</Button>
|
||||
}}>{getLabel(111, "核算")}</Button>
|
||||
<Button type="ghost" onClick={() => {
|
||||
this.setState({
|
||||
adjustSlide: {
|
||||
|
|
@ -547,7 +548,7 @@ export default class NormalIndex extends Component {
|
|||
visible: true
|
||||
}
|
||||
});
|
||||
}}>调差</Button>
|
||||
}}>{getLabel(111, "调差")}</Button>
|
||||
</React.Fragment>
|
||||
}
|
||||
{
|
||||
|
|
@ -555,12 +556,12 @@ export default class NormalIndex extends Component {
|
|||
<React.Fragment>
|
||||
<Button type="primary" onClick={() => {
|
||||
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/socialSecurityBenefits/sbofflineComparison?billMonth=${billMonth}&paymentOrganization=${paymentOrganization}`);
|
||||
}}>线下对比</Button>
|
||||
}}>{getLabel(111, "线下对比")}</Button>
|
||||
</React.Fragment>
|
||||
}
|
||||
{/*核算进度条*/}
|
||||
<ProgressModal
|
||||
title={selectedKey === "3" ? "正在删除请稍后" : "正在核算请稍后"}
|
||||
title={selectedKey === "3" ? getLabel(111, "正在删除请稍后") : getLabel(111, "正在核算请稍后")}
|
||||
visible={this.state.progressVisible}
|
||||
onCancel={() => {
|
||||
this.setState({ progressVisible: false, progress: 0 });
|
||||
|
|
@ -569,7 +570,7 @@ export default class NormalIndex extends Component {
|
|||
/>
|
||||
{
|
||||
this.props.type !== "detail" &&
|
||||
<Tooltip title="导入数据">
|
||||
<Tooltip title={getLabel(111, "导入数据")}>
|
||||
<i
|
||||
className="icon-coms02-Import"
|
||||
style={{ color: "#2db7f5", fontSize: 18, marginRight: 10, cursor: "pointer" }}
|
||||
|
|
@ -602,7 +603,7 @@ export default class NormalIndex extends Component {
|
|||
/>
|
||||
}
|
||||
|
||||
<Tooltip title="导出全部">
|
||||
<Tooltip title={getLabel(111, "导出全部")}>
|
||||
<i
|
||||
className="icon-coms02-coms2-export"
|
||||
style={{ color: "#2db7f5", fontSize: 18, marginRight: 10, cursor: "pointer" }}
|
||||
|
|
@ -614,7 +615,7 @@ export default class NormalIndex extends Component {
|
|||
onChange={value => {
|
||||
this.setState({ searchValue: value });
|
||||
}}
|
||||
placeholder={"请输入姓名"}
|
||||
placeholder={getLabel(111, "请输入姓名")}
|
||||
onSearch={value => {
|
||||
this.handleSearch(value);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue