feature/V2-dev合并多语言

This commit is contained in:
黎永顺 2023-12-04 14:36:26 +08:00
parent cce473cfd6
commit b080e47190
33 changed files with 68 additions and 68 deletions

View File

@ -20,7 +20,7 @@ class Index extends Component {
const { onlyOneGrup, showData } = dealTemplate(itemTypeList, "mobile");
return (
<React.Fragment>
<div className="pbmc-head">{getLabel(111, "薪酬预览")}</div>
<div className="pbmc-head">{getLabel(545773, "薪酬预览")}</div>
<div className="pbmc-body">
<div className="weapp-salary-payroll-mobile-preview">
<div className="bill-container">
@ -50,7 +50,7 @@ class Index extends Component {
<div className="group-list">
{
(onlyOneGrup && tipPosi === "1" && tip) && (<div className="list-item send-tip top">
<div className="label">{getLabel(111, "发放说明")}</div>
<div className="label">{getLabel(544304, "发放说明")}</div>
<div className="detail">{tip}</div>
</div>)
}
@ -66,7 +66,7 @@ class Index extends Component {
}
{
(onlyOneGrup && tipPosi === "2" && tip) && (<div className="list-item send-tip bottom">
<div className="label">{getLabel(111, "发放说明")}</div>
<div className="label">{getLabel(544304, "发放说明")}</div>
<div className="detail">{tip}</div>
</div>)
}

View File

@ -44,7 +44,7 @@ class Index extends Component {
<div className="group-list">
{
(onlyOneGrup && tipPosi === "1" && tip) && (<div className="send-tip top">
<div className="label">{getLabel(111, "发放说明")}</div>
<div className="label">{getLabel(544304, "发放说明")}</div>
<div className="detail">{tip}</div>
</div>)
}
@ -63,7 +63,7 @@ class Index extends Component {
}
{
(onlyOneGrup && tipPosi === "2" && tip) && (<div className="send-tip bottom">
<div className="label">{getLabel(111, "发放说明")}</div>
<div className="label">{getLabel(544304, "发放说明")}</div>
<div className="detail">{tip}</div>
</div>)
}

View File

@ -18,7 +18,7 @@ class Index extends Component {
onSearch={this.props.onAdvanceSearch}
/>
<Button type="ghost" className="wea-advanced-search text-elli"
onClick={this.props.onOpenAdvanceSearch}>{getLabel(111, "高级搜索")}</Button>
onClick={this.props.onOpenAdvanceSearch}>{getLabel(545754, "高级搜索")}</Button>
</div>
);
}

View File

@ -91,7 +91,7 @@ export const adjustSearchConditions = [
domkey: ["adjustItem"],
fieldcol: 12,
label: "项目名称",
lanId: 111,
lanId: 545768,
labelcol: 6,
value: "",
viewAttr: 2
@ -123,7 +123,7 @@ export const adjustSearchConditions = [
domkey: ["operateTime1", "operateTime2"],
fieldcol: 12,
label: "操作日期",
lanId: 111,
lanId: 545769,
labelcol: 6,
viewAttr: 2
},
@ -154,7 +154,7 @@ export const adjustSearchConditions = [
domkey: ["operatorIds"],
fieldcol: 12,
label: "操作人",
lanId: 111,
lanId: 17482,
labelcol: 6,
viewAttr: 2
},

View File

@ -110,7 +110,7 @@ class Index extends Component {
};
return (
<WeaTop
title={getLabel(111, "调薪管理")} buttonSpace={10} className="adjustManageLayout"
title={getLabel(545765, "调薪管理")} buttonSpace={10} className="adjustManageLayout"
icon={<i className="icon-coms-fa"/>} iconBgcolor="#F14A2D"
buttons={[
<Button type="primary" onClick={this.adjustExport}>{getLabel(17416, "导出")}</Button>,

View File

@ -113,7 +113,7 @@ export const extensionCondition = [
domkey: ["pk"],
fieldcol: 14,
label: "主键",
lanId: 111,
lanId: 545793,
labelcol: 6,
value: "",
rules: "required|string",

View File

@ -99,7 +99,7 @@ class DimensionExtensionAttrsDialog extends Component {
width: "50%"
},
{
title: getLabel(111, "字段"),
title: getLabel(545783, "字段"),
dataIndex: "field",
key: "field",
com: [
@ -111,7 +111,7 @@ class DimensionExtensionAttrsDialog extends Component {
];
return (
<WeaDialog
{...this.props} title={getLabel(111, "属性扩展")} hasScroll
{...this.props} title={getLabel(545782, "属性扩展")} hasScroll
className="extensionAttrsDialog" initLoadCss
buttons={[
<Button type="primary" loading={loading} onClick={this.save}>{getLabel(537558, "保存")}</Button>

View File

@ -101,9 +101,9 @@ class DimensionTable extends Component {
onClick={() => this.dimensionDelete([record.id])}>{getLabel(535052, "删除")}</a>
}
{
record.dimName === getLabel(30042, "人员") && record.dimType === getLabel(111, "定性") &&
record.dimName === getLabel(30042, "人员") && record.dimType === getLabel(545744, "定性") &&
<a href="javascript: void(0);"
onClick={() => this.setState({ visible: true })}>{getLabel(111, "扩展属性")}</a>
onClick={() => this.setState({ visible: true })}>{getLabel(545782, "扩展属性")}</a>
}
</span>
);

View File

@ -31,7 +31,7 @@ class Calculate extends Component {
moment(new Date()).startOf("month").format("YYYY-MM")
]
}, isRefresh: false,
progressModule: { visible: false, progress: 0, title: getLabel(111, "正在归档中请稍后") },
progressModule: { visible: false, progress: 0, title: getLabel(545763, "正在归档中请稍后") },
calcDaialog: { visible: false, title: "" }
};
this.timer = null;

View File

@ -68,7 +68,7 @@ class Index extends Component {
<span>{getLabel(30585, "操作")}</span>
<WeaHelpfulTip
placement="topLeft" style={{ marginLeft: 4 }}
title={getLabel(111, "当前账套当次核算的工资单全部撤回才可重新核算")}
title={getLabel(545753, "当前账套当次核算的工资单全部撤回才可重新核算")}
/>
</span>,
render: (__, record) => {

View File

@ -18,7 +18,7 @@ class Index extends Component {
onSearch={this.props.onAdvanceSearch}
/>
<Button type="ghost" className="wea-advanced-search text-elli"
onClick={this.props.onOpenAdvanceSearch}>{getLabel(111, "高级搜索")}</Button>
onClick={this.props.onOpenAdvanceSearch}>{getLabel(545754, "高级搜索")}</Button>
</div>
);
}

View File

@ -135,7 +135,7 @@ class EditCalcTable extends Component {
"当前状态未锁定,点击锁定": getLabel(545248, "当前状态未锁定,点击锁定"),
"共": getLabel(18609, "共"), "条": getLabel(18256, "条"),
"总计": getLabel(523, "总计"), "批量解锁": getLabel(545249, "批量解锁"),
"批量锁定": getLabel(545250, "批量锁定"), "查看拓扑图": getLabel(111, "查看拓扑图")
"批量锁定": getLabel(545250, "批量锁定"), "查看拓扑图": getLabel(545776, "查看拓扑图")
};
const childFrameObj = document.getElementById("atdTable");
childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");

View File

@ -156,7 +156,7 @@ class Index extends Component {
onAdvanceSearch={() => this.calc.onAdSearch(false)}/>
];
accountExceptInfo && reqBtns.unshift(<i className="iconfont icon-jinggao"
title={getLabel(111, "存在异常信息,点击下载!")}
title={getLabel(545774, "存在异常信息,点击下载!")}
onClick={() => this.downloadTxtfile(accountExceptInfo)}/>);
break;
default:

View File

@ -22,7 +22,7 @@ class Index extends Component {
onChange={v => this.props.onChange({ dateRange: v })}/>
</div>
<WeaInputSearch value={name}
placeholder={getLabel(111, "请输入个税扣缴义务人")}
placeholder={getLabel(543634, "请输入个税扣缴义务人")}
onChange={v => this.props.onChange({ taxAgentName: v })}
onSearch={this.props.onSearch}
/>

View File

@ -41,7 +41,7 @@ class Index extends Component {
render() {
const { selectedKey, salaryYearMonth } = this.state;
const tabs = [
{ key: "1", title: getLabel(111, "工资单") },
{ key: "1", title: getLabel(503, "工资单") },
{ key: "2", title: getLabel(543150, "调薪记录") }
];
const btns = [

View File

@ -32,7 +32,7 @@ class TmpPreview extends Component {
componentDidMount() {
const dataStr = window.localStorage.getItem("weapp-salary-payroll-preview-data");
if (!dataStr) {
message.warning(getLabel(111, "参数异常!"));
message.warning(getLabel(545772, "参数异常!"));
return;
}
const data = JSON.parse(dataStr);

View File

@ -1084,15 +1084,15 @@ export default Index;
const HelpfulDiv = () => {
return <div className="helpWrapper">
<span>{getLabel(111, "导入按钮使用场景说明:")}</span>
<span>{getLabel(111, "1.档案初始化:")}</span>
<span>{getLabel(544742, "导入按钮使用场景说明:")}</span>
<span>{getLabel(544743, "1.档案初始化:")}</span>
<span className="pl10">
<span>{getLabel(111, "a.初次使用薪酬模块,全量导入员工的薪资档案数据;")}</span>
<span>{getLabel(111, "b.员工入职,导入新入职的员工的薪资档案数据(若导入表格中的人员已存在在薪资档案中,初始化导入会将档案中该人员的数据清除再导入);")}</span>
<span>{getLabel(111, "c.返聘人员使用调薪功能调整薪资档案值或使用调整个税扣缴;")}</span>
<span>{getLabel(544744, "a.初次使用薪酬模块,全量导入员工的薪资档案数据;")}</span>
<span>{getLabel(544745, "b.员工入职,导入新入职的员工的薪资档案数据(若导入表格中的人员已存在在薪资档案中,初始化导入会将档案中该人员的数据清除再导入);")}</span>
<span>{getLabel(544746, "c.返聘人员使用调薪功能调整薪资档案值或使用调整个税扣缴;")}</span>
</span>
<span>{getLabel(111, "2.调薪:档案中已存在的人员批量调整薪资项目值(包括返聘人员的情况);")}</span>
<span>{getLabel(111, "3.调整个税扣缴义务人:档案中已存在的人员批量调整个税扣缴义务人(包括返聘人员的情况);")}</span>
<span>{getLabel(545755, "2.调薪:档案中已存在的人员批量调整薪资项目值(包括返聘人员的情况);")}</span>
<span>{getLabel(545756, "3.调整个税扣缴义务人:档案中已存在的人员批量调整个税扣缴义务人(包括返聘人员的情况);")}</span>
</div>;
};

View File

@ -130,7 +130,7 @@ export const tempBaseSetConditions = [
domkey: ["smsStatus"],
fieldcol: 2,
label: "短信",
lanId: 111,
lanId: 545785,
labelcol: 6,
value: "0",
viewAttr: 2
@ -141,7 +141,7 @@ export const tempBaseSetConditions = [
domkey: ["smsSetting"],
fieldcol: 14,
label: "短信设置",
lanId: 111,
lanId: 545786,
labelcol: 6,
value: "",
hide: true

View File

@ -75,7 +75,7 @@ class SmsSettingDialog extends Component {
const { variableExpandedKeys, variableList, smsContent } = this.state;
return (
<WeaDialog
{...this.props} hasScroll className="smsSettingDialog" initLoadCss title={getLabel(111, "短信设置")}
{...this.props} hasScroll className="smsSettingDialog" initLoadCss title={getLabel(545786, "短信设置")}
onCancel={() => this.props.onCancel({ smsContent })}
buttons={[<Button type="primary"
onClick={() => this.props.onCancel({ smsContent })}>{getLabel(826, "确定")}</Button>]}

View File

@ -41,7 +41,7 @@ class TemplateQuery extends Component {
<WeaSelect value={salarySobId} options={salarySobOptions} style={{ width: 200 }}
onChange={v => this.props.onChange({ salarySobId: v })}/>
<WeaInputSearch value={name} style={{ marginLeft: 10 }}
placeholder={getLabel(111, "请输入工资单模板名称")}
placeholder={getLabel(545764, "请输入工资单模板名称")}
onChange={v => this.props.onChange({ name: v })}
onSearch={this.props.onSearch}
/>

View File

@ -193,7 +193,7 @@ class Index extends Component {
if (hasBeenModify) {
Modal.confirm({
title: getLabel(131329, "信息确认"),
content: getLabel(111, "确定放弃填写吗?放弃后数据将不会被保存!"),
content: getLabel(545770, "确定放弃填写吗?放弃后数据将不会被保存!"),
onOk: () => {
initPayrollTempForm();
initPayrollTempFeedbackForm();
@ -252,7 +252,7 @@ class Index extends Component {
salaryItemNullStatus: salaryItemNullStatus === "1"
};
if (textContentPosition !== "0" && ((textContentPosition && !textContent) || (!textContentPosition && textContent))) {
message.warning(getLabel(111, "请完善文本内容与文本内容位置设置!"));
message.warning(getLabel(545771, "请完善文本内容与文本内容位置设置!"));
return;
}
window.localStorage.setItem("weapp-salary-payroll-preview-data", JSON.stringify(payload));

View File

@ -322,7 +322,7 @@ export const shareLogCondition = [
domkey: ["effectiveTime"],
fieldcol: 12,
label: "报表查看有效时间",
lanId: 111,
lanId: 545757,
labelcol: 6,
viewAttr: 1
},

View File

@ -114,7 +114,7 @@ class SalaryStatisticsDetailShareDialog extends Component {
hasScroll initLoadCss title={getLabel(545252, "分享报表")}
buttons={[
<Button type="primary" onClick={this.salaryStatisticsPushSendMsg}
loading={loading}>{getLabel(111, "确认分享")}</Button>
loading={loading}>{getLabel(545758, "确认分享")}</Button>
]}
className="shareDialogWrapper"
style={{

View File

@ -351,13 +351,13 @@ const StatisticalScopePicker = (props) => {
const scopeBtns = [
{ key: 1, label: getLabel(17028, "上月") },
{ key: 2, label: getLabel(15541, "本月") },
{ key: 3, label: getLabel(111, "一季度") },
{ key: 4, label: getLabel(111, "二季度") },
{ key: 5, label: getLabel(111, "三季度") },
{ key: 6, label: getLabel(111, "四季度") },
{ key: 7, label: getLabel(111, "上半年") },
{ key: 8, label: getLabel(111, "下半年") },
{ key: 9, label: getLabel(111, "本年") }
{ key: 3, label: getLabel(545794, "一季度") },
{ key: 4, label: getLabel(545795, "二季度") },
{ key: 5, label: getLabel(545796, "三季度") },
{ key: 6, label: getLabel(545797, "四季度") },
{ key: 7, label: getLabel(545798, "上半年") },
{ key: 8, label: getLabel(545799, "下半年") },
{ key: 9, label: getLabel(545800, "本年") }
];
const { timeType, dateRange, onChange, viewAttr, disabled = false } = props;
const [startDate, endDate] = dateRange || [];
@ -384,7 +384,7 @@ const StatisticalScopePicker = (props) => {
}
</div>
<div className="data-picker">
<span className="title" onClick={(val) => onChange([], 10)}>{getLabel(111, "指定月份")}</span>
<span className="title" onClick={(val) => onChange([], 10)}>{getLabel(545784, "指定月份")}</span>
<div
className={cs("rangePickerBox", { "hide-data-picker": timeType !== 10, "show-data-picker": timeType === 10 })}>
<WeaDatePicker

View File

@ -227,7 +227,7 @@ export default class SalaryItem extends React.Component {
const menu = (
<Menu onClick={handleMenuClick}>
<Menu.Item key="2">{getLabel(111, "新增自定义薪资项")}</Menu.Item>
<Menu.Item key="2">{getLabel(545779, "新增自定义薪资项")}</Menu.Item>
</Menu>
);
@ -237,7 +237,7 @@ export default class SalaryItem extends React.Component {
{
(showOperateBtn || showSalaryItemBtn) &&
<Dropdown.Button overlay={menu} type="primary" onClick={() => handleMenuClick({ key: "1" })}
style={{ marginRight: "10px" }}>{getLabel(111, "新增系统薪资项")}</Dropdown.Button>
style={{ marginRight: "10px" }}>{getLabel(545778, "新增系统薪资项")}</Dropdown.Button>
}
{
(showOperateBtn || showSalaryItemBtn) &&
@ -327,7 +327,7 @@ export default class SalaryItem extends React.Component {
title: getLabel(545237, "请选择薪资账套")
}
})}
>{getLabel(111, "同步到薪资账套")}</Button>,
>{getLabel(545759, "同步到薪资账套")}</Button>,
<Button type="primary" onClick={() => {
handleSlideSave(true);
}}>{getLabel(537558, "保存")}</Button>

View File

@ -824,7 +824,7 @@ export default class Archives extends React.Component {
{
key: "log",
icon: <i className="iconfont icon-caozuorizhi32"/>,
content: getLabel(111, "操作日志"),
content: getLabel(545781, "操作日志"),
onClick: key => this.setState({ logDialog: { ...logDialog, visible: true } })
}
]}

View File

@ -272,24 +272,24 @@ export default class DefaultSlideForm extends React.Component {
width={480}
title={
<div>
<div>{getLabel(111, "例养老保险缴纳周期选择3/6/9/12")}</div>
<div>{getLabel(544738, "例养老保险缴纳周期选择3/6/9/12")}</div>
<br/>
<div>
{getLabel(111, "若:核算方式选择基数求和*比例;则数据核算逻辑为:\n" +
{getLabel(544739, "若:核算方式选择基数求和*比例;则数据核算逻辑为:\n" +
" 账单月1月2月时养老保险不会被核算\n" +
" 账单月3月时养老保险核算金额为养老保险月缴纳基数*3*缴纳比例+固定费用*3\n" +
" 3代表1月2月3月 3个月*3代表3个月基数相加和固定费用相加")}
</div>
<br/>
<div>
{getLabel(111, "若:核算方式选择基数*比例再求和;则数据核算逻辑为:\n" +
{getLabel(544741, "若:核算方式选择基数*比例再求和;则数据核算逻辑为:\n" +
" 账单月1月2月时养老保险不会被核算\n" +
" 账单月3月时养老保险核算金额为\n" +
" 将1~3月算出来的【养老保险月缴纳基数*缴纳比例+固定费用】求和")}
</div>
<br/>
<div>
{getLabel(111, "若:缴纳周期选择选择月缴,则核算方式默认为【基数*比例+固定费用】,不可修改")}
{getLabel(544740, "若:缴纳周期选择选择月缴,则核算方式默认为【基数*比例+固定费用】,不可修改")}
</div>
</div>
}

View File

@ -24,7 +24,7 @@ class Index extends Component {
onSearch={this.props.onAdvanceSearch}
/>
<Button type="ghost" className="wea-advanced-search text-elli"
onClick={this.props.onOpenAdvanceSearch}>{getLabel(111, "高级搜索")}</Button>
onClick={this.props.onOpenAdvanceSearch}>{getLabel(545754, "高级搜索")}</Button>
</div>
);
}

View File

@ -89,7 +89,7 @@ class Index extends Component {
const scrollHeight = this.logRef ? this.logRef.state.height - 210 : 606.6;
return (
<WeaDialog
{...this.props} title={getLabel(111, "操作日志")}
{...this.props} title={getLabel(545781, "操作日志")}
ref={dom => this.logRef = dom} className="logDialog" initLoadCss
style={{
width: 1150,

View File

@ -78,7 +78,7 @@ class Index extends Component {
<WeaCheckbox
value={getURLParameters(link)[runStatuses !== "ext" ? "exportData" : "extWelArchiveList"] === "true" ? "1" : "0"}
content={getLabel(543208, "导出现有数据")}
helpfulTip={getLabel(111, "提示:建议先导出现有最新数据,修改后再导入")}
helpfulTip={getLabel(545244, "提示:建议先导出现有最新数据,修改后再导入")}
onChange={val => {
const payload = {
[runStatuses !== "ext" ? "exportData" : "extWelArchiveList"]: val === "1",

View File

@ -190,7 +190,7 @@ class Index extends Component {
}
});
if (hasCompromise) {
message.warning(getLabel("111", "超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充。"));
message.warning(getLabel("545788", "超出所选缴纳方案设置的基数上下限范围,将自动按基数上下限填充。"));
}
this.setState({ formData: { ...this.state.formData, ...newFormDatas } });
};
@ -218,7 +218,7 @@ class Index extends Component {
if (hasBeenModify) {
Modal.confirm({
title: getLabel(131329, "信息确认"),
content: getLabel(111, "确定放弃填写吗?放弃后数据将不会被保存!"),
content: getLabel(545770, "确定放弃填写吗?放弃后数据将不会被保存!"),
onOk: () => {
onClose();
}

View File

@ -142,7 +142,7 @@ export const renderDropMenuDatas = (selectedKey, getLabel) => {
let menus = [{
key: "log",
icon: <i className="iconfont icon-caozuorizhi32"/>,
content: getLabel(111, "操作日志")
content: getLabel(545781, "操作日志")
}];
switch (selectedKey) {
case "1":
@ -337,7 +337,7 @@ export const logConditions = [
domkey: ["operator"],
fieldcol: 17,
label: "操作人",
lanId: 111,
lanId: 17482,
labelcol: 7,
value: ""
}
@ -468,7 +468,7 @@ export const welfareConditions = [
domkey: ["socialSchemeId"],
fieldcol: 14,
label: "社保方案名称",
lanId: 111,
lanId: 542267,
labelcol: 10,
value: "",
options: [],
@ -480,7 +480,7 @@ export const welfareConditions = [
domkey: ["socialUnderTake"],
fieldcol: 14,
label: "社保个人实际承担方",
lanId: 111,
lanId: 543870,
labelcol: 10,
value: "",
options: [],
@ -534,7 +534,7 @@ export const welfareConditions = [
domkey: ["fundSchemeId"],
fieldcol: 14,
label: "公积金方案名称",
lanId: 111,
lanId: 542269,
labelcol: 10,
value: "",
options: [],
@ -546,7 +546,7 @@ export const welfareConditions = [
domkey: ["fundUnderTake"],
fieldcol: 14,
label: "公积金个人实际承担方",
lanId: 111,
lanId: 543871,
labelcol: 10,
value: "",
options: [],

View File

@ -171,17 +171,17 @@ export class ProgrammeStore {
valideForm(params) {
if (!notNull(params.insuranceScheme.paymentType)) {
message.warning(getLabel(111, "缴纳类型不能为空"));
message.warning(getLabel(545803, "缴纳类型不能为空"));
return false;
}
if (!notNull(params.insuranceScheme.schemeName)) {
message.warning(getLabel(111, "方案名称不能为空"));
message.warning(getLabel(545802, "方案名称不能为空"));
return false;
}
if (this.requestParams.sharedType === "1" && !notNull(params.insuranceScheme.taxAgentIds)) {
message.warning(getLabel(111, "可见性范围不能为空"));
message.warning(getLabel(545804, "可见性范围不能为空"));
return false;
}
return true;